]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2021-12-20 Uroš Bizjak <ubizjak@gmail.com>
2
3 PR target/103772
4 * config/i386/sse.md (<sse2p4_1>_pinsr<ssemodesuffix>): Add
5 earlyclobber to (x,x,x,i) alternative.
6 (<sse2p4_1>_pinsr<ssemodesuffix> peephole2): Remove.
7 (<sse2p4_1>_pinsr<ssemodesuffix> splitter): Use output
8 operand as a temporary register. Split after reload_completed.
9
10 2021-12-20 Roger Sayle <roger@nextmovesoftware.com>
11 Uroš Bizjak <ubizjak@gmail.com>
12
13 * config/i386/i386.md (any_mul_highpart): New code iterator.
14 (sgnprefix, s): Add attribute support for [su]mul_highpart.
15 (<s>mul<mode>3_highpart): Delete expander.
16 (<s>mul<mode>3_highpart, <s>mulsi32_highpart_zext):
17 New define_insn patterns.
18 (define_peephole2): Tweak the register allocation for the above
19 instructions after reload.
20
21 2021-12-20 Joel Sherrill <joel@rtems.org>
22
23 * config.gcc: Obsolete m32c-*-rtems* target.
24
25 2021-12-20 Martin Liska <mliska@suse.cz>
26
27 * opts.c (default_options_optimization): Support -Oz in -Ox option hints.
28
29 2021-12-20 Jan Hubicka <hubicka@ucw.cz>
30
31 PR ipa/103669
32 * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Add deferred
33 parameter.
34 (modref_eaf_analysis::propagate): Use it.
35
36 2021-12-20 liuhongt <hongtao.liu@intel.com>
37
38 PR target/98468
39 * config/i386/sse.md (*bit_and_float_vector_all_ones): New
40 pre-reload splitter.
41
42 2021-12-19 Jan Hubicka <hubicka@ucw.cz>
43
44 PR ipa/103766
45 * ipa-modref.c (modref_merge_call_site_flags): Fix early exit condition
46
47 2021-12-19 Patrick Palka <ppalka@redhat.com>
48
49 * print-tree.c (print_node) <case tcc_declaration>: Dump
50 DECL_LANG_FLAG_8.
51
52 2021-12-19 Andrew Pinski <apinski@marvell.com>
53
54 * tree-ssa-phiopt.c (gimple_simplify_phiopt): Annotate the
55 new sequence with the location of the conditional statement.
56
57 2021-12-18 Roger Sayle <roger@nextmovesoftware.com>
58 Uroš Bizjak <ubizjak@gmail.com>
59
60 PR target/103611
61 * config/i386/i386.md (any_or_plus): New code iterator.
62 (define_split): Split (HI<<32)|zext(LO) into piece-wise
63 move instructions on !TARGET_64BIT.
64 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4):
65 Restrict to TARGET_64BIT.
66
67 2021-12-18 Roger Sayle <roger@nextmovesoftware.com>
68
69 PR target/32803
70 * common.opt (Oz): New command line option.
71 * doc/invoke.texi: Document the new -Oz option.
72 * lto-wrapper.c (merge_and_complain, append_compiler_options):
73 Treat OPT_Oz as synonymous with OPT_Os.
74 * optc-save-gen.awk: Increase maximum value of optimize_size to 2.
75 * opts.c (default_options_optimization) [OPT_Oz]: Handle OPT_Oz
76 just like OPT_Os, except set opt->x_optimize_size to 2.
77 (common_handle_option): Skip OPT_Oz just like OPT_Os.
78 * config/i386/i386.md (*movdi_internal): Use a push/pop sequence
79 for suitable SImode TYPE_IMOV moves when optimize_size > 1.
80 (*movsi_internal): Likewise.
81
82 2021-12-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
83
84 PR tree-optimization/103759
85 * tree-object-size.c (unknown, initval): Remove functions.
86 (size_unknown, size_initval, size_unknown_p): Operate directly
87 on trees.
88
89 2021-12-18 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
90
91 * config/darwin-driver.c: Make version code more future-proof.
92 * config.gcc: Homogeneize darwin versions.
93 * configure.ac: Homogeneize darwin versions.
94 * configure: Regenerate.
95
96 2021-12-17 Marek Polacek <polacek@redhat.com>
97
98 PR c/103649
99 * attribs.c (handle_ignored_attributes_option): Create the fake
100 attribute with max_length == -2.
101 (attribute_ignored_p): New overloads.
102 * attribs.h (attribute_ignored_p): Declare them.
103 * tree-core.h (struct attribute_spec): Document that max_length
104 can be -2.
105
106 2021-12-17 Segher Boessenkool <segher@kernel.crashing.org>
107
108 PR target/103624
109 * config/rs6000/rs6000-builtins.def (__builtin_darn): Expand to
110 darn_64_di. Add {32bit} attribute. Return long.
111 (__builtin_darn_32): Expand to darn_32_di. Add {32bit} attribute.
112 Return long.
113 (__builtin_darn_raw): Expand to darn_raw_di. Add {32bit} attribute.
114 Return long.
115 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Expand the darn
116 builtins to the _si variants for -m32.
117 * config/rs6000/rs6000.md (UNSPECV_DARN_32, UNSPECV_DARN_RAW): Delete.
118 (UNSPECV_DARN): Update comment.
119 (darn_32, darn_raw, darn): Delete.
120 (darn_32_<mode>, darn_64_<mode>, darn_raw_<mode> for GPR): New.
121 (@darn<mode> for GPR): New.
122
123 2021-12-17 Bill Schmidt <wschmidt@linux.ibm.com>
124
125 * config/rs6000/rs6000-overload.def (__builtin_vec_promote): Add second
126 argument.
127
128 2021-12-17 Richard Sandiford <richard.sandiford@arm.com>
129
130 PR tree-optimization/103744
131 * tree-vect-stmts.c (vectorizable_load): Handle multi-vector
132 SLP gather loads.
133
134 2021-12-17 Martin Liska <mliska@suse.cz>
135
136 * doc/invoke.texi: Rename to -fstack-protector.
137
138 2021-12-17 Martin Liska <mliska@suse.cz>
139
140 * doc/invoke.texi: Fix spelling issues.
141
142 2021-12-17 Tamar Christina <tamar.christina@arm.com>
143
144 PR tree-optimization/103741
145 * tree-vect-stmts.c (vectorizable_operation): Check for boolean.
146
147 2021-12-17 Iain Sandoe <iain@sandoe.co.uk>
148
149 * config/darwin-driver.c (darwin_driver_init): Exit from the
150 option handling early if the command line is definitely enpty.
151 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Remove
152 setting for the default content of weak_reference_mismatches.
153
154 2021-12-17 Iain Sandoe <iain@sandoe.co.uk>
155
156 * config/rs6000/darwin.h: Drop trailing _x from the
157 builtin_decls array name.
158
159 2021-12-17 Haochen Jiang <haochen.jiang@intel.com>
160
161 PR target/100738
162 * config/i386/sse.md (*avx_cmp<mode>3_lt, *avx_cmp<mode>3_ltint):
163 Remove MEM_P restriction and add force_reg for operands[2].
164 (*avx_cmp<mode>3_ltint_not): Add new define_insn_and_split.
165
166 2021-12-17 Siddhesh Poyarekar <siddhesh@gotplt.org>
167
168 * builtins.def (BUILT_IN_DYNAMIC_OBJECT_SIZE): New builtin.
169 * tree-object-size.h: Move object size type bits enum from
170 tree-object-size.c and add new value OST_DYNAMIC.
171 * builtins.c (expand_builtin, fold_builtin_2): Handle it.
172 (fold_builtin_object_size): Handle new builtin and adjust for
173 change to compute_builtin_object_size.
174 * tree-object-size.c: Include builtins.h.
175 (compute_builtin_object_size): Adjust.
176 (early_object_sizes_execute_one,
177 dynamic_object_sizes_execute_one): New functions.
178 (object_sizes_execute): Rename insert_min_max_p argument to
179 early. Handle BUILT_IN_DYNAMIC_OBJECT_SIZE and call the new
180 functions.
181 * doc/extend.texi (__builtin_dynamic_object_size): Document new
182 builtin.
183
184 2021-12-17 Siddhesh Poyarekar <siddhesh@gotplt.org>
185
186 * tree-object-size.h (compute_builtin_object_size): Return tree
187 instead of HOST_WIDE_INT.
188 * builtins.c (fold_builtin_object_size): Adjust.
189 * gimple-fold.c (gimple_fold_builtin_strncat): Likewise.
190 * ubsan.c (instrument_object_size): Likewise.
191 * tree-object-size.c (object_size): New structure.
192 (object_sizes): Change type to vec<object_size>.
193 (initval): New function.
194 (unknown): Use it.
195 (size_unknown_p, size_initval, size_unknown): New functions.
196 (object_sizes_unknown_p): Use it.
197 (object_sizes_get): Return tree.
198 (object_sizes_initialize): Rename from object_sizes_set_force
199 and set VAL parameter type as tree. Add new parameter WHOLEVAL.
200 (object_sizes_set): Set VAL parameter type as tree and adjust
201 implementation. Add new parameter WHOLEVAL.
202 (size_for_offset): New function.
203 (decl_init_size): Adjust comment.
204 (addr_object_size): Change PSIZE parameter to tree and adjust
205 implementation. Add new parameter PWHOLESIZE.
206 (alloc_object_size): Return tree.
207 (compute_builtin_object_size): Return tree in PSIZE.
208 (expr_object_size, call_object_size, unknown_object_size):
209 Adjust for object_sizes_set change.
210 (merge_object_sizes): Drop OFFSET parameter and adjust
211 implementation for tree change.
212 (plus_stmt_object_size): Call collect_object_sizes_for directly
213 instead of merge_object_size and call size_for_offset to get net
214 size.
215 (cond_expr_object_size, collect_object_sizes_for,
216 object_sizes_execute): Adjust for change of type from
217 HOST_WIDE_INT to tree.
218 (check_for_plus_in_loops_1): Likewise and skip non-positive
219 offsets.
220
221 2021-12-17 Jason Merrill <jason@redhat.com>
222
223 PR c++/103681
224 * common.opt (fabi-version): Add v17.
225
226 2021-12-16 Uroš Bizjak <ubizjak@gmail.com>
227
228 PR target/103571
229 * config/i386/i386.h (VALID_AVX256_REG_MODE): Add V16HFmode.
230 (VALID_AVX256_REG_OR_OI_VHF_MODE): Replace with ...
231 (VALID_AVX256_REG_OR_OI_MODE): ... this. Remove V16HFmode.
232 (VALID_AVX512F_SCALAR_MODE): Remove HImode and HFmode.
233 (VALID_AVX512FP16_SCALAR_MODE): New.
234 (VALID_AVX512F_REG_MODE): Add V32HFmode.
235 (VALID_SSE2_REG_MODE): Add V8HFmode, V4HFmode and V2HFmode.
236 (VALID_SSE2_REG_VHF_MODE): Remove.
237 (VALID_INT_MODE_P): Add V2HFmode.
238 * config/i386/i386.c (function_arg_advance_64):
239 Remove explicit mention of V16HFmode and V32HFmode.
240 (ix86_hard_regno_mode_ok): Remove explicit mention of XImode
241 and V32HFmode, use VALID_AVX512F_REG_OR_XI_MODE instead.
242 Use VALID_AVX512FP_SCALAR_MODE for TARGET_aVX512FP16.
243 Use VALID_AVX256_REG_OR_OI_MODE instead of
244 VALID_AVX256_REG_OR_OI_VHF_MODE and VALID_SSE2_REG_MODE instead
245 of VALID_SSE2_REG_VHF_MODE.
246 (ix86_set_reg_reg_cost): Remove usge of VALID_AVX512FP16_REG_MODE.
247 (ix86_vector_mode_supported): Ditto.
248
249 2021-12-16 Martin Liska <mliska@suse.cz>
250
251 PR c++/103696
252 * attribs.c (decl_attributes): Check if
253 target_option_current_node is changed.
254
255 2021-12-16 Martin Liska <mliska@suse.cz>
256
257 * doc/invoke.texi: Add missing dash.
258
259 2021-12-16 Bill Schmidt <wschmidt@linux.ibm.com>
260
261 * config/rs6000/rs6000-c.c (resolution): New enum.
262 (resolve_vec_mul): New function.
263 (resolve_vec_cmpne): Likewise.
264 (resolve_vec_adde_sube): Likewise.
265 (resolve_vec_addec_subec): Likewise.
266 (resolve_vec_splats): Likewise.
267 (resolve_vec_extract): Likewise.
268 (resolve_vec_insert): Likewise.
269 (resolve_vec_step): Likewise.
270 (find_instance): Likewise.
271 (altivec_resolve_overloaded_builtin): Many cleanups. Call factored-out
272 functions. Move variable declarations closer to uses. Add commentary.
273 Remove unnecessary levels of braces. Avoid use of gotos. Change
274 misleading variable names. Use switches over if-else-if chains.
275
276 2021-12-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
277
278 PR target/103729
279 * config/aarch64/aarch64-simd.md (aarch64_movv8di): Allow big endian
280 targets to move V8DI.
281
282 2021-12-16 Tobias Burnus <tobias@codesourcery.com>
283
284 PR driver/103644
285 * gcc.c (check_offload_target_name): Add 'default' and 'disable'
286 to the candidate list.
287
288 2021-12-15 Iain Sandoe <iain@sandoe.co.uk>
289
290 * configure: Regenerate.
291
292 2021-12-15 Roger Sayle <roger@nextmovesoftware.com>
293
294 * config/nvptx/nvptx-opts.h (ptx_isa): PTX_ISA_SM75 and PTX_ISA_SM80
295 ISA levels.
296 * config/nvptx/nvptx.opt: Add sm_75 and sm_80 to -misa.
297 * config/nvptx/nvptx.h (TARGET_SM75, TARGET_SM80):
298 New helper macros to conditionalize functionality on target ISA.
299 * config/nvptx/nvptx-c.c (nvptx_cpu_cpp_builtins): Add __PTX_SM__
300 support for the new ISA levels.
301 * config/nvptx/nvptx.c (nvptx_file_start): Add support for TARGET_SM75
302 and TARGET_SM80.
303 * config/nvptx/nvptx.md (define_c_enum "unspec"): New UNSPEC_TANH.
304 (define_mode_iterator HSFM): New iterator for HFmode and SFmode.
305 (exp2hf2): New define_insn controlled by TARGET_SM75.
306 (tanh<mode>2): New define_insn controlled by TARGET_SM75.
307 (sminhf3, smaxhf3): New define_isnns controlled by TARGET_SM80.
308
309 2021-12-15 Tom de Vries <tdevries@suse.de>
310
311 * config/nvptx/nvptx-opts.h (enum ptx_version): Add PTX_VERSION_7_0.
312 * config/nvptx/nvptx.c (nvptx_file_start): Handle TARGET_PTX_7_0.
313 * config/nvptx/nvptx.h (TARGET_PTX_7_0): New macro.
314 * config/nvptx/nvptx.opt (ptx_version): Add 7.0.
315
316 2021-12-15 Richard Sandiford <richard.sandiford@arm.com>
317 Tamar Christina <tamar.christina@arm.com>
318
319 PR target/103094
320 * config/aarch64/aarch64.c (aarch64_short_vector_p): Return false
321 for structure modes, rather than ignoring the type in that case.
322
323 2021-12-15 Tamar Christina <tamar.christina@arm.com>
324
325 PR rtl-optimization/103350
326 * ree.c (add_removable_extension): Don't stop at first definition but
327 inspect all.
328
329 2021-12-15 Jakub Jelinek <jakub@redhat.com>
330
331 PR debug/103619
332 * dwarf2cfi.c (dwf_cfa_reg): Remove gcc_assert.
333 (operator==, operator!=): New overloaded operators.
334 (dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_offset,
335 dwarf2out_frame_debug_expr): Compare vars with cfa_reg type directly
336 with REG rtxes rather than with dwf_cfa_reg results on those REGs.
337 (create_cie_data): Use stack_pointer_rtx instead of
338 gen_rtx_REG (Pmode, STACK_POINTER_REGNUM).
339 (execute_dwarf2_frame): Use hard_frame_pointer_rtx instead of
340 gen_rtx_REG (Pmode, HARD_FRAME_POINTER_REGNUM).
341
342 2021-12-15 Martin Liska <mliska@suse.cz>
343
344 PR target/103661
345 * config/i386/i386-builtins.c (fold_builtin_cpu): Compare to 0
346 as API expects that non-zero values are returned (do that
347 it mask == 31).
348 For "avx512vbmi2" argument, we return now 1 << 31, which is a
349 negative integer value.
350
351 2021-12-15 Haochen Jiang <haochen.jiang@intel.com>
352
353 PR target/101796
354 * config/i386/predicates.md (const_vector_operand):
355 Add new predicate.
356 * config/i386/sse.md(<insn><mode>3<mask_name>):
357 Add new define_split below.
358
359 2021-12-15 Michael Meissner <meissner@the-meissners.org>
360
361 * config/rs6000/rs6000.md (UNSPEC_XXSPLTIDP_CONST): New unspec.
362 (UNSPEC_XXSPLTIW_CONST): New unspec.
363 (movsf_hardfloat): Add support for generating XXSPLTIDP.
364 (mov<mode>_hardfloat32): Likewise.
365 (mov<mode>_hardfloat64): Likewise.
366 (xxspltidp_<mode>_internal): New insns.
367 (xxspltiw_<mode>_internal): New insns.
368 (splitters for SF/DFmode): Add new splitters for XXSPLTIDP.
369
370 2021-12-15 Michael Meissner <meissner@the-meissners.org>
371
372 * config/rs6000/predicates.md (easy_fp_constant): Add support for
373 generating XXSPLTIDP.
374 (vsx_prefixed_constant): Likewise.
375 (easy_vector_constant): Likewise.
376 * config/rs6000/rs6000-protos.h (constant_generates_xxspltidp):
377 New declaration.
378 * config/rs6000/rs6000.c (output_vec_const_move): Add support for
379 generating XXSPLTIDP.
380 (prefixed_xxsplti_p): Likewise.
381 (constant_generates_xxspltidp): New function.
382 * config/rs6000/rs6000.opt (-msplat-float-constant): New debug option.
383
384 2021-12-15 Michael Meissner <meissner@linux.ibm.com>
385
386 * config/rs6000/constraints.md (eP): Update comment.
387 * config/rs6000/predicates.md (easy_fp_constant): Add support for
388 generating XXSPLTIW.
389 (vsx_prefixed_constant): New predicate.
390 (easy_vector_constant): Add support for
391 generating XXSPLTIW.
392 * config/rs6000/rs6000-protos.h (prefixed_xxsplti_p): New
393 declaration.
394 (constant_generates_xxspltiw): Likewise.
395 * config/rs6000/rs6000.c (xxspltib_constant_p): Generate XXSPLTIW
396 if possible instead of XXSPLTIB and sign extending the constant.
397 (output_vec_const_move): Add support for XXSPLTIW.
398 (prefixed_xxsplti_p): New function.
399 (constant_generates_xxspltiw): New function.
400 * config/rs6000/rs6000.md (prefixed attribute): Add support to
401 mark XXSPLTI* instructions as being prefixed.
402 * config/rs6000/rs6000.opt (-msplat-word-constant): New debug
403 switch.
404 * config/rs6000/vsx.md (vsx_mov<mode>_64bit): Add support for
405 generating XXSPLTIW or XXSPLTIDP.
406 (vsx_mov<mode>_32bit): Likewise.
407 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
408 eP constraint.
409
410 2021-12-15 Michael Meissner <meissner@the-meissners.org>
411
412 * config/rs6000/constraints.md (eQ): New constraint.
413 * config/rs6000/predicates.md (easy_fp_constant): Add support for
414 generating the LXVKQ instruction.
415 (easy_vector_constant_ieee128): New predicate.
416 (easy_vector_constant): Add support for generating the LXVKQ
417 instruction.
418 * config/rs6000/rs6000-protos.h (constant_generates_lxvkq): New
419 declaration.
420 * config/rs6000/rs6000.c (output_vec_const_move): Add support for
421 generating LXVKQ.
422 (constant_generates_lxvkq): New function.
423 * config/rs6000/rs6000.opt (-mieee128-constant): New debug
424 option.
425 * config/rs6000/vsx.md (vsx_mov<mode>_64bit): Add support for
426 generating LXVKQ.
427 (vsx_mov<mode>_32bit): Likewise.
428 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
429 eQ constraint.
430
431 2021-12-15 Michael Meissner <meissner@the-meissners.org>
432
433 * config/rs6000/rs6000-protos.h (VECTOR_128BIT_BITS): New macro.
434 (VECTOR_128BIT_BYTES): Likewise.
435 (VECTOR_128BIT_HALF_WORDS): Likewise.
436 (VECTOR_128BIT_WORDS): Likewise.
437 (VECTOR_128BIT_DOUBLE_WORDS): Likewise.
438 (vec_const_128bit_type): New structure type.
439 (vec_const_128bit_to_bytes): New declaration.
440 * config/rs6000/rs6000.c (constant_int_to_128bit_vector): New
441 helper function.
442 (constant_fp_to_128bit_vector): New helper function.
443 (vec_const_128bit_to_bytes): New function.
444
445 2021-12-15 Alexandre Oliva <oliva@adacore.com>
446
447 PR target/100518
448 * builtins.c (try_store_by_multiple_pieces): Drop address
449 conversion to ptr_mode.
450
451 2021-12-15 Alexandre Oliva <oliva@adacore.com>
452
453 PR middle-end/100843
454 * builtins.c (try_store_by_multiple_pieces): Fail if min_len
455 is greater than max_len.
456
457 2021-12-14 liuhongt <hongtao.liu@intel.com>
458
459 PR target/103682
460 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check
461 is_gimple_assign before gimple_assign_rhs_code.
462
463 2021-12-14 Sören Tempel <soeren@soeren-tempel.net>
464
465 * ginclude/stddef.h (__DEFINED_ptrdiff_t): Add support for musl
466 libc typedef macro guard.
467 (__DEFINED_size_t): Ditto.
468 (__DEFINED_wchar_t): Ditto.
469
470 2021-12-14 JoJo R <rjiejie@linux.alibaba.com>
471
472 * regrename.c (find_rename_reg): Return satisfied regno
473 if instruction is noop move.
474
475 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
476
477 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Rename
478 rs6000_builtin_decls_x to rs6000_builtin_decls.
479 (altivec_resolve_overloaded_builtin): Likewise. Also rename
480 rs6000_builtin_info_x to rs6000_builtin_info.
481 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Rename
482 rs6000_builtin_info_x to rs6000_builtin_info.
483 (rs6000_builtin_is_supported): Likewise.
484 (rs6000_gimple_fold_mma_builtin): Likewise. Also rename
485 rs6000_builtin_decls_x to rs6000_builtin_decls.
486 (rs6000_gimple_fold_builtin): Rename rs6000_builtin_info_x to
487 rs6000_builtin_info.
488 (cpu_expand_builtin): Likewise.
489 (rs6000_expand_builtin): Likewise.
490 (rs6000_init_builtins): Likewise. Also rename rs6000_builtin_decls_x
491 to rs6000_builtin_decls.
492 (rs6000_builtin_decl): Rename rs6000_builtin_decls_x to
493 rs6000_builtin_decls.
494 * config/rs6000/rs6000-gen-builtins.c (write_decls): In generated code,
495 rename rs6000_builtin_decls_x to rs6000_builtin_decls, and rename
496 rs6000_builtin_info_x to rs6000_builtin_info.
497 (write_bif_static_init): In generated code, rename
498 rs6000_builtin_info_x to rs6000_builtin_info.
499 (write_init_bif_table): In generated code, rename
500 rs6000_builtin_decls_x to rs6000_builtin_decls, and rename
501 rs6000_builtin_info_x to rs6000_builtin_info.
502 (write_init_ovld_table): In generated code, rename
503 rs6000_builtin_decls_x to rs6000_builtin_decls.
504 (write_init_file): Likewise.
505 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
506 Likewise.
507 (rs6000_builtin_md_vectorized_function): Likewise.
508 (rs6000_builtin_reciprocal): Likewise.
509 (add_condition_to_bb): Likewise.
510 (rs6000_atomic_assign_expand_fenv): Likewise.
511
512 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
513
514 * config/rs6000/rs6000-c.c (altivec_resolve_new_overloaded_builtin):
515 Remove forward declaration.
516 (rs6000_new_builtin_type_compatible): Rename to
517 rs6000_builtin_type_compatible.
518 (rs6000_builtin_type_compatible): Remove.
519 (altivec_resolve_overloaded_builtin): Remove.
520 (altivec_build_new_resolved_builtin): Rename to
521 altivec_build_resolved_builtin.
522 (altivec_resolve_new_overloaded_builtin): Rename to
523 altivec_resolve_overloaded_builtin. Remove static keyword. Adjust
524 called function names.
525 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): Remove
526 forward declaration.
527 (rs6000_gimple_fold_new_builtin): Likewise.
528 (rs6000_invalid_new_builtin): Rename to rs6000_invalid_builtin.
529 (rs6000_gimple_fold_builtin): Remove.
530 (rs6000_new_builtin_valid_without_lhs): Rename to
531 rs6000_builtin_valid_without_lhs.
532 (rs6000_new_builtin_is_supported): Rename to
533 rs6000_builtin_is_supported.
534 (rs6000_gimple_fold_new_mma_builtin): Rename to
535 rs6000_gimple_fold_mma_builtin.
536 (rs6000_gimple_fold_new_builtin): Rename to
537 rs6000_gimple_fold_builtin. Remove static keyword. Adjust called
538 function names.
539 (rs6000_expand_builtin): Remove.
540 (new_cpu_expand_builtin): Rename to cpu_expand_builtin.
541 (new_mma_expand_builtin): Rename to mma_expand_builtin.
542 (new_htm_spr_num): Rename to htm_spr_num.
543 (new_htm_expand_builtin): Rename to htm_expand_builtin. Change name
544 of called function.
545 (rs6000_expand_new_builtin): Rename to rs6000_expand_builtin. Remove
546 static keyword. Adjust called function names.
547 (rs6000_new_builtin_decl): Rename to rs6000_builtin_decl. Remove
548 static keyword.
549 (rs6000_builtin_decl): Remove.
550 * config/rs6000/rs6000-gen-builtins.c (write_decls): In gnerated code,
551 rename rs6000_new_builtin_is_supported to rs6000_builtin_is_supported.
552 * config/rs6000/rs6000-internal.h (rs6000_invalid_new_builtin): Rename
553 to rs6000_invalid_builtin.
554 * config/rs6000/rs6000.c (rs6000_new_builtin_vectorized_function):
555 Rename to rs6000_builtin_vectorized_function.
556 (rs6000_new_builtin_md_vectorized_function): Rename to
557 rs6000_builtin_md_vectorized_function.
558 (rs6000_builtin_vectorized_function): Remove.
559 (rs6000_builtin_md_vectorized_function): Remove.
560
561 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
562
563 * config/rs6000/rs6000-builtin.def: Delete.
564 * config/rs6000/rs6000-call.c (builtin_compatibility): Delete.
565 (builtin_description): Delete.
566 (builtin_hash_struct): Delete.
567 (builtin_hasher): Delete.
568 (builtin_hash_table): Delete.
569 (builtin_hasher::hash): Delete.
570 (builtin_hasher::equal): Delete.
571 (rs6000_builtin_info_type): Delete.
572 (rs6000_builtin_info): Delete.
573 (bdesc_compat): Delete.
574 (bdesc_3arg): Delete.
575 (bdesc_4arg): Delete.
576 (bdesc_dst): Delete.
577 (bdesc_2arg): Delete.
578 (bdesc_altivec_preds): Delete.
579 (bdesc_abs): Delete.
580 (bdesc_1arg): Delete.
581 (bdesc_0arg): Delete.
582 (bdesc_htm): Delete.
583 (bdesc_mma): Delete.
584 (rs6000_overloaded_builtin_p): Delete.
585 (rs6000_overloaded_builtin_name): Delete.
586 (htm_spr_num): Delete.
587 (rs6000_builtin_is_supported_p): Delete.
588 (rs6000_gimple_fold_mma_builtin): Delete.
589 (gt-rs6000-call.h): Remove include directive.
590 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Delete.
591 (rs6000_builtin_is_supported_p): Delete.
592 (rs6000_overloaded_builtin_name): Delete.
593 * config/rs6000/rs6000.c (rs6000_builtin_decls): Delete.
594 (rs6000_debug_reg_global): Remove reference to RS6000_BUILTIN_COUNT.
595 * config/rs6000/rs6000.h (rs6000_builtins): Delete.
596 (altivec_builtin_types): Delete.
597 (rs6000_builtin_decls): Delete.
598 * config/rs6000/t-rs6000 (TM_H): Don't add rs6000-builtin.def.
599
600 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
601
602 * config/rs6000/rs6000-builtin-new.def: Rename to...
603 * config/rs6000/rs6000-builtins.def: ...this.
604 * config/rs6000/rs6000-gen-builtins.c: Adjust header commentary.
605 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Rename
606 rs6000-builtin-new.def to rs6000-builtins.def.
607 (rs6000-builtins.c): Likewise.
608
609 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
610
611 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Remove.
612 * config/rs6000/rs6000.h (altivec_overloaded_builtins): Remove.
613
614 2021-12-14 Peter Bergner <bergner@linux.ibm.com>
615
616 PR target/103548
617 * config/rs6000/mma.md (UNSPEC_MMA_ASSEMBLE): Rename unspec from this...
618 (UNSPEC_VSX_ASSEMBLE): ...to this.
619 (UNSPECV_MMA_ASSEMBLE): New unspecv.
620 (vsx_assemble_pair): Use UNSPEC_VSX_ASSEMBLE.
621 (*vsx_assemble_pair): Likewise.
622 (mma_assemble_acc): Use UNSPECV_MMA_ASSEMBLE.
623 (*mma_assemble_acc): Likewise.
624 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle
625 UNSPEC_VOLATILE. Use UNSPEC_VSX_ASSEMBLE and UNSPECV_MMA_ASSEMBLE.
626
627 2021-12-14 Uroš Bizjak <ubizjak@gmail.com>
628
629 PR target/103571
630 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate)
631 <case E_V8HFmode>: Implement for TARGET_SSE2.
632 <case E_V16HFmode>: Implement for TARGET_AVX.
633 <case E_V32HFmode>: Implement for TARGET_AVX512F.
634 (ix86_expand_vector_set_var): Handle V32HFmode
635 without TARGET_AVX512BW.
636 (ix86_expand_vector_extract)
637 <case E_V8HFmode>: Implement for TARGET_SSE2.
638 <case E_V16HFmode>: Implement for TARGET_AVX.
639 <case E_V32HFmode>: Implement for TARGET_AVX512BW.
640 (expand_vec_perm_broadcast_1) <case E_V8HFmode>: New.
641 * config/i386/sse.md (VI12HF_AVX512VL): Remove
642 TARGET_AVX512FP16 condition.
643 (V): Ditto.
644 (V_256_512): Ditto.
645 (avx_vbroadcastf128_<mode>): Use V_256H mode iterator.
646
647 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
648
649 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Remove
650 test for new_builtins_are_live and simplify.
651 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Remove
652 dead function.
653 (altivec_resolve_overloaded_builtin): Remove test for
654 new_builtins_are_live and simplify.
655 * config/rs6000/rs6000-call.c (altivec_init_builtins): Remove forward
656 declaration.
657 (builtin_function_type): Likewise.
658 (rs6000_common_init_builtins): Likewise.
659 (htm_init_builtins): Likewise.
660 (mma_init_builtins): Likewise.
661 (def_builtin): Remove dead function.
662 (rs6000_expand_zeroop_builtin): Likewise.
663 (rs6000_expand_mtfsf_builtin): Likewise.
664 (rs6000_expand_mtfsb_builtin): Likewise.
665 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
666 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
667 (rs6000_expand_unop_builtin): Likewise.
668 (altivec_expand_abs_builtin): Likewise.
669 (rs6000_expand_binop_builtin): Likewise.
670 (altivec_expand_lxvr_builtin): Likewise.
671 (altivec_expand_lv_builtin): Likewise.
672 (altivec_expand_stxvl_builtin): Likewise.
673 (altivec_expand_stv_builtin): Likewise.
674 (mma_expand_builtin): Likewise.
675 (htm_expand_builtin): Likewise.
676 (cpu_expand_builtin): Likewise.
677 (rs6000_expand_quaternop_builtin): Likewise.
678 (rs6000_expand_ternop_builtin): Likewise.
679 (altivec_expand_dst_builtin): Likewise.
680 (altivec_expand_vec_sel_builtin): Likewise.
681 (altivec_expand_builtin): Likewise.
682 (rs6000_invalid_builtin): Likewise.
683 (rs6000_builtin_valid_without_lhs): Likewise.
684 (rs6000_gimple_fold_builtin): Remove test for new_builtins_are_live and
685 simplify.
686 (rs6000_expand_builtin): Likewise.
687 (rs6000_init_builtins): Remove tests for new_builtins_are_live and
688 simplify.
689 (rs6000_builtin_decl): Likewise.
690 (altivec_init_builtins): Remove dead function.
691 (mma_init_builtins): Likewise.
692 (htm_init_builtins): Likewise.
693 (builtin_quaternary_function_type): Likewise.
694 (builtin_function_type): Likewise.
695 (rs6000_common_init_builtins): Likewise.
696 * config/rs6000/rs6000-gen-builtins.c (write_header_file): Don't
697 declare new_builtins_are_live.
698 (write_init_bif_table): In generated code, remove test for
699 new_builtins_are_live and simplify.
700 (write_init_ovld_table): Likewise.
701 (write_init_file): Don't initialize new_builtins_are_live.
702 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
703 test for new_builtins_are_live and simplify.
704 (rs6000_builtin_md_vectorized_function): Likewise.
705 (rs6000_builtin_reciprocal): Likewise.
706 (add_condition_to_bb): Likewise.
707 (rs6000_atomic_assign_expand_fenv): Likewise.
708
709 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
710
711 PR target/103625
712 * config/rs6000/rs6000-builtin-new.def (__builtin_altivec_vcmpequd):
713 Move to power8-vector stanza.
714 (__builtin_altivec_vcmpequd_p): Likewise.
715 (__builtin_altivec_vcmpgtsd): Likewise.
716 (__builtin_altivec_vcmpgtsd_p): Likewise.
717 (__builtin_altivec_vcmpgtud): Likewise.
718 (__builtin_altivec_vcmpgtud_p): Likewise.
719
720 2021-12-14 Bill Schmidt <wschmidt@linux.ibm.com>
721
722 PR target/103623
723 * config/rs6000/rs6000-builtin-new.def (__builtin_pack_longdouble): Add
724 ibmld attribute.
725 (__builtin_unpack_longdouble): Likewise.
726 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): Add special
727 handling for ibmld attribute.
728 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add isibmld.
729 (parse_bif_attrs): Handle ibmld.
730 (write_decls): Likewise.
731 (write_bif_static_init): Likewise.
732
733 2021-12-14 Jan Hubicka <hubicka@ucw.cz>
734
735 PR ipa/103585
736 * ipa-modref-tree.c (modref_access_node::range_info_useful_p): Handle
737 MODREF_GLOBAL_MEMORY_PARM.
738 (modref_access_node::dump): Likewise.
739 (modref_access_node::get_call_arg): Likewise.
740 * ipa-modref-tree.h (enum modref_special_parms): Add
741 MODREF_GLOBAL_MEMORY_PARM.
742 (modref_access_node::useful_for_kill): Handle
743 MODREF_GLOBAL_MEMORY_PARM.
744 (modref:tree::merge): Add promote_unknown_to_global.
745 * ipa-modref.c (verify_arg):New function.
746 (may_access_nonescaping_parm_p): New function.
747 (modref_access_analysis::record_global_memory_load): New member
748 function.
749 (modref_access_analysis::record_global_memory_store): Likewise.
750 (modref_access_analysis::process_fnspec): Distingush global and local
751 memory.
752 (modref_access_analysis::analyze_call): Likewise.
753 * tree-ssa-alias.c (ref_may_access_global_memory_p): New function.
754 (modref_may_conflict): Use it.
755
756 2021-12-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
757
758 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
759 Define AARCH64_LS64_BUILTIN_LD64B, AARCH64_LS64_BUILTIN_ST64B,
760 AARCH64_LS64_BUILTIN_ST64BV, AARCH64_LS64_BUILTIN_ST64BV0.
761 (aarch64_init_ls64_builtin_decl): Helper function.
762 (aarch64_init_ls64_builtins): Helper function.
763 (aarch64_init_ls64_builtins_types): Helper function.
764 (aarch64_general_init_builtins): Init LS64 intrisics for
765 TARGET_LS64.
766 (aarch64_expand_builtin_ls64): LS64 intrinsics expander.
767 (aarch64_general_expand_builtin): Handle aarch64_expand_builtin_ls64.
768 (ls64_builtins_data): New helper struct.
769 (v8di_UP): New define.
770 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
771 __ARM_FEATURE_LS64.
772 * config/aarch64/aarch64.c (aarch64_classify_address): Enforce the
773 V8DI range (7-bit signed scaled) for both ends of the range.
774 * config/aarch64/aarch64-simd.md (movv8di): New pattern.
775 (aarch64_movv8di): New pattern.
776 * config/aarch64/aarch64.h (AARCH64_ISA_LS64): New define.
777 (TARGET_LS64): New define.
778 * config/aarch64/aarch64.md: Add UNSPEC_LD64B, UNSPEC_ST64B,
779 UNSPEC_ST64BV and UNSPEC_ST64BV0.
780 (ld64b): New define_insn.
781 (st64b): New define_insn.
782 (st64bv): New define_insn.
783 (st64bv0): New define_insn.
784 * config/aarch64/arm_acle.h (data512_t): New type derived from
785 __arm_data512_t.
786 (__arm_data512_t): New internal type.
787 (__arm_ld64b): New intrinsic.
788 (__arm_st64b): New intrinsic.
789 (__arm_st64bv): New intrinsic.
790 (__arm_st64bv0): New intrinsic.
791 * config/arm/types.md: Add new type ls64.
792
793 2021-12-14 Olivier Hainque <hainque@adacore.com>
794
795 * config/i386/t-vxworks: Drop the fPIC multilibs.
796
797 2021-12-14 Fred Konrad <konrad@adacore.com>
798
799 * config/rs6000/t-vxworks: Drop the fPIC multilib.
800
801 2021-12-13 Vladimir N. Makarov <vmakarov@redhat.com>
802
803 PR target/99531
804 * ira-costs.c (record_operand_costs): Do not take pseudo class
805 calculated on the 1st iteration into account when processing move
806 involving the pseudo and a hard register.
807
808 2021-12-13 Roger Sayle <roger@nextmovesoftware.com>
809
810 * config/i386/i386.md (define_split any_or:SWI248 -> orb %?h):
811 Optimize the case where the integer constant operand is zero.
812
813 2021-12-13 Doug Rupp <rupp@adacore.com>
814 Olivier Hainque <hainque@adacore.com>
815
816 * config/vxworks.h (VXWORKS_LINK_OS_SPEC): New spec.
817 (VXWORKS_BASE_LINK_SPEC): New spec, using the former.
818 (VXWORKS_EXTRA_LINK_SPEC): New spec for old and new VxWorks.
819 (VXWORKS_LINK_SPEC): Combo of BASE and EXTRA specs.
820 * config/rs6000/vxworks.h (VXWORKS_LINK_OS_SPEC): Empty.
821 (LINK_OS_EXTRA_SPEC32): Use VXWORKS_LINK_SPEC.
822 (LINK_OS_EXTRA_SPEC64): Likewise.
823
824 2021-12-13 Fred Konrad <konrad@adacore.com>
825 Olivier Hainque <hainque@adacore.com>
826
827 * config/vxworks.h (VXWORKS_BASE_LIBS_RTP): Guard -lc_internal
828 on !shared+!non-static and document.
829 (VXWORKS_LIB_SPEC): Remove the bits intended to drag the
830 init/fini functions from libc_internal in the shared lib case.
831 (VX_CRTBEGIN_SPEC/VX_CRTEND_SPEC): Use vxcrtstuff objects also in
832 configurations with shared lib and INITFINI_ARRAY support.
833
834 2021-12-13 Fred Konrad <konrad@adacore.com>
835 Olivier Hainque <hainque@adacore.com>
836
837 * config/vx-common.h: Define REAL_LIBGCC_SPEC since the
838 '-non-static' option is not standard.
839 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Implement the LIBGCC_SPEC
840 since REAL_LIBGCC_SPEC is used now.
841 (STARTFILE_PREFIX_SPEC): Use the PIC VSB when building shared libraries
842 or non-static binaries.
843
844 2021-12-13 Jan Hubicka <hubicka@ucw.cz>
845
846 * common.opt: Add -fipa-strict-aliasing.
847 * doc/invoke.texi: Document -fipa-strict-aliasing.
848 * ipa-modref.c (modref_access_analysis::record_access): Honor
849 -fipa-strict-aliasing.
850 (modref_access_analysis::record_access_lto): Likewise.
851
852 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
853
854 * config/aarch64/aarch64-arches.def (armv8.8-a): Define.
855 * config/aarch64/aarch64.h (AARCH64_FL_V8_8): Define.
856 (AARCH64_FL_FOR_ARCH8_8): Define.
857 * doc/invoke.texi: Document -march=armv8.8-a.
858
859 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
860
861 * config/aarch64/aarch64.c (aarch64_expand_setmem_mops): Define.
862 (aarch64_expand_setmem): Adjust for TARGET_MOPS.
863 * config/aarch64/aarch64.h (CLEAR_RATIO): Adjust for TARGET_MOPS.
864 (SET_RATIO): Likewise.
865 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_SETMEM.
866 (aarch64_setmemdi): Define.
867 (setmemdi): Adjust for TARGET_MOPS.
868 * config/aarch64/aarch64.opt (aarch64-mops-memset-size-threshold):
869 New param.
870
871 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
872
873 * config/aarch64/aarch64.md (aarch64_movmemdi): Define.
874 (movmemdi): Define.
875 (unspec): Add UNSPEC_MOVMEM.
876 * config/aarch64/aarch64.opt (aarch64-mops-memmove-size-threshold):
877 New param.
878
879 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
880
881 * config/aarch64/aarch64-option-extensions.def (mops): Define.
882 * config/aarch64/aarch64.c (aarch64_expand_cpymem_mops): Define.
883 (aarch64_expand_cpymem): Define.
884 * config/aarch64/aarch64.h (AARCH64_FL_MOPS): Define.
885 (AARCH64_ISA_MOPS): Define.
886 (TARGET_MOPS): Define.
887 (MOVE_RATIO): Adjust for TARGET_MOPS.
888 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_CPYMEM.
889 (aarch64_cpymemdi): New pattern.
890 (cpymemdi): Adjust for TARGET_MOPS.
891 * config/aarch64/aarch64.opt (aarch64-mops-memcpy-size-threshol):
892 New param.
893 * doc/invoke.texi (AArch64 Options): Document +mops.
894
895 2021-12-13 Martin Liska <mliska@suse.cz>
896
897 PR ipa/103636
898 * ipa-inline.c (can_inline_edge_p): Move logic checking
899 no_profile_instrument_function logic to ...
900 (can_early_inline_edge_p): ... here.
901
902 2021-12-13 Olivier Hainque <hainque@adacore.com>
903
904 * config/vxworks/_yvals.h: #include yvals.h also if
905 defined(__RTP__).
906
907 2021-12-13 Olivier Hainque <hainque@adacore.com>
908
909 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): Define
910 _C99 for C++.
911
912 2021-12-13 Olivier Hainque <hainque@adacore.com>
913
914 * config/t-vxworks: Clear NATIVE_SYSTEM_HEADER_DIR.
915 * config/vxworks.h (SYSROOT_HEADERS_SUFFIX_SPEC): Define, for
916 VxWorks 7 and earlier.
917 (VXWORKS_ADDITIONAL_CPP_SPEC): Simplify accordingly.
918 (STARTFILE_PREFIX_SPEC): Adjust accordingly.
919 * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Adjust.
920
921 2021-12-13 Martin Liska <mliska@suse.cz>
922
923 * doc/extend.texi: Use @item for the first @itemx entry.
924
925 2021-12-13 Jakub Jelinek <jakub@redhat.com>
926
927 * machmode.h (gt_pch_nx): Use gt_pointer_operator as type of second
928 argument instead of equivalent void (*) (void *, void *, void *).
929 * poly-int.h (gt_pch_nx): Likewise.
930 * wide-int.h (gt_pch_nx): Likewise.
931 * config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Likewise.
932
933 2021-12-13 Jan Hubicka <hubicka@ucw.cz>
934
935 PR ipa/103513
936 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Do not ICE
937 on ternary expression.
938
939 2021-12-13 Kewen Lin <linkw@linux.ibm.com>
940
941 PR target/103515
942 * attribs.c (decl_attributes): Check if target options change and
943 create one node if so.
944
945 2021-12-12 Jonathan Wakely <jwakely@redhat.com>
946
947 * Makefile.in: Remove unique-ptr-tests.o.
948 * selftest-run-tests.c (selftest::run_tests): Remove
949 unique_ptr_tests_cc_tests.
950 * selftest.h (unique_ptr_tests_cc_tests): Remove.
951 * system.h: Check INCLUDE_MEMORY instead of INCLUDE_UNIQUE_PTR
952 and include <memory> instead of "unique-ptr.h".
953 * unique-ptr-tests.cc: Removed.
954
955 2021-12-12 Roger Sayle <roger@nextmovesoftware.com>
956
957 * config/nvptx/nvptx-opts.h (ptx_isa): Add PTX_ISA_SM53 ISA level
958 to enumeration.
959 * config/nvptx/nvptx.opt: Add sm_53 to -misa.
960 * config/nvptx/nvptx-modes.def: Add support for HFmode.
961 * config/nvptx/nvptx.h (TARGET_SM53):
962 New helper macro to conditionalize functionality on target ISA.
963 * config/nvptx/nvptx-c.c (nvptx_cpu_cpp_builtins): Add __PTX_SM__
964 support for the new ISA levels.
965 * config/nvptx/nvptx.c (nvtx_ptx_type_from_mode): Support new HFmode
966 with the ".f16" suffix/qualifier.
967 (nvptx_file_start): Add support for TARGET_SM53.
968 (nvptx_omp_device_kind_arch_isa): Add support for TARGET_SM53
969 and tweak TARGET_SM35.
970 (nvptx_scalar_mode_supported_p): Target hook with conditional
971 HFmode support on TARGET_SM53 and higher.
972 (nvptx_libgcc_floating_mode_supported_p): Likewise.
973 (TARGET_SCALAR_MODE_SUPPORTED_P): Use nvptx_scalar_mode_supported_p.
974 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Likewise, use new hook.
975 * config/nvptx/nvptx.md (*movhf_insn): New define_insn.
976 (movhf): New define_expand for HFmode moves.
977 (addhf3, subhf3, mulhf, extendhf<mode>2, trunc<mode>hf2): New
978 instructions conditional on TARGET_SM53 (i.e. -misa=sm_53).
979
980 2021-12-12 Jan Hubicka <hubicka@ucw.cz>
981
982 PR ipa/103665
983 * ipa-modref.c (modref_access_analysis::analyze): Terminate BB
984 analysis on NULL memory access.
985 * ipa-pure-const.c (analyze_function): Likewise.
986
987 2021-12-11 Jan Hubicka <hubicka@ucw.cz>
988
989 * ipa-profile.c (ipa_profile): Do not update hot bb threshold.
990
991 2021-12-11 Jan Hubicka <hubicka@ucw.cz>
992
993 * ipa-modref.c (get_modref_function_summary): Use ultimate_alias_target.
994 (ignore_edge): Likewise.
995 (compute_parm_map): Likewise.
996 (modref_propagate_in_scc): Likewise.
997 (modref_propagate_flags_in_scc): Likewise.
998
999 2021-12-10 Jason Merrill <jason@redhat.com>
1000
1001 * symtab.c (symtab_node::equal_address_to): Fix comment typo.
1002
1003 2021-12-10 Doug Rupp <rupp@adacore.com>
1004
1005 * config/vxworks.h (LINK_SPEC): Remove %(link_target).
1006 Change %{v:-v} to %{v:-V}.
1007
1008 2021-12-10 Olivier Hainque <hainque@adacore.com>
1009
1010 * config/t-vxworks: Remove assignment to STMP_FIXINC.
1011
1012 2021-12-10 Martin Liska <mliska@suse.cz>
1013
1014 * params.opt: Add missing dot.
1015
1016 2021-12-10 Roger Sayle <roger@nextmovesoftware.com>
1017
1018 PR ipa/103601
1019 * ipa-modref-tree.h (useful_for_kill_p): Zero width accesses aren't
1020 useful for kill tracking.
1021
1022 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1023
1024 * config/gcn/mkoffload.c (process_asm): Process the variable table
1025 completely differently.
1026 (process_obj): Encode the varaible data differently.
1027
1028 2021-12-10 Joel Hutton <joel.hutton@arm.com>
1029
1030 PR tree-optimization/103523
1031 * tree-vect-loop.c (vectorizable_induction): Check for
1032 PLUS_EXPR/MINUS_EXPR support.
1033
1034 2021-12-10 Cui,Lili <lili.cui@intel.com>
1035
1036 * config/i386/i386.c (ix86_vector_costs::add_stmt_cost): Remove Tremont.
1037
1038 2021-12-09 Jan Hubicka <hubicka@ucw.cz>
1039
1040 * doc/invoke.texi (max-inline-functions-called-once-loop-depth,
1041 max-inline-functions-called-once-insns): New parameters.
1042 * ipa-inline.c (check_callers): Handle
1043 param_inline_functions_called_once_loop_depth and
1044 param_inline_functions_called_once_insns.
1045 (edge_badness): Fix linebreaks.
1046 * params.opt (param=max-inline-functions-called-once-loop-depth,
1047 param=max-inline-functions-called-once-insn): New params.
1048
1049 2021-12-09 Martin Sebor <msebor@redhat.com>
1050
1051 PR tree-optimization/103215
1052 * pointer-query.cc (access_ref::merge_ref): Extend the offset and
1053 size of the merged object instead of using the larger.
1054
1055 2021-12-09 Martin Sebor <msebor@redhat.com>
1056
1057 PR middle-end/101751
1058 * doc/extend.texi (attribute access): Adjust.
1059 * gimple-ssa-warn-access.cc (pass_waccess::maybe_check_access_sizes):
1060 Treat access mode none on a void* argument as expecting as few as
1061 zero bytes.
1062
1063 2021-12-09 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR pch/71934
1066 * config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Change type of
1067 second argument from function with 2 pointer arguments to function
1068 with 3 pointer arguments.
1069
1070 2021-12-09 Olivier Hainque <hainque@adacore.com>
1071
1072 * config/aarch64/aarch64-vxworks.h (TARGET_OS_CPP_BUILTINS):
1073 Use VX_CPU_PREFIX in CPU definitions.
1074
1075 2021-12-09 Martin Sebor <msebor@redhat.com>
1076
1077 * pointer-query.cc (access_ref::dump): Define new function
1078 (pointer_query::dump): Call it.
1079 * pointer-query.h (access_ref::dump): Declare new function.
1080
1081 2021-12-09 Martin Sebor <msebor@redhat.com>
1082
1083 * pointer-query.cc (compute_objsize_r): Add an argument.
1084 (gimple_call_return_array): Pass a new argument to compute_objsize_r.
1085 (access_ref::merge_ref): Same.
1086 (access_ref::inform_access): Add an argument and use it.
1087 (access_data::access_data): Initialize new member.
1088 (handle_min_max_size): Pass a new argument to compute_objsize_r.
1089 (handle_decl): New function.
1090 (handle_array_ref): Pass a new argument to compute_objsize_r.
1091 Avoid incrementing deref.
1092 (set_component_ref_size): New function.
1093 (handle_component_ref): New function.
1094 (handle_mem_ref): Pass a new argument to compute_objsize_r.
1095 Only increment deref after successfully computing object size.
1096 (handle_ssa_name): New function.
1097 (compute_objsize_r): Move code into helpers and call them.
1098 (compute_objsize): Pass a new argument to compute_objsize_r.
1099 * pointer-query.h (access_ref::inform_access): Add an argument.
1100 (access_data::ostype): New member.
1101
1102 2021-12-09 Martin Sebor <msebor@redhat.com>
1103
1104 * pointer-query.cc (access_ref::merge_ref): Define new function.
1105 (access_ref::get_ref): Move code into merge_ref and call it.
1106 * pointer-query.h (access_ref::merge_ref): Declare new function.
1107
1108 2021-12-09 Martin Sebor <msebor@redhat.com>
1109
1110 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Pass
1111 GIMPLE statement to compute_objsize.
1112 * pointer-query.cc (compute_objsize): Add a statement argument.
1113 * pointer-query.h (compute_objsize): Define a new overload.
1114
1115 2021-12-09 Martin Sebor <msebor@redhat.com>
1116
1117 * gimple-ssa-warn-access.cc (check_access): Adjust to member name
1118 change.
1119 (pass_waccess::check_strncmp): Same.
1120 * pointer-query.cc (access_ref::access_ref): Remove arguments.
1121 Simpilfy.
1122 (access_data::access_data): Define new ctors.
1123 (access_data::set_bound): Define new member function.
1124 (compute_objsize_r): Remove unnecessary code.
1125 * pointer-query.h (struct access_ref): Remove ctor arguments.
1126 (struct access_data): Declare ctor overloads.
1127 (access_data::dst_bndrng): New member.
1128 (access_data::src_bndrng): New member.
1129
1130 2021-12-09 Martin Sebor <msebor@redhat.com>
1131
1132 PR middle-end/103143
1133 * pointer-query.cc (gimple_call_return_array): Call compute_objsize_r.
1134
1135 2021-12-09 Olivier Hainque <hainque@adacore.com>
1136 Rasmus Villemoes <rv@rasmusvillemoes.dk>
1137
1138 * Makefile.in (T_STDINT_GCC_H): New variable, path to
1139 stdint-gcc.h that a target configuration may override when
1140 use_gcc_stdint is "provide".
1141 (stmp-int-hdrs): Depend on it and copy that for
1142 USE_GCC_INT=provide.
1143 * config.gcc (vxworks): Revert to use_gcc_stdint=provide.
1144 * config/t-vxworks (T_STDINT_GCC_H): Define, as vxw-stdint-gcc.h.
1145 (vxw-stdint-gcc.h): New target, produced from the original
1146 stdint-gcc.h.
1147 (vxw-glimits.h): Use an automatic variable to designate the
1148 first and only prerequisite.
1149 * config/vxworks/stdint.h: Remove.
1150
1151 2021-12-09 Iain Sandoe <iain@sandoe.co.uk>
1152
1153 PR pch/71934
1154 * config/host-darwin.c (SAFE_ALLOC_SIZE): Remove.
1155 (darwin_gt_pch_get_address): Rework for relocatable PCH.
1156 (darwin_gt_pch_use_address): Likewise.
1157
1158 2021-12-09 Jakub Jelinek <jakub@redhat.com>
1159
1160 PR pch/71934
1161 * config/host-darwin.c (darwin_gt_pch_use_address): When reading
1162 manually the file into mapped area, update mapped_addr as
1163 an automatic variable rather than addr which is a reference parameter.
1164 * config/host-hpux.c (hpux_gt_pch_use_address): When reading
1165 manually the file into mapped area, update addr as
1166 an automatic variable rather than base which is a reference parameter.
1167
1168 2021-12-09 Jakub Jelinek <jakub@redhat.com>
1169
1170 PR pch/71934
1171 * coretypes.h (gt_pointer_operator): Use 3 pointer arguments instead
1172 of two.
1173 * gengtype.c (struct walk_type_data): Add in_nested_ptr argument.
1174 (walk_type): Temporarily set d->in_nested_ptr around nested_ptr
1175 handling.
1176 (write_types_local_user_process_field): Pass a new middle pointer
1177 to gt_pointer_operator op calls, if d->in_nested_ptr pass there
1178 address of d->prev_val[2], otherwise NULL.
1179 (write_types_local_process_field): Likewise.
1180 * ggc-common.c (relocate_ptrs): Add real_ptr_p argument. If equal
1181 to ptr_p, do nothing, otherwise if NULL remember ptr_p's
1182 or if non-NULL real_ptr_p's corresponding new address in
1183 reloc_addrs_vec.
1184 (reloc_addrs_vec): New variable.
1185 (compare_ptr, read_uleb128, write_uleb128): New functions.
1186 (gt_pch_save): When iterating over objects through relocate_ptrs,
1187 save current i into state.ptrs_i. Sort reloc_addrs_vec and emit
1188 it as uleb128 of differences between pointer addresses into the
1189 PCH file.
1190 (gt_pch_restore): Allow restoring of PCH to a different address
1191 than the preferred one, in that case adjust global pointers by bias
1192 and also adjust by bias addresses read from the relocation table
1193 as uleb128 differences. Otherwise fseek over it. Perform
1194 gt_pch_restore_stringpool only after adjusting callbacks and for
1195 callback adjustments also take into account the bias.
1196 (default_gt_pch_use_address): Change type of first argument from
1197 void * to void *&.
1198 (mmap_gt_pch_use_address): Likewise.
1199 * ggc-tests.c (gt_pch_nx): Pass NULL as new middle argument to op.
1200 * hash-map.h (hash_map::pch_nx_helper): Likewise.
1201 (gt_pch_nx): Likewise.
1202 * hash-set.h (gt_pch_nx): Likewise.
1203 * hash-table.h (gt_pch_nx): Likewise.
1204 * hash-traits.h (ggc_remove::pch_nx): Likewise.
1205 * hosthooks-def.h (default_gt_pch_use_address): Change type of first
1206 argument from void * to void *&.
1207 (mmap_gt_pch_use_address): Likewise.
1208 * hosthooks.h (struct host_hooks): Change type of first argument of
1209 gt_pch_use_address hook from void * to void *&.
1210 * machmode.h (gt_pch_nx): Expect a callback with 3 pointers instead of
1211 two in the middle argument.
1212 * poly-int.h (gt_pch_nx): Likewise.
1213 * stringpool.c (gt_pch_nx): Pass NULL as new middle argument to op.
1214 * tree-cfg.c (gt_pch_nx): Likewise, except for LOCATION_BLOCK pass
1215 the same &(block) twice.
1216 * value-range.h (gt_pch_nx): Pass NULL as new middle argument to op.
1217 * vec.h (gt_pch_nx): Likewise.
1218 * wide-int.h (gt_pch_nx): Likewise.
1219 * config/host-darwin.c (darwin_gt_pch_use_address): Change type of
1220 first argument from void * to void *&.
1221 * config/host-darwin.h (darwin_gt_pch_use_address): Likewise.
1222 * config/host-hpux.c (hpux_gt_pch_use_address): Likewise.
1223 * config/host-linux.c (linux_gt_pch_use_address): Likewise. If
1224 it couldn't succeed to mmap at the preferred location, set base
1225 to the actual one. Update addr in the manual reading loop instead of
1226 base.
1227 * config/host-netbsd.c (netbsd_gt_pch_use_address): Change type of
1228 first argument from void * to void *&.
1229 * config/host-openbsd.c (openbsd_gt_pch_use_address): Likewise.
1230 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1231 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Likewise.
1232 * config/rs6000/rs6000-gen-builtins.c (write_init_file): Pass NULL
1233 as new middle argument to op in the generated code.
1234 * doc/gty.texi: Adjust samples for the addition of middle pointer
1235 to gt_pointer_operator callback.
1236
1237 2021-12-09 Alexandre Oliva <oliva@adacore.com>
1238
1239 PR target/103097
1240 * reg-stack.c (convert_regs_1): Move any_malformed_asm
1241 resetting...
1242 (reg_to_stack): ... here.
1243
1244 2021-12-09 Alexandre Oliva <oliva@adacore.com>
1245
1246 PR target/103302
1247 * expr.c (emit_move_multi_word): Skip clobber during lra.
1248
1249 2021-12-09 Alexandre Oliva <oliva@adacore.com>
1250
1251 PR tree-optimization/103024
1252 PR middle-end/103530
1253 * gimple-harden-conditionals.cc (non_eh_succ_edge): New.
1254 (pass_harden_compares::execute): Accept 1-bit integral types,
1255 and cope with throwing compares.
1256
1257 2021-12-08 Iain Sandoe <iain@sandoe.co.uk>
1258
1259 * config/darwin.h (DARWIN_PIE_SPEC): Add -no_pie when
1260 linking mdynamic-no-pic code on macOS > 10.7.
1261
1262 2021-12-08 Dimitar Dimitrov <dimitar@dinux.eu>
1263
1264 * config/pru/pru.c (pru_section_type_flags): New function.
1265 (TARGET_SECTION_TYPE_FLAGS): Wire it.
1266
1267 2021-12-08 David Faust <david.faust@oracle.com>
1268
1269 * config/bpf/bpf.c (handle_attr_preserve): Avoid calling
1270 is_gimple_assign with a NULL pointer.
1271
1272 2021-12-08 Martin Liska <mliska@suse.cz>
1273
1274 * profile-count.c (profile_count::dump): Add function
1275 that can dump to a provided buffer.
1276 (profile_probability::dump): Likewise.
1277 * profile-count.h: Likewise.
1278 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop):
1279 Use dump_printf_loc infrastructure.
1280 (tree_unswitch_outer_loop): Likewise.
1281 (find_loop_guard): Likewise.
1282 (hoist_guard): Likewise.
1283
1284 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1285
1286 * gimplify.c (extract_base_bit_offset): Add 'tree *offsetp' parameter,
1287 accomodate case where 'offset' return of get_inner_reference is
1288 non-NULL.
1289 (is_or_contains_p): Further robustify conditions.
1290 (omp_target_reorder_clauses): In alloc/to/from sorting phase, also
1291 move following GOMP_MAP_ALWAYS_POINTER maps along. Add new sorting
1292 phase where we make sure pointers with an attach/detach map are ordered
1293 correctly.
1294 (gimplify_scan_omp_clauses): Add modifications to avoid creating
1295 GOMP_MAP_STRUCT and associated alloc map for attach/detach maps.
1296
1297 2021-12-08 Roger Sayle <roger@nextmovesoftware.com>
1298
1299 * config/nvptx/nvptx.md (*extend_trunc_<mode>2_qi,
1300 *extend_trunc_<mode>2_hi, *extend_trunc_di2_si): New insns.
1301 Use cvt to perform sign-extension of truncation in one step.
1302
1303 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1304
1305 PR middle-end/92120
1306 * gimplify.c ("tree-hash-traits.h"): Add include.
1307 (gimplify_scan_omp_clauses): Change struct_map_to_clause to type
1308 hash_map<tree_operand, tree> *. Adjust struct map handling to handle
1309 cases of *A and A->B expressions. Under !DECL_P case of
1310 GOMP_CLAUSE_MAP handling, add STRIP_NOPS for indir_p case, add to
1311 struct_deref_set for map(*ptr_to_struct) cases. Add MEM_REF case when
1312 handling component_ref_p case. Add unshare_expr and gimplification
1313 when created GOMP_MAP_STRUCT is not a DECL. Add code to add
1314 firstprivate pointer for *pointer-to-struct case.
1315 (gimplify_adjust_omp_clauses): Move GOMP_MAP_STRUCT removal code for
1316 exit data directives code to earlier position.
1317 * omp-low.c (lower_omp_target):
1318 Handle GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1319 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION map kinds.
1320 * tree-pretty-print.c (dump_omp_clause): Likewise.
1321
1322 2021-12-08 Andrew Stubbs <ams@codesourcery.com>
1323 Hafiz Abid Qadeer <abidh@codesourcery.com>
1324
1325 * dwarf2cfi.c (dw_stack_pointer_regnum): Change type to struct cfa_reg.
1326 (dw_frame_pointer_regnum): Likewise.
1327 (new_cfi_row): Use set_by_dwreg.
1328 (get_cfa_from_loc_descr): Use set_by_dwreg. Support register spans.
1329 handle DW_OP_bregx with DW_OP_breg{0-31}. Support DW_OP_lit*,
1330 DW_OP_const*, DW_OP_minus, DW_OP_shl and DW_OP_plus.
1331 (lookup_cfa_1): Use set_by_dwreg.
1332 (def_cfa_0): Update for cfa_reg and support register spans.
1333 (reg_save): Change sreg parameter to struct cfa_reg. Support register
1334 spans.
1335 (dwf_cfa_reg): New function.
1336 (dwarf2out_flush_queued_reg_saves): Use dwf_cfa_reg instead of
1337 dwf_regno.
1338 (dwarf2out_frame_debug_def_cfa): Likewise.
1339 (dwarf2out_frame_debug_adjust_cfa): Likewise.
1340 (dwarf2out_frame_debug_cfa_offset): Likewise. Update reg_save usage.
1341 (dwarf2out_frame_debug_cfa_register): Likewise.
1342 (dwarf2out_frame_debug_expr): Likewise.
1343 (create_pseudo_cfg): Use set_by_dwreg.
1344 (initial_return_save): Use set_by_dwreg and dwf_cfa_reg,
1345 (create_cie_data): Use dwf_cfa_reg.
1346 (execute_dwarf2_frame): Use dwf_cfa_reg.
1347 (dump_cfi_row): Use set_by_dwreg.
1348 * dwarf2out.c (build_span_loc, build_breg_loc): New function.
1349 (build_cfa_loc): Support register spans.
1350 (build_cfa_aligned_loc): Update cfa_reg usage.
1351 (convert_cfa_to_fb_loc_list): Use set_by_dwreg.
1352 * dwarf2out.h (struct cfa_reg): New type.
1353 (struct dw_cfa_location): Use struct cfa_reg.
1354 (build_span_loc): New prototype.
1355
1356 2021-12-08 Haochen Jiang <haochen.jiang@intel.com>
1357
1358 PR target/100738
1359 * config/i386/sse.md
1360 (*<sse4_1>_blendv<ssefltmodesuffix><avxsizesuffix>_not_ltint):
1361 Add new define_insn_and_split.
1362
1363 2021-12-08 Alexandre Oliva <oliva@adacore.com>
1364
1365 PR middle-end/103149
1366 * gimple-harden-conditionals.cc (detach_value): Use memory if
1367 general regs won't do.
1368
1369 2021-12-07 Martin Liska <mliska@suse.cz>
1370
1371 PR middle-end/103438
1372 * config/s390/s390.c (s390_valid_target_attribute_inner_p):
1373 Use new enum CLVC_INTEGER.
1374 * opt-functions.awk: Use new CLVC_INTEGER.
1375 * opts-common.c (set_option): Likewise.
1376 (option_enabled): Return -1,0,1 for CLVC_INTEGER.
1377 (get_option_state): Use new CLVC_INTEGER.
1378 (control_warning_option): Likewise.
1379 * opts.h (enum cl_var_type): Likewise.
1380
1381 2021-12-07 H.J. Lu <hjl.tools@gmail.com>
1382
1383 PR target/103594
1384 * config/i386/i386.c (ix86_call_use_plt_p): Check FUNCTION_DECL
1385 before calling cgraph_node::get.
1386
1387 2021-12-07 Richard Biener <rguenther@suse.de>
1388
1389 PR tree-optimization/103596
1390 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
1391 Note we are not propagating into a PHI argument to may_propagate_copy.
1392 * tree-ssa-propagate.h (may_propagate_copy): Add
1393 argument specifying whether we propagate into a PHI arg.
1394 * tree-ssa-propagate.c (may_propagate_copy): Likewise.
1395 When not doing so we can replace an abnormal with
1396 something else.
1397 (may_propagate_into_stmt): Update may_propagate_copy calls.
1398 (replace_exp_1): Move propagation checking code to
1399 propagate_value and rename to ...
1400 (replace_exp): ... this and elide previous wrapper.
1401 (propagate_value): Perform checking with adjusted
1402 may_propagate_copy call and dispatch to replace_exp.
1403
1404 2021-12-07 Matthias Kretz <m.kretz@gsi.de>
1405
1406 * hash-map.h (hash_map::traverse): Let both overloads behave the
1407 same.
1408 * predict.c (assert_is_empty): Return true, thus not changing
1409 behavior.
1410
1411 2021-12-07 YunQiang Su <yunqiang.su@cipunited.com>
1412
1413 * config/mips/mips.h (ISA_HAS_UNALIGNED_ACCESS, STRICT_ALIGNMENT):
1414 R6 can unaligned access.
1415 * config/mips/mips.md (movmisalign<mode>): Likewise.
1416 * config/mips/mips.opt: add -m(no-)unaligned-access
1417 * doc/invoke.texi: Likewise.
1418
1419 2021-12-07 Eugene Rozenfeld <erozen@microsoft.com>
1420
1421 * auto-profile.c (afdo_propagate_edge): Improve count propagation algorithm.
1422
1423 2021-12-06 Paul A. Clarke <pc@us.ibm.com>
1424
1425 PR target/103545
1426 * config/rs6000/xmmintrin.h (_mm_movemask_ps): Replace "vector" with
1427 "__vector".
1428
1429 2021-12-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1430
1431 * config/bpf/bpf.c (bpf_handle_preserve_access_index_attribute):
1432 Mark arguments `args' and flags' as unused.
1433 (bpf_core_newdecl): Remove unused local `newdecl'.
1434 (bpf_core_newdecl): Remove unused argument `loc'.
1435 (ctfc_debuginfo_early_finish_p): Remove unused function.
1436 (TARGET_CTFC_DEBUGINFO_EARLY_FINISH_P): Remove definition.
1437 (bpf_core_walk): Do not pass a location to bpf_core_newdecl.
1438
1439 2021-12-06 Richard Sandiford <richard.sandiford@arm.com>
1440
1441 * gimple-range-edge.cc (gimple_outgoing_range::edge_range_p): Add
1442 a shortcut for blocks with single successors.
1443 * gimple-range-gori.cc (gori_map::calculate_gori): Likewise.
1444
1445 2021-12-06 Richard Sandiford <richard.sandiford@arm.com>
1446
1447 * value-range.cc (irange::irange_union): Use quick_push rather
1448 than safe_push. Use widest_int rather than wide_int. Avoid
1449 assigning wi::to_* results to wide*_int temporaries.
1450
1451 2021-12-06 Andrew MacLeod <amacleod@redhat.com>
1452
1453 * gimple-range-cache.cc (ranger_cache::fill_block_cache): Check for
1454 a range from dominators before filling the cache.
1455 (ranger_cache::range_from_dom): New.
1456 * gimple-range-cache.h (ranger_cache::range_from_dom): Add prototype.
1457
1458 2021-12-06 Andrew MacLeod <amacleod@redhat.com>
1459
1460 * gimple-range-gori.h (class gori_compute):: Add prototypes.
1461 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Add alternate
1462 API for basic block. Call for edge alterantive.
1463 (gori_compute::may_recompute_p): Ditto.
1464
1465 2021-12-06 Richard Biener <rguenther@suse.de>
1466
1467 PR tree-optimization/103581
1468 * tree-vect-stmts.c (vect_build_gather_load_calls): Properly
1469 guard all the AVX512 mask cases.
1470
1471 2021-12-06 Richard Biener <rguenther@suse.de>
1472
1473 PR tree-optimization/103544
1474 * tree-vect-slp.c (vect_analyze_slp): Only add a SLP reduction
1475 opportunity if the stmt in question is the reduction root.
1476 (dot_slp_tree): Add missing check for NULL child.
1477
1478 2021-12-06 Jakub Jelinek <jakub@redhat.com>
1479
1480 PR pch/71934
1481 * config/avr/avr.c (avr_output_data_section_asm_op,
1482 avr_output_bss_section_asm_op): Change argument type from const void *
1483 to const char *.
1484
1485 2021-12-06 Tamar Christina <tamar.christina@arm.com>
1486
1487 PR rtl-optimization/103404
1488 * cse.c (find_sets_in_insn): Don't select elements out of a V1 mode
1489 subreg.
1490
1491 2021-12-06 Hongtao Liu <Hongtao.liu@intel.com>
1492 Uroš Bizjak <ubizjak@gmail.com>
1493
1494 PR target/95740
1495 * config/i386/i386.c (ix86_preferred_reload_class): Allow
1496 integer regs when moves between register units are cheap.
1497 * config/i386/i386.h (INT_SSE_CLASS_P): New.
1498
1499 2021-12-05 David Edelsohn <dje.gcc@gmail.com>
1500
1501 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
1502 AIX math builtin initialization before new_builtins_are_live.
1503
1504 2021-12-04 Jakub Jelinek <jakub@redhat.com>
1505
1506 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY): Fix
1507 comment typo, Preffer -> prefer.
1508 * ipa-modref-tree.c (modref_access_node::closer_pair_p): Likewise.
1509
1510 2021-12-04 Alexandre Oliva <oliva@adacore.com>
1511
1512 PR rtl-optimization/103028
1513 * ifcvt.c (find_cond_trap): Validate new insns more strictly
1514 after reload.
1515
1516 2021-12-03 Martin Liska <mliska@suse.cz>
1517 Peter Bergner <bergner@linux.ibm.com>
1518
1519 PR target/101324
1520 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move the
1521 disabling of shrink-wrapping when using -mrop-protect from here...
1522 (rs6000_override_options_after_change): ...to here.
1523
1524 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
1525
1526 PR target/103269
1527 * config/i386/i386-expand.c (ix86_expand_builtin): Pass PVW_NONE
1528 and PVW_NONE to ix86_target_string.
1529 * config/i386/i386-options.c (ix86_target_string): Add arguments
1530 for move_max and store_max.
1531 (ix86_target_string::add_vector_width): New lambda.
1532 (ix86_debug_options): Pass ix86_move_max and ix86_store_max to
1533 ix86_target_string.
1534 (ix86_function_specific_print): Pass ptr->x_ix86_move_max and
1535 ptr->x_ix86_store_max to ix86_target_string.
1536 (ix86_valid_target_attribute_tree): Handle x_ix86_move_max and
1537 x_ix86_store_max.
1538 (ix86_option_override_internal): Set the default x_ix86_move_max
1539 and x_ix86_store_max.
1540 * config/i386/i386-options.h (ix86_target_string): Add
1541 prefer_vector_width and prefer_vector_width.
1542 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): Removed.
1543 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
1544 (MOVE_MAX): Use 64 if ix86_move_max or ix86_store_max ==
1545 PVW_AVX512. Use 32 if ix86_move_max or ix86_store_max >=
1546 PVW_AVX256.
1547 (STORE_MAX_PIECES): Use 64 if ix86_store_max == PVW_AVX512.
1548 Use 32 if ix86_store_max >= PVW_AVX256.
1549 * config/i386/i386.opt: Add -mmove-max=bits and -mstore-max=bits.
1550 * config/i386/x86-tune.def (X86_TUNE_AVX512_MOVE_BY_PIECES): New.
1551 (X86_TUNE_AVX512_STORE_BY_PIECES): Likewise.
1552 * doc/invoke.texi: Document -mmove-max=bits and -mstore-max=bits.
1553
1554 2021-12-03 Bill Schmidt <wschmidt@linux.ibm.com>
1555
1556 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Fix builtin
1557 identifiers.
1558
1559 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
1560
1561 * common/config/riscv/riscv-common.c (riscv_implied_info):
1562 Add K-ext related entry.
1563 (riscv_supported_std_ext): Add 'k'.
1564 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add 'k'.
1565 (IMPLIED_EXT): Add K-ext related entry.
1566
1567 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
1568
1569 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
1570 Add zbk* and zk*.
1571 * config/riscv/riscv-opts.h (MASK_ZBKB): New.
1572 (MASK_ZBKC): Ditto.
1573 (MASK_ZBKX): Ditto.
1574 (MASK_ZKNE): Ditto.
1575 (MASK_ZKND): Ditto.
1576 (MASK_ZKNH): Ditto.
1577 (MASK_ZKR): Ditto.
1578 (MASK_ZKSED): Ditto.
1579 (MASK_ZKSH): Ditto.
1580 (MASK_ZKT): Ditto.
1581 (TARGET_ZBKB): Ditto.
1582 (TARGET_ZBKC): Ditto.
1583 (TARGET_ZBKX): Ditto.
1584 (TARGET_ZKNE): Ditto.
1585 (TARGET_ZKND): Ditto.
1586 (TARGET_ZKNH): Ditto.
1587 (TARGET_ZKR): Ditto.
1588 (TARGET_ZKSED): Ditto.
1589 (TARGET_ZKSH): Ditto.
1590 (TARGET_ZKT): Ditto.
1591 * config/riscv/riscv.opt (riscv_zk_subext): New.
1592
1593 2021-12-03 Tamar Christina <tamar.christina@arm.com>
1594
1595 * tree-vect-stmts.c (prepare_load_store_mask): Rename to...
1596 (prepare_vec_mask): ...This and record operations that have already been
1597 masked.
1598 (vectorizable_call): Use it.
1599 (vectorizable_operation): Likewise.
1600 (vectorizable_store): Likewise.
1601 (vectorizable_load): Likewise.
1602 * tree-vectorizer.h (class _loop_vec_info): Add vec_cond_masked_set.
1603 (vec_cond_masked_set_type, tree_cond_mask_hash): New.
1604
1605 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
1606
1607 PR target/51469
1608 PR target/83782
1609 * target.def (ifunc_ref_local_ok): Add a target hook.
1610 * varasm.c (default_binds_local_p_3): Force indirect function
1611 resolver non-local only if targetm.ifunc_ref_local_ok returns
1612 false.
1613 * config/i386/i386-expand.c (ix86_expand_call): Call
1614 ix86_call_use_plt_p to check if PLT should be used.
1615 * config/i386/i386-protos.h (ix86_call_use_plt_p): New.
1616 * config/i386/i386.c (output_pic_addr_const): Call
1617 ix86_call_use_plt_p to check if "@PLT" is needed.
1618 (ix86_call_use_plt_p): New.
1619 (TARGET_IFUNC_REF_LOCAL_OK): New.
1620 * doc/tm.texi.in: Add TARGET_IFUNC_REF_LOCAL_OK.
1621 * doc/tm.texi: Regenerated.
1622
1623 2021-12-03 Jakub Jelinek <jakub@redhat.com>
1624
1625 * attribs.h (simple_cst_list_equal): Declare.
1626 * attribs.c (simple_cst_list_equal): No longer static.
1627 * config/i386/i386-options.c (target_attribute_cache): New variable.
1628 (ix86_valid_target_attribute_p): Cache DECL_FUNCTION_SPECIFIC_TARGET
1629 and DECL_FUNCTION_SPECIFIC_OPTIMIZATION based on args.
1630
1631 2021-12-03 Jakub Jelinek <jakub@redhat.com>
1632
1633 PR pch/71934
1634 * ggc.h (gt_pch_note_callback): Declare.
1635 * gengtype.h (enum typekind): Add TYPE_CALLBACK.
1636 (callback_type): Declare.
1637 * gengtype.c (dbgprint_count_type_at): Handle TYPE_CALLBACK.
1638 (callback_type): New variable.
1639 (process_gc_options): Add CALLBACK argument, handle callback
1640 option.
1641 (set_gc_used_type): Adjust process_gc_options caller, if callback,
1642 set type to &callback_type.
1643 (output_mangled_typename): Handle TYPE_CALLBACK.
1644 (walk_type): Likewise. Handle callback option.
1645 (write_types_process_field): Handle TYPE_CALLBACK.
1646 (write_types_local_user_process_field): Likewise.
1647 (write_types_local_process_field): Likewise.
1648 (write_root): Likewise.
1649 (dump_typekind): Likewise.
1650 (dump_type): Likewise.
1651 * gengtype-state.c (type_lineloc): Handle TYPE_CALLBACK.
1652 (state_writer::write_state_callback_type): New method.
1653 (state_writer::write_state_type): Handle TYPE_CALLBACK.
1654 (read_state_callback_type): New function.
1655 (read_state_type): Handle TYPE_CALLBACK.
1656 * ggc-common.c (callback_vec): New variable.
1657 (gt_pch_note_callback): New function.
1658 (gt_pch_save): Stream out gt_pch_save function address and relocation
1659 table.
1660 (gt_pch_restore): Stream in saved gt_pch_save function address and
1661 relocation table and apply relocations if needed.
1662 * doc/gty.texi (callback): Document new GTY option.
1663 * varasm.c (get_unnamed_section): Change callback argument's type and
1664 last argument's type from const void * to const char *.
1665 (output_section_asm_op): Change argument's type from const void *
1666 to const char *, remove unnecessary cast.
1667 * tree-core.h (struct tree_translation_unit_decl): Drop GTY((skip))
1668 from language member.
1669 * output.h (unnamed_section_callback): Change argument type from
1670 const void * to const char *.
1671 (struct unnamed_section): Use GTY((callback)) instead of GTY((skip))
1672 for callback member. Change data member type from const void *
1673 to const char *.
1674 (struct noswitch_section): Use GTY((callback)) instead of GTY((skip))
1675 for callback member.
1676 (get_unnamed_section): Change callback argument's type and
1677 last argument's type from const void * to const char *.
1678 (output_section_asm_op): Change argument's type from const void *
1679 to const char *.
1680 * config/avr/avr.c (avr_output_progmem_section_asm_op): Likewise.
1681 Remove unneeded cast.
1682 * config/darwin.c (output_objc_section_asm_op): Change argument's type
1683 from const void * to const char *.
1684 * config/pa/pa.c (som_output_text_section_asm_op): Likewise.
1685 (som_output_comdat_data_section_asm_op): Likewise.
1686 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
1687 Likewise.
1688 (rs6000_xcoff_output_readonly_section_asm_op): Likewise. Instead
1689 of dereferencing directive hardcode variable names and decide based on
1690 whether directive is NULL or not.
1691 (rs6000_xcoff_output_readwrite_section_asm_op): Change argument's type
1692 from const void * to const char *.
1693 (rs6000_xcoff_output_tls_section_asm_op): Likewise. Instead
1694 of dereferencing directive hardcode variable names and decide based on
1695 whether directive is NULL or not.
1696 (rs6000_xcoff_output_toc_section_asm_op): Change argument's type
1697 from const void * to const char *.
1698 (rs6000_xcoff_asm_init_sections): Adjust get_unnamed_section callers.
1699
1700 2021-12-03 Richard Purdie <richard.purdie@linuxfoundation.org>
1701
1702 * Makefile.in: Fix "argument list too long" from install-plugins.
1703
1704 2021-12-03 Matt Jacobson <mhjacobson@me.com>
1705
1706 * config.gcc: For the AVR target, populate TM_MULTILIB_CONFIG.
1707 * config/avr/genmultilib.awk: Add ability to filter generated multilib
1708 list.
1709 * config/avr/t-avr: Pass TM_MULTILIB_CONFIG to genmultilib.awk.
1710 * configure.ac: Update help string for --with-multilib-list.
1711 * configure: Regenerate.
1712
1713 2021-12-02 Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
1714
1715 * configure: Regenerate.
1716 * configure.ac: Define TARGET_LIBC_GNUSTACK on musl.
1717
1718 2021-12-02 Iain Sandoe <iain@sandoe.co.uk>
1719
1720 PR target/55610
1721 * config/host-darwin.c (TRY_EMPTY_VM_SPACE,
1722 SAFE_ALLOC_SIZE): New.
1723 (darwin_gt_pch_get_address): Rewrite to use nominated
1724 memory segments rather than part of the compiler __DATA
1725 segment.
1726 (darwin_gt_pch_use_address): Likewise.
1727
1728 2021-12-02 Gerald Pfeifer <gerald@pfeifer.com>
1729
1730 * doc/install.texi (*-*-freebsd*): Remove references to
1731 FreeBSD 1 and FreeBSD 2.
1732
1733 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
1734
1735 PR rtl-optimization/103437
1736 * ira-color.c (setup_allocno_priorities): Switch off backup code
1737 for overflow if compiler has __builtin_smul_overflow. Use <
1738 for comparison with -INT_MAX.
1739
1740 2021-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1741
1742 * config/rs6000/altivec.h: Delete a number of #defines that are now
1743 superfluous. Alphabetize. Include rs6000-vecdefines.h. Include some
1744 synonyms.
1745 * config/rs6000/rs6000-builtin-new.def (CMPB): Flag as no32bit.
1746 (BPERMD): Flag as 32bit (needing special handling for 32-bit).
1747 (UNPACK_TD): Return unsigned long long instead of unsigned long.
1748 (GET_TEXASR): Return unsigned long instead of unsigned long long.
1749 (GET_TEXASRU): Likewise.
1750 (GET_TFHAR): Likewise.
1751 (GET_TFIAR): Likewise.
1752 (SET_TEXASR): Pass unsigned long instead of unsigned long long.
1753 (SET_TEXASRU): Likewise.
1754 (SET_TFHAR): Likewise.
1755 (SET_TFIAR): Likewise.
1756 (TABORTDC): Likewise.
1757 (TABORTDCI): Likewise.
1758 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): Fix error
1759 handling for no32bit. Add 32bit handling for RS6000_BIF_BPERMD.
1760 * config/rs6000/rs6000-gen-builtins.c (write_init_file): Initialize
1761 new_builtins_are_live to 1.
1762
1763 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
1764
1765 PR rtl-optimization/103437
1766 * ira-color.c (setup_allocno_priorities): Use long long
1767 multiplication as backup for overflow processing.
1768
1769 2021-12-02 Tamar Christina <tamar.christina@arm.com>
1770
1771 * config/aarch64/aarch64-protos.h (aarch64_gen_shareable_zero): New.
1772 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>,
1773 aarch64_rshrn2<mode>): Generate rounding half-ing add when appropriate.
1774 * config/aarch64/aarch64.c (aarch64_gen_shareable_zero): New.
1775
1776 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
1777
1778 PR rtl-optimization/103437
1779 * ira-color.c (setup_allocno_priorities): Process multiplication
1780 overflow.
1781
1782 2021-12-02 Martin Liska <mliska@suse.cz>
1783
1784 PR gcov-profile/96092
1785 * common.opt: New option.
1786 * coverage.c (coverage_begin_function): Emit filename with
1787 remap_profile_filename.
1788 * doc/invoke.texi: Document the new option.
1789 * file-prefix-map.c (add_profile_prefix_map): New.
1790 (remap_profile_filename): Likewise.
1791 * file-prefix-map.h (add_profile_prefix_map): Likewise.
1792 (remap_profile_filename): Likewise.
1793 * lto-opts.c (lto_write_options): Handle
1794 OPT_fprofile_prefix_map_.
1795 * opts-global.c (handle_common_deferred_options): Likewise.
1796 * opts.c (common_handle_option): Likewise.
1797 (gen_command_line_string): Likewise.
1798 * profile.c (output_location): Emit filename with
1799 remap_profile_filename.
1800
1801 2021-12-02 Richard Biener <rguenther@suse.de>
1802
1803 PR middle-end/103271
1804 * internal-fn.c (expand_DEFERRED_INIT): When the base
1805 of the LHS is a decl with matching constant size use
1806 that as the initialization target instead of an
1807 eventual VLA typed one.
1808
1809 2021-12-02 Richard Biener <rguenther@suse.de>
1810
1811 PR tree-optimization/103527
1812 * tree-vect-stmts.c (vect_build_gather_load_calls): Always
1813 use a truth type for building the vector mask.
1814
1815 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
1816
1817 * config/vxworks.h (LTO_PLUGIN_SPEC): Adapt to corrected
1818 spelling of -linker-output-auto-nolto-rel.
1819
1820 2021-12-01 Uroš Bizjak <ubizjak@gmail.com>
1821
1822 PR target/102811
1823 * config/i386/sse.md (VI2F): Remove mode iterator.
1824 (VI2F_256_512): New mode iterator.
1825 (vec_set<V8_128:mode>_0): New insn pattern.
1826 (vec_set<VI2F_256_512:mode>_0>): Rename from vec_set<VI2F:mode>mode.
1827 Use VI2F_256_512 mode iterator instead of VI2F.
1828 (*axv512fp16_movsh): Remove.
1829 (<sse2p4_1>_pinsr<ssemodesuffix>): Add (x,x,x) AVX2 alternative.
1830 Do not disable V8HF mode insn on AVX2 targets.
1831 (pinsrw -> pbroadcast + pblendw peephole2): New peephole.
1832 (pinsrw -> pbroadcast + pblendw splitter): New post-reload splitter.
1833 * config/i386/i386.md (extendhfsf): Call gen_vec_setv8hf_0.
1834 * config/i386/i386-expand.c (ix86_expand_vector_set)
1835 <case E_V8HFmode>: Use vec_merge path for TARGET_AVX2.
1836
1837 2021-12-01 Roger Sayle <roger@nextmovesoftware.com>
1838 Richard Biener <rguenther@suse.de>
1839
1840 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
1841 Check if simplify_using_initial_conditions allows us to
1842 simplify the expression for may_be_zero.
1843 * match.pd (X != C ? -X : -C -> -X): New transform.
1844 (X != C ? ~X : ~C -> ~X): Likewise.
1845 ((X+1) > Y ? -X : 1 -> X >= Y ? -X : 1): Likewise.
1846
1847 2021-12-01 Peter Bergner <bergner@linux.ibm.com>
1848
1849 PR middle-end/103127
1850 * gimplify.c (is_var_need_auto_init): Handle opaque types.
1851
1852 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
1853
1854 * common.opt (static-libphobos): Add option.
1855 * config/darwin.h (LINK_SPEC): Substitute -lgphobos with libgphobos.a
1856 when linking statically.
1857 * gcc.c (driver_handle_option): Set -static-libphobos as always valid.
1858
1859 2021-12-01 Jason Merrill <jason@redhat.com>
1860
1861 PR c++/103310
1862 * fold-const.c (maybe_nonzero_address): Use get_create or get
1863 depending on folding_initializer.
1864 (fold_binary_initializer_loc): New.
1865 * fold-const.h (fold_binary_initializer_loc): Declare.
1866 * varasm.c (mark_weak): Don't use the decl location.
1867 * doc/invoke.texi: Document -fconstexpr-fp-except.
1868
1869 2021-12-01 Bill Schmidt <wschmidt@linux.ibm.com>
1870
1871 PR target/102347
1872 * config/rs6000/rs6000-c.c (rs6000-builtins.h): Stop including.
1873 (rs6000-internal.h): Include.
1874 (altivec_resolve_new_overloaded_builtin): Move call to
1875 rs6000_invalid_new_builtin here from rs6000_new_builtin_decl.
1876 * config/rs6000/rs6000-call.c (rs6000-builtins.h): Stop including.
1877 (rs6000_invalid_new_builtin): Remove static qualifier.
1878 (rs6000_new_builtin_decl): Remove test for supported builtin.
1879 * config/rs6000/rs6000-internal.h (rs6000-builtins.h): Include.
1880 (rs6000_invalid_new_builtin): Declare.
1881 * config/rs6000/rs6000.c (rs6000-builtins.h): Don't include.
1882
1883 2021-12-01 Aldy Hernandez <aldyh@redhat.com>
1884
1885 PR tree-optimization/103409
1886 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
1887 Do all the work with just one ssa_global_cache.
1888 * gimple-range-path.h: Remove m_tmp_phi_cache.
1889
1890 2021-12-01 Richard Sandiford <richard.sandiford@arm.com>
1891
1892 PR tree-optimization/103517
1893 * tree-vect-slp.c (vect_build_slp_tree_1): When allowing two
1894 different component references, check the codes of both them,
1895 rather than just the first.
1896
1897 2021-12-01 Andrew MacLeod <amacleod@redhat.com>
1898
1899 PR tree-optimization/103464
1900 * gimple-range.cc (gimple_ranger::prefill_name): Process phis also.
1901 (gimple_ranger::prefill_stmt_dependencies): Ditto.
1902
1903 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
1904
1905 * doc/install.texi (Prerequisites): Add note that D front end now
1906 requires GDC installed in order to bootstrap.
1907 (Building): Add D compiler section, referencing prerequisites.
1908
1909 2021-12-01 Jakub Jelinek <jakub@redhat.com>
1910
1911 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE,
1912 X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY,
1913 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Formatting fixes.
1914 (X86_TUNE_USE_GATHER): Put m_GENERIC last for consistency.
1915
1916 2021-12-01 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR rtl-optimization/102356
1919 * rtl.h (simplify_context): Add assoc_count member and
1920 max_assoc_count static member.
1921 * simplify-rtx.c (simplify_associative_operation): Don't reassociate
1922 more than max_assoc_count times within one outermost simplify_* call.
1923 * dwarf2out.c (mem_loc_descriptor): Optimize binary operation
1924 with both operands the same using DW_OP_dup.
1925
1926 2021-12-01 Tamar Christina <tamar.christina@arm.com>
1927
1928 * match.pd: Move below pattern that rewrites to EQ, NE.
1929 * tree.c (bitmask_inv_cst_vector_p): Correct do .. while indentation.
1930
1931 2021-12-01 Siddhesh Poyarekar <siddhesh@gotplt.org>
1932 Martin Liška <mliska@suse.cz>
1933
1934 PR tree-optimization/103456
1935 * tree-object-size.c (merge_object_sizes): Update osi->changed
1936 only if object_sizes_set succeeded.
1937
1938 2021-11-30 liuhongt <hongtao.liu@intel.com>
1939
1940 PR target/103463
1941 PR target/103484
1942 * config/i386/i386.md (*x86_64_shld_1): Set_attr
1943 length_immediate to 1.
1944 (*x86_shld_1): Ditto.
1945 (*x86_64_shrd_1): Ditto.
1946 (*x86_shrd_1): Ditto.
1947
1948 2021-11-30 Bill Schmidt <wschmidt@linux.ibm.com>
1949
1950 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1951 Clarify diagnostic.
1952 (altivec_resolve_new_overloaded_builtin): Likewise.
1953
1954 2021-11-30 Martin Jambor <mjambor@suse.cz>
1955
1956 PR ipa/103267
1957 * ipa-sra.c (scan_function): Also check ECF_LOOPING_CONST_OR_PURE flag.
1958
1959 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1960
1961 PR tree-optimization/103494
1962 * tree-vect-stmts.c (vect_get_gather_scatter_ops): Remove ncopies
1963 argument and calculate ncopies from gs_info->offset_vectype
1964 where necessary.
1965 (vectorizable_store, vectorizable_load): Update accordingly.
1966
1967 2021-11-30 Iain Buclaw <ibuclaw@gdcproject.org>
1968
1969 * Makefile.in (GDC): New variable.
1970 (GDCFLAGS): New variable.
1971 * configure: Regenerate.
1972 * configure.ac: Add call to ACX_PROG_GDC. Substitute GDCFLAGS.
1973
1974 2021-11-30 Martin Liska <mliska@suse.cz>
1975 Martin Jambor <mjambor@suse.cz>
1976
1977 PR ipa/103449
1978 * ipa-param-manipulation.c
1979 (ipa_param_body_adjustments::prepare_debug_expressions): Be
1980 careful about hash_map reallocating itself. Simpify a return
1981 which always returns true.
1982
1983 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
1984
1985 PR tree-optimization/103440
1986 * gimple-range-fold.cc (fold_using_range::range_of_phi): Continue
1987 normal param processing for equiv params.
1988
1989 2021-11-30 Richard Biener <rguenther@suse.de>
1990
1991 * config/i386/i386.c (ix86_shift_rotate_cost): Remove
1992 unreachable return.
1993 * tree-chrec.c (evolution_function_is_invariant_rec_p):
1994 Likewise.
1995 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1996 * tree-ssa-pre.c (fully_constant_expression): Likewise.
1997 * tree-vrp.c (operand_less_p): Likewise.
1998 * reload.c (reg_overlap_mentioned_for_reload_p): Remove
1999 unreachable gcc_unreachable ().
2000 * sel-sched-ir.h (bb_next_bb): Likewise.
2001 * varasm.c (compare_constant): Likewise.
2002
2003 2021-11-30 Richard Biener <rguenther@suse.de>
2004
2005 PR tree-optimization/103489
2006 * tree-vect-loop.c (vectorizable_phi): Verify argument
2007 vector type compatibility to mitigate bool pattern recog
2008 bug.
2009
2010 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
2011
2012 * omp-offload.c (oacc_loop_auto_partitions): Remove erroneous
2013 "Orphan reductions cannot have gang partitioning" handling.
2014
2015 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
2016
2017 * omp-offload.c (oacc_loop_process): Implement "gang reduction on
2018 an orphan loop" checking.
2019
2020 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
2021 Thomas Schwinge <thomas@codesourcery.com>
2022
2023 * omp-general.h (enum oacc_loop_flags): Add OLF_REDUCTION enum.
2024 * omp-low.c (lower_oacc_head_mark): Use it to mark OpenACC
2025 reductions.
2026 * omp-offload.c (oacc_loop_auto_partitions): Don't assign gang
2027 level parallelism to orphan reductions.
2028
2029 2021-11-30 Aldy Hernandez <aldyh@redhat.com>
2030
2031 PR tree-optimization/103451
2032 * range-op.cc (operator_div::wi_fold): Remove
2033 can_throw_non_call_exceptions special case.
2034 * tree-ssa-sink.c (sink_code_in_bb): Same.
2035
2036 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2037
2038 * tree-vect-slp.c (arg1_arg4_map): New variable.
2039 (vect_get_operand_map): Handle IFN_MASK_GATHER_LOAD.
2040 (vect_build_slp_tree_1): Likewise.
2041 (vect_build_slp_tree_2): Likewise.
2042 * tree-vect-stmts.c (vectorizable_load): Expect the mask to be
2043 the last SLP child node rather than the first.
2044
2045 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2046
2047 * tree-if-conv.c: Include tree-eh.h.
2048 (predicate_statements): Remove pe argument. Don't hoist
2049 statements here.
2050 (combine_blocks): Remove pe argument.
2051 (ifcvt_available_on_edge_p, ifcvt_can_hoist): New functions.
2052 (ifcvt_hoist_invariants): Likewise.
2053 (tree_if_conversion): Update call to combine_blocks. Call
2054 ifcvt_hoist_invariants after VN.
2055
2056 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2057
2058 PR tree-optimization/102467
2059 * doc/sourcebuild.texi (vect_gather_load_ifn): Document.
2060 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2061 Commonize safelen handling. Punt for anything involving
2062 gathers and scatters unless safelen says otherwise.
2063 * tree-vect-slp.c (arg1_map): New variable.
2064 (vect_get_operand_map): Handle IFN_GATHER_LOAD.
2065 (vect_build_slp_tree_1): Likewise.
2066 (vect_build_slp_tree_2): Likewise.
2067 (compatible_calls_p): If vect_get_operand_map returns nonnull,
2068 check that any skipped arguments are equal.
2069 (vect_slp_analyze_node_operations_1): Tighten reduction check.
2070 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Take
2071 an ncopies argument.
2072 (vect_get_gather_scatter_ops): Take slp_node and ncopies arguments.
2073 Handle SLP nodes.
2074 (vectorizable_store, vectorizable_load): Adjust accordingly.
2075
2076 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2077
2078 * gimple.h (gimple_num_args, gimple_arg, gimple_arg_ptr): New
2079 functions.
2080 * tree-vect-slp.c (cond_expr_maps, arg2_map): New variables.
2081 (vect_get_operand_map): New function.
2082 (vect_get_and_check_slp_defs): Fix outdated comment.
2083 Use vect_get_operand_map and new gimple argument accessors.
2084 (vect_build_slp_tree_2): Likewise.
2085
2086 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2087
2088 * tree-vect-slp.c (vect_build_slp_tree_1): Use code_helper
2089 to record the operations performed by statements, only using
2090 CALL_EXPR for things that don't map to built-in or internal
2091 functions. For shifts, require all shift amounts to be equal
2092 if optab_vector is not supported but optab_scalar is.
2093
2094 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2095
2096 * tree-vect-data-refs.c (vect_check_gather_scatter): Continue
2097 processing conversions if the current offset is a pointer.
2098
2099 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2100
2101 * tree-vectorizer.h (vect_is_reduction): Use STMT_VINFO_REDUC_IDX.
2102
2103 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2104
2105 * genopinit.c (main): Turn supports_vec_gather_load and
2106 supports_vec_scatter_store into signed char arrays and remove
2107 supports_vec_gather_load_cached and supports_vec_scatter_store_cached.
2108 * optabs-query.c (supports_vec_convert_optab_p): Add a mode parameter.
2109 If the mode is not VOIDmode, test only for that mode.
2110 (supports_vec_gather_load_p): Likewise.
2111 (supports_vec_scatter_store_p): Likewise.
2112 * optabs-query.h (supports_vec_gather_load_p): Likewise.
2113 (supports_vec_scatter_store_p): Likewise.
2114 * tree-vect-data-refs.c (vect_check_gather_scatter): Pass the
2115 vector mode to supports_vec_gather_load_p and
2116 supports_vec_scatter_store_p.
2117
2118 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2119
2120 * internal-fn.c (commutative_binary_fn_p): Handle IFN_ADD_OVERFLOW
2121 and IFN_MUL_OVERFLOW.
2122
2123 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2124
2125 * internal-fn.c (commutative_binary_fn_p): Handle IFN_UBSAN_CHECK_ADD
2126 and IFN_UBSAN_CHECK_MUL.
2127
2128 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * internal-fn.c (commutative_binary_fn_p): Handle IFN_COMPLEX_MUL.
2131
2132 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2133
2134 * gimple-fold.c: Include internal-fn.h.
2135 (fold_stmt_1): If a function maps to an internal one, use
2136 first_commutative_argument to canonicalize the order of
2137 commutative arguments.
2138 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3)
2139 (gimple_resimplify4, gimple_resimplify5): Extend commutativity
2140 checks to functions.
2141
2142 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * doc/md.texi (reduc_fmin_scal_@var{m}): Document.
2145 (reduc_fmax_scal_@var{m}): Likewise.
2146 * optabs.def (reduc_fmax_scal_optab): New optab.
2147 (reduc_fmin_scal_optab): Likewise
2148 * internal-fn.def (REDUC_FMAX, REDUC_FMIN): New functions.
2149 * tree-vect-loop.c (reduction_fn_for_scalar_code): Handle
2150 CASE_CFN_FMAX and CASE_CFN_FMIN.
2151 (neutral_op_for_reduction): Likewise.
2152 (needs_fold_left_reduction_p): Likewise.
2153 * config/aarch64/iterators.md (FMAXMINV): New iterator.
2154 (fmaxmin): Handle UNSPEC_FMAXNMV and UNSPEC_FMINNMV.
2155 * config/aarch64/aarch64-simd.md (reduc_<optab>_scal_<mode>): Fix
2156 unspec mode.
2157 (reduc_<fmaxmin>_scal_<mode>): New pattern.
2158 * config/aarch64/aarch64-sve.md (reduc_<fmaxmin>_scal_<mode>):
2159 Likewise.
2160
2161 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2162
2163 * builtins.h (associated_internal_fn): Declare overload that
2164 takes a (combined_cfn, return type) pair.
2165 * builtins.c (associated_internal_fn): Split new overload out
2166 of original fndecl version. Also provide an overload that takes
2167 a (combined_cfn, return type) pair.
2168 * internal-fn.h (commutative_binary_fn_p): Declare.
2169 (commutative_ternary_fn_p): Likewise.
2170 (associative_binary_fn_p): Likewise.
2171 * internal-fn.c (commutative_binary_fn_p, commutative_ternary_fn_p):
2172 New functions, split out from...
2173 (first_commutative_argument): ...here.
2174 (associative_binary_fn_p): New function.
2175 * gimple-match.h (code_helper): Add a constructor that takes
2176 internal functions.
2177 (commutative_binary_op_p): Declare.
2178 (commutative_ternary_op_p): Likewise.
2179 (first_commutative_argument): Likewise.
2180 (associative_binary_op_p): Likewise.
2181 (canonicalize_code): Likewise.
2182 (directly_supported_p): Likewise.
2183 (get_conditional_internal_fn): Likewise.
2184 (gimple_build): New overloads that takes a code_helper.
2185 * gimple-fold.c (gimple_build): Likewise.
2186 * gimple-match-head.c (commutative_binary_op_p): New function.
2187 (commutative_ternary_op_p): Likewise.
2188 (first_commutative_argument): Likewise.
2189 (associative_binary_op_p): Likewise.
2190 (canonicalize_code): Likewise.
2191 (directly_supported_p): Likewise.
2192 (get_conditional_internal_fn): Likewise.
2193 * tree-vectorizer.h: Include gimple-match.h.
2194 (neutral_op_for_reduction): Take a code_helper instead of a tree_code.
2195 (needs_fold_left_reduction_p): Likewise.
2196 (reduction_fn_for_scalar_code): Likewise.
2197 (vect_can_vectorize_without_simd_p): Declare a nNew overload that takes
2198 a code_helper.
2199 * tree-vect-loop.c: Include case-cfn-macros.h.
2200 (fold_left_reduction_fn): Take a code_helper instead of a tree_code.
2201 (reduction_fn_for_scalar_code): Likewise.
2202 (neutral_op_for_reduction): Likewise.
2203 (needs_fold_left_reduction_p): Likewise.
2204 (use_mask_by_cond_expr_p): Likewise.
2205 (build_vect_cond_expr): Likewise.
2206 (vect_create_partial_epilog): Likewise. Use gimple_build rather
2207 than gimple_build_assign.
2208 (check_reduction_path): Handle calls and operate on code_helpers
2209 rather than tree_codes.
2210 (vect_is_simple_reduction): Likewise.
2211 (vect_model_reduction_cost): Likewise.
2212 (vect_find_reusable_accumulator): Likewise.
2213 (vect_create_epilog_for_reduction): Likewise.
2214 (vect_transform_cycle_phi): Likewise.
2215 (vectorizable_reduction): Likewise. Make more use of
2216 lane_reduc_code_p.
2217 (vect_transform_reduction): Use gimple_extract_op but expect
2218 a tree_code for now.
2219 (vect_can_vectorize_without_simd_p): New overload that takes
2220 a code_helper.
2221 * tree-vect-stmts.c (vectorizable_call): Handle reductions in
2222 fully-masked loops.
2223 * tree-vect-patterns.c (vect_mark_pattern_stmts): Use
2224 gimple_extract_op when updating STMT_VINFO_REDUC_IDX.
2225
2226 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2227
2228 * gimple-match.h (code_helper): Provide == and != overloads.
2229 (code_helper::operator tree_code): Make explicit.
2230 (code_helper::operator combined_fn): Likewise.
2231 * gimple-match-head.c (convert_conditional_op): Use explicit
2232 conversions where necessary.
2233 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3): Likewise.
2234 (maybe_push_res_to_seq, gimple_simplify): Likewise.
2235 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
2236
2237 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
2238
2239 * gimple-match.h (code_helper): Add functions for querying whether
2240 the code represents an internal_fn or a built_in_function.
2241 Provide explicit conversion operators for both cases.
2242 (gimple_extract_op): Declare.
2243 * gimple-match-head.c (gimple_extract): New function, extracted from...
2244 (gimple_simplify): ...here.
2245 (gimple_extract_op): New function.
2246
2247 2021-11-30 Eric Botcazou <ebotcazou@adacore.com>
2248
2249 PR target/103274
2250 * config/i386/i386.c (ix86_output_call_insn): Beef up comment about
2251 nops emitted with SEH.
2252 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
2253 the cold section, emit a nop before the directive if the previous
2254 active instruction is a call.
2255
2256 2021-11-30 Roger Sayle <roger@nextmovesoftware.com>
2257 Uroš Bizjak <ubizjak@gmail.com>
2258
2259 PR target/100711
2260 * config/i386/sse.md (define_split): New splitters to simplify
2261 not;vec_duplicate;and as vec_duplicate;andn.
2262
2263 2021-11-30 Richard Biener <rguenther@suse.de>
2264
2265 PR middle-end/103485
2266 * match.pd (-((int)x >> (prec - 1)) to (unsigned)x >> (prec - 1)):
2267 Use VIEW_CONVERT_EXPR for vectors.
2268
2269 2021-11-30 Richard Biener <rguenther@suse.de>
2270
2271 * cfgrtl.c (skip_insns_after_block): Refactor code to
2272 be more easily readable.
2273 * expr.c (op_by_pieces_d::run): Remove unreachable
2274 assert.
2275 * sched-deps.c (sched_analyze): Remove unreachable
2276 gcc_unreachable.
2277 * sel-sched-ir.c (in_same_ebb_p): Likewise.
2278 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p):
2279 Remove unreachable code.
2280 * tree-vect-slp.c (vectorize_slp_instance_root_stmt):
2281 Refactor to avoid unreachable loop iteration.
2282 * tree.c (walk_tree_1): Remove unreachable break.
2283 * vec-perm-indices.c (vec_perm_indices::series_p): Remove
2284 unreachable return.
2285
2286 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
2287
2288 PR target/102347
2289 * config/rs6000/rs6000-call.c (rs6000_builtin_decl): Remove builtin mask
2290 check.
2291
2292 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
2293
2294 * config/rs6000/rs6000.c
2295 (rs6000_cost_data::update_target_cost_per_stmt): Adjust the way to
2296 compute extra penalized cost. Remove useless parameter.
2297 (rs6000_cost_data::rs6000_add_stmt_cost): Adjust the call to function
2298 update_target_cost_per_stmt.
2299
2300 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
2301
2302 Revert:
2303 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
2304
2305 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
2306 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
2307 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
2308 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
2309 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
2310 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
2311 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
2312 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
2313
2314 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
2315
2316 PR tree-optimization/103467
2317 * gimple-range-gori.cc (range_def_chain::register_dependency): Don't
2318 use an object reference after a potential resize.
2319
2320 2021-11-29 Uroš Bizjak <ubizjak@gmail.com>
2321
2322 PR target/102811
2323 * config/i386/i386.md (*movhi_internal): Introduce (*v,C) alternative.
2324 Do not allocate non-GPR registers. Optimize xmm->xmm moves when
2325 optimizing for size. Fix vpinsrw insn template.
2326 (*movhf_internal): Fix pinsrw and pextrw insn templates for
2327 AVX targets. Use sselog1 type instead of sselog. Optimize GPR moves.
2328 Optimize xmm->xmm moves for TARGET_SSE_PARTIAL_REG_DEPENDENCY
2329 and TARGET_SSE_SPLIT_REGS targets.
2330
2331 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
2332
2333 * configure: Re-regenerate.
2334
2335 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
2336
2337 PR other/103021
2338 * Makefile.in: Substitute CTAGS, ETAGS, and CSCOPE
2339 variables. Use ETAGS variable in TAGS target.
2340 * configure: Regenerate.
2341 * configure.ac: Allow CTAGS, ETAGS, and CSCOPE
2342 variables to be overridden.
2343
2344 2021-11-29 Paul A. Clarke <pc@us.ibm.com>
2345
2346 * config/rs6000/xmmintrin.h (_mm_movemask_ps): Use vec_extractm
2347 when _ARCH_PWR10.
2348 * config/rs6000/emmintrin.h (_mm_movemask_pd): Likewise.
2349 (_mm_movemask_epi8): Likewise.
2350
2351 2021-11-29 Richard Biener <rguenther@suse.de>
2352
2353 * read-rtl-function.c (function_reader::read_rtx_operand):
2354 Return only after resetting m_in_call_function_usage.
2355
2356 2021-11-29 Roger Sayle <roger@nextmovesoftware.com>
2357
2358 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti): Perform the
2359 conversion via V2DImode using vec_extractv2didi on TARGET_SSE2.
2360 * config/i386/sse.md (rotlv1ti3, rotrv1ti3): Change constraint
2361 on QImode shift amounts from const_int_operand to general_operand.
2362
2363 2021-11-29 Richard Biener <rguenther@suse.de>
2364
2365 * tree.h (reverse_storage_order_for_component_p): Remove
2366 spurious gcc_unreachable.
2367 * cfganal.c (dfs_find_deadend): Likewise.
2368 * fold-const-call.c (fold_const_logb): Likewise.
2369 (fold_const_significand): Likewise.
2370 * gimple-ssa-store-merging.c (lhs_valid_for_store_merging_p):
2371 Likewise.
2372
2373 2021-11-29 Richard Biener <rguenther@suse.de>
2374
2375 * vec.c (qsort_chk): Do not return the void return value
2376 from the noreturn qsort_chk_error.
2377 * ccmp.c (expand_ccmp_expr_1): Remove unreachable return.
2378 * df-scan.c (df_ref_equal_p): Likewise.
2379 * dwarf2out.c (is_base_type): Likewise.
2380 (add_const_value_attribute): Likewise.
2381 * fixed-value.c (fixed_arithmetic): Likewise.
2382 * gimple-fold.c (gimple_fold_builtin_fputs): Likewise.
2383 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2384 * graphite-isl-ast-to-gimple.c
2385 (gcc_expression_from_isl_expr_op): Likewise.
2386 (gcc_expression_from_isl_expression): Likewise.
2387 * ipa-fnsummary.c (will_be_nonconstant_expr_predicate):
2388 Likewise.
2389 * lto-streamer-in.c (lto_input_mode_table): Likewise.
2390
2391 2021-11-29 liuhongt <hongtao.liu@intel.com>
2392
2393 PR target/102811
2394 * config/i386/i386.c (inline_secondary_memory_needed): HImode
2395 move between GPR and SSE registers is supported under
2396 TARGET_SSE2 and above.
2397 * config/i386/i386.md (extendhfsf2): Optimize expander.
2398 (truncsfhf2): Ditto.
2399 * config/i386/sse.md (sse2p4_1): Adjust attr for V8HFmode to
2400 align with V8HImode.
2401
2402 2021-11-29 liuhongt <hongtao.liu@intel.com>
2403
2404 PR target/102811
2405 PR target/103463
2406 * config/i386/i386.c (ix86_secondary_reload): Without
2407 TARGET_SSE4_1, General register is needed to move HImode from
2408 sse register to memory.
2409 * config/i386/sse.md (*vec_extrachf): Use %vpextrw instead of
2410 pextrw in output templates.
2411 * config/i386/i386.md (movhi_internal): Ditto, also fix typo of
2412 MEM_P (operands[1]) and adjust mode/prefix/type attribute for
2413 alternatives related to sse register.
2414
2415 2021-11-29 Richard Biener <rguenther@suse.de>
2416
2417 PR tree-optimization/103458
2418 * tree-ssa-dce.c (make_forwarders_with_degenerate_phis): Do not
2419 create forwarders for blocks with abnormal predecessors.
2420
2421 2021-11-29 Richard Biener <rguenther@suse.de>
2422
2423 * gimple-predicate-analysis.cc (can_be_invalidated_p):
2424 Restore semantics to the one before the split from
2425 tree-ssa-uninit.c.
2426
2427 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
2428
2429 * profile.c: Include sreal.h
2430 (struct bb_stats): New.
2431 (cmp_stats): New function.
2432 (compute_branch_probabilities): Output bb stats.
2433
2434 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
2435
2436 * cfghooks.c: Include sreal.h, profile.h.
2437 (profile_record_check_consistency): Fix checking of count counsistency;
2438 record also dynamic mismatches.
2439 * cfgrtl.c (rtl_account_profile_record): Similarly.
2440 * tree-cfg.c (gimple_account_profile_record): Likewise.
2441 * cfghooks.h (struct profile_record): Remove num_mismatched_freq_in,
2442 num_mismatched_freq_out, turn time to double, add
2443 dyn_mismatched_prob_out, dyn_mismatched_count_in,
2444 num_mismatched_prob_out; remove num_mismatched_count_out.
2445 * passes.c (account_profile_1): New function.
2446 (account_profile_in_list): New function.
2447 (pass_manager::dump_profile_report): Rewrite.
2448 (execute_one_ipa_transform_pass): Check profile consistency after
2449 running all passes.
2450 (execute_all_ipa_transforms): Remove cfun test; record all transform
2451 methods.
2452 (execute_one_pass): Fix collecting of profile stats.
2453
2454 2021-11-27 Jakub Jelinek <jakub@redhat.com>
2455
2456 PR middle-end/103431
2457 * config/i386/i386.md (x86_64_shld, x86_shld, x86_64_shrd, x86_shrd):
2458 Change insn pattern to accurately describe the instructions.
2459 (*x86_64_shld_1, *x86_shld_1, *x86_64_shrd_1, *x86_shrd_1): New
2460 define_insn patterns.
2461 (*x86_64_shld_2, *x86_shld_2, *x86_64_shrd_2, *x86_shrd_2): New
2462 define_insn_and_split patterns.
2463 (*ashl<dwi>3_doubleword_mask, *ashl<dwi>3_doubleword_mask_1,
2464 *<insn><dwi>3_doubleword_mask, *<insn><dwi>3_doubleword_mask_1,
2465 ix86_rotl<dwi>3_doubleword, ix86_rotr<dwi>3_doubleword): Adjust
2466 splitters for x86_{,64_}sh{l,r}d pattern changes.
2467
2468 2021-11-27 Jakub Jelinek <jakub@redhat.com>
2469
2470 PR tree-optimization/103435
2471 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Avoid UB if
2472 n->range - rsize == 8, just clear both *cmpnop and *cmpxchg in that
2473 case.
2474
2475 2021-11-27 Martin Jambor <mjambor@suse.cz>
2476
2477 PR ipa/103441
2478 * ipa-prop.c (ipcp_transform_function): Call
2479 delete_unreachable_blocks_update_callgraph instead of returning
2480 TODO_cleanup_cfg.
2481
2482 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
2483
2484 * tree-object-size.c (object_sizes_grow, object_sizes_release,
2485 object_sizes_unknown_p, object_sizes_get, object_size_set_force,
2486 object_sizes_set): New functions.
2487 (addr_object_size, compute_builtin_object_size,
2488 expr_object_size, call_object_size, unknown_object_size,
2489 merge_object_sizes, plus_stmt_object_size,
2490 cond_expr_object_size, collect_object_sizes_for,
2491 check_for_plus_in_loops_1, init_object_sizes,
2492 fini_object_sizes): Adjust.
2493
2494 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
2495
2496 * tree-object-size.c: New enum.
2497 (object_sizes, computed, addr_object_size,
2498 compute_builtin_object_size, expr_object_size, call_object_size,
2499 merge_object_sizes, plus_stmt_object_size,
2500 collect_object_sizes_for, init_object_sizes, fini_object_sizes,
2501 object_sizes_execute): Replace magic numbers with enums.
2502
2503 2021-11-26 Roger Sayle <roger@nextmovesoftware.com>
2504
2505 * tree-ssa-loop-ivopts.c (cand_value_at): Take a class
2506 tree_niter_desc* argument instead of just a tree for NITER.
2507 If we require the iv candidate value at the end of the final
2508 loop iteration, try using the original loop bound as the
2509 NITER for sufficiently simple loops.
2510 (may_eliminate_iv): Update (only) call to cand_value_at.
2511
2512 2021-11-26 Jan Hubicka <hubicka@ucw.cz>
2513
2514 * ipa-modref.c (analyze_function): Drop parameter F and dump
2515 cgraph node name rather than cfun name.
2516 (modref_generate): Update.
2517 (modref_summaries::insert):Update.
2518 (modref_summaries_lto::insert):Update.
2519 (pass_modref::execute):Update.
2520 (ipa_merge_modref_summary_after_inlining): Improve combining of
2521 ECF_FLAGS.
2522
2523 2021-11-26 Jan Hubicka <jh@suse.cz>
2524
2525 PR ipa/102943
2526 * ipa-modref.c (update_escape_summary_1): Fix handling of min_flags.
2527
2528 2021-11-26 konglin1 <lingling.kong@intel.com>
2529
2530 PR target/102811
2531 * config/i386/i386.c (ix86_can_change_mode_class): Allow 16 bit data in XMM register
2532 for TARGET_SSE2.
2533 * config/i386/i386.md (extendhfsf2): Add extenndhfsf2 for TARGET_F16C.
2534 (extendhfdf2): Restrict extendhfdf for TARGET_AVX512FP16 only.
2535 (*extendhf<mode>2): Rename from extendhf<mode>2.
2536 (truncsfhf2): Likewise.
2537 (truncdfhf2): Likewise.
2538 (*trunc<mode>2): Likewise.
2539
2540 2021-11-26 liuhongt <hongtao.liu@intel.com>
2541
2542 PR middle-end/103419
2543 * match.pd: Fix typo, use the type of second parameter, not
2544 first one.
2545
2546 2021-11-25 Jan Hubicka <jh@suse.cz>
2547
2548 * ipa-cp.c (ipa_value_range_from_jfunc): Remove forgotten early return.
2549
2550 2021-11-25 Roger Sayle <roger@nextmovesoftware.com>
2551
2552 PR middle-end/103406
2553 * match.pd (minus @0 @0): Check tree_expr_maybe_infinite_p.
2554
2555 2021-11-25 Martin Jambor <mjambor@suse.cz>
2556
2557 PR ipa/103227
2558 * ipa-prop.h (ipa_get_param): New overload. Move bits of the existing
2559 one to the new one.
2560 * ipa-param-manipulation.h (ipa_param_adjustments): New member
2561 function get_updated_index_or_split.
2562 * ipa-param-manipulation.c
2563 (ipa_param_adjustments::get_updated_index_or_split): New function.
2564 * ipa-prop.c (adjust_agg_replacement_values): Reimplement, add
2565 capability to identify scalarized parameters and perform substitution
2566 on them.
2567 (ipcp_transform_function): Create descriptors earlier, handle new
2568 return values of adjust_agg_replacement_values.
2569
2570 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
2571
2572 * gimple-range-path.cc (path_range_query::compute_ranges_defined): Remove.
2573 (path_range_query::compute_ranges_in_block): Revert to bitmap order.
2574 * gimple-range-path.h: Remove compute_ranges_defined.
2575
2576 2021-11-25 Andrew Stubbs <ams@codesourcery.com>
2577
2578 PR target/103396
2579 * config/gcn/gcn.c (move_callee_saved_registers): Ensure that the
2580 number of spilled registers is counted correctly.
2581
2582 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
2583
2584 * ipa-prop.h (ipa_node_params::ipa_node_params): Initialize
2585 node_is_self_scc.
2586
2587 2021-11-25 Andrew MacLeod <amacleod@redhat.com>
2588
2589 PR tree-optimization/103359
2590 * gimple-range-fold.cc (fold_using_range::range_of_phi): If arg is
2591 equivalent to def, don't initially include it's range.
2592
2593 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
2594
2595 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check
2596 gimple_static_chain.
2597
2598 2021-11-25 Richard Biener <rguenther@suse.de>
2599
2600 * cgraphunit.c (symbol_table::output_weakrefs): Remove
2601 unreachable init.
2602 (get_alias_symbol): Remove now unused function.
2603
2604 2021-11-25 Richard Biener <rguenther@suse.de>
2605
2606 * cfgrtl.c (rtl_verify_fallthru): Do not stop verifying
2607 with fatal_insn.
2608 (skip_insns_after_block): Remove unreachable break and continue.
2609
2610 2021-11-25 Richard Biener <rguenther@suse.de>
2611
2612 * cfgexpand.c (label_rtx_for_bb): Remove dead loop construct.
2613
2614 2021-11-25 Richard Biener <rguenther@suse.de>
2615
2616 * regset.h (REG_SET_EMPTY_P): New macro.
2617 * cfgcleanup.c (thread_jump): Use REG_SET_EMPTY_P.
2618
2619 2021-11-25 Martin Liska <mliska@suse.cz>
2620
2621 * doc/invoke.texi: Use @option for -Wuninitialized.
2622
2623 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
2624
2625 PR tree-optimization/103254
2626 * gimple-range-path.cc (path_range_query::compute_ranges): Move
2627 exported boolean code...
2628 (path_range_query::compute_imports): ...here.
2629
2630 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
2631
2632 PR tree-optimization/103254
2633 * gimple-range-path.cc (path_range_query::compute_ranges_defined): New
2634 (path_range_query::compute_ranges_in_block): Move to
2635 compute_ranges_defined.
2636 * gimple-range-path.h (compute_ranges_defined): New.
2637
2638 2021-11-25 Jakub Jelinek <jakub@redhat.com>
2639
2640 PR tree-optimization/103417
2641 * match.pd ((X & Y) CMP 0): Only handle eq and ne. Commonalize
2642 common tests.
2643
2644 2021-11-25 Jakub Jelinek <jakub@redhat.com>
2645
2646 PR tree-optimization/103376
2647 * gimple-ssa-store-merging.c (perform_symbolic_merge): For
2648 BIT_IOR_EXPR, if masked1 && masked2 && masked1 != masked2, don't
2649 punt, but set the corresponding result byte to MARKER_BYTE_UNKNOWN.
2650 For BIT_XOR_EXPR similarly and if masked1 == masked2 and the
2651 byte isn't MARKER_BYTE_UNKNOWN, set the corresponding result byte to
2652 0.
2653
2654 2021-11-25 Jakub Jelinek <jakub@redhat.com>
2655
2656 PR c++/102611
2657 * doc/invoke.texi (-Wcomma-subscript): Document that for
2658 -std=c++20 the option isn't enabled by default with -Wno-deprecated
2659 but for -std=c++23 it is.
2660
2661 2021-11-24 Jan Hubicka <hubicka@ucw.cz>
2662
2663 * ipa-modref.c (implicit_eaf_flags_for_edge_and_arg): Break out from...
2664 (modref_merge_call_site_flags): ... here.
2665 (ipa_merge_modref_summary_after_inlining): Use it.
2666
2667 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
2668
2669 * cfgloop.c (verify_loop_structure): Reduce scope of
2670 'class loop *loop' variable.
2671 * ipa-fnsummary.c (analyze_function_body): Likewise.
2672 * loop-init.c (fix_loop_structure): Likewise.
2673 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2674 * predict.c (predict_loops): Likewise.
2675 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
2676 * tree-vectorizer.c (pass_vectorize::execute): Likewise.
2677
2678 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
2679
2680 PR tree-optimization/103231
2681 * gimple-range.cc (gimple_ranger::gimple_ranger): Create stmt stack.
2682 (gimple_ranger::gimple_ranger): Delete stmt stack.
2683 (gimple_ranger::range_of_stmt): Process depenedencies if they have no
2684 global cache entry.
2685 (gimple_ranger::prefill_name): New.
2686 (gimple_ranger::prefill_stmt_dependencies): New.
2687 * gimple-range.h (class gimple_ranger): Add prototypes.
2688
2689 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
2690
2691 * gimple-range-cache.cc (ranger_cache::get_global_range): Always
2692 return a range, return if it came from the cache or not.
2693 (get_non_stale_global_range): Rename to get_global_range, and return
2694 the temporal state in a flag.
2695 * gimple-range-cache.h (get_non_stale_global_range): Rename and adjust.
2696 * gimple-range.cc (gimple_ranger::range_of_expr): No need to query
2697 get_global_range.
2698 (gimple_ranger::range_of_stmt): Adjust for global cache temporal state
2699 returned in a flag.
2700
2701 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
2702
2703 * gimple-range.cc (gimple_ranger::range_on_edge): Call trailer when
2704 a constant is encountered to terminate the trace.
2705
2706 2021-11-24 Maciej W. Rozycki <macro@embecosm.com>
2707
2708 PR middle-end/103059
2709 * reload.c (find_reloads_address_1): Also accept the ASHIFT form
2710 of indexed addressing.
2711 (find_reloads): Adjust accordingly.
2712
2713 2021-11-24 Richard Biener <rguenther@suse.de>
2714 Jan Hubicka <jh@suse.cz>
2715
2716 PR tree-optimization/103168
2717 * ipa-modref.h (struct modref_summary): Add load_accesses.
2718 * ipa-modref.c (modref_summary::finalize): Initialize load_accesses.
2719 * tree-ssa-sccvn.c (visit_reference_op_call): Use modref
2720 info to walk the virtual use->def chain to CSE const/pure
2721 function calls possibly reading from memory.
2722
2723 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
2724
2725 PR middle-end/103244
2726 * gimplify.c (gimplify_adjust_omp_clauses): Restore previous
2727 OpenACC behavior.
2728
2729 2021-11-24 Richard Biener <rguenther@suse.de>
2730
2731 PR middle-end/103193
2732 * match.pd: Avoid canonicalizing (le/ge @0 @0) to (eq @0 @0)
2733 with NaNs and -ftrapping-math.
2734
2735 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2736
2737 PR middle-end/103384
2738 * omp-general.c (omp_context_selector_matches): For ACCEL_COMPILER,
2739 return 0 for kind(host) and continue for kind(nohost).
2740
2741 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2742
2743 PR middle-end/103365
2744 * attribs.h (lookup_attribute): Allow attr_name to start with
2745 underscore, as long as canonicalize_attr_name returns false.
2746 (lookup_attribute_by_prefix): Don't call get_attribute_name twice.
2747 * attribs.c (extract_attribute_substring): Reimplement using
2748 canonicalize_attr_name.
2749 (register_scoped_attribute): Change gcc_assert into
2750 gcc_checking_assert, verify !canonicalize_attr_name rather than
2751 that str.str doesn't start with '_'.
2752
2753 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2754
2755 PR tree-optimization/103376
2756 * gimple-ssa-store-merging.c (perform_symbolic_merge): Add CODE
2757 argument. If CODE is not BIT_IOR_EXPR, ensure that one of masked1
2758 or masked2 is 0.
2759 (find_bswap_or_nop_1, find_bswap_or_nop,
2760 imm_store_chain_info::try_coalesce_bswap): Adjust
2761 perform_symbolic_merge callers.
2762
2763 2021-11-24 Richard Biener <rguenther@suse.de>
2764
2765 * tree-ssa-loop-ivopts.c (find_givs): Take loop body as
2766 argument instead of re-computing it.
2767 (find_interesting_uses): Likewise.
2768 (find_induction_variables): Pass through loop body.
2769 (tree_ssa_iv_optimize_loop): Pass down loop body.
2770
2771 2021-11-24 Tamar Christina <tamar.christina@arm.com>
2772
2773 * tree-ssa-phiopt.c (spaceship_replacement): Handle new canonical
2774 codegen.
2775
2776 2021-11-24 Tamar Christina <tamar.christina@arm.com>
2777
2778 * tree.c (bitmask_inv_cst_vector_p): New.
2779 * tree.h (bitmask_inv_cst_vector_p): New.
2780 * match.pd: Use it in new bitmask compare pattern.
2781
2782 2021-11-24 Jason Merrill <jason@redhat.com>
2783
2784 * timevar.h (class auto_cond_timevar): New.
2785
2786 2021-11-24 Hongtao Liu <hongtao.liu@intel.com>
2787 H.J. Lu <hongjiu.lu@intel.com>
2788
2789 PR tree-optimization/103194
2790 * match.pd (gimple_nop_atomic_bit_test_and_p): Extended to
2791 match truncation.
2792 * tree-ssa-ccp.c (gimple_nop_convert): Declare.
2793 (optimize_atomic_bit_test_and): Enhance
2794 optimize_atomic_bit_test_and to handle truncation.
2795
2796 2021-11-23 Martin Sebor <msebor@redhat.com>
2797
2798 PR middle-end/88232
2799 * Makefile.in (OBJS): Add gimple-warn-recursion.o.
2800 * common.opt: Add -Winfinite-recursion.
2801 * doc/invoke.texi (-Winfinite-recursion): Document.
2802 * passes.def (pass_warn_recursion): Schedule a new pass.
2803 * tree-pass.h (make_pass_warn_recursion): Declare.
2804 * gimple-warn-recursion.c: New file.
2805
2806 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
2807
2808 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Change
2809 error messages for ENB_P8V and ENB_P9V.
2810
2811 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
2812
2813 * config/rs6000/rs6000-builtin-new.def: Add power6-64 stanza. Move
2814 CMPB to power6-64 stanza.
2815 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Handle
2816 ENB_P6_64 case.
2817 (rs6000_new_builtin_is_supported): Likewise.
2818 (rs6000_expand_new_builtin): Likewise. Clean up formatting.
2819 (rs6000_init_builtins): Handle ENB_P6_64 case.
2820 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): Add BSTZ_P6_64.
2821 (stanza_map): Add entry mapping power6-64 to BSTZ_P6_64.
2822 (enable_string): Add "ENB_P6_64".
2823 (write_decls): Add ENB_P6_64 to bif_enable enum.
2824
2825 2021-11-23 Jan Hubicka <jh@suse.cz>
2826
2827 * ipa-modref-tree.h (struct modref_tree): Remove max_bases, max_refs
2828 and max_accesses.
2829 (modref_tree::modref_tree): Remove parametr.
2830 (modref_tree::insert_base): Add max_bases parameter.
2831 (modref_tree::insert): Add max_bases, max_refs, max_accesses
2832 parameters.
2833 (modref_tree::insert): New member function.
2834 (modref_tree::merge): Add max_bases, max_refs, max_accesses
2835 parameters.
2836 (modref_tree::insert): New member function.
2837 * ipa-modref-tree.c (test_insert_search_collapse): Update.
2838 (test_merge): Update.
2839 * ipa-modref.c (dump_records): Don't dump max_refs and max_bases.
2840 (dump_lto_records): Likewise.
2841 (modref_summary::finalize): Fix whitespace.
2842 (get_modref_function_summary): Likewise.
2843 (modref_access_analysis::record_access): Update.
2844 (modref_access_analysis::record_access_lto): Update.
2845 (modref_access_analysis::process_fnspec): Update.
2846 (analyze_function): Update.
2847 (modref_summaries::duplicate): Update.
2848 (modref_summaries_lto::duplicate): Update.
2849 (write_modref_records): Update.
2850 (read_modref_records): Update.
2851 (read_section): Update.
2852 (propagate_unknown_call): Update.
2853 (modref_propagate_in_scc): Update.
2854 (ipa_merge_modref_summary_after_inlining): Update.
2855
2856 2021-11-23 Martin Liska <mliska@suse.cz>
2857
2858 * doc/invoke.texi: Remove 2 more duplicite param descriptions.
2859
2860 2021-11-23 Richard Biener <rguenther@suse.de>
2861
2862 PR tree-optimization/103361
2863 * gimple-loop-jam.c (adjust_unroll_factor): Use lambda_int
2864 for the dependence distance.
2865 * tree-data-ref.c (print_lambda_vector): Properly print a lambda_int.
2866
2867 2021-11-23 Jakub Jelinek <jakub@redhat.com>
2868
2869 * tree-inline.h (struct copy_body_data): Remove
2870 transform_lang_insert_block member.
2871 * tree-inline.c (remap_block): Don't call
2872 id->transform_lang_insert_block.
2873 (optimize_inline_calls, copy_gimple_seq_and_replace_locals,
2874 tree_function_versioning, maybe_inline_call_in_expr,
2875 copy_fn): Don't initialize id.transform_lang_insert_block.
2876 * gimplify.c (gimplify_omp_loop): Likewise.
2877
2878 2021-11-23 Jan Hubicka <hubicka@ucw.cz>
2879
2880 PR tree-optimization/103335
2881 * tree-ssa-dse.c (valid_ao_ref_for_dse): Rename to ...
2882 (valid_ao_ref_kill_for_dse): ... this; do not check that boundaries
2883 are divisible by BITS_PER_UNIT.
2884 (get_byte_aligned_range_containing_ref): New function.
2885 (get_byte_aligned_range_contained_in_ref): New function.
2886 (normalize_ref): Rename to ...
2887 (get_byte_range): ... this one; handle accesses not aligned to byte
2888 boundary; return range in bytes rater than updating ao_ref.
2889 (clear_live_bytes_for_ref): Take write ref by reference; simplify using
2890 get_byte_access.
2891 (setup_live_bytes_from_ref): Likewise.
2892 (clear_bytes_written_by): Update.
2893 (live_bytes_read): Update.
2894 (dse_classify_store): Simplify tech before live_bytes_read checks.
2895
2896 2021-11-23 Andrew Pinski <apinski@marvell.com>
2897
2898 PR tree-optimization/102216
2899 * gimple-fold.c (fold_stmt_1): Add canonicalization
2900 of "&MEM[ssa_n, CST]" to "ssa_n p+ CST", note this
2901 can only be done if !in_place.
2902
2903 2021-11-23 Jakub Jelinek <jakub@redhat.com>
2904
2905 PR middle-end/102431
2906 * gimplify.c (replace_reduction_placeholders): Remove.
2907 (note_no_context_vars): New function.
2908 (gimplify_omp_loop): For OMP_PARALLEL's BIND_EXPR create a new
2909 BLOCK. Use copy_tree_body_r with walk_tree instead of unshare_expr
2910 and replace_reduction_placeholders for duplication of
2911 OMP_CLAUSE_REDUCTION_{INIT,MERGE} expressions. Ensure all mentioned
2912 automatic vars have DECL_CONTEXT set to non-NULL before doing so
2913 and reset it afterwards for those vars and their corresponding
2914 vars.
2915
2916 2021-11-23 Haochen Gui <guihaoc@gcc.gnu.org>
2917
2918 PR target/100868
2919 * config/rs6000/altivec.md (altivec_vreve<mode>2 for VEC_K): Use
2920 xxbrq for v16qi, xxbrq + xxbrh for v8hi and xxbrq + xxbrw for v4si
2921 or v4sf when p9_vector is set.
2922 (altivec_vreve<mode>2 for VEC_64): Defined. Implemented by xxswapd.
2923
2924 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
2925
2926 PR tree-optimization/102232
2927 * match.pd (x * (1 + y / x) - y) -> (x - y % x): New optimization.
2928
2929 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
2930
2931 PR tree-optimization/96779
2932 * match.pd (-x == x) -> (x == 0): New optimization.
2933
2934 2021-11-22 Roger Sayle <roger@nextmovesoftware.com>
2935
2936 PR tree-optimization/98953
2937 PR tree-optimization/103345
2938 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle
2939 BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR.
2940 (pass_optimize_bswap::execute): Likewise.
2941
2942 2021-11-22 Martin Liska <mliska@suse.cz>
2943
2944 * doc/invoke.texi: Remove duplicate documentation for 3 params.
2945
2946 2021-11-22 Richard Biener <rguenther@suse.de>
2947
2948 PR tree-optimization/103351
2949 * tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as
2950 second key.
2951
2952 2021-11-22 liuhongt <hongtao.liu@intel.com>
2953
2954 PR target/103275
2955 * config/i386/constraints.md (Bk): New
2956 define_memory_constraint.
2957 * config/i386/i386-protos.h (ix86_gpr_tls_address_pattern_p):
2958 Declare.
2959 * config/i386/i386.c (ix86_gpr_tls_address_pattern_p): New
2960 function.
2961 * config/i386/i386.md (*movsi_internal): Don't allow
2962 mask/sse/mmx move in TLS code sequences.
2963 (*movdi_internal): Ditto.
2964
2965 2021-11-22 Kewen Lin <linkw@linux.ibm.com>
2966
2967 * config/xtensa/xtensa.md (movdi_internal, movdf_internal): Fix split
2968 condition.
2969
2970 2021-11-21 Jakub Jelinek <jakub@redhat.com>
2971
2972 PR c++/101180
2973 * config/i386/i386-options.c (ix86_valid_target_attribute_p): If
2974 fndecl already has DECL_FUNCTION_SPECIFIC_TARGET, use that as base
2975 instead of target_option_default_node.
2976
2977 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
2978
2979 PR ipa/103227
2980 * ipa-modref.c (parm_map_for_arg): Rename to ...
2981 (parm_map_for_ptr): .. this one; handle static chain and calls to
2982 malloc functions.
2983 (modref_access_analysis::get_access): Use parm_map_for_ptr.
2984 (modref_access_analysis::process_fnspec): Update.
2985 (modref_access_analysis::analyze_load): Update.
2986 (modref_access_analysis::analyze_store): Update.
2987
2988 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
2989
2990 * ipa-modref.c (ignore_nondeterminism_p): Move earlier in source
2991 code.
2992 (ignore_retval_p): Likewise.
2993 (ignore_stores_p): Likewise.
2994 (parm_map_for_arg): Likewise.
2995 (class modref_access_analysis): New class.
2996 (modref_access_analysis::set_side_effects): New member function.
2997 (modref_access_analysis::set_nondeterministic): New member function.
2998 (get_access): Turn to ...
2999 (modref_access_analysis::get_access): ... this one.
3000 (record_access): Turn to ...
3001 (modref_access_analysis::record_access): ... this one.
3002 (record_access_lto): Turn to ...
3003 (modref_access_analysis::record_access_lto): ... This one.
3004 (record_access_p): Turn to ...
3005 (modref_access_analysis::record_access_p): ... This one
3006 (modref_access_analysis::record_unknown_load): New member function.
3007 (modref_access_analysis::record_unknown_store): New member function.
3008 (get_access_for_fnspec): Turn to ...
3009 (modref_access_analysis::get_access_for_fnspec): ... this one.
3010 (merge_call_side_effects): Turn to ...
3011 (moderf_access_analysis::merge_call_side_effects): Turn to ...
3012 (collapse_loads): Move later in source code.
3013 (collapse_stores): Move later in source code.
3014 (process_fnspec): Turn to ...
3015 (modref_access_analysis::process_fnspec): ... this one.
3016 (analyze_call): Turn to ...
3017 (modref_access_analysis::analyze_call): ... this one.
3018 (struct summary_ptrs): Remove.
3019 (analyze_load): Turn to ...
3020 (modref_access_analysis::analyze_load): ... this one.
3021 (analyze_store): Turn to ...
3022 (modref_access_analysis::analyze_store): ... this one.
3023 (analyze_stmt): Turn to ...
3024 (modref_access_analysis::analyze_stmt): ... This one.
3025 (remove_summary): Remove.
3026 (modref_access_analysis::propagate): Break out from ...
3027 (modref_access_analysis::analyze): Break out from ...
3028 (analyze_function): ... here.
3029
3030 2021-11-21 Roger Sayle <roger@nextmovesoftware.com>
3031 Robin Dapp <rdapp@linux.ibm.com>
3032
3033 PR target/102117
3034 * tree-ssa-math-opts.c (convert_mult_to_widen): Recognize
3035 signed WIDEN_MULT_EXPR if the target supports umul_widen_optab.
3036
3037 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
3038
3039 PR ipa/103052
3040 * ipa-modref.c (ignore_nondeterminism_p): Allow looping pure/cont.
3041 (merge_call_side_effects): Improve debug output.
3042
3043 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
3044
3045 PR ipa/103052
3046 * ipa-pure-const.c (propagate_pure_const): Fix merging of loping flag.
3047
3048 2021-11-20 Jeff Law <jeffreyalaw@gmail.com>
3049
3050 PR tree-optimization/103226
3051 * config/bfin/bfin.md (doloop pattern, splitter and expander): Clobber
3052 CC.
3053
3054 2021-11-20 Andrew Pinski <apinski@marvell.com>
3055
3056 PR tree-optimization/103220
3057 * match.pd ((type) X bitop CST): Don't check if CST
3058 fits into the type if only the sign changes.
3059
3060 2021-11-20 Alexandre Oliva <oliva@adacore.com>
3061
3062 PR tree-optimization/102988
3063 * gimple-harden-conditionals.cc (detach_value): Copy SSA_NAME
3064 without decl sharing.
3065
3066 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
3067
3068 * doc/invoke.texi: Remove whitespace after an @option.
3069
3070 2021-11-19 Paul A. Clarke <pc@us.ibm.com>
3071
3072 * config/rs6000/emmintrin.h (_mm_sad_epu8): Use vec_absd when
3073 _ARCH_PWR9, optimize vec_sum2s when LE.
3074
3075 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
3076
3077 PR target/80556
3078 * config/darwin-driver.c (darwin_driver_init): Handle exported
3079 symbols and symbol lists (suppress automatic export of the TLS
3080 symbols).
3081 * config/darwin.c (darwin_rename_builtins): Remove workaround.
3082 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3083 (REAL_LIBGCC_SPEC): Handle revised library uses.
3084 * config/darwin.opt (nodefaultexport): New.
3085 * config/i386/darwin.h (PR80556_WORKAROUND): Remove.
3086 * config/i386/darwin32-biarch.h (PR80556_WORKAROUND): Likewise.
3087 * config/i386/darwin64-biarch.h (PR80556_WORKAROUND): Likewise.
3088
3089 2021-11-19 Martin Jambor <mjambor@suse.cz>
3090
3091 * opts.c (default_options_table): Switch off
3092 flag_semantic_interposition at Ofast.
3093 * doc/invoke.texi (Optimize Options): Document that Ofast switches off
3094 -fsemantic-interposition.
3095
3096 2021-11-19 Jan Hubicka <hubicka@ucw.cz>
3097
3098 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not guard modref
3099 by !gimple_call_chain.
3100
3101 2021-11-19 Martin Sebor <msebor@redhat.com>
3102
3103 PR c++/33925
3104 PR c/102867
3105 * doc/invoke.texi (-Waddress): Update.
3106
3107 2021-11-19 Andrew MacLeod <amacleod@redhat.com>
3108
3109 PR tree-optimization/103254
3110 * gimple-range-gori.cc (range_def_chain::get_def_chain): Limit the
3111 depth for all statements with multple ssa names.
3112
3113 2021-11-19 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3114
3115 * config/s390/s390.md (define_peephole2): Variable insn points
3116 to the first matched insn. Use peep2_next_insn(1) to refer to
3117 the second matched insn.
3118
3119 2021-11-19 Tamar Christina <tamar.christina@arm.com>
3120
3121 PR tree-optimization/103311
3122 PR target/103330
3123 * tree-vect-slp-patterns.c (vect_validate_multiplication): Fix CONJ
3124 test to new codegen.
3125 (complex_mul_pattern::matches): Move check downwards.
3126
3127 2021-11-19 Martin Liska <mliska@suse.cz>
3128
3129 Revert:
3130 2021-11-19 Martin Liska <mliska@suse.cz>
3131
3132 * cfgexpand.c (pass_expand::execute): Use option directly.
3133 * function.c (allocate_struct_function): Likewise.
3134 * gimple-low.c (lower_function_body): Likewise.
3135 (lower_stmt): Likewise.
3136 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
3137 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
3138 * ipa-split.c (split_function): Likewise.
3139 * lto-streamer-in.c (input_function): Likewise.
3140 * sese.c (sese_insert_phis_for_liveouts): Likewise.
3141 * ssa-iterators.h (num_imm_uses): Likewise.
3142 * tree-cfg.c (make_blocks): Likewise.
3143 (gimple_merge_blocks): Likewise.
3144 * tree-inline.c (tree_function_versioning): Likewise.
3145 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
3146 * tree-sra.c (analyze_access_subtree): Likewise.
3147 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3148 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3149 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
3150 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
3151 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
3152 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
3153 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
3154 (target_for_debug_bind): Likewise.
3155 (insert_debug_temp_for_var_def): Likewise.
3156 (insert_debug_temps_for_defs): Likewise.
3157 (reset_debug_uses): Likewise.
3158 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3159 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
3160 (adjust_debug_stmts): Likewise.
3161 (adjust_phi_and_debug_stmts): Likewise.
3162 (vect_do_peeling): Likewise.
3163 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
3164 (vect_transform_loop): Likewise.
3165 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
3166 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
3167 (MAY_HAVE_DEBUG_STMTS): Use options directly.
3168
3169 2021-11-19 Giuliano Belinassi <gbelinassi@suse.de>
3170
3171 * gcc.c (process_command): Skip dumpdir override if file is a
3172 not_actual_file_p.
3173 * doc/invoke.texi: Update -dumpdir documentation.
3174
3175 2021-11-19 Andrew Pinski <apinski@marvell.com>
3176
3177 PR tree-optimization/103314
3178 * match.pd ((type) X op CST): Restrict the equal
3179 TYPE_PRECISION case to GIMPLE only.
3180
3181 2021-11-19 Martin Liska <mliska@suse.cz>
3182
3183 PR ipa/103230
3184 * ipa-modref-tree.h (struct modref_parm_map): Add default
3185 constructor.
3186 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Use it.
3187
3188 2021-11-19 Richard Biener <rguenther@suse.de>
3189
3190 PR middle-end/103248
3191 * tree-eh.c (operation_could_trap_helper_p): Properly handle
3192 fixed-point RDIV_EXPR.
3193
3194 2021-11-19 Richard Biener <rguenther@suse.de>
3195
3196 PR tree-optimization/102436
3197 * tree-ssa-loop-im.c (execute_sm_if_changed): Add mode
3198 to just create the if structure and return the then block.
3199 (execute_sm): Add flag to indicate the var will re-use
3200 another flag var.
3201 (hoist_memory_references): Support a single conditional
3202 block with all stores as special case.
3203
3204 2021-11-19 Andrew Pinski <apinski@marvell.com>
3205
3206 PR tree-optimization/103317
3207 * tree-ssa-phiopt.c (minmax_replacement): For the non empty
3208 middle bb case, check to make sure it has a single predecessor.
3209
3210 2021-11-19 Andrew Pinski <apinski@marvell.com>
3211
3212 PR tree-optimization/103257
3213 * match.pd
3214 ((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
3215 Disable until !canonicalize_math_p ().
3216
3217 2021-11-19 Marek Polacek <polacek@redhat.com>
3218
3219 PR c++/19808
3220 PR c++/96121
3221 * doc/invoke.texi: Update documentation for -Wuninitialized.
3222 * tree.c (stabilize_reference): Set location.
3223
3224 2021-11-19 liuhongt <hongtao.liu@intel.com>
3225
3226 PR target/102543
3227 * config/i386/x86-tune-costs.h (skylake_cost): Reduce cost of
3228 storing 256/512-bit SSE register to be equal to cost of
3229 unaligned store to avoid odd alignment peeling.
3230 (icelake_cost): Ditto.
3231
3232 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3233
3234 * config/rs6000/predicates.md (current_file_function_operand):
3235 Add flag_semantic_interposition to call of decl_replaceable_p.
3236
3237 2021-11-18 Martin Liska <mliska@suse.cz>
3238
3239 * ipa-modref.c (analyze_function): Do not execute the code
3240 only if dump_file != NULL.
3241
3242 2021-11-18 Martin Liska <mliska@suse.cz>
3243
3244 * ipa-modref.c (analyze_function): Use fnode instead of repeated
3245 cgraph_node::get (current_function_decl).
3246
3247 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
3248
3249 * cgraph.c (cgraph_node::get_availability): Update call of
3250 decl_replaceable_p.
3251 (cgraph_node::verify_node): Verify that semantic_interposition flag
3252 is set correclty.
3253 * cgraph.h: (symtab_node): Add semantic_interposition flag.
3254 * cgraphclones.c (set_new_clone_decl_and_node_flags): Clear
3255 semantic_interposition flag.
3256 * cgraphunit.c (cgraph_node::finalize_function): Set
3257 semantic_interposition flag.
3258 (cgraph_node::add_new_function): Likewise.
3259 (varpool_node::finalize_decl): Likewise.
3260 (cgraph_node::create_wrapper): Likewise.
3261 * common.opt (fsemantic-interposition): Turn to optimization node.
3262 * lto-cgraph.c (lto_output_node): Stream semantic_interposition.
3263 (lto_output_varpool_node): Likewise.
3264 (input_overwrite_node): Likewise.
3265 (input_varpool_node): Likewise.
3266 * symtab.c (symtab_node::dump_base): Dump new flag.
3267 * varasm.c (decl_replaceable_p): Add semantic_interposition_p
3268 parameter.
3269 * varasm.h (decl_replaceable_p): Update declaration.
3270 * varpool.c (varpool_node::ctor_useable_for_folding_p):
3271 Use semantic_interposition flag.
3272 (varpool_node::get_availability): Likewise.
3273 (varpool_node::create_alias): Copy semantic_interposition flag.
3274
3275 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
3276
3277 PR ipa/103266
3278 * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused
3279 parameter may still be returned.
3280 (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags
3281 even for unused function args.
3282
3283 2021-11-18 Tamar Christina <tamar.christina@arm.com>
3284
3285 PR tree-optimization/103311
3286 * tree-vect-slp-patterns.c (complex_mul_pattern::matches,
3287 complex_fms_pattern::matches): Check for multiplications.
3288
3289 2021-11-18 H.J. Lu <hjl.tools@gmail.com>
3290
3291 PR target/102952
3292 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit
3293 CS prefix for -mindirect-branch-cs-prefix.
3294 (ix86_output_indirect_branch_via_reg): Likewise.
3295 * config/i386/i386.opt: Add -mindirect-branch-cs-prefix.
3296 * doc/invoke.texi: Document -mindirect-branch-cs-prefix.
3297
3298 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3299
3300 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3301 power10.
3302
3303 2021-11-18 Tamar Christina <tamar.christina@arm.com>
3304
3305 PR tree-optimization/103253
3306 * tree-ssa-math-opts.c (convert_mult_to_fma): Check for LHS.
3307
3308 2021-11-18 Matthias Kretz <m.kretz@gsi.de>
3309
3310 * doc/extend.texi: Document __builtin_assoc_barrier.
3311
3312 2021-11-18 Martin Liska <mliska@suse.cz>
3313
3314 * cfgexpand.c (pass_expand::execute): Use option directly.
3315 * function.c (allocate_struct_function): Likewise.
3316 * gimple-low.c (lower_function_body): Likewise.
3317 (lower_stmt): Likewise.
3318 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
3319 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
3320 * ipa-split.c (split_function): Likewise.
3321 * lto-streamer-in.c (input_function): Likewise.
3322 * sese.c (sese_insert_phis_for_liveouts): Likewise.
3323 * ssa-iterators.h (num_imm_uses): Likewise.
3324 * tree-cfg.c (make_blocks): Likewise.
3325 (gimple_merge_blocks): Likewise.
3326 * tree-inline.c (tree_function_versioning): Likewise.
3327 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
3328 * tree-sra.c (analyze_access_subtree): Likewise.
3329 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3330 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3331 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
3332 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
3333 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
3334 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
3335 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
3336 (target_for_debug_bind): Likewise.
3337 (insert_debug_temp_for_var_def): Likewise.
3338 (insert_debug_temps_for_defs): Likewise.
3339 (reset_debug_uses): Likewise.
3340 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3341 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
3342 (adjust_debug_stmts): Likewise.
3343 (adjust_phi_and_debug_stmts): Likewise.
3344 (vect_do_peeling): Likewise.
3345 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
3346 (vect_transform_loop): Likewise.
3347 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
3348 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
3349 (MAY_HAVE_DEBUG_STMTS): Use options directly.
3350
3351 2021-11-18 Richard Biener <rguenther@suse.de>
3352
3353 PR tree-optimization/103277
3354 * tree-ssa-dse.c (need_ab_cleanup): New.
3355 (dse_optimize_redundant_stores): Adjust.
3356 (delete_dead_or_redundant_assignment): Get extra
3357 need_ab_cleanup argument and set when abnormal cleanup is
3358 needed.
3359 (dse_optimize_call): Adjust.
3360 (dse_optimize_stmt): Likewise.
3361 (pass_dse::execute): Allocate and deallocate need_ab_cleanup.
3362 Perform abnormal cleanup.
3363 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust.
3364
3365 2021-11-18 Hongyu Wang <hongyu.wang@intel.com>
3366
3367 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
3368 Adjust generated cfg to avoid infinite loop.
3369
3370 2021-11-18 konglin1 <lingling.kong@intel.com>
3371
3372 * config/i386/avx512fp16intrin.h (_mm512_mul_pch): Add alias for _mm512_fmul_pch.
3373 (_mm512_mask_mul_pch): Likewise.
3374 (_mm512_maskz_mul_pch): Likewise.
3375 (_mm512_mul_round_pch): Likewise.
3376 (_mm512_mask_mul_round_pch): Likewise.
3377 (_mm512_maskz_mul_round_pch): Likewise.
3378 (_mm512_cmul_pch): Likewise.
3379 (_mm512_mask_cmul_pch): Likewise.
3380 (_mm512_maskz_cmul_pch): Likewise.
3381 (_mm512_cmul_round_pch): Likewise.
3382 (_mm512_mask_cmul_round_pch): Likewise.
3383 (_mm512_maskz_cmul_round_pch): Likewise.
3384 (_mm_mul_sch): Likewise.
3385 (_mm_mask_mul_sch): Likewise.
3386 (_mm_maskz_mul_sch): Likewise.
3387 (_mm_mul_round_sch): Likewise.
3388 (_mm_mask_mul_round_sch): Likewise.
3389 (_mm_maskz_mul_round_sch): Likewise.
3390 (_mm_cmul_sch): Likewise.
3391 (_mm_mask_cmul_sch): Likewise.
3392 (_mm_maskz_cmul_sch): Likewise.
3393 (_mm_cmul_round_sch): Likewise.
3394 (_mm_mask_cmul_round_sch): Likewise.
3395 (_mm_maskz_cmul_round_sch): Likewise.
3396 * config/i386/avx512fp16vlintrin.h (_mm_mul_pch): Likewise.
3397 (_mm_mask_mul_pch): Likewise.
3398 (_mm_maskz_mul_pch): Likewise.
3399 (_mm256_mul_pch): Likewise.
3400 (_mm256_mask_mul_pch): Likewise.
3401 (_mm256_maskz_mul_pch): Likewise.
3402 (_mm_cmul_pch): Likewise.
3403 (_mm_mask_cmul_pch): Likewise.
3404 (_mm_maskz_cmul_pch): Likewise.
3405 (_mm256_cmul_pch): Likewise.
3406 (_mm256_mask_cmul_pch): Likewise.
3407 (_mm256_maskz_cmul_pch): Likewise.
3408
3409 2021-11-17 Andrew Pinski <apinski@marvell.com>
3410
3411 PR tree-optimization/103228
3412 PR tree-optimization/55177
3413 * match.pd ((type) X bitop CST): Also do this
3414 transformation for nop conversions.
3415
3416 2021-11-17 Martin Sebor <msebor@redhat.com>
3417
3418 PR tree-optimization/102759
3419 * gimple-array-bounds.cc (build_printable_array_type): Move...
3420 * gimple-ssa-warn-access.cc (build_printable_array_type): Avoid
3421 pathological function redeclarations that remove a previously
3422 declared prototype.
3423 Improve formatting of function arguments in informational notes.
3424 * pointer-query.cc (build_printable_array_type): ...to here.
3425 * pointer-query.h (build_printable_array_type): Declared.
3426
3427 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
3428
3429 PR target/102952
3430 * config/i386/i386-opts.h (harden_sls): New enum.
3431 * config/i386/i386.c (output_indirect_thunk): Mitigate against
3432 SLS for function return.
3433 (ix86_output_function_return): Likewise.
3434 (ix86_output_jmp_thunk_or_indirect): Mitigate against indirect
3435 branch.
3436 (ix86_output_indirect_jmp): Likewise.
3437 (ix86_output_call_insn): Likewise.
3438 * config/i386/i386.opt: Add -mharden-sls=.
3439 * doc/invoke.texi: Document -mharden-sls=.
3440
3441 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
3442
3443 PR target/103307
3444 * config/i386/i386.c (ix86_code_end): Remove "%!" before ret.
3445 (ix86_output_function_return): Likewise.
3446 * config/i386/i386.md (simple_return_pop_internal): Likewise.
3447
3448 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
3449
3450 PR ipa/103246
3451 * ipa-modref.c (read_modref_records): Fix streaminig in of every_access
3452 flag.
3453
3454 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
3455
3456 * config/i386/i386.c (indirect_thunks_used): Redefine as HARD_REG_SET.
3457 (ix86_code_end): Use TEST_HARD_REG_BIT on indirect_thunks_used.
3458 (ix86_output_indirect_branch_via_reg): Use SET_HARD_REG_BIT
3459 on indirect_thunks_used.
3460 (ix86_output_indirect_function_return): Ditto.
3461
3462 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
3463
3464 * ipa-modref-tree.c: Include cgraph.h and tree-streamer.h.
3465 (modref_access_node::stream_out): New member function.
3466 (modref_access_node::stream_in): New member function.
3467 * ipa-modref-tree.h (modref_access_node::stream_out,
3468 modref_access_node::stream_in): Declare.
3469 * ipa-modref.c (modref_summary_lto::useful_p): Free useless kills.
3470 (modref_summary_lto::dump): Dump kills.
3471 (analyze_store): Record kills for LTO
3472 (analyze_stmt): Likewise.
3473 (modref_summaries_lto::duplicate): Duplicate kills.
3474 (write_modref_records): Use new stream_out member function.
3475 (read_modref_records): Likewise.
3476 (modref_write): Stream out kills.
3477 (read_section): Stream in kills
3478 (remap_kills): New function.
3479 (update_signature): Use it.
3480
3481 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
3482
3483 * config/i386/i386.h (LEGACY_SSE_REGNO_P): New predicate.
3484 (SSE_REGNO_P): Use LEGACY_SSE_REGNO_P predicate.
3485 * config/i386/i386.c (zero_all_vector_registers):
3486 Use LEGACY_SSE_REGNO_P predicate.
3487 (ix86_register_priority): Use REX_INT_REGNO_P, REX_SSE_REGNO_P
3488 and EXT_REG_SSE_REGNO_P predicates.
3489 (ix86_hard_regno_call_part_clobbered): Use REX_SSE_REGNO_P
3490 and LEGACY_SSE_REGNO_P predicates.
3491
3492 2021-11-17 Jason Merrill <jason@redhat.com>
3493
3494 * doc/invoke.texi (C++ Dialect Options): Document
3495 -fimplicit-constexpr.
3496
3497 2021-11-17 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3498
3499 * config/aarch64/aarch64-modes.def (VECTOR_MODE): New V8DI mode.
3500 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Handle
3501 V8DImode.
3502 * config/aarch64/iterators.md (define_mode_attr nunits): Add entry
3503 for V8DI.
3504
3505 2021-11-17 Martin Uecker <uecker@gcc.gnu.org>
3506
3507 PR c/91038
3508 PR c/29970
3509 * gimplify.c (gimplify_var_or_parm_decl): Update comment.
3510 (gimplify_compound_lval): Gimplify base expression first.
3511 (gimplify_target_expr): Add comment.
3512
3513 2021-11-17 Jakub Jelinek <jakub@redhat.com>
3514
3515 PR tree-optimization/103192
3516 * tree-ssa-loop-im.c (move_computations_worker): Use
3517 reset_flow_sensitive_info instead of manually clearing
3518 SSA_NAME_RANGE_INFO and do it for all SSA_NAMEs, not just ones
3519 with integral types.
3520
3521 2021-11-17 Jakub Jelinek <jakub@redhat.com>
3522
3523 PR tree-optimization/103255
3524 * gimple-range-fold.cc (fold_using_range::range_of_address): Return
3525 range_nonzero rather than unadjusted base's range. Formatting fixes.
3526
3527 2021-11-17 Richard Sandiford <richard.sandiford@arm.com>
3528
3529 * doc/md.texi (cond_fmin@var{mode}, cond_fmax@var{mode}): Document.
3530 * optabs.def (cond_fmin_optab, cond_fmax_optab): New optabs.
3531 * internal-fn.def (COND_FMIN, COND_FMAX): New functions.
3532 * internal-fn.c (first_commutative_argument): Handle them.
3533 (FOR_EACH_COND_FN_PAIR): Likewise.
3534 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
3535 * config/aarch64/aarch64-sve.md (cond_<fmaxmin><mode>): New
3536 pattern.
3537
3538 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
3539
3540 * config/i386/i386.md (*add<dwi>3_doubleword, *addv<dwi>4_doubleword,
3541 *addv<dwi>4_doubleword_1, *sub<dwi>3_doubleword,
3542 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1,
3543 *add<dwi>3_doubleword_cc_overflow_1, *divmodsi4_const,
3544 *neg<dwi>2_doubleword, *tls_dynamic_gnu2_combine_64_<mode>): Fix split
3545 condition.
3546
3547 2021-11-17 Andrew Pinski <apinski@marvell.com>
3548
3549 PR tree-optimization/103288
3550 * tree-ssa-phiopt.c (value_replacement): Return early if middle
3551 block has more than one pred.
3552
3553 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
3554
3555 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
3556 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
3557 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
3558 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
3559 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
3560 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
3561 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
3562 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
3563
3564 2021-11-17 Marek Polacek <polacek@redhat.com>
3565
3566 PR preprocessor/103026
3567 * doc/invoke.texi: Document -Wbidi-chars.
3568
3569 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
3570
3571 PR ipa/103246
3572 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix clearing
3573 of to_info_lto
3574
3575 2021-11-16 Jan Hubicka <jh@suse.cz>
3576
3577 * ipa-modref.c (get_modref_function_summary): Declare.
3578 * ipa-modref.h (get_modref_function_summary): New function.
3579 * tree-ssa-dse.c (clear_live_bytes_for_ref): Break out from ...
3580 (clear_bytes_written_by): ... here; also clear memory killed by
3581 calls.
3582
3583 2021-11-16 Iain Sandoe <iain@sandoe.co.uk>
3584
3585 * ggc-common.c (gt_pch_save): If we cannot find a suitable
3586 memory segment for save, then error-out, do not try to
3587 continue.
3588 (gt_pch_restore): Save the existing line table, and when
3589 the replacement is being read, use that when constructing
3590 diagnostics.
3591
3592 2021-11-16 Peter Bergner <bergner@linux.ibm.com>
3593
3594 PR target/102976
3595 * config/rs6000/mma.md (*vsx_assemble_pair): Add early-clobber for
3596 output operand.
3597 (*mma_assemble_acc): Likewise.
3598
3599 2021-11-16 Martin Sebor <msebor@redhat.com>
3600
3601 PR tree-optimization/102960
3602 * gimple-fold.c (get_range_strlen): Take bitmap as an argument rather
3603 than a pointer to it.
3604 (get_range_strlen_tree): Same. Remove bitmap allocation. Use
3605 an auto_bitmap.
3606 (get_maxval_strlen): Use an auto_bitmap.
3607 * tree-ssa-strlen.c (get_range_strlen_dynamic): Factor out PHI
3608 handling...
3609 (get_range_strlen_phi): ...into this function.
3610 Avoid assuming maximum string length is constant
3611 (printf_strlen_execute): Dump pointer query cache contents when
3612 details are requisted.
3613
3614 2021-11-16 Jason Merrill <jason@redhat.com>
3615
3616 * langhooks.h (struct lang_hooks): Adjust comment.
3617 * print-tree.c (print_node): Also call print_xnode hook for
3618 tcc_constant class.
3619
3620 2021-11-16 Andrew Pinski <apinski@marvell.com>
3621
3622 PR tree-optimization/103218
3623 * match.pd: New pattern for "((type)(a<0)) << SIGNBITOFA".
3624
3625 2021-11-16 Claudiu Zissulescu <claziss@synopsys.com>
3626
3627 * config/arc/arc.md (maddhisi4): Use a single move to accumulator.
3628 (umaddhisi4): Likewise.
3629 (machi): Update pattern.
3630 (umachi): Likewise.
3631
3632 2021-11-16 Richard Biener <rguenther@suse.de>
3633
3634 PR tree-optimization/102880
3635 * tree-ssa-dce.c (sort_phi_args): New function.
3636 (make_forwarders_with_degenerate_phis): Likewise.
3637 (perform_tree_ssa_dce): Call
3638 make_forwarders_with_degenerate_phis.
3639
3640 2021-11-16 Richard Biener <rguenther@suse.de>
3641
3642 PR tree-optimization/102880
3643 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Push
3644 single_pred (bb1) condition to places that really need it.
3645 (match_simplify_replacement): Likewise.
3646 (value_replacement): Likewise.
3647 (replace_phi_edge_with_variable): Deal with extra edges
3648 into the middle BB.
3649
3650 2021-11-16 Martin Jambor <mjambor@suse.cz>
3651
3652 * cfgexpand.c (expand_gimple_basic_block): Use build_debug_expr_decl,
3653 add a fixme note about the mode assignment perhaps being unnecessary.
3654 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
3655 Likewise.
3656 (ipa_param_body_adjustments::mark_dead_statements): Likewise.
3657 (ipa_param_body_adjustments::reset_debug_stmts): Likewise.
3658 * tree-inline.c (remap_ssa_name): Likewise.
3659 (tree_function_versioning): Likewise.
3660 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3661 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3662 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3663
3664 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3665
3666 PR tree-optimization/103208
3667 * omp-expand.c (expand_omp_build_cond): New function.
3668 (expand_omp_for_init_counts, expand_omp_for_init_vars,
3669 expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use it.
3670
3671 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3672
3673 PR tree-optimization/102009
3674 * gimple-ssa-warn-access.cc (pass_waccess::check_alloc_size_call):
3675 Punt if any of alloc_size arguments is out of bounds vs. number of
3676 call arguments.
3677
3678 2021-11-16 Roger Sayle <roger@nextmovesoftware.com>
3679
3680 * config/i386/i386.md (*bmi2_rorx<mode3>_1): Make conditional
3681 on !optimize_function_for_size_p.
3682 (*<any_rotate><mode>3_1): Add preferred_for_size attribute.
3683 (define_splits): Conditionalize on !optimize_function_for_size_p.
3684 (*bmi2_rorxsi3_1_zext): Likewise.
3685 (*<any_rotate>si2_1_zext): Add preferred_for_size attribute.
3686 (define_splits): Conditionalize on !optimize_function_for_size_p.
3687
3688 2021-11-16 Jan Hubicka <jh@suse.cz>
3689
3690 PR ipa/103262
3691 * ipa-modref.c (merge_call_side_effects): Fix uninitialized
3692 access.
3693
3694 2021-11-16 Andrew Pinski <apinski@marvell.com>
3695
3696 PR tree-optimization/103245
3697 * match.pd: Combine the abs pattern matching using multiplication.
3698 Adding optional nop_convert too.
3699
3700 2021-11-16 H.J. Lu <hjl.tools@gmail.com>
3701
3702 PR middle-end/103268
3703 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Add a missing
3704 return.
3705
3706 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
3707
3708 * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to
3709 determine if it is safe to transform to strcat.
3710 (gimple_fold_builtin_snprintf): Likewise.
3711
3712 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
3713
3714 * gimple-fold.c (known_lower): New function.
3715 (gimple_fold_builtin_strncat_chk,
3716 gimple_fold_builtin_memory_chk, gimple_fold_builtin_stxcpy_chk,
3717 gimple_fold_builtin_stxncpy_chk,
3718 gimple_fold_builtin_snprintf_chk,
3719 gimple_fold_builtin_sprintf_chk): Use it.
3720
3721 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
3722
3723 * gimple-fold.c (dump_transformation): New function.
3724 (gimple_fold_builtin_stxcpy_chk,
3725 gimple_fold_builtin_stxncpy_chk): Use it. Simplify to
3726 BUILT_IN_STRNCPY if return value is not used.
3727
3728 2021-11-15 H.J. Lu <hjl.tools@gmail.com>
3729
3730 PR middle-end/103184
3731 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab
3732 before transforming equivalent, but slighly different cases to
3733 their canonical forms.
3734
3735 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
3736
3737 PR fortran/102992
3738 * config/darwin.h (TARGET_DTORS_FROM_CXA_ATEXIT): New.
3739 * doc/tm.texi: Regenerated.
3740 * doc/tm.texi.in: Add TARGET_DTORS_FROM_CXA_ATEXIT hook.
3741 * ipa.c (cgraph_build_static_cdtor_1): Return the built
3742 function decl.
3743 (build_cxa_atexit_decl): New.
3744 (build_dso_handle_decl): New.
3745 (build_cxa_dtor_registrations): New.
3746 (compare_cdtor_tu_order): New.
3747 (build_cxa_atexit_fns): New.
3748 (ipa_cdtor_merge): If dtors_from_cxa_atexit is set,
3749 process the DTORs/CTORs accordingly.
3750 (pass_ipa_cdtor_merge::gate): Also run if
3751 dtors_from_cxa_atexit is set.
3752 * target.def (dtors_from_cxa_atexit): New hook.
3753
3754 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
3755
3756 * config.in: Regenerate.
3757 * configure: Regenerate.
3758 * configure.ac: Test ld64 for -platform-version support.
3759
3760 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
3761
3762 * diagnostic-spec.h (typedef xint_hash_t)
3763 (typedef xint_hash_map_t): Replace with...
3764 (typedef nowarn_map_t): ... this.
3765 (nowarn_map): Adjust.
3766 * diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise.
3767
3768 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
3769
3770 * profile.c (branch_prob): Use 'location_hash' for
3771 'seen_locations'.
3772
3773 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
3774
3775 PR tree-optimization/103207
3776 * value-range.cc (irange::set): Drop overflow.
3777
3778 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3779
3780 * gimplify.c (optimize_target_teams): Only add OMP_CLAUSE_THREAD_LIMIT
3781 to OMP_TARGET_CLAUSES if it isn't there already.
3782
3783 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
3784
3785 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3786 Remove useless code.
3787 (path_range_query::ssa_defined_in_bb): New.
3788 (path_range_query::ssa_range_in_phi): Avoid fold_range call that
3789 could trigger additional lookups.
3790 Do not use the cache for ARGs defined in this block.
3791 (path_range_query::compute_ranges_in_block): Use ssa_defined_in_bb.
3792 (path_range_query::maybe_register_phi_relation): Same.
3793 (path_range_query::range_of_stmt): Adjust comment.
3794 * gimple-range-path.h (ssa_defined_in_bb): New.
3795
3796 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
3797
3798 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3799 Default to global range if nothing found.
3800
3801 2021-11-15 Richard Biener <rguenther@suse.de>
3802
3803 PR tree-optimization/103237
3804 * tree-vect-loop.c (vect_is_simple_reduction): Fail for
3805 double reductions with multiple inner loop LC PHI nodes.
3806
3807 2021-11-15 Hongyu Wang <hongyu.wang@intel.com>
3808
3809 PR target/103069
3810 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
3811 New expand function.
3812 * config/i386/i386-options.c (ix86_target_string): Add
3813 -mrelax-cmpxchg-loop flag.
3814 (ix86_valid_target_attribute_inner_p): Likewise.
3815 * config/i386/i386-protos.h (ix86_expand_atomic_fetch_op_loop):
3816 New expand function prototype.
3817 * config/i386/i386.opt: Add -mrelax-cmpxchg-loop.
3818 * config/i386/sync.md (atomic_fetch_<logic><mode>): New expander
3819 for SI,HI,QI modes.
3820 (atomic_<logic>_fetch<mode>): Likewise.
3821 (atomic_fetch_nand<mode>): Likewise.
3822 (atomic_nand_fetch<mode>): Likewise.
3823 (atomic_fetch_<logic><mode>): New expander for DI,TI modes.
3824 (atomic_<logic>_fetch<mode>): Likewise.
3825 (atomic_fetch_nand<mode>): Likewise.
3826 (atomic_nand_fetch<mode>): Likewise.
3827 * doc/invoke.texi: Document -mrelax-cmpxchg-loop.
3828
3829 2021-11-15 Richard Biener <rguenther@suse.de>
3830
3831 PR tree-optimization/103219
3832 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit
3833 to determine the exit for the VN region.
3834
3835 2021-11-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3836
3837 * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c.
3838 (pass_data_vectorize): Likewise.
3839 (make_pass_vectorize): Likewise.
3840 * tree-vectorizer.c (vectorize_loops): Merge with
3841 pass_vectorize::execute and replace cfun occurences with fun param.
3842 (adjust_simduid_builtins): Add fun param, replace cfun occurences with
3843 fun, and adjust callers approrpiately.
3844 (note_simd_array_uses): Likewise.
3845 (vect_loop_dist_alias_call): Likewise.
3846 (set_uid_loop_bbs): Likewise.
3847 (vect_transform_loops): Likewise.
3848 (try_vectorize_loop_1): Likewise.
3849 (try_vectorize_loop): Likewise.
3850
3851 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3852
3853 PR target/103205
3854 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
3855 atomic_bit_test_and_complement<mode>,
3856 atomic_bit_test_and_reset<mode>): Use OPTAB_WIDEN instead of
3857 OPTAB_DIRECT.
3858
3859 2021-11-15 Maciej W. Rozycki <macro@embecosm.com>
3860
3861 * config/vax/vax.c (vax_lra_p): New prototype and function.
3862 (TARGET_LRA_P): Wire it.
3863 * config/vax/vax.opt (mlra): New option.
3864 * doc/invoke.texi (Option Summary, VAX Options): Document the
3865 new option.
3866
3867 2021-11-14 Jan Hubicka <jh@suse.cz>
3868
3869 * ipa-modref.h (struct modref_summary): Add nondeterministic
3870 and calls_interposable flags.
3871 * ipa-modref.c (modref_summary::modref_summary): Initialize new flags.
3872 (modref_summary::useful_p): Check new flags.
3873 (struct modref_summary_lto): Add nondeterministic and
3874 calls_interposable flags.
3875 (modref_summary_lto::modref_summary_lto): Initialize new flags.
3876 (modref_summary_lto::useful_p): Check new flags.
3877 (modref_summary::dump): Dump new flags.
3878 (modref_summary_lto::dump): Dump new flags.
3879 (ignore_nondeterminism_p): New function.
3880 (merge_call_side_effects): Merge new flags.
3881 (process_fnspec): Likewise.
3882 (analyze_load): Volatile access is nondeterministic.
3883 (analyze_store): Liekwise.
3884 (analyze_stmt): Volatile ASM is nondeterministic.
3885 (analyze_function): Clear new flags.
3886 (modref_summaries::duplicate): Duplicate new flags.
3887 (modref_summaries_lto::duplicate): Duplicate new flags.
3888 (modref_write): Stream new flags.
3889 (read_section): Stream new flags.
3890 (propagate_unknown_call): Update new flags.
3891 (modref_propagate_in_scc): Propagate new flags.
3892 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check
3893 calls_interposable.
3894 * tree-ssa-structalias.c (determine_global_memory_access):
3895 Likewise.
3896
3897 2021-11-14 Maciej W. Rozycki <macro@embecosm.com>
3898
3899 * config/vax/vax.h (SET_RATIO): New macro.
3900 * config/vax/vax.md (UNSPEC_SETMEM_FILL): New constant.
3901 (setmemhi): New expander.
3902 (setmemhi1): New insn and splitter.
3903 (*setmemhi1): New insn.
3904
3905 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
3906
3907 * ipa-modref-tree.c (modref_access_node::update_for_kills): New
3908 member function.
3909 (modref_access_node::merge_for_kills): Likewise.
3910 (modref_access_node::insert_kill): Likewise.
3911 * ipa-modref-tree.h (modref_access_node::update_for_kills,
3912 modref_access_node::merge_for_kills, modref_access_node::insert_kill):
3913 Declare.
3914 (modref_access_node::useful_for_kill): New member function.
3915 * ipa-modref.c (modref_summary::useful_p): Release useless kills.
3916 (lto_modref_summary): Add kills.
3917 (modref_summary::dump): Dump kills.
3918 (record_access): Add mdoref_access_node parameter.
3919 (record_access_lto): Likewise.
3920 (merge_call_side_effects): Merge kills.
3921 (analyze_call): Add ALWAYS_EXECUTED param and pass it around.
3922 (struct summary_ptrs): Add always_executed filed.
3923 (analyze_load): Update.
3924 (analyze_store): Update; record kills.
3925 (analyze_stmt): Add always_executed; record kills in clobbers.
3926 (analyze_function): Track always_executed.
3927 (modref_summaries::duplicate): Duplicate kills.
3928 (update_signature): Release kills.
3929 * ipa-modref.h (struct modref_summary): Add kills.
3930 * tree-ssa-alias.c (alias_stats): Add kill stats.
3931 (dump_alias_stats): Dump kill stats.
3932 (store_kills_ref_p): Break out from ...
3933 (stmt_kills_ref_p): Use it; handle modref info based kills.
3934
3935 2021-11-14 Aldy Hernandez <aldyh@redhat.com>
3936
3937 PR tree-optimization/103229
3938 * gimple-range-cache.cc (ssa_global_cache::clear): Do not pass
3939 null value to memset.
3940
3941 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
3942
3943 * ipa-modref-tree.c (modref_access_node::get_call_arg): New member
3944 function.
3945 (modref_access_node::get_ao_ref): Likewise.
3946 * ipa-modref-tree.h (modref_access_node::get_call_arg): Declare.
3947 (modref_access_node::get_ao_ref): Declare.
3948 * tree-ssa-alias.c (modref_may_conflict): Use new accessors.
3949 * tree-ssa-dse.c (dse_optimize_call): Use new accessors.
3950
3951 2021-11-13 Jan Hubicka <jh@suse.cz>
3952
3953 PR lto/103211
3954 * dbgcnt.def (ipa_attr): New counters.
3955 * ipa-pure-const.c: Include dbgcnt.c
3956 (ipa_make_function_const): Use debug counter.
3957 (ipa_make_function_pure): Likewise.
3958 (propagate_pure_const): Fix bug in my previous change.
3959
3960 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3961
3962 * ipa-modref-tree.c (modref_access_node::range_info_useful_p):
3963 Offline from ipa-modref-tree.h.
3964 (modref_access_node::dump): Move from ipa-modref.c; make member
3965 function.
3966 * ipa-modref-tree.h (modref_access_node::range_info_useful_p.
3967 modref_access_node::dump): Declare.
3968 * ipa-modref.c (dump_access): Remove.
3969 (dump_records): Update.
3970 (dump_lto_records): Update.
3971 (record_access): Update.
3972 (record_access_lto): Update.
3973
3974 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3975
3976 * ipa-modref.c (modref_summary::modref_summary): Clear new flags.
3977 (modref_summary::dump): Dump try_dse.
3978 (modref_summary::finalize): Add FUN attribute; compute try-dse.
3979 (analyze_function): Update.
3980 (read_section): Update.
3981 (update_signature): Update.
3982 (pass_ipa_modref::execute): Update.
3983 * ipa-modref.h (struct modref_summary):
3984 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Export.
3985 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_range): Declare.
3986 * tree-ssa-dse.c (dse_optimize_call): New function.
3987 (dse_optimize_stmt): Use it.
3988
3989 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3990
3991 * ipa-modref-tree.c: Move #if CHECKING_P to proper place.
3992
3993 2021-11-13 Jan Hubicka <jh@suse.cz>
3994
3995 * ipa-modref-tree.h
3996 (struct modref_access_node): Move longer member functions to
3997 ipa-modref-tree.c
3998 (modref_ref_node::try_merge_with): Turn into modreef_acces_node member
3999 function.
4000 * ipa-modref-tree.c (modref_access_node::contains): Move here
4001 from ipa-modref-tree.h.
4002 (modref_access_node::update): Likewise.
4003 (modref_access_node::merge): Likewise.
4004 (modref_access_node::closer_pair_p): Likewise.
4005 (modref_access_node::forced_merge): Likewise.
4006 (modref_access_node::update2): Likewise.
4007 (modref_access_node::combined_offsets): Likewise.
4008 (modref_access_node::try_merge_with): Likewise.
4009 (modref_access_node::insert): Likewise.
4010
4011 2021-11-13 Jan Hubicka <jh@suse.cz>
4012
4013 * ipa-modref.c (modref_summary::global_memory_read_p): Remove.
4014 (modref_summary::global_memory_written_p): Remove.
4015 (modref_summary::dump): Dump new flags.
4016 (modref_summary::finalize): New member function.
4017 (analyze_function): Call it.
4018 (read_section): Call it.
4019 (update_signature): Call it.
4020 (pass_ipa_modref::execute): Call it.
4021 * ipa-modref.h (struct modref_summary): Remove
4022 global_memory_read_p and global_memory_written_p.
4023 Add global_memory_read, global_memory_written.
4024 * tree-ssa-structalias.c (determine_global_memory_access):
4025 Update.
4026
4027 2021-11-13 Jan Hubicka <jh@suse.cz>
4028
4029 * ipa-fnsummary.c (compute_fn_summary): Use type_attribut_allowed_p
4030 * ipa-param-manipulation.c
4031 (ipa_param_adjustments::type_attribute_allowed_p):
4032 New member function.
4033 (drop_type_attribute_if_params_changed_p): New function.
4034 (build_adjusted_function_type): Use it.
4035 * ipa-param-manipulation.h: Add type_attribute_allowed_p.
4036
4037 2021-11-13 David Malcolm <dmalcolm@redhat.com>
4038
4039 * doc/invoke.texi (Static Analyzer Options): Add
4040 -Wno-analyzer-tainted-allocation-size,
4041 -Wno-analyzer-tainted-divisor, -Wno-analyzer-tainted-offset, and
4042 -Wno-analyzer-tainted-size to list. Add
4043 -Wanalyzer-tainted-allocation-size, -Wanalyzer-tainted-divisor,
4044 -Wanalyzer-tainted-offset, and -Wanalyzer-tainted-size to list
4045 of options effectively enabled by -fanalyzer.
4046 (-Wanalyzer-tainted-allocation-size): New.
4047 (-Wanalyzer-tainted-array-index): Tweak wording; add link to CWE.
4048 (-Wanalyzer-tainted-divisor): New.
4049 (-Wanalyzer-tainted-offset): New.
4050 (-Wanalyzer-tainted-size): New.
4051
4052 2021-11-13 Jan Hubicka <jh@suse.cz>
4053
4054 * attr-fnspec.h (attr_fnspec::arg_eaf_flags): Break out from ...
4055 * gimple.c (gimple_call_arg_flags): ... here.
4056 * ipa-modref.c (analyze_parms): Record flags known from fnspec.
4057 (modref_merge_call_site_flags): Use arg_eaf_flags.
4058
4059 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
4060
4061 PR tree-optimization/103222
4062 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
4063 New.
4064 (path_range_query::compute_ranges_in_block): Call
4065 compute_ranges_in_phis.
4066 * gimple-range-path.h (path_range_query::compute_ranges_in_phis):
4067 New.
4068
4069 2021-11-13 Jan Hubicka <jh@suse.cz>
4070
4071 * ipa-fnsummary.c (compute_fn_summary): Do not give up on signature
4072 changes on "fn spec" attribute; give up on varadic types.
4073 * ipa-param-manipulation.c: Include attribs.h.
4074 (build_adjusted_function_type): New parameter ARG_MODIFIED; if it is
4075 true remove "fn spec" attribute.
4076 (ipa_param_adjustments::build_new_function_type): Update.
4077 (ipa_param_body_adjustments::modify_formal_parameters): update.
4078 * ipa-sra.c: Include attribs.h.
4079 (ipa_sra_preliminary_function_checks): Do not check for TYPE_ATTRIBUTES.
4080
4081 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
4082
4083 * gimple-range-path.cc (path_range_query::path_range_query): Merge
4084 ctors.
4085 (path_range_query::import_p): Move from header file.
4086 (path_range_query::~path_range_query): Adjust for combined ctors.
4087 * gimple-range-path.h: Merge ctors.
4088 (path_range_query::import_p): Move to .cc file.
4089
4090 2021-11-13 Jan Hubicka <jh@suse.cz>
4091
4092 PR tree-optimization/103182
4093 * ipa-modref.c (callee_to_caller_flags): Fix merging of flags.
4094 (modref_eaf_analysis::analyze_ssa_name): Fix merging of flags.
4095
4096 2021-11-12 Stafford Horne <shorne@gmail.com>
4097
4098 * config/or1k/or1k-protos.h (or1k_profile_hook): New function.
4099 * config/or1k/or1k.h (PROFILE_HOOK): Change macro to reference
4100 new function or1k_profile_hook.
4101 * config/or1k/or1k.c (struct machine_function): Add new field
4102 set_mcount_arg_insn.
4103 (or1k_profile_hook): New function.
4104 (or1k_init_pic_reg): Update to inject pic rtx after _mcount arg
4105 when profiling.
4106 (or1k_frame_pointer_required): Frame pointer no longer needed
4107 when profiling.
4108
4109 2021-11-12 Jan Hubicka <jh@suse.cz>
4110
4111 PR tree-optimization/103209
4112 * tree-ssa-structalias.c (find_func_aliases_for_call): Fix
4113 use of handle_rhs_call
4114
4115 2021-11-12 Aldy Hernandez <aldyh@redhat.com>
4116
4117 PR tree-optimization/103202
4118 * gimple-range-path.cc
4119 (path_range_query::compute_ranges_in_block): Solve PHI imports first.
4120
4121 2021-11-12 Jan Hubicka <jh@suse.cz>
4122
4123 * ipa-pure-const.c (propagate_pure_const): Remove redundant check;
4124 fix call of ipa_make_function_const and ipa_make_function_pure.
4125
4126 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4127
4128 * config/aarch64/aarch64.c (aarch64_vector_op::n_advsimd_ops): Delete.
4129 (aarch64_vector_op::m_seen_loads): Likewise.
4130 (aarch64_vector_costs::aarch64_vector_costs): Don't push to
4131 m_advsimd_ops.
4132 (aarch64_vector_op::count_ops): Remove vectype and factor parameters.
4133 Remove code that tries to predict different vec_flags from the
4134 current loop's.
4135 (aarch64_vector_costs::add_stmt_cost): Update accordingly.
4136 Remove m_advsimd_ops handling.
4137
4138 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4139
4140 * config/aarch64/aarch64.c (aarch64_vector_costs::m_saw_sve_only_op)
4141 (aarch64_sve_only_stmt_p): Delete.
4142 (aarch64_vector_costs::prefer_unrolled_loop): New function,
4143 extracted from adjust_body_cost.
4144 (aarch64_vector_costs::better_main_loop_than_p): New function,
4145 using heuristics extracted from adjust_body_cost and
4146 adjust_body_cost_sve.
4147 (aarch64_vector_costs::adjust_body_cost_sve): Remove
4148 advsimd_cycles_per_iter and could_use_advsimd parameters.
4149 Update after changes above.
4150 (aarch64_vector_costs::adjust_body_cost): Update after changes above.
4151
4152 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4153
4154 * config/aarch64/aarch64.c (aarch64_vec_op_count::m_vf_factor):
4155 New member variable.
4156 (aarch64_vec_op_count::aarch64_vec_op_count): Add a parameter for it.
4157 (aarch64_vec_op_count::vf_factor): New function.
4158 (aarch64_vector_costs::aarch64_vector_costs): When costing for
4159 neoverse-512tvb, pass a vf_factor of 2 for the Neoverse V1 version
4160 of an SVE loop.
4161 (aarch64_vector_costs::adjust_body_cost): Read the vf factor
4162 instead of hard-coding 2.
4163
4164 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4165
4166 * config/aarch64/aarch64.c
4167 (aarch64_vec_op_count::rename_cycles_per_iter): New function.
4168 (aarch64_vec_op_count::min_nonpred_cycles_per_iter): Likewise.
4169 (aarch64_vec_op_count::min_pred_cycles_per_iter): Likewise.
4170 (aarch64_vec_op_count::min_cycles_per_iter): Likewise.
4171 (aarch64_vec_op_count::dump): Move earlier in file. Dump the
4172 above properties too.
4173 (aarch64_estimate_min_cycles_per_iter): Delete.
4174 (adjust_body_cost): Use aarch64_vec_op_count::min_cycles_per_iter
4175 instead of aarch64_estimate_min_cycles_per_iter. Rely on the dump
4176 routine to print CPI estimates.
4177 (adjust_body_cost_sve): Likewise. Use the other functions above
4178 instead of doing the work inline.
4179
4180 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4181
4182 * config/aarch64/aarch64.c (aarch64_vec_op_count): Allow default
4183 initialization.
4184 (aarch64_vec_op_count::base_issue_info): Remove handling of null
4185 issue_infos.
4186 (aarch64_vec_op_count::simd_issue_info): Likewise.
4187 (aarch64_vec_op_count::sve_issue_info): Likewise.
4188 (aarch64_vector_costs::m_ops): Turn into a vector.
4189 (aarch64_vector_costs::m_advsimd_ops): Likewise.
4190 (aarch64_vector_costs::aarch64_vector_costs): Add entries to
4191 the vectors based on aarch64_tune_params.
4192 (aarch64_vector_costs::analyze_loop_vinfo): Update the pred_ops
4193 of all entries in m_ops.
4194 (aarch64_vector_costs::add_stmt_cost): Call count_ops for all
4195 entries in m_ops.
4196 (aarch64_estimate_min_cycles_per_iter): Remove issue_info
4197 parameter and get the information from the ops instead.
4198 (aarch64_vector_costs::adjust_body_cost_sve): Take a
4199 aarch64_vec_issue_info instead of a aarch64_vec_op_count.
4200 (aarch64_vector_costs::adjust_body_cost): Update call accordingly.
4201 Exit earlier if m_ops is empty for either cost structure.
4202
4203 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4204
4205 * config/aarch64/aarch64.c (aarch64_vector_costs::m_scalar_ops)
4206 (aarch64_vector_costs::m_sve_ops): Replace with...
4207 (aarch64_vector_costs::m_ops): ...this.
4208 (aarch64_vector_costs::analyze_loop_vinfo): Update accordingly.
4209 (aarch64_vector_costs::adjust_body_cost_sve): Likewise.
4210 (aarch64_vector_costs::aarch64_vector_costs): Likewise.
4211 Initialize m_vec_flags here rather than in add_stmt_cost.
4212 (aarch64_vector_costs::count_ops): Test for scalar reductions too.
4213 Allow vectype to be null.
4214 (aarch64_vector_costs::add_stmt_cost): Call count_ops for scalar
4215 code too. Don't require vectype to be nonnull.
4216 (aarch64_vector_costs::adjust_body_cost): Take the loop_vec_info
4217 and scalar costs as parameters. Use the scalar costs to determine
4218 the cycles per iteration of the scalar loop, then multiply it
4219 by the estimated VF.
4220 (aarch64_vector_costs::finish_cost): Update call accordingly.
4221
4222 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4223
4224 * config/aarch64/aarch64.c (aarch64_dr_type): New function.
4225 (aarch64_vector_costs::count_ops): Use it rather than the
4226 vectype to determine floatness.
4227
4228 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4229
4230 * config/aarch64/aarch64.c (aarch64_sve_in_loop_reduction_latency):
4231 Remove vectype parameter and get floatness from the type of the
4232 stmt lhs instead.
4233 (arch64_in_loop_reduction_latency): Likewise.
4234 (aarch64_detect_vector_stmt_subtype): Update caller.
4235 (aarch64_vector_costs::count_ops): Likewise.
4236
4237 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4238
4239 * config/aarch64/aarch64.c (aarch64_sve_op_count): Fold into...
4240 (aarch64_vec_op_count): ...this. Add a constructor.
4241 (aarch64_vec_op_count::vec_flags): New function.
4242 (aarch64_vec_op_count::base_issue_info): Likewise.
4243 (aarch64_vec_op_count::simd_issue_info): Likewise.
4244 (aarch64_vec_op_count::sve_issue_info): Likewise.
4245 (aarch64_vec_op_count::m_issue_info): New member variable.
4246 (aarch64_vec_op_count::m_vec_flags): Likewise.
4247 (aarch64_vector_costs): Add a constructor.
4248 (aarch64_vector_costs::m_sve_ops): Change type to aarch64_vec_op_count.
4249 (aarch64_vector_costs::aarch64_vector_costs): New function.
4250 Initialize m_scalar_ops, m_advsimd_ops and m_sve_ops.
4251 (aarch64_vector_costs::count_ops): Remove vec_flags and
4252 issue_info parameters, using the new aarch64_vec_op_count
4253 functions instead.
4254 (aarch64_vector_costs::add_stmt_cost): Update call accordingly.
4255 (aarch64_sve_op_count::dump): Fold into...
4256 (aarch64_vec_op_count::dump): ..here.
4257
4258 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
4259
4260 * config/aarch64/aarch64.c: Include tree-dfa.h.
4261 (aarch64_check_consecutive_mems): New function that takes MEM_EXPR
4262 and MEM_OFFSET into account.
4263 (aarch64_swap_ldrstr_operands): Use it.
4264 (aarch64_operands_ok_for_ldpstp): Likewise. Check that the
4265 address of the second memory doesn't depend on the result of
4266 the first load.
4267
4268 2021-11-12 Jan Hubicka <hubicka@ucw.cz>
4269
4270 * ipa-pure-const.c (ipa_make_function_pure): Fix exit condition.
4271
4272 2021-11-12 Jan Hubicka <jh@suse.cz>
4273
4274 PR tree-optimization/103175
4275 * ipa-modref.c (modref_lattice::merge): Add sanity check.
4276 (callee_to_caller_flags): Make flags adjustment sane.
4277 (modref_eaf_analysis::analyze_ssa_name): Likewise.
4278
4279 2021-11-12 Jan Hubicka <jh@suse.cz>
4280
4281 PR ipa/103200
4282 * ipa-modref.c (analyze_function, modref_propagate_in_scc): Do
4283 not mark pure/const function if there are side-effects.
4284
4285 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4286
4287 * tree.h (OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P): New access macro for
4288 'implicit' bit, using 'base.deprecated_flag' field of tree_node.
4289 * tree-pretty-print.c (dump_omp_clause): Add support for printing
4290 implicit attribute in tree dumping.
4291 * gimplify.c (gimplify_adjust_omp_clauses_1):
4292 Set OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P to 1 if map clause is implicitly
4293 created.
4294 (gimplify_adjust_omp_clauses): Adjust place of adding implicitly created
4295 clauses, from simple append, to starting of list, after non-map clauses.
4296 * omp-low.c (lower_omp_target): Add GOMP_MAP_IMPLICIT bits into kind
4297 values passed to libgomp for implicit maps.
4298
4299 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4300
4301 * omp-builtins.def (BUILT_IN_GOMP_TEAMS): Remove.
4302 (BUILT_IN_GOMP_TEAMS4): New.
4303 * builtin-types.def (BT_FN_VOID_UINT_UINT): Remove.
4304 (BT_FN_BOOL_UINT_UINT_UINT_BOOL): New.
4305 * omp-low.c (lower_omp_teams): Use GOMP_teams4 instead of
4306 GOMP_teams, pass to it also num_teams lower-bound expression
4307 or a dup of upper-bound if it is missing and a flag whether
4308 it is the first call or not.
4309
4310 2021-11-12 Martin Liska <mliska@suse.cz>
4311
4312 PR tree-optimization/102497
4313 * gimple-predicate-analysis.cc (add_pred): Remove unused
4314 function:
4315
4316 2021-11-12 Richard Biener <rguenther@suse.de>
4317
4318 PR tree-optimization/103204
4319 * tree-ssa-sccvn.c (valueize_refs_1): Re-valueize the
4320 top operand after folding in an address.
4321
4322 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
4323
4324 * gimple-range-path.cc (path_range_query::path_range_query): New
4325 ctor without a ranger.
4326 (path_range_query::~path_range_query): Free ranger if necessary.
4327 (path_range_query::range_on_path_entry): Adjust m_ranger for pointer.
4328 (path_range_query::ssa_range_in_phi): Same.
4329 (path_range_query::compute_ranges_in_block): Same.
4330 (path_range_query::compute_imports): Same.
4331 (path_range_query::compute_ranges): Same.
4332 (path_range_query::range_of_stmt): Same.
4333 (path_range_query::compute_outgoing_relations): Same.
4334 * gimple-range-path.h (class path_range_query): New ctor.
4335 * tree-ssa-loop-ch.c (ch_base::copy_headers): Remove gimple_ranger
4336 as path_range_query allocates one.
4337 * tree-ssa-threadbackward.c (class back_threader): Remove m_ranger.
4338 (back_threader::~back_threader): Same.
4339
4340 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
4341
4342 * tree-ssa-threadbackward.c
4343 (back_threader_profitability::profitable_path_p): Remove loop
4344 crossing restriction.
4345
4346 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
4347
4348 * ipa-modref.c (analyze_function): Do pure/const discovery, return
4349 true on success.
4350 (pass_modref::execute): If pure/const is discovered fixup cfg.
4351 (ignore_edge): Do not ignore pure/const edges.
4352 (modref_propagate_in_scc): Do pure/const discovery, return true if
4353 cdtor was promoted pure/const.
4354 (pass_ipa_modref::execute): If needed remove unreachable functions.
4355 * ipa-pure-const.c (warn_function_noreturn): Fix whitespace.
4356 (warn_function_cold): Likewise.
4357 (skip_function_for_local_pure_const): Move earlier.
4358 (ipa_make_function_const): Break out from ...
4359 (ipa_make_function_pure): Break out from ...
4360 (propagate_pure_const): ... here.
4361 (pass_local_pure_const::execute): Use it.
4362 * ipa-utils.h (ipa_make_function_const): Declare.
4363 (ipa_make_function_pure): Declare.
4364 * passes.def: Move early modref after pure-const.
4365
4366 2021-11-11 David Malcolm <dmalcolm@redhat.com>
4367
4368 PR other/103129
4369 * diagnostic-show-locus.c (def_policy): Use def_tabstop.
4370
4371 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4372
4373 * config/aarch64/aarch64-builtins.c (TYPES_COMBINE): Delete.
4374 (TYPES_COMBINEP): Delete.
4375 * config/aarch64/aarch64-simd-builtins.def: Declare type-
4376 qualified builtins for vcombine_* intrinsics.
4377 * config/aarch64/arm_neon.h (vcombine_s8): Remove unnecessary
4378 cast.
4379 (vcombine_s16): Likewise.
4380 (vcombine_s32): Likewise.
4381 (vcombine_f32): Likewise.
4382 (vcombine_u8): Use type-qualified builtin and remove casts.
4383 (vcombine_u16): Likewise.
4384 (vcombine_u32): Likewise.
4385 (vcombine_u64): Likewise.
4386 (vcombine_p8): Likewise.
4387 (vcombine_p16): Likewise.
4388 (vcombine_p64): Likewise.
4389 (vcombine_bf16): Remove unnecessary cast.
4390 * config/aarch64/iterators.md (VD_I): New mode iterator.
4391 (VDC_P): New mode iterator.
4392
4393 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4394
4395 * config/aarch64/aarch64-builtins.c (TYPES_LOAD1_U): Define.
4396 (TYPES_LOAD1_P): Define.
4397 (TYPES_STORE1_U): Define.
4398 (TYPES_STORE1P): Rename to...
4399 (TYPES_STORE1_P): This.
4400 (get_mem_type_for_load_store): Add unsigned and poly types.
4401 (aarch64_general_gimple_fold_builtin): Add unsigned and poly
4402 type-qualified builtin declarations.
4403 * config/aarch64/aarch64-simd-builtins.def: Declare type-
4404 qualified builtins for LD1/ST1.
4405 * config/aarch64/arm_neon.h (vld1_p8): Use type-qualified
4406 builtin and remove cast.
4407 (vld1_p16): Likewise.
4408 (vld1_u8): Likewise.
4409 (vld1_u16): Likewise.
4410 (vld1_u32): Likewise.
4411 (vld1q_p8): Likewise.
4412 (vld1q_p16): Likewise.
4413 (vld1q_p64): Likewise.
4414 (vld1q_u8): Likewise.
4415 (vld1q_u16): Likewise.
4416 (vld1q_u32): Likewise.
4417 (vld1q_u64): Likewise.
4418 (vst1_p8): Likewise.
4419 (vst1_p16): Likewise.
4420 (vst1_u8): Likewise.
4421 (vst1_u16): Likewise.
4422 (vst1_u32): Likewise.
4423 (vst1q_p8): Likewise.
4424 (vst1q_p16): Likewise.
4425 (vst1q_p64): Likewise.
4426 (vst1q_u8): Likewise.
4427 (vst1q_u16): Likewise.
4428 (vst1q_u32): Likewise.
4429 (vst1q_u64): Likewise.
4430 * config/aarch64/iterators.md (VALLP_NO_DI): New iterator.
4431
4432 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4433
4434 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
4435 builtins for vector reduction.
4436 * config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
4437 builtin and remove casts.
4438 (vaddv_u16): Likewise.
4439 (vaddv_u32): Likewise.
4440 (vaddvq_u8): Likewise.
4441 (vaddvq_u16): Likewise.
4442 (vaddvq_u32): Likewise.
4443 (vaddvq_u64): Likewise.
4444
4445 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4446
4447 * config/aarch64/aarch64-simd-builtins.def:
4448 * config/aarch64/arm_neon.h (vpaddq_u8): Use type-qualified
4449 builtin and remove casts.
4450 (vpaddq_u16): Likewise.
4451 (vpaddq_u32): Likewise.
4452 (vpaddq_u64): Likewise.
4453 (vpadd_u8): Likewise.
4454 (vpadd_u16): Likewise.
4455 (vpadd_u32): Likewise.
4456 (vpaddd_u64): Likewise.
4457
4458 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4459
4460 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
4461 builtins for [r]subhn[2].
4462 * config/aarch64/arm_neon.h (vsubhn_s16): Remove unnecessary
4463 cast.
4464 (vsubhn_s32): Likewise.
4465 (vsubhn_s64): Likewise.
4466 (vsubhn_u16): Use type-qualified builtin and remove casts.
4467 (vsubhn_u32): Likewise.
4468 (vsubhn_u64): Likewise.
4469 (vrsubhn_s16): Remove unnecessary cast.
4470 (vrsubhn_s32): Likewise.
4471 (vrsubhn_s64): Likewise.
4472 (vrsubhn_u16): Use type-qualified builtin and remove casts.
4473 (vrsubhn_u32): Likewise.
4474 (vrsubhn_u64): Likewise.
4475 (vrsubhn_high_s16): Remove unnecessary cast.
4476 (vrsubhn_high_s32): Likewise.
4477 (vrsubhn_high_s64): Likewise.
4478 (vrsubhn_high_u16): Use type-qualified builtin and remove
4479 casts.
4480 (vrsubhn_high_u32): Likewise.
4481 (vrsubhn_high_u64): Likewise.
4482 (vsubhn_high_s16): Remove unnecessary cast.
4483 (vsubhn_high_s32): Likewise.
4484 (vsubhn_high_s64): Likewise.
4485 (vsubhn_high_u16): Use type-qualified builtin and remove
4486 casts.
4487 (vsubhn_high_u32): Likewise.
4488 (vsubhn_high_u64): Likewise.
4489
4490 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4491
4492 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
4493 builtins for [r]addhn[2].
4494 * config/aarch64/arm_neon.h (vaddhn_s16): Remove unnecessary
4495 cast.
4496 (vaddhn_s32): Likewise.
4497 (vaddhn_s64): Likewise.
4498 (vaddhn_u16): Use type-qualified builtin and remove casts.
4499 (vaddhn_u32): Likewise.
4500 (vaddhn_u64): Likewise.
4501 (vraddhn_s16): Remove unnecessary cast.
4502 (vraddhn_s32): Likewise.
4503 (vraddhn_s64): Likewise.
4504 (vraddhn_u16): Use type-qualified builtin and remove casts.
4505 (vraddhn_u32): Likewise.
4506 (vraddhn_u64): Likewise.
4507 (vaddhn_high_s16): Remove unnecessary cast.
4508 (vaddhn_high_s32): Likewise.
4509 (vaddhn_high_s64): Likewise.
4510 (vaddhn_high_u16): Use type-qualified builtin and remove
4511 casts.
4512 (vaddhn_high_u32): Likewise.
4513 (vaddhn_high_u64): Likewise.
4514 (vraddhn_high_s16): Remove unnecessary cast.
4515 (vraddhn_high_s32): Likewise.
4516 (vraddhn_high_s64): Likewise.
4517 (vraddhn_high_u16): Use type-qualified builtin and remove
4518 casts.
4519 (vraddhn_high_u32): Likewise.
4520 (vraddhn_high_u64): Likewise.
4521
4522 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4523
4524 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
4525 qualifiers in generator macros for uhsub builtins.
4526 * config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
4527 cast.
4528 (vhsub_s16): Likewise.
4529 (vhsub_s32): Likewise.
4530 (vhsub_u8): Use type-qualified builtin and remove casts.
4531 (vhsub_u16): Likewise.
4532 (vhsub_u32): Likewise.
4533 (vhsubq_s8): Remove unnecessary cast.
4534 (vhsubq_s16): Likewise.
4535 (vhsubq_s32): Likewise.
4536 (vhsubq_u8): Use type-qualified builtin and remove casts.
4537 (vhsubq_u16): Likewise.
4538 (vhsubq_u32): Likewise.
4539
4540 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4541
4542 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
4543 qualifiers in generator macros for u[r]hadd builtins.
4544 * config/aarch64/arm_neon.h (vhadd_s8): Remove unnecessary
4545 cast.
4546 (vhadd_s16): Likewise.
4547 (vhadd_s32): Likewise.
4548 (vhadd_u8): Use type-qualified builtin and remove casts.
4549 (vhadd_u16): Likewise.
4550 (vhadd_u32): Likewise.
4551 (vhaddq_s8): Remove unnecessary cast.
4552 (vhaddq_s16): Likewise.
4553 (vhaddq_s32): Likewise.
4554 (vhaddq_u8): Use type-qualified builtin and remove casts.
4555 (vhaddq_u16): Likewise.
4556 (vhaddq_u32): Likewise.
4557 (vrhadd_s8): Remove unnecessary cast.
4558 (vrhadd_s16): Likewise.
4559 (vrhadd_s32): Likewise.
4560 (vrhadd_u8): Use type-qualified builtin and remove casts.
4561 (vrhadd_u16): Likewise.
4562 (vrhadd_u32): Likewise.
4563 (vrhaddq_s8): Remove unnecessary cast.
4564 (vrhaddq_s16): Likewise.
4565 (vrhaddq_s32): Likewise.
4566 (vrhaddq_u8): Use type-wualified builtin and remove casts.
4567 (vrhaddq_u16): Likewise.
4568 (vrhaddq_u32): Likewise.
4569
4570 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4571
4572 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
4573 qualifiers in generator macros for usub[lw][2] builtins.
4574 * config/aarch64/arm_neon.h (vsubl_s8): Remove unnecessary
4575 cast.
4576 (vsubl_s16): Likewise.
4577 (vsubl_s32): Likewise.
4578 (vsubl_u8): Use type-qualified builtin and remove casts.
4579 (vsubl_u16): Likewise.
4580 (vsubl_u32): Likewise.
4581 (vsubl_high_s8): Remove unnecessary cast.
4582 (vsubl_high_s16): Likewise.
4583 (vsubl_high_s32): Likewise.
4584 (vsubl_high_u8): Use type-qualified builtin and remove casts.
4585 (vsubl_high_u16): Likewise.
4586 (vsubl_high_u32): Likewise.
4587 (vsubw_s8): Remove unnecessary casts.
4588 (vsubw_s16): Likewise.
4589 (vsubw_s32): Likewise.
4590 (vsubw_u8): Use type-qualified builtin and remove casts.
4591 (vsubw_u16): Likewise.
4592 (vsubw_u32): Likewise.
4593 (vsubw_high_s8): Remove unnecessary cast.
4594 (vsubw_high_s16): Likewise.
4595 (vsubw_high_s32): Likewise.
4596 (vsubw_high_u8): Use type-qualified builtin and remove casts.
4597 (vsubw_high_u16): Likewise.
4598 (vsubw_high_u32): Likewise.
4599
4600 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4601
4602 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
4603 qualifiers in generator macros for uadd[lw][2] builtins.
4604 * config/aarch64/arm_neon.h (vaddl_s8): Remove unnecessary
4605 cast.
4606 (vaddl_s16): Likewise.
4607 (vaddl_s32): Likewise.
4608 (vaddl_u8): Use type-qualified builtin and remove casts.
4609 (vaddl_u16): Likewise.
4610 (vaddl_u32): Likewise.
4611 (vaddl_high_s8): Remove unnecessary cast.
4612 (vaddl_high_s16): Likewise.
4613 (vaddl_high_s32): Likewise.
4614 (vaddl_high_u8): Use type-qualified builtin and remove casts.
4615 (vaddl_high_u16): Likewise.
4616 (vaddl_high_u32): Likewise.
4617 (vaddw_s8): Remove unnecessary cast.
4618 (vaddw_s16): Likewise.
4619 (vaddw_s32): Likewise.
4620 (vaddw_u8): Use type-qualified builtin and remove casts.
4621 (vaddw_u16): Likewise.
4622 (vaddw_u32): Likewise.
4623 (vaddw_high_s8): Remove unnecessary cast.
4624 (vaddw_high_s16): Likewise.
4625 (vaddw_high_s32): Likewise.
4626 (vaddw_high_u8): Use type-qualified builtin and remove casts.
4627 (vaddw_high_u16): Likewise.
4628 (vaddw_high_u32): Likewise.
4629
4630 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4631
4632 * config/aarch64/aarch64-simd-builtins.def: Declare type-
4633 qualified builtins for [R]SHRN[2].
4634 * config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
4635 builtin and remove casts.
4636 (vshrn_n_u32): Likewise.
4637 (vshrn_n_u64): Likewise.
4638 (vrshrn_high_n_u16): Likewise.
4639 (vrshrn_high_n_u32): Likewise.
4640 (vrshrn_high_n_u64): Likewise.
4641 (vrshrn_n_u16): Likewise.
4642 (vrshrn_n_u32): Likewise.
4643 (vrshrn_n_u64): Likewise.
4644 (vshrn_high_n_u16): Likewise.
4645 (vshrn_high_n_u32): Likewise.
4646 (vshrn_high_n_u64): Likewise.
4647
4648 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4649
4650 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
4651 type-qualified builtins for XTN[2].
4652 * config/aarch64/arm_neon.h (vmovn_high_u16): Use type-
4653 qualified builtin and remove casts.
4654 (vmovn_high_u32): Likewise.
4655 (vmovn_high_u64): Likewise.
4656 (vmovn_u16): Likewise.
4657 (vmovn_u32): Likewise.
4658 (vmovn_u64): Likewise.
4659
4660 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4661
4662 * config/aarch64/aarch64-simd-builtins.def: Use poly type
4663 qualifier in builtin generator macros.
4664 * config/aarch64/arm_neon.h (vmul_p8): Use type-qualified
4665 builtin and remove casts.
4666 (vmulq_p8): Likewise.
4667 (vmull_high_p8): Likewise.
4668 (vmull_p8): Likewise.
4669
4670 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
4671
4672 * config/aarch64/aarch64-simd-builtins.def: Declare type-
4673 qualified builtin generators for unsigned MLA/MLS intrinsics.
4674 * config/aarch64/arm_neon.h (vmla_n_u16): Use type-qualified
4675 builtin.
4676 (vmla_n_u32): Likewise.
4677 (vmla_u8): Likewise.
4678 (vmla_u16): Likewise.
4679 (vmla_u32): Likewise.
4680 (vmlaq_n_u16): Likewise.
4681 (vmlaq_n_u32): Likewise.
4682 (vmlaq_u8): Likewise.
4683 (vmlaq_u16): Likewise.
4684 (vmlaq_u32): Likewise.
4685 (vmls_n_u16): Likewise.
4686 (vmls_n_u32): Likewise.
4687 (vmls_u8): Likewise.
4688 (vmls_u16): Likewise.
4689 (vmls_u32): Likewise.
4690 (vmlsq_n_u16): Likewise.
4691 (vmlsq_n_u32): Likewise.
4692 (vmlsq_u8): Likewise.
4693 (vmlsq_u16): Likewise.
4694 (vmlsq_u32): Likewise.
4695
4696 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
4697
4698 * ipa-modref.c (modref_summary::useful_p): Check also for side-effects
4699 with looping const/pure.
4700 (modref_summary_lto::useful_p): Likewise.
4701 (merge_call_side_effects): Merge side effects before early exit
4702 for pure/const.
4703 (process_fnspec): Also handle pure functions.
4704 (analyze_call): Do not early exit on looping pure const.
4705 (propagate_unknown_call): Also handle nontrivial SCC as side-effect.
4706 (modref_propagate_in_scc): Update.
4707
4708 2021-11-11 Richard Biener <rguenther@suse.de>
4709
4710 PR tree-optimization/103190
4711 * tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
4712
4713 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
4714
4715 * gimple-range-path.cc (path_range_query::add_copies_to_imports):
4716 Rename to...
4717 (path_range_query::compute_imports): ...this. Adapt it so it can
4718 be passed the imports bitmap instead of working on m_imports.
4719 (path_range_query::compute_ranges): Call compute_imports in all
4720 cases unless an imports bitmap is passed.
4721 * gimple-range-path.h (path_range_query::compute_imports): New.
4722 (path_range_query::add_copies_to_imports): Remove.
4723 * tree-ssa-threadbackward.c (back_threader::resolve_def): Remove.
4724 (back_threader::find_paths_to_names): Inline resolve_def.
4725 (back_threader::find_paths): Call compute_imports.
4726 (back_threader::resolve_phi): Adjust comment.
4727
4728 2021-11-11 Richard Biener <rguenther@suse.de>
4729
4730 PR tree-optimization/103188
4731 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
4732 Remove query parameter, split out check for size
4733 optimization.
4734 (ch_base::m_ranger, cb_base::m_query): Remove.
4735 (ch_base::copy_headers): Split processing loop into
4736 analysis around which we allocate and use ranger and
4737 transform where we do not.
4738 (pass_ch::execute): Do not allocate/free ranger here.
4739 (pass_ch_vect::execute): Likewise.
4740
4741 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
4742
4743 * ipa-pure-const.c (propagate_pure_const): Self recursion is
4744 a side effects.
4745
4746 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
4747
4748 * cgraph.c (set_noreturn_flag_1): New function.
4749 (cgraph_node::set_noreturn_flag): New member function
4750 * cgraph.h (cgraph_node::set_noreturn_flags): Declare.
4751 * ipa-pure-const.c (pass_local_pure_const::execute): Use it.
4752
4753 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
4754 Richard Biener <rguenther@suse.de>
4755
4756 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): Resolve
4757 statically to the edge remaining in the loop.
4758
4759 2021-11-11 Richard Biener <rguenther@suse.de>
4760
4761 PR middle-end/103181
4762 * tree-eh.c (operation_could_trap_helper_p): Properly
4763 check vector constants for a zero element for integer
4764 division. Separate floating point and integer division code.
4765
4766 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4767
4768 PR debug/101378
4769 * dwarf2out.c (field_byte_offset): Do the PCC_BITFIELD_TYPE_MATTERS
4770 handling only for DECL_BIT_FIELD_TYPE decls.
4771
4772 2021-11-11 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4773
4774 PR target/102376
4775 * config/aarch64/aarch64.c (aarch64_process_target_attr): Check if
4776 token is arch extension without leading '+' and emit appropriate
4777 diagnostic for the same.
4778
4779 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4780
4781 * tree.h (OMP_CLAUSE_NUM_TEAMS_EXPR): Rename to ...
4782 (OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR): ... this.
4783 (OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR): Define.
4784 * tree.c (omp_clause_num_ops): Increase num ops for
4785 OMP_CLAUSE_NUM_TEAMS to 2.
4786 * tree-pretty-print.c (dump_omp_clause): Print optional lower bound
4787 for OMP_CLAUSE_NUM_TEAMS.
4788 * gimplify.c (gimplify_scan_omp_clauses): Gimplify
4789 OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR if non-NULL.
4790 (optimize_target_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead
4791 of OMP_CLAUSE_NUM_TEAMS_EXPR. Handle OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
4792 * omp-low.c (lower_omp_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR
4793 instead of OMP_CLAUSE_NUM_TEAMS_EXPR.
4794 * omp-expand.c (expand_teams_call, get_target_arguments): Likewise.
4795
4796 2021-11-11 Richard Biener <rguenther@suse.de>
4797
4798 * cfganal.c (find_pdom): Remove.
4799 (control_dependences::find_control_dependence): Remove
4800 special-casing of entry block, call get_immediate_dominator
4801 directly.
4802 * gimple-predicate-analysis.cc (find_pdom): Remove.
4803 (find_dom): Likewise.
4804 (find_control_equiv_block): Call get_immediate_dominator
4805 directly.
4806 (compute_control_dep_chain): Likewise.
4807 (predicate::init_from_phi_def): Likewise.
4808
4809 2021-11-11 Richard Biener <rguenther@suse.de>
4810
4811 * cfganal.h (control_dependences::control_dependence_map):
4812 Embed bitmap_head.
4813 (control_dependences::m_bitmaps): New.
4814 * cfganal.c (control_dependences::set_control_dependence_map_bit):
4815 Adjust.
4816 (control_dependences::clear_control_dependence_bitmap):
4817 Likewise.
4818 (control_dependences::find_control_dependence): Do not
4819 find_edge for the abnormal edge test.
4820 (control_dependences::control_dependences): Instead do not
4821 add abnormal edges to the edge list. Adjust.
4822 (control_dependences::~control_dependences): Likewise.
4823 (control_dependences::get_edges_dependent_on): Likewise.
4824 * function-tests.c: Include bitmap.h.
4825
4826 2021-11-11 Kewen Lin <linkw@linux.ibm.com>
4827
4828 * doc/invoke.texi: Change references to "future cpu" to "power10",
4829 "-mcpu=future" to "-mcpu=power10". Adjust words for float128.
4830
4831 2021-11-11 Cui,Lili <lili.cui@intel.com>
4832
4833 * config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
4834 from m_CORE_AVX2.
4835 (processor_cost_table): Use alderlake_cost for Alderlake.
4836 * config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
4837 * config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
4838 cost.
4839 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
4840 issue rate to 4.
4841 (ix86_adjust_cost): Handle Alderlake.
4842 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
4843 (X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
4844 (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
4845 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
4846 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4847 (X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
4848 (X86_TUNE_USE_LEAVE): Likewise.
4849 (X86_TUNE_PUSH_MEMORY): Likewise.
4850 (X86_TUNE_USE_INCDEC): Likewise.
4851 (X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
4852 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
4853 (X86_TUNE_USE_SAHF): Likewise.
4854 (X86_TUNE_USE_BT): Likewise.
4855 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
4856 (X86_TUNE_ONE_IF_CONV_INSN): Likewise.
4857 (X86_TUNE_AVOID_MFENCE): Likewise.
4858 (X86_TUNE_USE_SIMODE_FIOP): Likewise.
4859 (X86_TUNE_EXT_80387_CONSTANTS): Likewise.
4860 (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
4861 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
4862 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
4863 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
4864 (X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
4865 (X86_TUNE_USE_GATHER): Disable for Alderlake.
4866 (X86_TUNE_AVX256_MOVE_BY_PIECES): Likewise.
4867 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
4868
4869 2021-11-11 liuhongt <hongtao.liu@intel.com>
4870
4871 PR target/103151
4872 * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
4873 (avxsizesuffix): Ditto.
4874
4875 2021-11-11 Kito Cheng <kito.cheng@sifive.com>
4876
4877 * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix
4878 wrong marco checking.
4879
4880 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4881
4882 PR tree-optimization/102906
4883 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
4884 (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
4885 (class ch_base): Add m_ranger and m_query.
4886 (ch_base::copy_headers): Pass m_query to
4887 entry_loop_condition_is_static.
4888 (pass_ch::execute): Allocate and deallocate m_ranger and
4889 m_query.
4890 (pass_ch_vect::execute): Same.
4891
4892 2021-11-10 Andrew Pinski <apinski@marvell.com>
4893
4894 PR target/103170
4895 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
4896 Use vwcore iterator for the r constraint output string.
4897
4898 2021-11-10 qing zhao <qing.zhao@oracle.com>
4899
4900 * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
4901 only when have_insn_for return true for the mode. Fix a memory leak.
4902
4903 2021-11-10 Christophe Lyon <christophe.lyon@foss.st.com>
4904
4905 * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
4906 cortexa5_extra_costs, cortexa7_extra_costs,
4907 cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
4908 Initialize movi, dup and extract costing fields.
4909
4910 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4911
4912 * gimple-range-path.cc (path_range_query::path_range_query): Do
4913 not init m_path.
4914 (path_range_query::dump): Change m_path uses to non-pointer.
4915 (path_range_query::defined_outside_path): Same.
4916 (path_range_query::set_path): Same.
4917 (path_range_query::add_copies_to_imports): Same.
4918 (path_range_query::range_of_stmt): Same.
4919 (path_range_query::compute_outgoing_relations): Same.
4920 (path_range_query::compute_ranges): Imports are now optional.
4921 Implement overload that takes an edge.
4922 * gimple-range-path.h (class path_range_query): Make imports
4923 optional for compute_ranges. Add compute_ranges(edge) overload.
4924 Make m_path an auto_vec instead of a pointer and adjust
4925 accordingly.
4926
4927 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4928
4929 * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
4930 (default_hash_traits<scalar_conf_masked_key>): Likewise.
4931 * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
4932 is live.
4933 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4934 Register mask inverses.
4935
4936 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4937
4938 * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
4939 successful vectorization.
4940
4941 2021-11-10 Andrew MacLeod <amacleod@redhat.com>
4942
4943 * gimple-range-cache.cc (sbr_vector::grow): New.
4944 (sbr_vector::set_bb_range): Call grow.
4945 (sbr_vector::get_bb_range): Same.
4946 (sbr_vector::bb_range_p): Remove assert.
4947
4948 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4949
4950 * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
4951 ,*aarch64_topbits_shuffle<mode>_be): Remove.
4952
4953 2021-11-10 Jan Hubicka <jh@suse.cz>
4954
4955 * ipa-modref.c: Include tree-eh.h
4956 (modref_summary::modref_summary): Initialize side_effects.
4957 (struct modref_summary_lto): New bool field side_effects.
4958 (modref_summary_lto::modref_summary_lto): Initialize side_effects.
4959 (modref_summary::dump): Dump side_effects.
4960 (modref_summary_lto::dump): Dump side_effects.
4961 (merge_call_side_effects): Merge side effects.
4962 (process_fnspec): Calls to non-const/pure or looping
4963 function is a side effect.
4964 (analyze_call): Self-recursion is a side-effect; handle
4965 special builtins.
4966 (analyze_load): Watch for volatile and throwing memory.
4967 (analyze_store): Likewise.
4968 (analyze_stmt): Watch for volatitle asm.
4969 (analyze_function): Handle side_effects.
4970 (modref_summaries::duplicate): Duplicate side_effects.
4971 (modref_summaries_lto::duplicate): Likewise.
4972 (modref_write): Stream side_effects.
4973 (read_section): Likewise.
4974 (update_signature): Update.
4975 (propagate_unknown_call): Handle side_effects.
4976 (modref_propagate_in_scc): Likewise.
4977 * ipa-modref.h (struct modref_summary): Add side_effects.
4978 * ipa-pure-const.c (special_builtin_state): Rename to ...
4979 (builtin_safe_for_const_function_p): ... this one.
4980 (check_call): Update.
4981 (finite_function_p): Break out from ...
4982 (propagate_pure_const): ... here
4983 * ipa-utils.h (finite_function): Declare.
4984
4985 2021-11-10 Lucas A. M. Magalhães <lamm@linux.ibm.com>
4986
4987 * config.gcc (powerpc*-*-*): Remove -rpath from
4988 --with-advance-toolchain.
4989
4990 2021-11-10 Marek Polacek <polacek@redhat.com>
4991
4992 PR c++/101940
4993 * attribs.c (struct scoped_attributes): Add a bool member.
4994 (lookup_scoped_attribute_spec): Forward declare.
4995 (register_scoped_attributes): New bool parameter, defaulted to
4996 false. Use it.
4997 (handle_ignored_attributes_option): New function.
4998 (free_attr_data): New function.
4999 (init_attributes): Call handle_ignored_attributes_option.
5000 (attr_namespace_ignored_p): New function.
5001 (decl_attributes): Check attr_namespace_ignored_p before
5002 warning.
5003 * attribs.h (free_attr_data): Declare.
5004 (register_scoped_attributes): Adjust declaration.
5005 (handle_ignored_attributes_option): Declare.
5006 (canonicalize_attr_name): New function template.
5007 (canonicalize_attr_name): Use it.
5008 * common.opt (Wattributes=): New option with a variable.
5009 * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
5010 * doc/invoke.texi: Document -Wno-attributes=.
5011 * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
5012 * plugin.h (register_scoped_attributes): Adjust declaration.
5013 * toplev.c (compile_file): Call free_attr_data.
5014
5015 2021-11-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5016
5017 * config/arm/arm-cpus.in (cortex-a710): New CPU.
5018 * config/arm/arm-tables.opt: Regenerate.
5019 * config/arm/arm-tune.md: Regenerate.
5020 * doc/invoke.texi: Update docs.
5021
5022 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
5023
5024 * config/aarch64/aarch64-builtins.c
5025 (aarch64_general_gimple_fold_builtin): Mark argument as unused.
5026
5027 2021-11-10 Martin Liska <mliska@suse.cz>
5028
5029 * lto-wrapper.c (merge_and_complain): Make the first argument
5030 a reference type.
5031
5032 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5033
5034 * config/aarch64/iterators.md (optab): Use fmax_nan instead of
5035 smax_nan and fmin_nan instead of smin_nan.
5036 (maxmin_uns): Rename to...
5037 (fmaxmin): ...this and make the same changes. Remove entries
5038 unrelated to fmax* and fmin*.
5039 * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
5040 (<fmaxmin><mode>3): ...this.
5041 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
5042 Rename to...
5043 (aarch64_<optab>p<mode>): ...this.
5044 (<maxmin_uns><mode>3): Rename to...
5045 (<fmaxmin><mode>3): ...this.
5046 (reduc_<maxmin_uns>_scal_<mode>): Rename to...
5047 (reduc_<optab>_scal_<mode>): ...this and update gen* call.
5048 (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
5049 (aarch64_reduc_<optab>_internal<mode>): ...this.
5050 (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
5051 (aarch64_reduc_<optab>_internalv2si): ...this.
5052 * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
5053 (<fmaxmin><mode>3): ...this.
5054 * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
5055 Rename to...
5056 (fmax_nan, fmin_nan): ...this.
5057 * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
5058 (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
5059 (vmin_f16, vminq_f16): Update accordingly.
5060
5061 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5062
5063 * tree-vectorizer.h (vector_costs::finish_cost): Take the
5064 corresponding scalar costs as a parameter.
5065 (finish_cost): Likewise.
5066 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
5067 (vect_estimate_min_profitable_iters): Update accordingly.
5068 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
5069 * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
5070 * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
5071 Likewise.
5072 * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
5073
5074 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5075
5076 * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
5077 variable.
5078 (_loop_vec_info::single_scalar_iteration_cost): Delete.
5079 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
5080 (vector_costs::total_cost): New function.
5081 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
5082 after above changes.
5083 (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
5084 (vect_compute_single_scalar_iteration_cost): Store the costs
5085 in loop_vinfo->scalar_costs.
5086 (vect_estimate_min_profitable_iters): Get the scalar cost from
5087 loop_vinfo->scalar_costs.
5088
5089 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5090
5091 * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
5092 (vector_costs::better_epilogue_loop_than_p)
5093 (vector_costs::compare_inside_loop_cost)
5094 (vector_costs::compare_outside_loop_cost): Likewise.
5095 * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
5096 (vector_costs::better_epilogue_loop_than_p)
5097 (vector_costs::compare_inside_loop_cost)
5098 (vector_costs::compare_outside_loop_cost): New functions,
5099 containing code moved from...
5100 * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
5101
5102 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5103
5104 * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
5105 and vec_inside_cost.
5106 (vector_costs::outside_cost): New function.
5107 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
5108 after above.
5109 (vect_estimate_min_profitable_iters): Likewise.
5110 (vect_better_loop_vinfo_p): Get the inside and outside costs
5111 from the loop_vec_infos' vector_costs.
5112
5113 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
5114
5115 * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
5116 (_loop_vec_info::vector_costs): ...this.
5117 (LOOP_VINFO_TARGET_COST_DATA): Delete.
5118 * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
5119 initialization.
5120 (vec_info::~vec_info): Remove corresponding delete.
5121 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5122 vector_costs to null.
5123 (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
5124 (vect_analyze_loop_operations): Update after above changes.
5125 (vect_analyze_loop_2): Likewise.
5126 (vect_estimate_min_profitable_iters): Likewise.
5127 * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
5128
5129 2021-11-10 Jan Hubicka <hubicka@ucw.cz>
5130
5131 * tree-core.h (EAF_DIRECT): Remove.
5132 (EAF_NOCLOBBER): Remove.
5133 (EAF_UNUSED): Remove.
5134 (EAF_NOESCAPE): Remove.
5135 (EAF_NO_DIRECT_CLOBBER): New.
5136 (EAF_NO_INDIRECT_CLOBBER): New.
5137 (EAF_NODIRECTESCAPE): Remove.
5138 (EAF_NO_DIRECT_ESCAPE): New.
5139 (EAF_NO_INDIRECT_ESCAPE): New.
5140 (EAF_NOT_RETURNED): Remove.
5141 (EAF_NOT_RETURNED_INDIRECTLY): New.
5142 (EAF_NOREAD): Remove.
5143 (EAF_NO_DIRECT_READ): New.
5144 (EAF_NO_INDIRECT_READ): New.
5145 * gimple.c (gimple_call_arg_flags): Update for new flags.
5146 (gimple_call_retslot_flags): Update for new flags.
5147 * ipa-modref.c (dump_eaf_flags): Likewise.
5148 (remove_useless_eaf_flags): Likewise.
5149 (deref_flags): Likewise.
5150 (modref_lattice::init): Likewise.
5151 (modref_lattice::merge): Likewise.
5152 (modref_lattice::merge_direct_load): Likewise.
5153 (modref_lattice::merge_direct_store): Likewise.
5154 (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
5155 (callee_to_caller_flags): Likewise.
5156 (modref_eaf_analysis::analyze_ssa_name): Likewise.
5157 (modref_eaf_analysis::propagate): Likewise.
5158 (modref_merge_call_site_flags): Likewise.
5159 * ipa-modref.h (interposable_eaf_flags): Likewise.
5160 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
5161 * tree-ssa-structalias.c (handle_call_arg): Likewise.
5162 (handle_rhs_call): Likewise.
5163 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
5164
5165 2021-11-10 Tamar Christina <tamar.christina@arm.com>
5166
5167 * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
5168
5169 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
5170
5171 * config/aarch64/aarch64-builtins.c
5172 (aarch64_general_gimple_fold_builtin): Change pointer alignment and
5173 alias.
5174
5175 2021-11-10 Jan Hubicka <jh@suse.cz>
5176
5177 * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
5178
5179 2021-11-10 H.J. Lu <hongjiu.lu@intel.com>
5180 Hongtao Liu <hongtao.liu@intel.com>
5181
5182 PR middle-end/102566
5183 * match.pd (nop_atomic_bit_test_and_p): New match.
5184 * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
5185 (gimple_nop_atomic_bit_test_and_p): New prototype.
5186 (optimize_atomic_bit_test_and): Transform equivalent, but slighly
5187 different cases to their canonical forms.
5188
5189 2021-11-10 liuhongt <hongtao.liu@intel.com>
5190
5191 PR tree-optimization/103126
5192 * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
5193 * tree-vectorizer.h (neutral_op_for_reduction): Declare.
5194 * tree-if-conv.c : Include tree-vectorizer.h.
5195 (is_cond_scalar_reduction): Handle
5196 BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
5197 (convert_scalar_cond_reduction): Ditto.
5198
5199 2021-11-10 konglin1 <lingling.kong@intel.com>
5200
5201 * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
5202 (cmla<conj_op><mode>4): Likewise
5203
5204 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
5205
5206 * tree-ssa-threadedge.c: Do not include
5207 gimple-ssa-evrp-analyze.h.
5208 * value-pointer-equiv.cc: Same.
5209
5210 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
5211
5212 * tree-ssa-threadbackward.c
5213 (back_threader::maybe_register_path_dump): Abstract path dumping...
5214 (dump_path): ...here.
5215 (back_threader::resolve_phi): Call dump_path.
5216 (debug): Same.
5217
5218 2021-11-10 konglin1 <lingling.kong@intel.com>
5219
5220 * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
5221 Add new define_insn.
5222 (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
5223 (fma_<mode>_fcmaddc_bcst): Likewise
5224
5225 2021-11-10 liuhongt <hongtao.liu@intel.com>
5226
5227 PR target/102464
5228 * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
5229 MAX/MIN(a,b)
5230
5231 2021-11-10 Andrew Pinski <apinski@marvell.com>
5232
5233 PR target/101529
5234 * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
5235 as an input, use original one.
5236
5237 2021-11-10 Sandra Loosemore <sandra@codesourcery.com>
5238
5239 * config/nios2/nios2.c (nios2_can_inline_p): New.
5240 (TARGET_CAN_INLINE_P): Define.
5241
5242 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
5243
5244 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
5245 Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
5246 RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
5247 (lxvrse_expand_builtin): Modify the expansion for sign extension.
5248 All extensions are done within VSX registers.
5249
5250 2021-11-09 Andrew Pinski <apinski@marvell.com>
5251
5252 PR tree-optimization/10352
5253 * match.pd: Remove check of TYPE_PRECISION for
5254 the a?0:pow2 case.
5255
5256 2021-11-09 Andrew MacLeod <amacleod@redhat.com>
5257
5258 * function.c (allocate_struct_function): Don't set x_range_query.
5259 * function.h (get_range_query): Move to value-query.h.
5260 * gimple-range.cc (enable_ranger): Check that query is currently NULL.
5261 (disable_ranger): Clear function current query field.
5262 * value-query.cc (get_global_range_query): Relocate to:
5263 * value-query.h (get_global_range_query): Here and inline.
5264 (get_range_query): Relocate here from function.h.
5265
5266 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5267
5268 * tree-ssa-threadbackward.c
5269 (back_threader::maybe_register_path_dump): New.
5270 (back_threader::maybe_register_path): Call maybe_register_path_dump.
5271
5272 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5273
5274 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
5275 Return NULL when unprofitable.
5276
5277 2021-11-09 Martin Jambor <mjambor@suse.cz>
5278
5279 * tree.h (build_debug_expr_decl): Declare.
5280 * tree.c (build_debug_expr_decl): New function.
5281 * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
5282 instead of building a DEBUG_EXPR_DECL.
5283 * ipa-param-manipulation.c
5284 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
5285 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
5286 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
5287 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
5288 * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
5289
5290 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
5291
5292 * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
5293 (def_builtin): Change debug formatting for easier parsing and
5294 include more information.
5295 (rs6000_init_builtins): Add dump of autogenerated builtins.
5296 (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
5297 completeness.
5298
5299 2021-11-09 Marek Polacek <polacek@redhat.com>
5300
5301 * ipa-modref.c (analyze_parms): Fix a typo.
5302
5303 2021-11-09 Kito Cheng <kito.cheng@sifive.com>
5304
5305 PR target/102957
5306 * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
5307 assertion for Z*-ext.
5308
5309 2021-11-09 Jan Hubicka <hubicka@ucw.cz>
5310
5311 * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
5312 and past_static_chain; merge past summary with current one.
5313 (analyze_function): Update.
5314
5315 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5316
5317 * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
5318
5319 2021-11-09 Martin Liska <mliska@suse.cz>
5320
5321 * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
5322 conditional based on
5323 * print-rtl.h (class rtx_writer): Likewise.
5324
5325 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
5326
5327 * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
5328 for 'Deleted'. Turn into a '#define'.
5329
5330 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5331
5332 * gimple-range-path.cc (path_range_query::dump): Clean up.
5333 (path_range_query::compute_ranges): Same.
5334 * value-relation.cc (path_oracle::dump): Same.
5335
5336 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5337
5338 * dumpfile.c (dump_options): Remove TDF_THREADING entry.
5339 * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
5340 remaining entries.
5341 * flag-types.h (enum threader_debug): New.
5342 * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
5343 * params.opt: Add entry for --param=threader-debug=.
5344
5345 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
5346
5347 PR middle-end/101204
5348 PR other/103157
5349 * diagnostic-spec.h (typedef xint_hash_t): Turn into...
5350 (struct xint_hash_t): ... this.
5351 * doc/gty.texi: Update.
5352
5353 2021-11-09 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5354
5355 * config/arm/arm-cpus.in (armv9): New define.
5356 (ARMv9a): New group.
5357 (armv9-a): New arch definition.
5358 * config/arm/arm-tables.opt: Regenerate.
5359 * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
5360 * config/arm/t-aprofile: Added armv9-a and armv9+simd.
5361 * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
5362 to MULTILIB_MATCHES.
5363 * config/arm/t-multilib: Added v9_a_nosimd_variants and
5364 v9_a_simd_variants to MULTILIB_MATCHES.
5365 * doc/invoke.texi: Update docs.
5366
5367 2021-11-09 Martin Jambor <mjambor@suse.cz>
5368
5369 PR ipa/103132
5370 * ipa-param-manipulation.c (replace_with_mapped_expr): Early
5371 return with error_mark_mode when part of expression is mapped to
5372 NULL.
5373 (ipa_param_body_adjustments::remap_with_debug_expressions): Set
5374 mapped value to NULL if walk_tree returns error_mark_mode.
5375
5376 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
5377
5378 * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
5379 context to ranger.
5380 (get_addr_stridx): Same.
5381 (get_stridx): Same.
5382 (get_range_strlen_dynamic): Same.
5383 (handle_builtin_strlen): Same.
5384 (handle_builtin_strchr): Same.
5385 (handle_builtin_strcpy): Same.
5386 (maybe_diag_stxncpy_trunc): Same.
5387 (handle_builtin_stxncpy_strncat): Same.
5388 (handle_builtin_memcpy): Same.
5389 (handle_builtin_strcat): Same.
5390 (handle_alloc_call): Same.
5391 (handle_builtin_memset): Same.
5392 (handle_builtin_string_cmp): Same.
5393 (handle_pointer_plus): Same.
5394 (count_nonzero_bytes_addr): Same.
5395 (count_nonzero_bytes): Same.
5396 (handle_store): Same.
5397 (fold_strstr_to_strncmp): Same.
5398 (handle_integral_assign): Same.
5399 (check_and_optimize_stmt): Same.
5400 (class strlen_dom_walker): Replace evrp with ranger.
5401 (strlen_dom_walker::before_dom_children): Remove evrp.
5402 (strlen_dom_walker::after_dom_children): Remove evrp.
5403 * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
5404 Restrict sprintf output.
5405
5406 2021-11-09 Martin Liska <mliska@suse.cz>
5407
5408 * genconditions.c (write_one_condition): Add const qualifier
5409 to pointer casting.
5410
5411 2021-11-09 Jeff Law <jeffreyalaw@gmail.com>
5412
5413 * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
5414 being a power of 2.
5415
5416 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
5417
5418 * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
5419 escape-newline support.
5420 (VEC_INIT_V4SI): Likewise.
5421 (VEC_INIT_V8HI): Likewise.
5422 (PACK_V1TI): Likewise.
5423 (DIVDEU): Likewise.
5424 (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
5425 (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
5426 (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
5427 (CMPRB2): Likewise.
5428 (VSTDCP): Likewise.
5429 (VSIEDP): Likewise.
5430 (FMAF128_ODD): Likewise.
5431 (VSCEQPUO): Likewise.
5432 (VSIEQP): Likewise.
5433 (VSIEQPF): Likewise.
5434 (VSTDCQP): Likewise.
5435 (PACK_TD): Likewise.
5436 (TABORTDC): Likewise.
5437 (TABORTDCI): Likewise.
5438 (SE_LXVRBX): Likewise.
5439 (SE_LXVRHX): Likewise.
5440 (SE_LXVRWX): Likewise.
5441 (SE_LXVRDX): Likewise.
5442 (VREPLACE_UN_UV2DI): Likewise.
5443 (VREPLACE_UN_UV4SI): Likewise.
5444 (VREPLACE_UN_V2DI): Likewise.
5445 (VREPLACE_ELT_UV2DI): Likewise.
5446 (VREPLACE_ELT_V2DI): Likewise.
5447 (ZE_LXVRBX): Likewise.
5448 (ZE_LXVRHX): Likewise.
5449 (ZE_LXVRWX): Likewise.
5450 (ZE_LXVRDX): Likewise.
5451 (CFUGED): Likewise.
5452 (CNTLZDM): Likewise.
5453 (CNTTZDM): Likewise.
5454 (PDEPD): Likewise.
5455 (PEXTD): Likewise.
5456 (PMXVBF16GER2): Likewise.
5457 (PMXVBF16GER2_INTERNAL): Likewise.
5458 (PMXVBF16GER2NN): Likewise.
5459 (PMXVBF16GER2NN_INTERNAL): Likewise.
5460 (PMXVBF16GER2NP): Likewise.
5461 (PMXVBF16GER2NP_INTERNAL): Likewise.
5462 (PMXVBF16GER2PN): Likewise.
5463 (PMXVBF16GER2PN_INTERNAL): Likewise.
5464 (PMXVBF16GER2PP): Likewise.
5465 (PMXVBF16GER2PP_INTERNAL): Likewise.
5466 (PMXVF16GER2): Likewise.
5467 (PMXVF16GER2_INTERNAL): Likewise.
5468 (PMXVF16GER2NN): Likewise.
5469 (PMXVF16GER2NN_INTERNAL): Likewise.
5470 (PMXVF16GER2NP): Likewise.
5471 (PMXVF16GER2NP_INTERNAL): Likewise.
5472 (PMXVF16GER2PN): Likewise.
5473 (PMXVF16GER2PN_INTERNAL): Likewise.
5474 (PMXVF16GER2PP): Likewise.
5475 (PMXVF16GER2PP_INTERNAL): Likewise.
5476 (PMXVF32GER_INTERNAL): Likewise.
5477 (PMXVF32GERNN): Likewise.
5478 (PMXVF32GERNN_INTERNAL): Likewise.
5479 (PMXVF32GERNP): Likewise.
5480 (PMXVF32GERNP_INTERNAL): Likewise.
5481 (PMXVF32GERPN): Likewise.
5482 (PMXVF32GERPN_INTERNAL): Likewise.
5483 (PMXVF32GERPP): Likewise.
5484 (PMXVF32GERPP_INTERNAL): Likewise.
5485 (PMXVF64GER): Likewise.
5486 (PMXVF64GER_INTERNAL): Likewise.
5487 (PMXVF64GERNN): Likewise.
5488 (PMXVF64GERNN_INTERNAL): Likewise.
5489 (PMXVF64GERNP): Likewise.
5490 (PMXVF64GERNP_INTERNAL): Likewise.
5491 (PMXVF64GERPN): Likewise.
5492 (PMXVF64GERPN_INTERNAL): Likewise.
5493 (PMXVF64GERPP): Likewise.
5494 (PMXVF64GERPP_INTERNAL): Likewise.
5495 (PMXVI16GER2): Likewise.
5496 (PMXVI16GER2_INTERNAL): Likewise.
5497 (PMXVI16GER2PP): Likewise.
5498 (PMXVI16GER2PP_INTERNAL): Likewise.
5499 (PMXVI16GER2S): Likewise.
5500 (PMXVI16GER2S_INTERNAL): Likewise.
5501 (PMXVI16GER2SPP): Likewise.
5502 (PMXVI16GER2SPP_INTERNAL): Likewise.
5503 (PMXVI4GER8): Likewise.
5504 (PMXVI4GER8_INTERNAL): Likewise.
5505 (PMXVI4GER8PP): Likewise.
5506 (PMXVI4GER8PP_INTERNAL): Likewise.
5507 (PMXVI8GER4): Likewise.
5508 (PMXVI8GER4_INTERNAL): Likewise.
5509 (PMXVI8GER4PP): Likewise.
5510 (PMXVI8GER4PP_INTERNAL): Likewise.
5511 (PMXVI8GER4SPP): Likewise.
5512 (PMXVI8GER4SPP_INTERNAL): Likewise.
5513 * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
5514 (linebuf): Increase size.
5515 (lines): New variable.
5516 (lastline): Likewise.
5517 (real_line_pos): New function.
5518 (diag): Change signature.
5519 (bif_diag): Change signature; support escape-newline handling.
5520 (ovld_diag): Likewise.
5521 (fatal): Move earlier.
5522 (consume_whitespace): Adjust diag call.
5523 (advance_line): Add escape-newline handling; call fatal.
5524 (safe_inc_pos): Adjust diag call.
5525 (match_identifier): Likewise.
5526 (match_integer): Likewise.
5527 (match_to_right_bracket): Call fatal instead of diag; adjust diag
5528 call.
5529 (match_basetype): Adjust diag calls.
5530 (match_bracketed_pair): Likewise.
5531 (match_const_restriction): Likewise.
5532 (match_type): Likewise.
5533 (parse_args): Likewise.
5534 (parse_bif_attrs): Likewise.
5535 (complete_vector_type): Likewise.
5536 (complete_base_type): Likewise.
5537 (parse_prototype): Likewise.
5538 (parse_bif_entry): Likewise.
5539 (parse_bif_stanza): Likewise.
5540 (parse_ovld_entry): Likewise.
5541 (parse_ovld_stanza): Likewise.
5542 (main): Allocate buffers for lines[].
5543
5544 2021-11-08 Eric Botcazou <ebotcazou@adacore.com>
5545
5546 * config/i386/i386.c (legitimize_pic_address): Adjust comment and
5547 use the REG argument on the CM_LARGE_PIC code path as well.
5548 * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
5549 specially with the large code models.
5550
5551 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
5552
5553 * gimple.c (gimple_call_static_chain_flags): Revert the workaround
5554 allowing interposition since issues with binds_to_local_def were
5555 hopefully solved.
5556
5557 2021-11-08 Andrew MacLeod <amacleod@redhat.com>
5558
5559 PR tree-optimization/103122
5560 * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
5561 entry with "calulate new values" set to false.
5562
5563 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
5564
5565 * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
5566 and builtin_return_address.
5567 (builtin_fnspec): Annotate builtin_return,
5568 bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
5569 builtin_cxa_end_cleanup, builtin_eh_copy_values,
5570 builtin_frame_address, builtin_apply_args,
5571 builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
5572 builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
5573 as ".c"
5574 * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
5575 and builtin_return_address.
5576
5577 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
5578
5579 PR tree-optimization/103177
5580 * passes.def: Move uncprop after pure/const and modref.
5581
5582 2021-11-08 Martin Jambor <mjambor@suse.cz>
5583
5584 PR ipa/103099
5585 PR ipa/103107
5586 * tree-inline.c (remap_gimple_stmt): Unshare the expression without
5587 location before invoking remap_with_debug_expressions on it.
5588 * ipa-param-manipulation.c
5589 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
5590
5591 2021-11-08 David Edelsohn <dje.gcc@gmail.com>
5592
5593 * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
5594 constraint to "we".
5595
5596 2021-11-08 Richard Biener <rguenther@suse.de>
5597
5598 * cfgloop.c (verify_loop_structure): Use a temporary BB flag
5599 instead of an sbitmap to cache irreducible state.
5600
5601 2021-11-08 Aldy Hernandez <aldyh@redhat.com>
5602
5603 PR tree-optimization/103120
5604 * gimple-range-path.cc (path_range_query::range_defined_in_block):
5605 Bail if there's a cache entry.
5606
5607 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
5608
5609 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
5610 rs6000_builtin_decls_x when appropriate.
5611 (add_condition_to_bb): Likewise.
5612 (rs6000_atomic_assign_expand_fenv): Likewise.
5613
5614 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
5615
5616 * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
5617 (rs6000_builtin_decl): Call it.
5618
5619 2021-11-08 Martin Liska <mliska@suse.cz>
5620
5621 * cgraph.c (cgraph_node::dump): Dump it from decl.
5622
5623 2021-11-08 Martin Liska <mliska@suse.cz>
5624
5625 PR gcov-profile/100520
5626 * coverage.c (coverage_compute_profile_id): Strip .gk when
5627 compare debug is used.
5628 * system.h (endswith): New function.
5629
5630 2021-11-08 Martin Liska <mliska@suse.cz>
5631
5632 * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
5633
5634 2021-11-08 Thomas Schwinge <thomas@codesourcery.com>
5635
5636 * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
5637 * config/rs6000/rbtree.h: Likewise.
5638 * config/rs6000/rs6000-builtin-new.def: Likewise.
5639 * config/rs6000/rs6000-gen-builtins.c: Likewise.
5640 * config/rs6000/rs6000-overload.def: Likewise.
5641
5642 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
5643
5644 * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
5645 (aarch64_address_cost): Use it instead of testing for CImode and
5646 XImode directly.
5647
5648 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
5649
5650 * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
5651 * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
5652 (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
5653 * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
5654 NUM_MODE_DECIMAL_FLOAT.
5655 (REAL_MODE_FORMAT): Likewise.
5656
5657 2021-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5658
5659 * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
5660 costs are compared.
5661
5662 2021-11-08 Richard Biener <rguenther@suse.de>
5663
5664 * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
5665 parameter.
5666 * tree-vect-loop.c (vect_create_loop_vinfo): Likewise. Set
5667 LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
5668 LOOP_VINFO_NITERS_ASSUMPTIONS.
5669 (vect_analyze_loop_1): Adjust.
5670 (vect_analyze_loop): Move loop constraint setting and
5671 SCEV/niter reset here from vect_create_loop_vinfo to perform
5672 it only once.
5673 (vect_analyze_loop_form): Move dumping of symbolic niters
5674 here from vect_create_loop_vinfo.
5675
5676 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
5677
5678 * ipa-modref-tree.h (enum modref_special_parms): New enum.
5679 (struct modref_access_node): update for special parms.
5680 (struct modref_ref_node): Likewise.
5681 (struct modref_parm_map): Likewise.
5682 (struct modref_tree): Likewise.
5683 * ipa-modref.c (dump_access): Likewise.
5684 (get_access): Detect static chain.
5685 (parm_map_for_arg): Take tree as arg instead of
5686 stmt and index.
5687 (merge_call_side_effects): Compute map for static chain.
5688 (process_fnspec): Update.
5689 (struct escape_point): Remove retslot_arg and static_chain_arg.
5690 (analyze_parms): Update.
5691 (compute_parm_map): Update.
5692 (propagate_unknown_call): Update.
5693 (modref_propagate_in_scc): Update.
5694 (modref_merge_call_site_flags): Update.
5695 (ipa_merge_modref_summary_after_inlining): Update.
5696 * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
5697 * ipa-modref-tree.c (test_merge): Update.
5698
5699 2021-11-08 Haochen Gui <guihaoc@gcc.gnu.org>
5700
5701 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
5702 gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
5703 VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
5704 set.
5705
5706 2021-11-08 liuhongt <hongtao.liu@intel.com>
5707
5708 PR tree-optimization/103077
5709 * doc/invoke.texi (Options That Control Optimization):
5710 Update documentation for -ftree-loop-vectorize and
5711 -ftree-slp-vectorize which are enabled by default at -02.
5712
5713 2021-11-08 liuhongt <hongtao.liu@intel.com>
5714
5715 PR target/102464
5716 * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
5717 to .COPYSIGN (a, b)): Add !HONOR_SNANS.
5718
5719 2021-11-08 liuhongt <hongtao.liu@intel.com>
5720
5721 PR target/102464
5722 * match.pd: Simplify
5723 (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
5724 c) under flag_unsafe_math_optimizations.
5725
5726 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
5727
5728 PR ipa/103055
5729 * params.opt (modref-max-depth): Add range.
5730 (modref-max-adjustments): Fix range.
5731
5732 2021-11-07 Aldy Hernandez <aldyh@redhat.com>
5733
5734 * tree-pass.h (make_pass_vrp_threader): Remove.
5735 * tree-ssa-threadbackward.c
5736 (back_threader_profitability::profitable_path_p): Remove
5737 ASSERT_EXPR references.
5738 * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
5739 * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
5740 (execute_vrp): Same.
5741 (class hybrid_threader): Remove.
5742 (hybrid_threader::hybrid_threader): Remove.
5743 (hybrid_threader::~hybrid_threader): Remove.
5744 (hybrid_threader::before_dom_children): Remove.
5745 (hybrid_threader::after_dom_children): Remove.
5746 (execute_vrp_threader): Remove.
5747 (class pass_vrp_threader): Remove.
5748 (make_pass_vrp_threader): Remove.
5749
5750 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
5751
5752 * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
5753 (gimple_call_retslot_flags): Likewise.
5754 (gimple_call_static_chain_flags): Likewise.
5755 * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
5756 NOVOPS.
5757 (modref_summary::useful_p): Likewise.
5758 (modref_summary_lto::useful_p): Likewise.
5759 (analyze_parms): Do not give up on NOVOPS.
5760 (analyze_function): When dumping report chnages in EAF flags
5761 between IPA and local pass.
5762 (modref_merge_call_site_flags): Compute implicit eaf flags
5763 based on callee ecf_flags and fnspec; if the function does not
5764 bind to current defs use interposable_eaf_flags.
5765 (modref_propagate_flags_in_scc): Update.
5766 * ipa-modref.h (interposable_eaf_flags): New function.
5767
5768 2021-11-07 Bill Schmidt <wschmidt@linux.ibm.com>
5769
5770 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
5771 forward decl.
5772 (rs6000_invalid_new_builtin): New function.
5773 (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
5774 (rs6000_expand_ldst_mask): New function.
5775 (new_cpu_expand_builtin): Likewise.
5776 (elemrev_icode): Likewise.
5777 (ldv_expand_builtin): Likewise.
5778 (lxvrse_expand_builtin): Likewise.
5779 (lxvrze_expand_builtin): Likewise.
5780 (stv_expand_builtin): Likewise.
5781 (new_mma_expand_builtin): Likewise.
5782 (new_htm_spr_num): Likewise.
5783 (new_htm_expand_builtin): Likewise.
5784 (rs6000_expand_new_builtin): Likewise.
5785 (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
5786
5787 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
5788
5789 * ipa-modref.c (modref_lattice): Add do_dataflow,
5790 changed and propagate_to fields.
5791 (modref_lattice::release): Free propagate_to
5792 (modref_lattice::merge): Do not give up early on unknown
5793 lattice values.
5794 (modref_lattice::merge_deref): Likewise.
5795 (modref_eaf_analysis): Update toplevel comment.
5796 (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
5797 do optimistic dataflow initialization.
5798 (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
5799 (modref_eaf_analysis::propagate): New member function.
5800 (analyze_parms): Update to new API of modref_eaf_analysis.
5801
5802 2021-11-06 Jan Hubicka <hubicka@ucw.cz>
5803
5804 * cgraph.h (cgraph_node::can_be_discarded_p): Do not
5805 return true on functions from other partition.
5806
5807 2021-11-06 David Edelsohn <dje.gcc@gmail.com>
5808
5809 * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
5810 (vsx_splat_v4si_di): Change constraint to "wa".
5811
5812 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
5813
5814 PR tree-optimization/103061
5815 * value-relation.cc (path_oracle::path_oracle): Initialize
5816 m_killed_defs.
5817 (path_oracle::killing_def): Set m_killed_defs.
5818 (path_oracle::query_relation): Do not look at the root oracle for
5819 killed defs.
5820 * value-relation.h (class path_oracle): Add m_killed_defs.
5821
5822 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
5823
5824 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
5825 Remove gotos and other cleanups.
5826
5827 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
5828
5829 PR ipa/103073
5830 * ipa-modref-tree.h (modref_tree::insert): Do nothing for
5831 paradoxical and zero sized accesses.
5832
5833 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
5834
5835 PR ipa/103082
5836 * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
5837 of negative value
5838
5839 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
5840
5841 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
5842 to the list of symbol prefixes that must be made linker-
5843 visible.
5844
5845 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
5846
5847 * config.host: Add support for aarch64-*-darwin.
5848 * config/aarch64/host-aarch64-darwin.c: New file.
5849 * config/aarch64/x-darwin: New file.
5850
5851 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
5852
5853 PR tree-optimization/103093
5854 * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
5855
5856 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
5857
5858 PR tree-optimization/102943
5859 * gimple-range-cache.cc (class update_list): New.
5860 (update_list::add): Replace add_to_update.
5861 (update_list::pop): New.
5862 (ranger_cache::ranger_cache): Adjust.
5863 (ranger_cache::~ranger_cache): Adjust.
5864 (ranger_cache::add_to_update): Delete.
5865 (ranger_cache::propagate_cache): Adjust to new class.
5866 (ranger_cache::propagate_updated_value): Ditto.
5867 (ranger_cache::fill_block_cache): Ditto.
5868 * gimple-range-cache.h (class ranger_cache): Adjust to update class.
5869
5870 2021-11-05 Richard Biener <rguenther@suse.de>
5871
5872 * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
5873 comment and expand on another one. Combine nested if.
5874
5875 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
5876
5877 PR libgomp/96661
5878 * config/pa/pa-modes.def: Add OImode integer type.
5879 * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
5880 for TARGET_64BIT.
5881 * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
5882 to UNITS_PER_WORD if IN_LIBGCC2.
5883 * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
5884 negvti2, ashlti3, shrpd_internal): New patterns.
5885 Change some multi instruction types to multi.
5886
5887 2021-11-05 Jakub Jelinek <jakub@redhat.com>
5888
5889 PR bootstrap/100246
5890 * config/i386/i386.h
5891 (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
5892 constexpr.
5893
5894 2021-11-05 Wilco Dijkstra <wdijkstr@arm.com>
5895
5896 PR target/103085
5897 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
5898 first.
5899 * config/aarch64/constraints.md: Support const in Usw.
5900
5901 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
5902
5903 * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
5904 * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
5905
5906 2021-11-05 Richard Biener <rguenther@suse.de>
5907
5908 * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
5909 (LOOP_VINFO_N_STMTS): Likewise.
5910 (vec_info_for_bb): Remove unused function.
5911 * tree-vectorizer.c (vec_info_shared::vec_info_shared):
5912 Initialize n_stmts member.
5913 * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
5914 (vect_create_loop_vinfo): Do not set loop->aux.
5915 (vect_analyze_loop_2): Do not get n_stmts as argument,
5916 instead use LOOP_VINFO_N_STMTS. Set LOOP_VINFO_VECTORIZABLE_P
5917 here.
5918 (vect_analyze_loop_1): Remove callback, get the mode iterator
5919 and autodetected_vector_mode as argument, advancing the
5920 iterator and initializing autodetected_vector_mode here.
5921 (vect_analyze_loop): Split analysis loop into two, first
5922 processing main loops only and then epilogues.
5923
5924 2021-11-05 Martin Jambor <mjambor@suse.cz>
5925
5926 * ipa-prop.c (compute_complex_assign_jump_func): Remove
5927 unnecessary check for RECORD_TYPE.
5928
5929 2021-11-05 Gerald Pfeifer <gerald@pfeifer.com>
5930
5931 * doc/install.texi2html: Do not generate old.html any longer.
5932
5933 2021-11-05 Martin Liska <mliska@suse.cz>
5934
5935 PR debug/102955
5936 * opts.c (finish_options): Reset flag_gtoggle when it is used.
5937
5938 2021-11-05 Jakub Jelinek <jakub@redhat.com>
5939
5940 PR debug/103046
5941 * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
5942 in CONST_WIDE_INT handling. Adjust recursive calls.
5943 (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
5944 new add_const_value_attribute argument.
5945 (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
5946 add_const_value_attribute argument.
5947
5948 2021-11-05 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
5949
5950 * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
5951 than definedness.
5952
5953 2021-11-05 Richard Biener <rguenther@suse.de>
5954
5955 * tree-vectorizer.h (struct vect_loop_form_info): New.
5956 (vect_analyze_loop_form): Adjust.
5957 (vect_create_loop_vinfo): New.
5958 * tree-parloops.c (gather_scalar_reductions): Adjust for
5959 vect_analyze_loop_form API change.
5960 * tree-vect-loop.c: Include <functional>.
5961 (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
5962 take struct vect_loop_form_info as output parameter and adjust.
5963 (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
5964 split out call to the original vect_analyze_loop_form_1.
5965 (vect_reanalyze_as_main_loop): Rename to...
5966 (vect_analyze_loop_1): ... this, factor out the call to
5967 vect_analyze_loop_form and generalize to be able to use it twice ...
5968 (vect_analyze_loop): ... here. Perform vect_analyze_loop_form
5969 once only and here.
5970
5971 2021-11-05 Xionghu Luo <luoxhu@linux.ibm.com>
5972
5973 PR target/102991
5974 * config/rs6000/fusion.md: Regenerate.
5975 * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
5976
5977 2021-11-04 Andreas Krebbel <krebbel@linux.ibm.com>
5978
5979 * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
5980 definition.
5981
5982 2021-11-04 Tamar Christina <tamar.christina@arm.com>
5983
5984 * config/aarch64/aarch64-builtins.c
5985 (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
5986 ashr_simd, lshr, lshr_simd.
5987 * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
5988 * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
5989 vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
5990
5991 2021-11-04 Tamar Christina <tamar.christina@arm.com>
5992
5993 * match.pd: New negate+shift pattern.
5994
5995 2021-11-04 Andrew MacLeod <amacleod@redhat.com>
5996
5997 PR tree-optimization/103079
5998 * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
5999 varying.
6000 (gimple_range_calc_op2): Ditto.
6001
6002 2021-11-04 Martin Jambor <mjambor@suse.cz>
6003
6004 PR ipa/93385
6005 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
6006 members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
6007 m_dead_stmt_debug_equiv and prepare_debug_expressions. Added
6008 parameter to mark_dead_statements.
6009 * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
6010 (ipa_param_body_adjustments::mark_dead_statements): New parameter
6011 debugstack, push into it all SSA names used in debug statements,
6012 produce m_dead_ssa_debug_equiv mapping for the removed param.
6013 (replace_with_mapped_expr): New function.
6014 (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
6015 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
6016 (ipa_param_body_adjustments::common_initialization): Gather and
6017 procecc SSA which will be removed but are in debug statements. Simplify.
6018 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
6019 new members.
6020 * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
6021 when avoiding a copy of an unnecessary statement. Remap removed SSA
6022 names in existing debug statements.
6023 (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
6024 parameters if we have already done so.
6025
6026 2021-11-04 Jan Hubicka <hubicka@ucw.cz>
6027
6028 PR ipa/103058
6029 * gimple.c (gimple_call_static_chain_flags): Handle case when
6030 nested function does not bind locally.
6031
6032 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6033
6034 * config/aarch64/aarch64.c (aarch64_function_value): Generate
6035 a register rtx for Neon vector-tuple modes.
6036 (aarch64_layout_arg): Likewise.
6037
6038 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6039
6040 * lower-subreg.c (simple_move): Prevent decomposition if
6041 modes are not tieable.
6042
6043 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6044 Richard Sandiford <richard.sandiford@arm.com>
6045
6046 * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
6047 (v2x4hi_UP): Likewise.
6048 (v2x4hf_UP): Likewise.
6049 (v2x4bf_UP): Likewise.
6050 (v2x2si_UP): Likewise.
6051 (v2x2sf_UP): Likewise.
6052 (v2x1di_UP): Likewise.
6053 (v2x1df_UP): Likewise.
6054 (v2x16qi_UP): Likewise.
6055 (v2x8hi_UP): Likewise.
6056 (v2x8hf_UP): Likewise.
6057 (v2x8bf_UP): Likewise.
6058 (v2x4si_UP): Likewise.
6059 (v2x4sf_UP): Likewise.
6060 (v2x2di_UP): Likewise.
6061 (v2x2df_UP): Likewise.
6062 (v3x8qi_UP): Likewise.
6063 (v3x4hi_UP): Likewise.
6064 (v3x4hf_UP): Likewise.
6065 (v3x4bf_UP): Likewise.
6066 (v3x2si_UP): Likewise.
6067 (v3x2sf_UP): Likewise.
6068 (v3x1di_UP): Likewise.
6069 (v3x1df_UP): Likewise.
6070 (v3x16qi_UP): Likewise.
6071 (v3x8hi_UP): Likewise.
6072 (v3x8hf_UP): Likewise.
6073 (v3x8bf_UP): Likewise.
6074 (v3x4si_UP): Likewise.
6075 (v3x4sf_UP): Likewise.
6076 (v3x2di_UP): Likewise.
6077 (v3x2df_UP): Likewise.
6078 (v4x8qi_UP): Likewise.
6079 (v4x4hi_UP): Likewise.
6080 (v4x4hf_UP): Likewise.
6081 (v4x4bf_UP): Likewise.
6082 (v4x2si_UP): Likewise.
6083 (v4x2sf_UP): Likewise.
6084 (v4x1di_UP): Likewise.
6085 (v4x1df_UP): Likewise.
6086 (v4x16qi_UP): Likewise.
6087 (v4x8hi_UP): Likewise.
6088 (v4x8hf_UP): Likewise.
6089 (v4x8bf_UP): Likewise.
6090 (v4x4si_UP): Likewise.
6091 (v4x4sf_UP): Likewise.
6092 (v4x2di_UP): Likewise.
6093 (v4x2df_UP): Likewise.
6094 (TYPES_GETREGP): Delete.
6095 (TYPES_SETREGP): Likewise.
6096 (TYPES_LOADSTRUCT_U): Define.
6097 (TYPES_LOADSTRUCT_P): Likewise.
6098 (TYPES_LOADSTRUCT_LANE_U): Likewise.
6099 (TYPES_LOADSTRUCT_LANE_P): Likewise.
6100 (TYPES_STORE1P): Move for consistency.
6101 (TYPES_STORESTRUCT_U): Define.
6102 (TYPES_STORESTRUCT_P): Likewise.
6103 (TYPES_STORESTRUCT_LANE_U): Likewise.
6104 (TYPES_STORESTRUCT_LANE_P): Likewise.
6105 (aarch64_simd_tuple_types): Define.
6106 (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
6107 (aarch64_init_simd_builtin_functions): Update frontend lookup
6108 for builtin functions after handling arm_neon.h pragma.
6109 (register_tuple_type): Manually set modes of single-integer
6110 tuple types. Record tuple types.
6111 * config/aarch64/aarch64-modes.def
6112 (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
6113 (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
6114 (SVE_MODES): Give single-vector modes priority over vector-
6115 tuple modes.
6116 (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
6117 be after all single-vector modes.
6118 * config/aarch64/aarch64-simd-builtins.def: Update builtin
6119 generator macros to reflect modifications to the backend
6120 patterns.
6121 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
6122 Use vector-tuple mode iterator and rename to...
6123 (aarch64_simd_ld2<vstruct_elt>): This.
6124 (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
6125 rename to...
6126 (aarch64_simd_ld2r<vstruct_elt>): This.
6127 (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
6128 iterator and rename to...
6129 (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
6130 (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
6131 rename to...
6132 (vec_load_lanes<mode><vstruct_elt>): This.
6133 (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
6134 rename to...
6135 (aarch64_simd_st2<vstruct_elt>): This.
6136 (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
6137 iterator and rename to...
6138 (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
6139 (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
6140 rename to...
6141 (vec_store_lanes<mode><vstruct_elt>): This.
6142 (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
6143 rename to...
6144 (aarch64_simd_ld3<vstruct_elt>): This.
6145 (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
6146 rename to...
6147 (aarch64_simd_ld3r<vstruct_elt>): This.
6148 (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
6149 iterator and rename to...
6150 (vec_load_lanesci<mode>): This.
6151 (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
6152 rename to...
6153 (aarch64_simd_st3<vstruct_elt>): This.
6154 (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
6155 iterator and rename to...
6156 (vec_store_lanesci<mode>): This.
6157 (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
6158 rename to...
6159 (aarch64_simd_ld4<vstruct_elt>): This.
6160 (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
6161 rename to...
6162 (aarch64_simd_ld4r<vstruct_elt>): This.
6163 (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
6164 iterator and rename to...
6165 (vec_load_lanesxi<mode>): This.
6166 (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
6167 rename to...
6168 (aarch64_simd_st4<vstruct_elt>): This.
6169 (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
6170 iterator and rename to...
6171 (vec_store_lanesxi<mode>): This.
6172 (mov<mode>): Define for Neon vector-tuple modes.
6173 (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
6174 and rename to...
6175 (aarch64_ld1x3<vstruct_elt>): This.
6176 (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
6177 rename to...
6178 (aarch64_ld1_x3_<vstruct_elt>): This.
6179 (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
6180 and rename to...
6181 (aarch64_ld1x4<vstruct_elt>): This.
6182 (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
6183 rename to...
6184 (aarch64_ld1_x4_<vstruct_elt>): This.
6185 (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
6186 and rename to...
6187 (aarch64_st1x2<vstruct_elt>): This.
6188 (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
6189 rename to...
6190 (aarch64_st1_x2_<vstruct_elt>): This.
6191 (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
6192 and rename to...
6193 (aarch64_st1x3<vstruct_elt>): This.
6194 (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
6195 rename to...
6196 (aarch64_st1_x3_<vstruct_elt>): This.
6197 (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
6198 and rename to...
6199 (aarch64_st1x4<vstruct_elt>): This.
6200 (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
6201 rename to...
6202 (aarch64_st1_x4_<vstruct_elt>): This.
6203 (*aarch64_mov<mode>): Define for vector-tuple modes.
6204 (*aarch64_be_mov<mode>): Likewise.
6205 (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
6206 mode iterator and rename to...
6207 (aarch64_ld<nregs>r<vstruct_elt>): This.
6208 (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
6209 rename to...
6210 (aarch64_ld2<vstruct_elt>_dreg): This.
6211 (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
6212 rename to...
6213 (aarch64_ld3<vstruct_elt>_dreg): This.
6214 (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
6215 rename to...
6216 (aarch64_ld4<vstruct_elt>_dreg): This.
6217 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
6218 iterator and rename to...
6219 (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
6220 iterator and rename to...
6221 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
6222 (aarch64_ld1x2<VQ:mode>): Delete.
6223 (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
6224 rename to...
6225 (aarch64_ld1x2<vstruct_elt>): This.
6226 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
6227 tuple mode iterator and rename to...
6228 (aarch64_ld<nregs>_lane<vstruct_elt>): This.
6229 (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
6230 (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
6231 (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
6232 rename to...
6233 (aarch64_st2<vstruct_elt>_dreg): This.
6234 (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
6235 rename to...
6236 (aarch64_st3<vstruct_elt>_dreg): This.
6237 (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
6238 rename to...
6239 (aarch64_st4<vstruct_elt>_dreg): This.
6240 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
6241 iterator and rename to...
6242 (aarch64_st<nregs><vstruct_elt>): This.
6243 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
6244 iterator and rename to aarch64_st<nregs><vstruct_elt>.
6245 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
6246 tuple mode iterator and rename to...
6247 (aarch64_st<nregs>_lane<vstruct_elt>): This.
6248 (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
6249 (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
6250 and rename to...
6251 (aarch64_simd_ld1<vstruct_elt>_x2): This.
6252 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
6253 Refactor to include new vector-tuple modes.
6254 (aarch64_classify_vector_mode): Add cases for new vector-
6255 tuple modes.
6256 (aarch64_advsimd_partial_struct_mode_p): Define.
6257 (aarch64_advsimd_full_struct_mode_p): Likewise.
6258 (aarch64_advsimd_vector_array_mode): Likewise.
6259 (aarch64_sve_data_mode): Change location in file.
6260 (aarch64_array_mode): Handle case of Neon vector-tuple modes.
6261 (aarch64_hard_regno_nregs): Handle case of partial Neon
6262 vector structures.
6263 (aarch64_classify_address): Refactor to include handling of
6264 Neon vector-tuple modes.
6265 (aarch64_print_operand): Print "d" for "%R" for a partial
6266 Neon vector structure.
6267 (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
6268 (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
6269 modes with scalar machines modes larger than 8 bytes.
6270 (aarch64_can_change_mode_class): Don't allow changes between
6271 partial and full Neon vector-structure modes.
6272 * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
6273 builtin and remove boiler-plate code for opaque mode.
6274 (vst2_lane_f32): Likewise.
6275 (vst2_lane_f64): Likewise.
6276 (vst2_lane_p8): Likewise.
6277 (vst2_lane_p16): Likewise.
6278 (vst2_lane_p64): Likewise.
6279 (vst2_lane_s8): Likewise.
6280 (vst2_lane_s16): Likewise.
6281 (vst2_lane_s32): Likewise.
6282 (vst2_lane_s64): Likewise.
6283 (vst2_lane_u8): Likewise.
6284 (vst2_lane_u16): Likewise.
6285 (vst2_lane_u32): Likewise.
6286 (vst2_lane_u64): Likewise.
6287 (vst2q_lane_f16): Likewise.
6288 (vst2q_lane_f32): Likewise.
6289 (vst2q_lane_f64): Likewise.
6290 (vst2q_lane_p8): Likewise.
6291 (vst2q_lane_p16): Likewise.
6292 (vst2q_lane_p64): Likewise.
6293 (vst2q_lane_s8): Likewise.
6294 (vst2q_lane_s16): Likewise.
6295 (vst2q_lane_s32): Likewise.
6296 (vst2q_lane_s64): Likewise.
6297 (vst2q_lane_u8): Likewise.
6298 (vst2q_lane_u16): Likewise.
6299 (vst2q_lane_u32): Likewise.
6300 (vst2q_lane_u64): Likewise.
6301 (vst3_lane_f16): Likewise.
6302 (vst3_lane_f32): Likewise.
6303 (vst3_lane_f64): Likewise.
6304 (vst3_lane_p8): Likewise.
6305 (vst3_lane_p16): Likewise.
6306 (vst3_lane_p64): Likewise.
6307 (vst3_lane_s8): Likewise.
6308 (vst3_lane_s16): Likewise.
6309 (vst3_lane_s32): Likewise.
6310 (vst3_lane_s64): Likewise.
6311 (vst3_lane_u8): Likewise.
6312 (vst3_lane_u16): Likewise.
6313 (vst3_lane_u32): Likewise.
6314 (vst3_lane_u64): Likewise.
6315 (vst3q_lane_f16): Likewise.
6316 (vst3q_lane_f32): Likewise.
6317 (vst3q_lane_f64): Likewise.
6318 (vst3q_lane_p8): Likewise.
6319 (vst3q_lane_p16): Likewise.
6320 (vst3q_lane_p64): Likewise.
6321 (vst3q_lane_s8): Likewise.
6322 (vst3q_lane_s16): Likewise.
6323 (vst3q_lane_s32): Likewise.
6324 (vst3q_lane_s64): Likewise.
6325 (vst3q_lane_u8): Likewise.
6326 (vst3q_lane_u16): Likewise.
6327 (vst3q_lane_u32): Likewise.
6328 (vst3q_lane_u64): Likewise.
6329 (vst4_lane_f16): Likewise.
6330 (vst4_lane_f32): Likewise.
6331 (vst4_lane_f64): Likewise.
6332 (vst4_lane_p8): Likewise.
6333 (vst4_lane_p16): Likewise.
6334 (vst4_lane_p64): Likewise.
6335 (vst4_lane_s8): Likewise.
6336 (vst4_lane_s16): Likewise.
6337 (vst4_lane_s32): Likewise.
6338 (vst4_lane_s64): Likewise.
6339 (vst4_lane_u8): Likewise.
6340 (vst4_lane_u16): Likewise.
6341 (vst4_lane_u32): Likewise.
6342 (vst4_lane_u64): Likewise.
6343 (vst4q_lane_f16): Likewise.
6344 (vst4q_lane_f32): Likewise.
6345 (vst4q_lane_f64): Likewise.
6346 (vst4q_lane_p8): Likewise.
6347 (vst4q_lane_p16): Likewise.
6348 (vst4q_lane_p64): Likewise.
6349 (vst4q_lane_s8): Likewise.
6350 (vst4q_lane_s16): Likewise.
6351 (vst4q_lane_s32): Likewise.
6352 (vst4q_lane_s64): Likewise.
6353 (vst4q_lane_u8): Likewise.
6354 (vst4q_lane_u16): Likewise.
6355 (vst4q_lane_u32): Likewise.
6356 (vst4q_lane_u64): Likewise.
6357 (vtbl3_s8): Likewise.
6358 (vtbl3_u8): Likewise.
6359 (vtbl3_p8): Likewise.
6360 (vtbl4_s8): Likewise.
6361 (vtbl4_u8): Likewise.
6362 (vtbl4_p8): Likewise.
6363 (vld1_u8_x3): Likewise.
6364 (vld1_s8_x3): Likewise.
6365 (vld1_u16_x3): Likewise.
6366 (vld1_s16_x3): Likewise.
6367 (vld1_u32_x3): Likewise.
6368 (vld1_s32_x3): Likewise.
6369 (vld1_u64_x3): Likewise.
6370 (vld1_s64_x3): Likewise.
6371 (vld1_f16_x3): Likewise.
6372 (vld1_f32_x3): Likewise.
6373 (vld1_f64_x3): Likewise.
6374 (vld1_p8_x3): Likewise.
6375 (vld1_p16_x3): Likewise.
6376 (vld1_p64_x3): Likewise.
6377 (vld1q_u8_x3): Likewise.
6378 (vld1q_s8_x3): Likewise.
6379 (vld1q_u16_x3): Likewise.
6380 (vld1q_s16_x3): Likewise.
6381 (vld1q_u32_x3): Likewise.
6382 (vld1q_s32_x3): Likewise.
6383 (vld1q_u64_x3): Likewise.
6384 (vld1q_s64_x3): Likewise.
6385 (vld1q_f16_x3): Likewise.
6386 (vld1q_f32_x3): Likewise.
6387 (vld1q_f64_x3): Likewise.
6388 (vld1q_p8_x3): Likewise.
6389 (vld1q_p16_x3): Likewise.
6390 (vld1q_p64_x3): Likewise.
6391 (vld1_u8_x2): Likewise.
6392 (vld1_s8_x2): Likewise.
6393 (vld1_u16_x2): Likewise.
6394 (vld1_s16_x2): Likewise.
6395 (vld1_u32_x2): Likewise.
6396 (vld1_s32_x2): Likewise.
6397 (vld1_u64_x2): Likewise.
6398 (vld1_s64_x2): Likewise.
6399 (vld1_f16_x2): Likewise.
6400 (vld1_f32_x2): Likewise.
6401 (vld1_f64_x2): Likewise.
6402 (vld1_p8_x2): Likewise.
6403 (vld1_p16_x2): Likewise.
6404 (vld1_p64_x2): Likewise.
6405 (vld1q_u8_x2): Likewise.
6406 (vld1q_s8_x2): Likewise.
6407 (vld1q_u16_x2): Likewise.
6408 (vld1q_s16_x2): Likewise.
6409 (vld1q_u32_x2): Likewise.
6410 (vld1q_s32_x2): Likewise.
6411 (vld1q_u64_x2): Likewise.
6412 (vld1q_s64_x2): Likewise.
6413 (vld1q_f16_x2): Likewise.
6414 (vld1q_f32_x2): Likewise.
6415 (vld1q_f64_x2): Likewise.
6416 (vld1q_p8_x2): Likewise.
6417 (vld1q_p16_x2): Likewise.
6418 (vld1q_p64_x2): Likewise.
6419 (vld1_s8_x4): Likewise.
6420 (vld1q_s8_x4): Likewise.
6421 (vld1_s16_x4): Likewise.
6422 (vld1q_s16_x4): Likewise.
6423 (vld1_s32_x4): Likewise.
6424 (vld1q_s32_x4): Likewise.
6425 (vld1_u8_x4): Likewise.
6426 (vld1q_u8_x4): Likewise.
6427 (vld1_u16_x4): Likewise.
6428 (vld1q_u16_x4): Likewise.
6429 (vld1_u32_x4): Likewise.
6430 (vld1q_u32_x4): Likewise.
6431 (vld1_f16_x4): Likewise.
6432 (vld1q_f16_x4): Likewise.
6433 (vld1_f32_x4): Likewise.
6434 (vld1q_f32_x4): Likewise.
6435 (vld1_p8_x4): Likewise.
6436 (vld1q_p8_x4): Likewise.
6437 (vld1_p16_x4): Likewise.
6438 (vld1q_p16_x4): Likewise.
6439 (vld1_s64_x4): Likewise.
6440 (vld1_u64_x4): Likewise.
6441 (vld1_p64_x4): Likewise.
6442 (vld1q_s64_x4): Likewise.
6443 (vld1q_u64_x4): Likewise.
6444 (vld1q_p64_x4): Likewise.
6445 (vld1_f64_x4): Likewise.
6446 (vld1q_f64_x4): Likewise.
6447 (vld2_s64): Likewise.
6448 (vld2_u64): Likewise.
6449 (vld2_f64): Likewise.
6450 (vld2_s8): Likewise.
6451 (vld2_p8): Likewise.
6452 (vld2_p64): Likewise.
6453 (vld2_s16): Likewise.
6454 (vld2_p16): Likewise.
6455 (vld2_s32): Likewise.
6456 (vld2_u8): Likewise.
6457 (vld2_u16): Likewise.
6458 (vld2_u32): Likewise.
6459 (vld2_f16): Likewise.
6460 (vld2_f32): Likewise.
6461 (vld2q_s8): Likewise.
6462 (vld2q_p8): Likewise.
6463 (vld2q_s16): Likewise.
6464 (vld2q_p16): Likewise.
6465 (vld2q_p64): Likewise.
6466 (vld2q_s32): Likewise.
6467 (vld2q_s64): Likewise.
6468 (vld2q_u8): Likewise.
6469 (vld2q_u16): Likewise.
6470 (vld2q_u32): Likewise.
6471 (vld2q_u64): Likewise.
6472 (vld2q_f16): Likewise.
6473 (vld2q_f32): Likewise.
6474 (vld2q_f64): Likewise.
6475 (vld3_s64): Likewise.
6476 (vld3_u64): Likewise.
6477 (vld3_f64): Likewise.
6478 (vld3_s8): Likewise.
6479 (vld3_p8): Likewise.
6480 (vld3_s16): Likewise.
6481 (vld3_p16): Likewise.
6482 (vld3_s32): Likewise.
6483 (vld3_u8): Likewise.
6484 (vld3_u16): Likewise.
6485 (vld3_u32): Likewise.
6486 (vld3_f16): Likewise.
6487 (vld3_f32): Likewise.
6488 (vld3_p64): Likewise.
6489 (vld3q_s8): Likewise.
6490 (vld3q_p8): Likewise.
6491 (vld3q_s16): Likewise.
6492 (vld3q_p16): Likewise.
6493 (vld3q_s32): Likewise.
6494 (vld3q_s64): Likewise.
6495 (vld3q_u8): Likewise.
6496 (vld3q_u16): Likewise.
6497 (vld3q_u32): Likewise.
6498 (vld3q_u64): Likewise.
6499 (vld3q_f16): Likewise.
6500 (vld3q_f32): Likewise.
6501 (vld3q_f64): Likewise.
6502 (vld3q_p64): Likewise.
6503 (vld4_s64): Likewise.
6504 (vld4_u64): Likewise.
6505 (vld4_f64): Likewise.
6506 (vld4_s8): Likewise.
6507 (vld4_p8): Likewise.
6508 (vld4_s16): Likewise.
6509 (vld4_p16): Likewise.
6510 (vld4_s32): Likewise.
6511 (vld4_u8): Likewise.
6512 (vld4_u16): Likewise.
6513 (vld4_u32): Likewise.
6514 (vld4_f16): Likewise.
6515 (vld4_f32): Likewise.
6516 (vld4_p64): Likewise.
6517 (vld4q_s8): Likewise.
6518 (vld4q_p8): Likewise.
6519 (vld4q_s16): Likewise.
6520 (vld4q_p16): Likewise.
6521 (vld4q_s32): Likewise.
6522 (vld4q_s64): Likewise.
6523 (vld4q_u8): Likewise.
6524 (vld4q_u16): Likewise.
6525 (vld4q_u32): Likewise.
6526 (vld4q_u64): Likewise.
6527 (vld4q_f16): Likewise.
6528 (vld4q_f32): Likewise.
6529 (vld4q_f64): Likewise.
6530 (vld4q_p64): Likewise.
6531 (vld2_dup_s8): Likewise.
6532 (vld2_dup_s16): Likewise.
6533 (vld2_dup_s32): Likewise.
6534 (vld2_dup_f16): Likewise.
6535 (vld2_dup_f32): Likewise.
6536 (vld2_dup_f64): Likewise.
6537 (vld2_dup_u8): Likewise.
6538 (vld2_dup_u16): Likewise.
6539 (vld2_dup_u32): Likewise.
6540 (vld2_dup_p8): Likewise.
6541 (vld2_dup_p16): Likewise.
6542 (vld2_dup_p64): Likewise.
6543 (vld2_dup_s64): Likewise.
6544 (vld2_dup_u64): Likewise.
6545 (vld2q_dup_s8): Likewise.
6546 (vld2q_dup_p8): Likewise.
6547 (vld2q_dup_s16): Likewise.
6548 (vld2q_dup_p16): Likewise.
6549 (vld2q_dup_s32): Likewise.
6550 (vld2q_dup_s64): Likewise.
6551 (vld2q_dup_u8): Likewise.
6552 (vld2q_dup_u16): Likewise.
6553 (vld2q_dup_u32): Likewise.
6554 (vld2q_dup_u64): Likewise.
6555 (vld2q_dup_f16): Likewise.
6556 (vld2q_dup_f32): Likewise.
6557 (vld2q_dup_f64): Likewise.
6558 (vld2q_dup_p64): Likewise.
6559 (vld3_dup_s64): Likewise.
6560 (vld3_dup_u64): Likewise.
6561 (vld3_dup_f64): Likewise.
6562 (vld3_dup_s8): Likewise.
6563 (vld3_dup_p8): Likewise.
6564 (vld3_dup_s16): Likewise.
6565 (vld3_dup_p16): Likewise.
6566 (vld3_dup_s32): Likewise.
6567 (vld3_dup_u8): Likewise.
6568 (vld3_dup_u16): Likewise.
6569 (vld3_dup_u32): Likewise.
6570 (vld3_dup_f16): Likewise.
6571 (vld3_dup_f32): Likewise.
6572 (vld3_dup_p64): Likewise.
6573 (vld3q_dup_s8): Likewise.
6574 (vld3q_dup_p8): Likewise.
6575 (vld3q_dup_s16): Likewise.
6576 (vld3q_dup_p16): Likewise.
6577 (vld3q_dup_s32): Likewise.
6578 (vld3q_dup_s64): Likewise.
6579 (vld3q_dup_u8): Likewise.
6580 (vld3q_dup_u16): Likewise.
6581 (vld3q_dup_u32): Likewise.
6582 (vld3q_dup_u64): Likewise.
6583 (vld3q_dup_f16): Likewise.
6584 (vld3q_dup_f32): Likewise.
6585 (vld3q_dup_f64): Likewise.
6586 (vld3q_dup_p64): Likewise.
6587 (vld4_dup_s64): Likewise.
6588 (vld4_dup_u64): Likewise.
6589 (vld4_dup_f64): Likewise.
6590 (vld4_dup_s8): Likewise.
6591 (vld4_dup_p8): Likewise.
6592 (vld4_dup_s16): Likewise.
6593 (vld4_dup_p16): Likewise.
6594 (vld4_dup_s32): Likewise.
6595 (vld4_dup_u8): Likewise.
6596 (vld4_dup_u16): Likewise.
6597 (vld4_dup_u32): Likewise.
6598 (vld4_dup_f16): Likewise.
6599 (vld4_dup_f32): Likewise.
6600 (vld4_dup_p64): Likewise.
6601 (vld4q_dup_s8): Likewise.
6602 (vld4q_dup_p8): Likewise.
6603 (vld4q_dup_s16): Likewise.
6604 (vld4q_dup_p16): Likewise.
6605 (vld4q_dup_s32): Likewise.
6606 (vld4q_dup_s64): Likewise.
6607 (vld4q_dup_u8): Likewise.
6608 (vld4q_dup_u16): Likewise.
6609 (vld4q_dup_u32): Likewise.
6610 (vld4q_dup_u64): Likewise.
6611 (vld4q_dup_f16): Likewise.
6612 (vld4q_dup_f32): Likewise.
6613 (vld4q_dup_f64): Likewise.
6614 (vld4q_dup_p64): Likewise.
6615 (vld2_lane_u8): Likewise.
6616 (vld2_lane_u16): Likewise.
6617 (vld2_lane_u32): Likewise.
6618 (vld2_lane_u64): Likewise.
6619 (vld2_lane_s8): Likewise.
6620 (vld2_lane_s16): Likewise.
6621 (vld2_lane_s32): Likewise.
6622 (vld2_lane_s64): Likewise.
6623 (vld2_lane_f16): Likewise.
6624 (vld2_lane_f32): Likewise.
6625 (vld2_lane_f64): Likewise.
6626 (vld2_lane_p8): Likewise.
6627 (vld2_lane_p16): Likewise.
6628 (vld2_lane_p64): Likewise.
6629 (vld2q_lane_u8): Likewise.
6630 (vld2q_lane_u16): Likewise.
6631 (vld2q_lane_u32): Likewise.
6632 (vld2q_lane_u64): Likewise.
6633 (vld2q_lane_s8): Likewise.
6634 (vld2q_lane_s16): Likewise.
6635 (vld2q_lane_s32): Likewise.
6636 (vld2q_lane_s64): Likewise.
6637 (vld2q_lane_f16): Likewise.
6638 (vld2q_lane_f32): Likewise.
6639 (vld2q_lane_f64): Likewise.
6640 (vld2q_lane_p8): Likewise.
6641 (vld2q_lane_p16): Likewise.
6642 (vld2q_lane_p64): Likewise.
6643 (vld3_lane_u8): Likewise.
6644 (vld3_lane_u16): Likewise.
6645 (vld3_lane_u32): Likewise.
6646 (vld3_lane_u64): Likewise.
6647 (vld3_lane_s8): Likewise.
6648 (vld3_lane_s16): Likewise.
6649 (vld3_lane_s32): Likewise.
6650 (vld3_lane_s64): Likewise.
6651 (vld3_lane_f16): Likewise.
6652 (vld3_lane_f32): Likewise.
6653 (vld3_lane_f64): Likewise.
6654 (vld3_lane_p8): Likewise.
6655 (vld3_lane_p16): Likewise.
6656 (vld3_lane_p64): Likewise.
6657 (vld3q_lane_u8): Likewise.
6658 (vld3q_lane_u16): Likewise.
6659 (vld3q_lane_u32): Likewise.
6660 (vld3q_lane_u64): Likewise.
6661 (vld3q_lane_s8): Likewise.
6662 (vld3q_lane_s16): Likewise.
6663 (vld3q_lane_s32): Likewise.
6664 (vld3q_lane_s64): Likewise.
6665 (vld3q_lane_f16): Likewise.
6666 (vld3q_lane_f32): Likewise.
6667 (vld3q_lane_f64): Likewise.
6668 (vld3q_lane_p8): Likewise.
6669 (vld3q_lane_p16): Likewise.
6670 (vld3q_lane_p64): Likewise.
6671 (vld4_lane_u8): Likewise.
6672 (vld4_lane_u16): Likewise.
6673 (vld4_lane_u32): Likewise.
6674 (vld4_lane_u64): Likewise.
6675 (vld4_lane_s8): Likewise.
6676 (vld4_lane_s16): Likewise.
6677 (vld4_lane_s32): Likewise.
6678 (vld4_lane_s64): Likewise.
6679 (vld4_lane_f16): Likewise.
6680 (vld4_lane_f32): Likewise.
6681 (vld4_lane_f64): Likewise.
6682 (vld4_lane_p8): Likewise.
6683 (vld4_lane_p16): Likewise.
6684 (vld4_lane_p64): Likewise.
6685 (vld4q_lane_u8): Likewise.
6686 (vld4q_lane_u16): Likewise.
6687 (vld4q_lane_u32): Likewise.
6688 (vld4q_lane_u64): Likewise.
6689 (vld4q_lane_s8): Likewise.
6690 (vld4q_lane_s16): Likewise.
6691 (vld4q_lane_s32): Likewise.
6692 (vld4q_lane_s64): Likewise.
6693 (vld4q_lane_f16): Likewise.
6694 (vld4q_lane_f32): Likewise.
6695 (vld4q_lane_f64): Likewise.
6696 (vld4q_lane_p8): Likewise.
6697 (vld4q_lane_p16): Likewise.
6698 (vld4q_lane_p64): Likewise.
6699 (vqtbl2_s8): Likewise.
6700 (vqtbl2_u8): Likewise.
6701 (vqtbl2_p8): Likewise.
6702 (vqtbl2q_s8): Likewise.
6703 (vqtbl2q_u8): Likewise.
6704 (vqtbl2q_p8): Likewise.
6705 (vqtbl3_s8): Likewise.
6706 (vqtbl3_u8): Likewise.
6707 (vqtbl3_p8): Likewise.
6708 (vqtbl3q_s8): Likewise.
6709 (vqtbl3q_u8): Likewise.
6710 (vqtbl3q_p8): Likewise.
6711 (vqtbl4_s8): Likewise.
6712 (vqtbl4_u8): Likewise.
6713 (vqtbl4_p8): Likewise.
6714 (vqtbl4q_s8): Likewise.
6715 (vqtbl4q_u8): Likewise.
6716 (vqtbl4q_p8): Likewise.
6717 (vqtbx2_s8): Likewise.
6718 (vqtbx2_u8): Likewise.
6719 (vqtbx2_p8): Likewise.
6720 (vqtbx2q_s8): Likewise.
6721 (vqtbx2q_u8): Likewise.
6722 (vqtbx2q_p8): Likewise.
6723 (vqtbx3_s8): Likewise.
6724 (vqtbx3_u8): Likewise.
6725 (vqtbx3_p8): Likewise.
6726 (vqtbx3q_s8): Likewise.
6727 (vqtbx3q_u8): Likewise.
6728 (vqtbx3q_p8): Likewise.
6729 (vqtbx4_s8): Likewise.
6730 (vqtbx4_u8): Likewise.
6731 (vqtbx4_p8): Likewise.
6732 (vqtbx4q_s8): Likewise.
6733 (vqtbx4q_u8): Likewise.
6734 (vqtbx4q_p8): Likewise.
6735 (vst1_s64_x2): Likewise.
6736 (vst1_u64_x2): Likewise.
6737 (vst1_f64_x2): Likewise.
6738 (vst1_s8_x2): Likewise.
6739 (vst1_p8_x2): Likewise.
6740 (vst1_s16_x2): Likewise.
6741 (vst1_p16_x2): Likewise.
6742 (vst1_s32_x2): Likewise.
6743 (vst1_u8_x2): Likewise.
6744 (vst1_u16_x2): Likewise.
6745 (vst1_u32_x2): Likewise.
6746 (vst1_f16_x2): Likewise.
6747 (vst1_f32_x2): Likewise.
6748 (vst1_p64_x2): Likewise.
6749 (vst1q_s8_x2): Likewise.
6750 (vst1q_p8_x2): Likewise.
6751 (vst1q_s16_x2): Likewise.
6752 (vst1q_p16_x2): Likewise.
6753 (vst1q_s32_x2): Likewise.
6754 (vst1q_s64_x2): Likewise.
6755 (vst1q_u8_x2): Likewise.
6756 (vst1q_u16_x2): Likewise.
6757 (vst1q_u32_x2): Likewise.
6758 (vst1q_u64_x2): Likewise.
6759 (vst1q_f16_x2): Likewise.
6760 (vst1q_f32_x2): Likewise.
6761 (vst1q_f64_x2): Likewise.
6762 (vst1q_p64_x2): Likewise.
6763 (vst1_s64_x3): Likewise.
6764 (vst1_u64_x3): Likewise.
6765 (vst1_f64_x3): Likewise.
6766 (vst1_s8_x3): Likewise.
6767 (vst1_p8_x3): Likewise.
6768 (vst1_s16_x3): Likewise.
6769 (vst1_p16_x3): Likewise.
6770 (vst1_s32_x3): Likewise.
6771 (vst1_u8_x3): Likewise.
6772 (vst1_u16_x3): Likewise.
6773 (vst1_u32_x3): Likewise.
6774 (vst1_f16_x3): Likewise.
6775 (vst1_f32_x3): Likewise.
6776 (vst1_p64_x3): Likewise.
6777 (vst1q_s8_x3): Likewise.
6778 (vst1q_p8_x3): Likewise.
6779 (vst1q_s16_x3): Likewise.
6780 (vst1q_p16_x3): Likewise.
6781 (vst1q_s32_x3): Likewise.
6782 (vst1q_s64_x3): Likewise.
6783 (vst1q_u8_x3): Likewise.
6784 (vst1q_u16_x3): Likewise.
6785 (vst1q_u32_x3): Likewise.
6786 (vst1q_u64_x3): Likewise.
6787 (vst1q_f16_x3): Likewise.
6788 (vst1q_f32_x3): Likewise.
6789 (vst1q_f64_x3): Likewise.
6790 (vst1q_p64_x3): Likewise.
6791 (vst1_s8_x4): Likewise.
6792 (vst1q_s8_x4): Likewise.
6793 (vst1_s16_x4): Likewise.
6794 (vst1q_s16_x4): Likewise.
6795 (vst1_s32_x4): Likewise.
6796 (vst1q_s32_x4): Likewise.
6797 (vst1_u8_x4): Likewise.
6798 (vst1q_u8_x4): Likewise.
6799 (vst1_u16_x4): Likewise.
6800 (vst1q_u16_x4): Likewise.
6801 (vst1_u32_x4): Likewise.
6802 (vst1q_u32_x4): Likewise.
6803 (vst1_f16_x4): Likewise.
6804 (vst1q_f16_x4): Likewise.
6805 (vst1_f32_x4): Likewise.
6806 (vst1q_f32_x4): Likewise.
6807 (vst1_p8_x4): Likewise.
6808 (vst1q_p8_x4): Likewise.
6809 (vst1_p16_x4): Likewise.
6810 (vst1q_p16_x4): Likewise.
6811 (vst1_s64_x4): Likewise.
6812 (vst1_u64_x4): Likewise.
6813 (vst1_p64_x4): Likewise.
6814 (vst1q_s64_x4): Likewise.
6815 (vst1q_u64_x4): Likewise.
6816 (vst1q_p64_x4): Likewise.
6817 (vst1_f64_x4): Likewise.
6818 (vst1q_f64_x4): Likewise.
6819 (vst2_s64): Likewise.
6820 (vst2_u64): Likewise.
6821 (vst2_f64): Likewise.
6822 (vst2_s8): Likewise.
6823 (vst2_p8): Likewise.
6824 (vst2_s16): Likewise.
6825 (vst2_p16): Likewise.
6826 (vst2_s32): Likewise.
6827 (vst2_u8): Likewise.
6828 (vst2_u16): Likewise.
6829 (vst2_u32): Likewise.
6830 (vst2_f16): Likewise.
6831 (vst2_f32): Likewise.
6832 (vst2_p64): Likewise.
6833 (vst2q_s8): Likewise.
6834 (vst2q_p8): Likewise.
6835 (vst2q_s16): Likewise.
6836 (vst2q_p16): Likewise.
6837 (vst2q_s32): Likewise.
6838 (vst2q_s64): Likewise.
6839 (vst2q_u8): Likewise.
6840 (vst2q_u16): Likewise.
6841 (vst2q_u32): Likewise.
6842 (vst2q_u64): Likewise.
6843 (vst2q_f16): Likewise.
6844 (vst2q_f32): Likewise.
6845 (vst2q_f64): Likewise.
6846 (vst2q_p64): Likewise.
6847 (vst3_s64): Likewise.
6848 (vst3_u64): Likewise.
6849 (vst3_f64): Likewise.
6850 (vst3_s8): Likewise.
6851 (vst3_p8): Likewise.
6852 (vst3_s16): Likewise.
6853 (vst3_p16): Likewise.
6854 (vst3_s32): Likewise.
6855 (vst3_u8): Likewise.
6856 (vst3_u16): Likewise.
6857 (vst3_u32): Likewise.
6858 (vst3_f16): Likewise.
6859 (vst3_f32): Likewise.
6860 (vst3_p64): Likewise.
6861 (vst3q_s8): Likewise.
6862 (vst3q_p8): Likewise.
6863 (vst3q_s16): Likewise.
6864 (vst3q_p16): Likewise.
6865 (vst3q_s32): Likewise.
6866 (vst3q_s64): Likewise.
6867 (vst3q_u8): Likewise.
6868 (vst3q_u16): Likewise.
6869 (vst3q_u32): Likewise.
6870 (vst3q_u64): Likewise.
6871 (vst3q_f16): Likewise.
6872 (vst3q_f32): Likewise.
6873 (vst3q_f64): Likewise.
6874 (vst3q_p64): Likewise.
6875 (vst4_s64): Likewise.
6876 (vst4_u64): Likewise.
6877 (vst4_f64): Likewise.
6878 (vst4_s8): Likewise.
6879 (vst4_p8): Likewise.
6880 (vst4_s16): Likewise.
6881 (vst4_p16): Likewise.
6882 (vst4_s32): Likewise.
6883 (vst4_u8): Likewise.
6884 (vst4_u16): Likewise.
6885 (vst4_u32): Likewise.
6886 (vst4_f16): Likewise.
6887 (vst4_f32): Likewise.
6888 (vst4_p64): Likewise.
6889 (vst4q_s8): Likewise.
6890 (vst4q_p8): Likewise.
6891 (vst4q_s16): Likewise.
6892 (vst4q_p16): Likewise.
6893 (vst4q_s32): Likewise.
6894 (vst4q_s64): Likewise.
6895 (vst4q_u8): Likewise.
6896 (vst4q_u16): Likewise.
6897 (vst4q_u32): Likewise.
6898 (vst4q_u64): Likewise.
6899 (vst4q_f16): Likewise.
6900 (vst4q_f32): Likewise.
6901 (vst4q_f64): Likewise.
6902 (vst4q_p64): Likewise.
6903 (vtbx4_s8): Likewise.
6904 (vtbx4_u8): Likewise.
6905 (vtbx4_p8): Likewise.
6906 (vld1_bf16_x2): Likewise.
6907 (vld1q_bf16_x2): Likewise.
6908 (vld1_bf16_x3): Likewise.
6909 (vld1q_bf16_x3): Likewise.
6910 (vld1_bf16_x4): Likewise.
6911 (vld1q_bf16_x4): Likewise.
6912 (vld2_bf16): Likewise.
6913 (vld2q_bf16): Likewise.
6914 (vld2_dup_bf16): Likewise.
6915 (vld2q_dup_bf16): Likewise.
6916 (vld3_bf16): Likewise.
6917 (vld3q_bf16): Likewise.
6918 (vld3_dup_bf16): Likewise.
6919 (vld3q_dup_bf16): Likewise.
6920 (vld4_bf16): Likewise.
6921 (vld4q_bf16): Likewise.
6922 (vld4_dup_bf16): Likewise.
6923 (vld4q_dup_bf16): Likewise.
6924 (vst1_bf16_x2): Likewise.
6925 (vst1q_bf16_x2): Likewise.
6926 (vst1_bf16_x3): Likewise.
6927 (vst1q_bf16_x3): Likewise.
6928 (vst1_bf16_x4): Likewise.
6929 (vst1q_bf16_x4): Likewise.
6930 (vst2_bf16): Likewise.
6931 (vst2q_bf16): Likewise.
6932 (vst3_bf16): Likewise.
6933 (vst3q_bf16): Likewise.
6934 (vst4_bf16): Likewise.
6935 (vst4q_bf16): Likewise.
6936 (vld2_lane_bf16): Likewise.
6937 (vld2q_lane_bf16): Likewise.
6938 (vld3_lane_bf16): Likewise.
6939 (vld3q_lane_bf16): Likewise.
6940 (vld4_lane_bf16): Likewise.
6941 (vld4q_lane_bf16): Likewise.
6942 (vst2_lane_bf16): Likewise.
6943 (vst2q_lane_bf16): Likewise.
6944 (vst3_lane_bf16): Likewise.
6945 (vst3q_lane_bf16): Likewise.
6946 (vst4_lane_bf16): Likewise.
6947 (vst4q_lane_bf16): Likewise.
6948 * config/aarch64/geniterators.sh: Modify iterator regex to
6949 match new vector-tuple modes.
6950 * config/aarch64/iterators.md (insn_count): Extend mode
6951 attribute with vector-tuple type information.
6952 (nregs): Likewise.
6953 (Vendreg): Likewise.
6954 (Vetype): Likewise.
6955 (Vtype): Likewise.
6956 (VSTRUCT_2D): New mode iterator.
6957 (VSTRUCT_2DNX): Likewise.
6958 (VSTRUCT_2DX): Likewise.
6959 (VSTRUCT_2Q): Likewise.
6960 (VSTRUCT_2QD): Likewise.
6961 (VSTRUCT_3D): Likewise.
6962 (VSTRUCT_3DNX): Likewise.
6963 (VSTRUCT_3DX): Likewise.
6964 (VSTRUCT_3Q): Likewise.
6965 (VSTRUCT_3QD): Likewise.
6966 (VSTRUCT_4D): Likewise.
6967 (VSTRUCT_4DNX): Likewise.
6968 (VSTRUCT_4DX): Likewise.
6969 (VSTRUCT_4Q): Likewise.
6970 (VSTRUCT_4QD): Likewise.
6971 (VSTRUCT_D): Likewise.
6972 (VSTRUCT_Q): Likewise.
6973 (VSTRUCT_QD): Likewise.
6974 (VSTRUCT_ELT): New mode attribute.
6975 (vstruct_elt): Likewise.
6976 * genmodes.c (VECTOR_MODE): Add default prefix and order
6977 parameters.
6978 (VECTOR_MODE_WITH_PREFIX): Define.
6979 (make_vector_mode): Add mode prefix and order parameters.
6980
6981 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6982
6983 * expmed.c (extract_bit_field_1): Ensure modes are tieable.
6984
6985 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6986
6987 * expr.c (emit_group_load_1): Remove historic workaround.
6988
6989 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6990
6991 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
6992 Factor out main loop to...
6993 (aarch64_init_simd_builtin_functions): This new function.
6994 (register_tuple_type): Define.
6995 (aarch64_scalar_builtin_type_p): Define.
6996 (handle_arm_neon_h): Define.
6997 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
6998 pragma for arm_neon.h.
6999 * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
7000 Declare.
7001 (handle_arm_neon_h): Likewise.
7002 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
7003 Remove static modifier.
7004 * config/aarch64/arm_neon.h (target): Remove Neon vector
7005 structure type definitions.
7006
7007 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
7008
7009 PR tree-optimization/102943
7010 * gimple-range-path.cc (path_range_query::range_on_path_entry):
7011 Prefer range_of_expr unless there are no statements in the BB.
7012
7013 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
7014
7015 PR tree-optimization/102943
7016 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
7017 Avoid duplicate calculation of paths.
7018
7019 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
7020
7021 PR tree-optimization/102943
7022 * gimple-range-path.cc (path_range_query::compute_phi_relations):
7023 Only compute relations for SSA names in the import list.
7024 (path_range_query::compute_outgoing_relations): Same.
7025 * gimple-range-path.h (path_range_query::import_p): New.
7026
7027 2021-11-04 Richard Biener <rguenther@suse.de>
7028
7029 PR rtl-optimization/103075
7030 * simplify-rtx.c (exact_int_to_float_conversion_p): Return
7031 false for a VOIDmode operand.
7032
7033 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
7034
7035 * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
7036 variables private and add "m_" to their names. Remove is_loop.
7037 (aarch64_record_potential_advsimd_unrolling): Replace with...
7038 (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
7039 (aarch64_analyze_loop_vinfo): Replace with...
7040 (aarch64_vector_costs::analyze_loop_vinfo): ...this.
7041 Move initialization of (m_)vec_flags to add_stmt_cost.
7042 (aarch64_analyze_bb_vinfo): Delete.
7043 (aarch64_count_ops): Replace with...
7044 (aarch64_vector_costs::count_ops): ...this.
7045 (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
7046 using m_costing_for_scalar to test whether we're costing
7047 scalar or vector code.
7048 (aarch64_adjust_body_cost_sve): Replace with...
7049 (aarch64_vector_costs::adjust_body_cost_sve): ...this.
7050 (aarch64_adjust_body_cost): Replace with...
7051 (aarch64_vector_costs::adjust_body_cost): ...this.
7052 (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
7053
7054 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
7055
7056 * target.def (targetm.vectorize.init_cost): Replace with...
7057 (targetm.vectorize.create_costs): ...this.
7058 (targetm.vectorize.add_stmt_cost): Delete.
7059 (targetm.vectorize.finish_cost): Likewise.
7060 (targetm.vectorize.destroy_cost_data): Likewise.
7061 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
7062 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
7063 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
7064 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7065 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7066 * doc/tm.texi: Regenerate.
7067 * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
7068 parameter.
7069 (vec_info::target_cost_data): Change from a void * to a vector_costs *.
7070 (vector_costs): New class.
7071 (init_cost): Take a vec_info and return a vector_costs.
7072 (dump_stmt_cost): Remove data parameter.
7073 (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
7074 (add_stmt_costs): Likewise.
7075 (finish_cost): Replace data parameter with a vector_costs.
7076 (destroy_cost_data): Delete.
7077 * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
7078 don't print it.
7079 (vec_info::vec_info): Remove the target_cost_data parameter and
7080 initialize the member variable to null instead.
7081 (vec_info::~vec_info): Delete target_cost_data instead of calling
7082 destroy_cost_data.
7083 (vector_costs::add_stmt_cost): New function.
7084 (vector_costs::finish_cost): Likewise.
7085 (vector_costs::record_stmt_cost): Likewise.
7086 (vector_costs::adjust_cost_for_freq): Likewise.
7087 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
7088 call to vec_info::vec_info.
7089 (vect_compute_single_scalar_iteration_cost): Update after above
7090 changes to costing interface.
7091 (vect_analyze_loop_operations): Likewise.
7092 (vect_estimate_min_profitable_iters): Likewise.
7093 (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
7094 at the start_over point, where it needs to be recreated after
7095 trying without slp. Update retry code accordingly.
7096 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
7097 to vec_info::vec_info.
7098 (vect_slp_analyze_operation): Update after above changes to costing
7099 interface.
7100 (vect_bb_vectorization_profitable_p): Likewise.
7101 * targhooks.h (default_init_cost): Replace with...
7102 (default_vectorize_create_costs): ...this.
7103 (default_add_stmt_cost): Delete.
7104 (default_finish_cost, default_destroy_cost_data): Likewise.
7105 * targhooks.c (default_init_cost): Replace with...
7106 (default_vectorize_create_costs): ...this.
7107 (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
7108 (default_finish_cost, default_destroy_cost_data): Delete.
7109 * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
7110 vector_costs. Add a constructor.
7111 (aarch64_init_cost): Replace with...
7112 (aarch64_vectorize_create_costs): ...this.
7113 (aarch64_add_stmt_cost): Replace with...
7114 (aarch64_vector_costs::add_stmt_cost): ...this. Use record_stmt_cost
7115 to adjust the cost for inner loops.
7116 (aarch64_finish_cost): Replace with...
7117 (aarch64_vector_costs::finish_cost): ...this.
7118 (aarch64_destroy_cost_data): Delete.
7119 (TARGET_VECTORIZE_INIT_COST): Replace with...
7120 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
7121 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
7122 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7123 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7124 * config/i386/i386.c (ix86_vector_costs): New structure.
7125 (ix86_init_cost): Replace with...
7126 (ix86_vectorize_create_costs): ...this.
7127 (ix86_add_stmt_cost): Replace with...
7128 (ix86_vector_costs::add_stmt_cost): ...this. Use adjust_cost_for_freq
7129 to adjust the cost for inner loops.
7130 (ix86_finish_cost, ix86_destroy_cost_data): Delete.
7131 (TARGET_VECTORIZE_INIT_COST): Replace with...
7132 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
7133 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
7134 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7135 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7136 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
7137 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
7138 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
7139 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7140 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7141 (rs6000_cost_data): Inherit from vector_costs.
7142 Add a constructor. Drop loop_info, cost and costing_for_scalar
7143 in favor of the corresponding vector_costs member variables.
7144 Add "m_" to the names of the remaining member variables and
7145 initialize them.
7146 (rs6000_density_test): Replace with...
7147 (rs6000_cost_data::density_test): ...this.
7148 (rs6000_init_cost): Replace with...
7149 (rs6000_vectorize_create_costs): ...this.
7150 (rs6000_update_target_cost_per_stmt): Replace with...
7151 (rs6000_cost_data::update_target_cost_per_stmt): ...this.
7152 (rs6000_add_stmt_cost): Replace with...
7153 (rs6000_cost_data::add_stmt_cost): ...this. Use adjust_cost_for_freq
7154 to adjust the cost for inner loops.
7155 (rs6000_adjust_vect_cost_per_loop): Replace with...
7156 (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
7157 (rs6000_finish_cost): Replace with...
7158 (rs6000_cost_data::finish_cost): ...this. Group loop code
7159 into a single if statement and pass the loop_vinfo down to
7160 subroutines.
7161 (rs6000_destroy_cost_data): Delete.
7162
7163 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
7164
7165 PR tree-optimization/103062
7166 PR tree-optimization/103062
7167 * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
7168 Increase size of allocation by 1.
7169 (ssa_equiv_stack::push_replacement): Grow as needed.
7170 (ssa_equiv_stack::get_replacement): Same.
7171 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
7172 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
7173 (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
7174 (pointer_equiv_analyzer::get_equiv): Same.
7175 (pointer_equiv_analyzer::get_equiv_expr): Remove const.
7176 * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
7177 const markers. Use auto_vec instead of tree *.
7178
7179 2021-11-04 Richard Biener <rguenther@suse.de>
7180
7181 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
7182 true parameter and inline valueization.
7183 (vn_nary_op_lookup_1): Inline valueization from ...
7184 (vn_nary_op_compute_hash): ... here and remove it here.
7185 * tree-ssa-pre.c (phi_translate_1): Do not valueize
7186 before vn_nary_lookup_pieces.
7187 (get_representative_for): Mark created SSA representatives
7188 as visited.
7189
7190 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
7191
7192 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
7193 that the operand has a vector mode. Use subreg_lowpart_offset
7194 to test whether an index corresponds to the low part.
7195
7196 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
7197
7198 * read-rtl.c: Remove dead !GENERATOR_FILE block.
7199 * read-rtl-function.c (function_reader::consolidate_singletons):
7200 Generate canonical CONST_VECTORs.
7201
7202 2021-11-04 liuhongt <hongtao.liu@intel.com>
7203
7204 PR target/101989
7205 * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
7206 (regmem_or_bitnot_regmem_operand): .. and extend to handle
7207 memory_operand.
7208 * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
7209 the operands which are required to be register_operand.
7210 (*<avx512>_vpternlog<mode>_2): Ditto.
7211 (*<avx512>_vpternlog<mode>_3): Ditto.
7212 (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
7213 vector HFmodes since it's not a real AVX512FP16 instruction.
7214
7215 2021-11-04 liuhongt <hongtao.liu@intel.com>
7216
7217 PR target/102464
7218 * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
7219 .COPYSIGN (a,b) when a and b are same type as the truncation
7220 type and has less precision than extend type.
7221
7222 2021-11-04 Richard Biener <rguenther@suse.de>
7223
7224 * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
7225 documentation.
7226
7227 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
7228
7229 * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
7230 (VI1_AVX512VNNI): Likewise.
7231 (SDOT_VPDP_SUF): New mode_attr.
7232 (VI1SI): Likewise.
7233 (vi1si): Likewise.
7234 (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
7235 vpdpwssd when VNNI targets available.
7236 (usdot_prod<mode>): New expander for vector QImode.
7237
7238 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
7239
7240 * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
7241 parentheses to base and stride.
7242 (_tile_stream_loadd_internal): Likewise.
7243 (_tile_stored_internal): Likewise.
7244
7245 2021-11-03 Maciej W. Rozycki <macro@embecosm.com>
7246
7247 * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
7248 arguments to `reg_class_subset_p'.
7249
7250 2021-11-03 Joseph Myers <joseph@codesourcery.com>
7251
7252 PR c/103031
7253 * fold-const.c (fold_init): New function.
7254 * fold-const.h (fold_init): New prototype.
7255
7256 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
7257
7258 * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
7259
7260 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
7261
7262 * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
7263 a range from edge if arg == phidef.
7264
7265 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
7266
7267 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
7268 for constant before any other processing.
7269
7270 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
7271
7272 * flag-types.h (RANGER_DEBUG_ALL): Fix values.
7273
7274 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
7275
7276 * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
7277 (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
7278 no explcit context and current_bb is set.
7279 (gimple_ranger::fold_stmt): New.
7280 * gimple-range.h (current_bb, fold_stmt): New.
7281 * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
7282
7283 2021-11-03 Richard Biener <rguenther@suse.de>
7284
7285 PR tree-optimization/102970
7286 * tree-ssa-pre.c (phi_translate_1): Drop clique and base
7287 when translating a MEM_REF over a backedge.
7288
7289 2021-11-03 Philipp Tomsich <philipp.tomsich@vrull.eu>
7290
7291 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
7292 * config/aarch64/aarch64-tune.md: Regenerate.
7293 * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
7294 * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
7295 * doc/invoke.texi: Add documentation for Ampere-1 core.
7296
7297 2021-11-03 Wilco Dijkstra <wdijkstr@arm.com>
7298
7299 * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
7300 (movdi): Likewise.
7301 (ldr_got_small_<mode>): Remove pattern.
7302 (ldr_got_small_sidi): Likewise.
7303 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
7304 GOT accesses as moves.
7305 (aarch64_print_operand): Correctly print got_lo12 in L specifier.
7306 (aarch64_mov_operand_p): Make GOT accesses valid move operands.
7307 * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
7308
7309 2021-11-03 Martin Liska <mliska@suse.cz>
7310
7311 * gcov.c (read_line): Remove dead variable.
7312
7313 2021-11-03 Martin Liska <mliska@suse.cz>
7314
7315 PR bootstrap/102828
7316 * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
7317 (ipa_fn_summary::account_size_time): Likewise.
7318 (edge_set_predicate): Likewise.
7319 (set_hint_predicate): Likewise.
7320 (add_freqcounting_predicate): Likewise.
7321 (evaluate_conditions_for_known_args): Likewise.
7322 (evaluate_properties_for_edge): Likewise.
7323 (remap_freqcounting_preds_after_dup): Likewise.
7324 (ipa_fn_summary_t::duplicate): Likewise.
7325 (set_cond_stmt_execution_predicate): Likewise.
7326 (set_switch_stmt_execution_predicate): Likewise.
7327 (compute_bb_predicates): Likewise.
7328 (will_be_nonconstant_expr_predicate): Likewise.
7329 (will_be_nonconstant_predicate): Likewise.
7330 (phi_result_unknown_predicate): Likewise.
7331 (predicate_for_phi_result): Likewise.
7332 (analyze_function_body): Likewise.
7333 (compute_fn_summary): Likewise.
7334 (summarize_calls_size_and_time): Likewise.
7335 (estimate_calls_size_and_time): Likewise.
7336 (ipa_call_context::estimate_size_and_time): Likewise.
7337 (remap_edge_summaries): Likewise.
7338 (remap_freqcounting_predicate): Likewise.
7339 (ipa_merge_fn_summary_after_inlining): Likewise.
7340 (ipa_update_overall_fn_summary): Likewise.
7341 (read_ipa_call_summary): Likewise.
7342 (inline_read_section): Likewise.
7343 * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
7344 * ipa-predicate.c (predicate::add_clause): Likewise.
7345 (ipa_predicate::add_clause): Likewise.
7346 (predicate::or_with): Likewise.
7347 (ipa_predicate::or_with): Likewise.
7348 (predicate::evaluate): Likewise.
7349 (ipa_predicate::evaluate): Likewise.
7350 (predicate::probability): Likewise.
7351 (ipa_predicate::probability): Likewise.
7352 (dump_condition): Likewise.
7353 (dump_clause): Likewise.
7354 (predicate::dump): Likewise.
7355 (ipa_predicate::dump): Likewise.
7356 (predicate::debug): Likewise.
7357 (ipa_predicate::debug): Likewise.
7358 (predicate::remap_after_duplication): Likewise.
7359 (ipa_predicate::remap_after_duplication): Likewise.
7360 (predicate::remap_after_inlining): Likewise.
7361 (ipa_predicate::remap_after_inlining): Likewise.
7362 (predicate::stream_in): Likewise.
7363 (ipa_predicate::stream_in): Likewise.
7364 (predicate::stream_out): Likewise.
7365 (ipa_predicate::stream_out): Likewise.
7366 (add_condition): Likewise.
7367 * ipa-predicate.h (class predicate): Likewise.
7368 (class ipa_predicate): Likewise.
7369 (add_condition): Likewise.
7370
7371 2021-11-03 Richard Biener <rguenther@suse.de>
7372
7373 * bitmap.h (bitmap_bit_p): Change the return type to bool.
7374 * bitmap.c (bitmap_bit_p): Likewise.
7375 * sbitmap.h (bitmap_bit_p): Likewise.
7376 (bitmap_set_bit): Return whether the bit changed.
7377 (bitmap_clear_bit): Likewise.
7378 * tree-ssa.c (verify_vssa): Make use of the changed state
7379 from bitmap_set_bit.
7380
7381 2021-11-03 Richard Biener <rguenther@suse.de>
7382
7383 PR middle-end/103033
7384 * internal-fn.c (expand_DEFERRED_INIT): Elide the
7385 native_interpret_expr path in favor of folding the
7386 VIEW_CONVERT_EXPR generated when punning the RHS.
7387
7388 2021-11-03 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
7389
7390 * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
7391 exit free bbs.
7392
7393 2021-11-03 Jan Hubicka <hubicka@ucw.cz>
7394
7395 PR ipa/103040
7396 * ipa-modref.c (callee_to_caller_flags): New function.
7397 (modref_eaf_analysis::analyze_ssa_name): Use it.
7398 (ipa_merge_modref_summary_after_inlining): Fix whitespace.
7399
7400 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
7401
7402 * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
7403 accidental commit.
7404
7405 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
7406 Uroš Bizjak <ubizjak@gmail.com>
7407
7408 * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
7409 rotations by non-constant amounts.
7410
7411 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
7412
7413 * ipa-modref.c: Fix anonymous namespace placement.
7414 (class modref_eaf_analysis): New class.
7415 (analyze_ssa_name_flags): Turn to ...
7416 (modref_eaf_analysis::analyze_ssa_name): ... this one.
7417 (merge_call_lhs_flags): Turn to ...
7418 (modref_eaf_analysis::merge_call_lhs_flags): .. this one
7419 (modref_eaf_analysis::merge_with_ssa_name): New member function.
7420 (record_escape_points): Turn to ...
7421 (modref_eaf_analysis::record_escape_points): ... this one.
7422 (analyze_parms): Updat
7423 (ipa_merge_modref_summary_after_inlining): Move to the end of file.
7424
7425 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
7426
7427 * gimple.c (gimple_call_static_chain_flags): New function.
7428 * gimple.h (gimple_call_static_chain_flags): Declare
7429 * ipa-modref.c (modref_summary::modref_summary): Initialize
7430 static_chain_flags.
7431 (modref_summary_lto::modref_summary_lto): Likewise.
7432 (modref_summary::useful_p): Test static_chain_flags.
7433 (modref_summary_lto::useful_p): Likewise.
7434 (struct modref_summary_lto): Add static_chain_flags.
7435 (modref_summary::dump): Dump static_chain_flags.
7436 (modref_summary_lto::dump): Likewise.
7437 (struct escape_point): Add static_cahin_arg.
7438 (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
7439 (analyze_parms): Handle static chains.
7440 (modref_summaries::duplicate): Duplicate static_chain_flags.
7441 (modref_summaries_lto::duplicate): Likewise.
7442 (modref_write): Stream static_chain_flags.
7443 (read_section): Likewise.
7444 (modref_merge_call_site_flags): Handle static_chain_flags.
7445 * ipa-modref.h (struct modref_summary): Add static_chain_flags.
7446 * tree-ssa-structalias.c (handle_rhs_call): Use
7447 gimple_static_chain_flags.
7448
7449 2021-11-02 Richard Biener <rguenther@suse.de>
7450
7451 PR tree-optimization/103029
7452 * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
7453 the PHI nodes in the loop maintain their original operand
7454 order.
7455
7456 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
7457
7458 * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
7459 (EAF_NOREAD): Renumber.
7460 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
7461 (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
7462 (deref_flags): Likewise.
7463 (modref_lattice::init): Likewise.
7464 (modref_lattice::merge): Likewise.
7465 (merge_call_lhs_flags): Likewise.
7466 (analyze_ssa_name_flags): Likewise.
7467 (modref_merge_call_site_flags): Likewise.
7468 * tree-ssa-structalias.c (handle_call_arg): Likewise.
7469
7470 2021-11-02 Maciej W. Rozycki <macro@embecosm.com>
7471
7472 * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
7473 check and remove an unused local variable with shNadd/shNadd.uw
7474 pattern handling.
7475
7476 2021-11-02 Tamar Christina <tamar.christina@arm.com>
7477
7478 PR tree-optimization/103007
7479 * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
7480 check.
7481
7482 2021-11-02 Richard Biener <rguenther@suse.de>
7483
7484 PR middle-end/103038
7485 * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
7486 (can_native_interpret_type_p): Likewise.
7487 * internal-fn.c (expand_DEFERRED_INIT): View-convert the
7488 RHS if the LHS is an SSA name.
7489
7490 2021-11-02 Richard Sandiford <richard.sandiford@arm.com>
7491
7492 * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
7493 * langhooks-def.h (lhd_simulate_record_decl): Declare.
7494 (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
7495 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7496 * langhooks.c (lhd_simulate_record_decl): New function.
7497
7498 2021-11-02 Jakub Jelinek <jakub@redhat.com>
7499
7500 PR target/103020
7501 * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
7502 modes with TImode inner mode if 32-bit.
7503
7504 2021-11-02 liuhongt <hongtao.liu@intel.com>
7505
7506 * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
7507 vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
7508 vect_slp_v4si_store_unalign): Document efficient target.
7509 (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
7510 vect_slp_v16qi_store_unalign_1): Ditto.
7511 (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
7512 vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
7513 (struct_4char_block_move, struct_8char_block_move,
7514 struct_16char_block_move): Ditto.
7515
7516 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
7517 Jakub Jelinek <jakub@redhat.com>
7518
7519 PR target/102986
7520 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
7521 ix86_expand_ti_to_v1ti): New helper functions.
7522 (ix86_expand_v1ti_shift): Check if the amount operand is an
7523 integer constant, and expand as a TImode shift if it isn't.
7524 (ix86_expand_v1ti_rotate): Check if the amount operand is an
7525 integer constant, and expand as a TImode rotate if it isn't.
7526 (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
7527 right shifts of V1TImode quantities.
7528 * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
7529 * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
7530 to QImode general_operand, and let the helper functions lower
7531 shifts by non-constant operands, as TImode shifts. Make
7532 conditional on TARGET_64BIT.
7533 (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
7534 (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
7535 Make conditional on TARGET_64BIT.
7536
7537 2021-11-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
7538
7539 * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
7540 "*tabort_1_plus"): Remove operands non-null check.
7541
7542 2021-11-01 Martin Liska <mliska@suse.cz>
7543
7544 * opt-functions.awk: Add new sanity checking.
7545 * optc-gen.awk: Add new argument to integer_range_info.
7546 * params.opt: Update 2 params which have negative IntegerRange.
7547
7548 2021-11-01 qing zhao <qing.zhao@oracle.com>
7549
7550 * gimplify.c (gimplify_decl_expr): Do not add call to
7551 __builtin_clear_padding when a variable is a gimple register
7552 or it might not have padding.
7553 (gimplify_init_constructor): Likewise.
7554
7555 2021-11-01 Tamar Christina <tamar.christina@arm.com>
7556
7557 * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
7558 movi, dup and extract costing fields.
7559 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
7560 thunderx_extra_costs, thunderx2t99_extra_costs,
7561 thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
7562 them.
7563 * config/arm/aarch-cost-tables.h (generic_extra_costs,
7564 cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
7565 exynosm1_extra_costs, xgene1_extra_costs): Likewise
7566 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
7567 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
7568
7569 2021-11-01 Tamar Christina <tamar.christina@arm.com>
7570
7571 * cse.c (add_to_set): New.
7572 (find_sets_in_insn): Register constants in sets.
7573 (canonicalize_insn): Use auto_vec instead.
7574 (cse_insn): Try materializing using vec_dup.
7575 * rtl.h (simplify_context::simplify_gen_vec_select,
7576 simplify_gen_vec_select): New.
7577 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
7578
7579 2021-11-01 David Malcolm <dmalcolm@redhat.com>
7580
7581 * common.opt (fdiagnostics-escape-format=): New.
7582 (diagnostics_escape_format): New enum.
7583 (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
7584 (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
7585 * diagnostic-format-json.cc (json_end_diagnostic): Add
7586 "escape-source" attribute.
7587 * diagnostic-show-locus.c
7588 (exploc_with_display_col::exploc_with_display_col): Replace
7589 "tabstop" param with a cpp_char_column_policy and add an "aspect"
7590 param. Use these to compute m_display_col accordingly.
7591 (struct char_display_policy): New struct.
7592 (layout::m_policy): New field.
7593 (layout::m_escape_on_output): New field.
7594 (def_policy): New function.
7595 (make_range): Update for changes to exploc_with_display_col ctor.
7596 (default_print_decoded_ch): New.
7597 (width_per_escaped_byte): New.
7598 (escape_as_bytes_width): New.
7599 (escape_as_bytes_print): New.
7600 (escape_as_unicode_width): New.
7601 (escape_as_unicode_print): New.
7602 (make_policy): New.
7603 (layout::layout): Initialize new fields. Update m_exploc ctor
7604 call for above change to ctor.
7605 (layout::maybe_add_location_range): Update for changes to
7606 exploc_with_display_col ctor.
7607 (layout::calculate_x_offset_display): Update for change to
7608 cpp_display_width.
7609 (layout::print_source_line): Pass policy
7610 to cpp_display_width_computation. Capture cpp_decoded_char when
7611 calling process_next_codepoint. Move printing of source code to
7612 m_policy.m_print_cb.
7613 (line_label::line_label): Pass in policy rather than context.
7614 (layout::print_any_labels): Update for change to line_label ctor.
7615 (get_affected_range): Pass in policy rather than context, updating
7616 calls to location_compute_display_column accordingly.
7617 (get_printed_columns): Likewise, also for cpp_display_width.
7618 (correction::correction): Pass in policy rather than tabstop.
7619 (correction::compute_display_cols): Pass m_policy rather than
7620 m_tabstop to cpp_display_width.
7621 (correction::m_tabstop): Replace with...
7622 (correction::m_policy): ...this.
7623 (line_corrections::line_corrections): Pass in policy rather than
7624 context.
7625 (line_corrections::m_context): Replace with...
7626 (line_corrections::m_policy): ...this.
7627 (line_corrections::add_hint): Update to use m_policy rather than
7628 m_context.
7629 (line_corrections::add_hint): Likewise.
7630 (layout::print_trailing_fixits): Likewise.
7631 (selftest::test_display_widths): New.
7632 (selftest::test_layout_x_offset_display_utf8): Update to use
7633 policy rather than tabstop.
7634 (selftest::test_one_liner_labels_utf8): Add test of escaping
7635 source lines.
7636 (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
7637 use policy rather than tabstop.
7638 (selftest::test_overlapped_fixit_printing): Likewise.
7639 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
7640 (selftest::test_overlapped_fixit_printing_2): Likewise.
7641 (selftest::test_tab_expansion): Likewise.
7642 (selftest::test_escaping_bytes_1): New.
7643 (selftest::test_escaping_bytes_2): New.
7644 (selftest::diagnostic_show_locus_c_tests): Call the new tests.
7645 * diagnostic.c (diagnostic_initialize): Initialize
7646 context->escape_format.
7647 (convert_column_unit): Update to use default character width policy.
7648 (selftest::test_diagnostic_get_location_text): Likewise.
7649 * diagnostic.h (enum diagnostics_escape_format): New enum.
7650 (diagnostic_context::escape_format): New field.
7651 * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
7652 (-fdiagnostics-format=): Add "escape-source" attribute to examples
7653 of JSON output, and document it.
7654 * input.c (location_compute_display_column): Pass in "policy"
7655 rather than "tabstop", passing to
7656 cpp_byte_column_to_display_column.
7657 (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
7658 * input.h (class cpp_char_column_policy): New forward decl.
7659 (location_compute_display_column): Pass in "policy" rather than
7660 "tabstop".
7661 * opts.c (common_handle_option): Handle
7662 OPT_fdiagnostics_escape_format_.
7663 * selftest.c (temp_source_file::temp_source_file): New ctor
7664 overload taking a size_t.
7665 * selftest.h (temp_source_file::temp_source_file): Likewise.
7666
7667 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
7668
7669 * dbgcnt.def: Add debug counter for back_thread[12] and
7670 back_threadfull[12].
7671 * passes.def: Pass "first" argument to each back threading pass.
7672 * tree-ssa-threadbackward.c (back_threader::back_threader): Add
7673 first argument.
7674 (back_threader::debug_counter): New.
7675 (back_threader::maybe_register_path): Call debug_counter.
7676
7677 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
7678
7679 * tree-ssa-threadbackward.c (BT_NONE): New.
7680 (BT_SPEED): New.
7681 (BT_RESOLVE): New.
7682 (back_threader::back_threader): Add flags.
7683 Move loop initialization here.
7684 (back_threader::~back_threader): New.
7685 (back_threader::find_taken_edge_switch): Change solver and ranger
7686 to pointers.
7687 (back_threader::find_taken_edge_cond): Same.
7688 (back_threader::find_paths_to_names): Same.
7689 (back_threader::find_paths): Same.
7690 (back_threader::dump): Same.
7691 (try_thread_blocks): Merge into thread_blocks.
7692 (back_threader::thread_blocks): New.
7693 (do_early_thread_jumps): Merge into thread_blocks.
7694 (do_thread_jumps): Merge into thread_blocks.
7695 (back_threader::thread_through_all_blocks): Remove.
7696
7697 2021-11-01 Andrew MacLeod <amacleod@redhat.com>
7698
7699 PR tree-optimization/103003
7700 * value-relation.cc (dom_oracle::register_relation): If the 2
7701 ssa names are the same, don't register any relation.
7702
7703 2021-11-01 Dan Li <ashimida@linux.alibaba.com>
7704
7705 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
7706 redundant check for calls_eh_return.
7707 * config/aarch64/aarch64.md (*do_return): Likewise.
7708
7709 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
7710
7711 * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
7712 duplicate_loop_to_header_edge to
7713 duplicate_loop_body_to_header_edge.
7714 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
7715 * cfghooks.h (struct cfg_hooks): Likewise.
7716 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
7717 * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
7718 (clone_loop_to_header_edge): Likewise.
7719 * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
7720 * cfgrtl.c (struct cfg_hooks): Likewise.
7721 * doc/loop.texi: Likewise.
7722 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7723 (unroll_loop_runtime_iterations): Likewise.
7724 (unroll_loop_stupid): Likewise.
7725 (apply_opt_in_copies): Likewise.
7726 * tree-cfg.c (struct cfg_hooks): Likewise.
7727 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
7728 (try_peel_loop): Likewise.
7729 * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
7730 (gimple_duplicate_loop_body_to_header_edge): Likewise.
7731 (tree_transform_and_unroll_loop): Likewise.
7732 * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
7733 Likewise.
7734
7735 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
7736
7737 * cfgloopmanip.c (loop_version): Refactor loopify to
7738 loop_version. Move condition generation after loopify.
7739 (loopify): Delete.
7740 * cfgloopmanip.h (loopify): Delete.
7741
7742 2021-10-31 Jan Hubicka <hubicka@ucw.cz>
7743
7744 * ipa-fnsummary.c: Include tree-dfa.h.
7745 (points_to_local_or_readonly_memory_p): Return true on return
7746 slot writes.
7747 * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
7748 statement.
7749
7750 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
7751
7752 PR middle-end/102972
7753 * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
7754 internal Fortran name; new permit_num_teams arg to permit
7755 omp_get_num_teams and omp_get_team_num.
7756 (scan_omp_1_stmt): Update call to it, add missing call for
7757 reverse offload, and check for strictly nested API calls in teams.
7758
7759 2021-10-30 Jakub Jelinek <jakub@redhat.com>
7760
7761 * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
7762
7763 2021-10-29 David Malcolm <dmalcolm@redhat.com>
7764
7765 * selftest.c (assert_streq): Add newlines when emitting non-equal
7766 non-NULL strings.
7767
7768 2021-10-29 David Malcolm <dmalcolm@redhat.com>
7769
7770 * Makefile.in: Fix syntax for reference to LIBDEPS in
7771 gengtype link rule.
7772
7773 2021-10-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7774
7775 * doc/install.texi: Bump required minimum DejaGnu version.
7776
7777 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
7778 Andrew MacLeod <amacleod@redhat.com>
7779
7780 * value-relation.cc (path_oracle::killing_def): Add a
7781 self-equivalence so we don't look to the root oracle.
7782
7783 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
7784
7785 * passes.def: Replace the pass_thread_jumps before VRP* with
7786 pass_thread_jumps_full. Remove all pass_vrp_threader instances.
7787 * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
7788 Remove hyphen from "thread-full" name.
7789
7790 2021-10-29 Andrew MacLeod <amacleod@redhat.com>
7791
7792 PR tree-optimization/102983
7793 * gimple-range-cache.h (propagate_updated_value): Make public.
7794 * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
7795 when processing gcond stmts.
7796
7797 2021-10-29 Jan Hubicka <hubicka@ucw.cz>
7798
7799 * gimple.c (gimple_call_retslot_flags): New function.
7800 * gimple.h (gimple_call_retslot_flags): Declare.
7801 * ipa-modref.c: Include tree-cfg.h.
7802 (struct escape_entry): Turn parm_index to signed.
7803 (modref_summary_lto::modref_summary_lto): Add retslot_flags.
7804 (modref_summary::modref_summary): Initialize retslot_flags.
7805 (struct modref_summary_lto): Likewise.
7806 (modref_summary::useful_p): Check retslot_flags.
7807 (modref_summary_lto::useful_p): Likewise.
7808 (modref_summary::dump): Dump retslot_flags.
7809 (modref_summary_lto::dump): Likewise.
7810 (struct escape_point): Add hidden_args enum.
7811 (analyze_ssa_name_flags): Ignore return slot return;
7812 use gimple_call_retslot_flags.
7813 (record_escape_points): Break out from ...
7814 (analyze_parms): ... here; handle retslot_flags.
7815 (modref_summaries::duplicate): Duplicate retslot_flags.
7816 (modref_summaries_lto::duplicate): Likewise.
7817 (modref_write_escape_summary): Stream parm_index as signed.
7818 (modref_read_escape_summary): Likewise.
7819 (modref_write): Stream retslot_flags.
7820 (read_section): Likewise.
7821 (struct escape_map): Fix typo in comment.
7822 (update_escape_summary_1): Fix whitespace.
7823 (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
7824 (modref_merge_call_site_flags): Merge retslot_flags.
7825 * ipa-modref.h (struct modref_summary): Add retslot_flags.
7826 * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
7827
7828 2021-10-29 Tamar Christina <tamar.christina@arm.com>
7829
7830 PR tree-optimization/102977
7831 * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
7832 (vect_detect_pair_op): Add crosslane check.
7833 (vect_match_call_complex_mla): Remove.
7834 (class complex_mul_pattern): Update comment.
7835 (complex_mul_pattern::matches): Update detection.
7836 (class complex_fma_pattern): Remove.
7837 (complex_fma_pattern::matches): Remove.
7838 (complex_fma_pattern::recognize): Remove.
7839 (complex_fma_pattern::build): Remove.
7840 (class complex_fms_pattern): Update comment.
7841 (complex_fms_pattern::matches): Remove.
7842 (complex_operations_pattern::recognize): Remove complex_fma_pattern
7843
7844 2021-10-29 Jakub Jelinek <jakub@redhat.com>
7845
7846 * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
7847 call to store.
7848
7849 2021-10-29 Xionghu Luo <luoxhu@linux.ibm.com>
7850
7851 PR target/102868
7852 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
7853 patterns match and emit for VSX xxpermdi.
7854
7855 2021-10-29 liuhongt <hongtao.liu@intel.com>
7856
7857 PR target/102464
7858 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
7859 function type.
7860 (V16HF_FTYPE_V16HF): Ditto.
7861 (V32HF_FTYPE_V32HF): Ditto.
7862 (V8HF_FTYPE_V8HF_ROUND): Ditto.
7863 (V16HF_FTYPE_V16HF_ROUND): Ditto.
7864 (V32HF_FTYPE_V32HF_ROUND): Ditto.
7865 * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
7866 IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
7867 IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
7868 IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
7869 IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
7870 * config/i386/i386-builtins.c
7871 (ix86_builtin_vectorized_function): Enable vectorization for
7872 HFmode FLOOR/CEIL/TRUNC operation.
7873 * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
7874 new builtins.
7875 * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
7876 to vector HFmodes.
7877
7878 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7879 Andrew MacLeod <amacleod@redhat.com>
7880
7881 * value-relation.cc (path_oracle::killing_def): Walk the
7882 equivalency list and remove SSA from any equivalencies.
7883
7884 2021-10-28 Stafford Horne <shorne@gmail.com>
7885
7886 * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
7887 to _mcount.
7888
7889 2021-10-28 Jakub Jelinek <jakub@redhat.com>
7890
7891 PR tree-optimization/102951
7892 * fold-const.h (address_compare): Declare.
7893 * fold-const.c (address_compare): New function.
7894 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
7895 address_compare helper.
7896 (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
7897 simplification.
7898
7899 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
7900
7901 * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
7902
7903 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
7904
7905 PR tree-optimization/102940
7906 * tree-vrp.c (execute_ranger_vrp): Reset scev.
7907
7908 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
7909
7910 * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
7911
7912 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
7913
7914 * configure: Regenerate.
7915 * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
7916
7917 2021-10-28 Eric Botcazou <ebotcazou@adacore.com>
7918
7919 * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
7920
7921 2021-10-28 Richard Biener <rguenther@suse.de>
7922
7923 PR middle-end/84407
7924 * fold-const.c (fold_convert_const): Avoid int to float
7925 constant folding with -frounding-math and inexact result.
7926 * simplify-rtx.c (simplify_const_unary_operation): Likewise
7927 for both float and unsigned_float.
7928
7929 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7930
7931 * tree-ssa-threadbackward.c
7932 (back_threader::find_taken_edge_switch): Use find_case_label_range
7933 instead of find_taken_edge.
7934
7935 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7936
7937 * tree-ssa-threadbackward.c (class back_threader_registry):
7938 Inherit from back_jt_path_registry.
7939 (back_threader_registry::thread_through_all_blocks): Remove.
7940 (back_threader_registry::register_path): Remove
7941 m_lowlevel_registry prefix.
7942
7943 2021-10-28 Richard Biener <rguenther@suse.de>
7944
7945 PR middle-end/57245
7946 * fold-const.c (fold_convert_const_real_from_real): Honor
7947 -frounding-math if the conversion is not exact.
7948 * simplify-rtx.c (simplify_const_unary_operation): Do not
7949 simplify FLOAT_TRUNCATE with sign dependent rounding.
7950
7951 2021-10-28 Richard Biener <rguenther@suse.de>
7952
7953 PR tree-optimization/102949
7954 * tree-vect-stmts.c (ensure_base_align): Look at the
7955 dr_info of a group leader and assert we are looking at
7956 one with analyzed alignment.
7957
7958 2021-10-28 Kewen Lin <linkw@linux.ibm.com>
7959
7960 PR target/102767
7961 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
7962 V1T1 mode for unaligned load and store.
7963
7964 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
7965
7966 * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
7967 use this pattern.
7968
7969 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
7970
7971 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
7972 CANONICAL_ORDER.
7973
7974 2021-10-28 Alexandre Oliva <oliva@adacore.com>
7975
7976 * common.opt (fharden-compares): New.
7977 (fharden-conditional-branches): New.
7978 * doc/invoke.texi: Document new options.
7979 * gimple-harden-conditionals.cc: New.
7980 * Makefile.in (OBJS): Build it.
7981 * passes.def: Add new passes.
7982 * tree-pass.h (make_pass_harden_compares): Declare.
7983 (make_pass_harden_conditional_branches): Declare.
7984
7985 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
7986
7987 PR target/94613
7988 * config/rs6000/altivec.md: Add vsx register constraints.
7989 * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
7990 (vsx_xxsel<mode>2): Likewise.
7991 (vsx_xxsel<mode>3): Likewise.
7992 (vsx_xxsel<mode>4): Likewise.
7993
7994 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
7995
7996 PR target/94613
7997 * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
7998 (altivec_vsel<mode>): ... this and update define.
7999 (*altivec_vsel<mode>_uns): Delete.
8000 (altivec_vsel<mode>2): New define_insn.
8001 (altivec_vsel<mode>3): Likewise.
8002 (altivec_vsel<mode>4): Likewise.
8003 * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
8004 (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
8005 vel_sel.
8006 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
8007 selection instead of per element.
8008 * config/rs6000/vector.md:
8009 * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
8010 (vsx_xxsel<mode>): ... this and update define.
8011 (*vsx_xxsel<mode>_uns): Delete.
8012 (vsx_xxsel<mode>2): New define_insn.
8013 (vsx_xxsel<mode>3): Likewise.
8014 (vsx_xxsel<mode>4): Likewise.
8015
8016 2021-10-28 Hongyu Wang <hongyu.wang@intel.com>
8017
8018 * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
8019 HFmode rsqrt without TARGET_SSE_MATH.
8020 (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
8021 btrunc condition to be restricted by -ftrapping-math, adjust
8022 use_rsqrt_p function call.
8023 * config/i386/i386.md (rcphf2): New define_insn.
8024 (rsqrthf2): Likewise.
8025 * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
8026 (div<mode>3): New expander for HF mode.
8027 (rsqrt<mode>2): Likewise.
8028 (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
8029 (*avx512fp16_vmrsqrtv8hf2): Likewise.
8030
8031 2021-10-27 Saagar Jha <saagar@saagarjha.com>
8032
8033 * config.gcc: Adjust for Darwin21.
8034 * config/darwin-c.c (macosx_version_as_macro): Likewise.
8035 * config/darwin-driver.c (validate_macosx_version_min):
8036 Likewise.
8037 (darwin_find_version_from_kernel): Likewise.
8038
8039 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
8040
8041 * gimple-range-path.cc
8042 (path_range_query::range_defined_in_block): Call killing_def.
8043
8044 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
8045
8046 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
8047 operands as well as relation.
8048 * gimple-range-path.cc
8049 (path_range_query::compute_ranges_in_block): Compute PHI relations
8050 first. Compute outgoing relations at the end.
8051 (path_range_query::compute_ranges): Remove call to compute_relations.
8052 (path_range_query::compute_relations): Remove.
8053 (path_range_query::maybe_register_phi_relation): New.
8054 (path_range_query::compute_phi_relations): Abstract out
8055 registering one PHI relation to...
8056 (path_range_query::compute_outgoing_relations): ...here.
8057 * gimple-range-path.h (class path_range_query): Remove
8058 compute_relations.
8059 Add maybe_register_phi_relation.
8060
8061 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
8062 Andrew MacLeod <amacleod@redhat.com>
8063
8064 * value-relation.cc (path_oracle::killing_def): Kill second
8065 order relations.
8066
8067 2021-10-27 Martin Jambor <mjambor@suse.cz>
8068
8069 * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
8070 profile feedback depending on their local availability.
8071
8072 2021-10-27 Martin Jambor <mjambor@suse.cz>
8073
8074 * params.opt (param_ipa_cp_profile_count_base): New parameter.
8075 * doc/invoke.texi (Optimize Options): Add entry for
8076 ipa-cp-profile-count-base.
8077 * ipa-cp.c (max_count): Replace with base_count, replace all
8078 occurrences too, unless otherwise stated.
8079 (ipcp_cloning_candidate_p): identify mostly-directly called
8080 functions based on their counts, not max_count.
8081 (compare_edge_profile_counts): New function.
8082 (ipcp_propagate_stage): Instead of setting max_count, find the
8083 appropriate edge count in a sorted vector of counts of eligible
8084 edges and make it the base_count.
8085
8086 2021-10-27 Martin Jambor <mjambor@suse.cz>
8087
8088 * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
8089 n_nonrec_calls and itself, document all fields.
8090 (init_caller_stats): Initialize the above new fields.
8091 (gather_caller_stats): Gather self-recursive counts and calls number.
8092 (get_info_about_necessary_edges): Gather counts of self-recursive and
8093 other edges bringing in the requested value separately.
8094 (dump_profile_updates): Rework to dump info about a single node only.
8095 (lenient_count_portion_handling): New function.
8096 (struct gather_other_count_struct): New type.
8097 (gather_count_of_non_rec_edges): New function.
8098 (struct desc_incoming_count_struct): New type.
8099 (analyze_clone_icoming_counts): New function.
8100 (adjust_clone_incoming_counts): Likewise.
8101 (update_counts_for_self_gen_clones): Likewise.
8102 (update_profiling_info): Rewritten.
8103 (update_specialized_profile): Adjust call to dump_profile_updates.
8104 (create_specialized_node): Do not update profiling info.
8105 (decide_about_value): New parameter self_gen_clones, either push new
8106 clones into it or updat their profile counts. For self-recursively
8107 generated values, use a portion of the node count instead of count
8108 from self-recursive edges to estimate goodness.
8109 (decide_whether_version_node): Gather clones for self-generated values
8110 in a new vector, update their profiles at once at the end.
8111
8112 2021-10-27 Richard Biener <rguenther@suse.de>
8113
8114 * tree-vectorizer.c (vect_transform_loops): New function,
8115 split out from ...
8116 (try_vectorize_loop_1): ... here. Simplify as epilogues
8117 are now fully handled in the split part.
8118
8119 2021-10-27 Jakub Jelinek <jakub@redhat.com>
8120
8121 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
8122 iterators with pointer types.
8123 (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
8124
8125 2021-10-26 Martin Sebor <msebor@redhat.com>
8126
8127 PR tree-optimization/102238
8128 PR tree-optimization/102919
8129 * gimple-ssa-sprintf.c (get_string_length): Add an argument.
8130 (array_elt_at_offset): Move to pointer-query.
8131 (set_aggregate_size_and_offset): New function.
8132 (field_at_offset): Move to pointer-query.
8133 (get_origin_and_offset): Rename...
8134 (get_origin_and_offset_r): this. Add an argument. Make aggregate
8135 handling more robust.
8136 (get_origin_and_offset): New.
8137 (alias_offset): Add an argument.
8138 (format_string): Use subobject size determined by get_origin_and_offset.
8139 * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
8140 Improve/correct handling of aggregates.
8141 (array_elt_at_offset): Same.
8142 * pointer-query.h (field_at_offset): Declare.
8143 (array_elt_at_offset): Declare.
8144
8145 2021-10-26 Martin Sebor <msebor@redhat.com>
8146
8147 * builtins.c (check_strncat_sizes): Pass access_data ctor additional
8148 arguments.
8149 (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
8150 (expand_builtin_fork_or_exec): Same.
8151 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
8152 compute_objsize additional arguments.
8153 (inbounds_memaccess_p): Same.
8154 (array_bounds_checker::check_array_bounds): Add an assert. Stash
8155 statement in a member.
8156 (check_array_bounds_dom_walker::before_dom_children): Same.
8157 * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
8158 * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
8159 (handle_printf_call): Pass a new argument.
8160 * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
8161 (check_access): Add an argument and pass it along to callees.
8162 (check_read_access): Make a member function.
8163 (pass_waccess::check_strcat): Pass access_data ctor additional
8164 arguments.
8165 (pass_waccess::check_strncat): Same.
8166 (pass_waccess::check_stxcpy): Same.
8167 (pass_waccess::check_stxncpy): Same.
8168 (pass_waccess::check_strncmp): Same.
8169 (pass_waccess::check_read_access): Same.
8170 (pass_waccess::check_builtin): Same.
8171 (pass_waccess::maybe_check_access_sizes): Same.
8172 (pass_waccess::maybe_check_dealloc_call): Same.
8173 * gimple-ssa-warn-access.h (check_read_access): Declare a new
8174 member function.
8175 * pointer-query.cc (compute_objsize_r): Add an argument.
8176 (gimple_call_return_array): Same.
8177 (gimple_call_alloc_size): Same.
8178 (access_ref::access_ref): Same.
8179 (access_ref::get_ref): Same.
8180 (pointer_query::get_ref): Same.
8181 (handle_min_max_size): Pass an arguments to callees.
8182 (handle_array_ref): Add an argument.
8183 (handle_mem_ref): Same.
8184 (compute_objsize): Same.
8185 * pointer-query.h (struct access_ref): Adjust signatures.
8186 (struct access_data): Same.
8187 (gimple_call_alloc_size): Add an argument.
8188 (gimple_parm_array_size): Same.
8189 (compute_objsize): Same.
8190 * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
8191 argument to compute_objsize.
8192 (strlen_pass::maybe_warn_overflow): Same.
8193 (maybe_diag_stxncpy_trunc): Same.
8194
8195 2021-10-26 Martin Sebor <msebor@redhat.com>
8196
8197 PR middle-end/102453
8198 * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
8199 (pass_waccess::check_atomic_builtin): Call it.
8200
8201 2021-10-26 Vladimir N. Makarov <vmakarov@redhat.com>
8202
8203 PR rtl-optimization/102842
8204 * lra-constraints.c (match_reload): Ignore out in checking values
8205 of outs.
8206 (curr_insn_transform): Collect outputs before doing reloads of operands.
8207
8208 2021-10-26 Paul A. Clarke <pc@us.ibm.com>
8209
8210 PR target/102719
8211 * config/rs6000/x86intrin.h: Move some included headers to new
8212 headers. Include new immintrin.h instead of those headers.
8213 * config/rs6000/immintrin.h: New.
8214 * config/rs6000/x86gprintrin.h: New.
8215 * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
8216
8217 2021-10-26 Richard Biener <rguenther@suse.de>
8218
8219 * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
8220 Remove byte_offset parameter.
8221 (vect_create_data_ref_ptr): Likewise.
8222 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8223 Likewise.
8224 (vect_create_data_ref_ptr): Likewise.
8225 * tree-vect-stmts.c (vectorizable_store): Adjust.
8226 (vectorizable_load): Likewise.
8227
8228 2021-10-26 Richard Biener <rguenther@suse.de>
8229
8230 PR tree-optimization/96109
8231 * tree-vectorizer.h (dr_misalignment): Add optional offset
8232 parameter.
8233 * tree-vect-data-refs.c (dr_misalignment): Likewise. Remove
8234 offset applied for negative stride accesses.
8235 (vect_enhance_data_refs_alignment): Compute negative stride
8236 access offset and pass it to dr_misalignment.
8237 * tree-vect-stmts.c (get_negative_load_store_type): Pass
8238 negative offset to dr_misalignment.
8239 (get_group_load_store_type): Likewise.
8240 (get_load_store_type): Likewise.
8241 (vectorizable_store): Remove asserts about alignment.
8242 (vectorizable_load): Likewise.
8243
8244 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
8245
8246 PR tree-optimization/102897
8247 * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
8248
8249 2021-10-26 Richard Biener <rguenther@suse.de>
8250
8251 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8252 Take offset in bytes.
8253 (vect_create_data_ref_ptr): Likewise.
8254 * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
8255 offset by element size.
8256 (vect_create_cond_for_align_checks): Likewise.
8257 * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
8258 (vectorizable_load): Remove duplicate leftover from merge
8259 conflict.
8260
8261 2021-10-26 Roger Sayle <roger@nextmovesoftware.com>
8262
8263 * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
8264 function to expand V1TI mode logical shifts by integer constants.
8265 (ix86_expand_v1ti_rotate): New helper function to expand V1TI
8266 mode rotations by integer constants.
8267 * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
8268 ix86_expand_v1ti_rotate): Prototype new functions here.
8269 * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
8270 New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
8271
8272 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
8273
8274 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
8275 Avoid threading circular paths.
8276
8277 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
8278
8279 * tree-ssa-threadbackward.c (back_threader::resolve_phi):
8280 Attempt to resolve all incoming paths to a PHI.
8281 (back_threader::resolve_def): Always return true for PHIs.
8282
8283 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
8284
8285 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
8286 Always try to resolve path without looking back.
8287 * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
8288 edge is a back edge.
8289
8290 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
8291
8292 PR tree-optimization/102789
8293 * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
8294 update inits of simd_lane_access.
8295
8296 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
8297
8298 * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
8299 move to vr-values.c.
8300 (simplify_casted_conds): Move to vrp_folder class.
8301 (execute_vrp): Call via vrp_folder now.
8302 * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
8303 (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
8304 * vr-values.h (simplify_casted_cond): Add prototype.
8305
8306 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
8307
8308 * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
8309 to fold anyway.
8310
8311 2021-10-25 Paul A. Clarke <pc@us.ibm.com>
8312
8313 * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
8314 function signature.
8315 (_mm_testc_si128): Likewise.
8316 (_mm_testnzc_si128): Likewise.
8317 (_mm_blend_ps): Likewise.
8318 (_mm_blendv_ps): Likewise.
8319 (_mm_blend_pd): Likewise.
8320 (_mm_blendv_pd): Likewise.
8321 (_mm_ceil_pd): Likewise.
8322 (_mm_ceil_sd): Likewise.
8323 (_mm_ceil_ps): Likewise.
8324 (_mm_ceil_ss): Likewise.
8325 (_mm_floor_pd): Likewise.
8326 (_mm_floor_sd): Likewise.
8327 (_mm_floor_ps): Likewise.
8328 (_mm_floor_ss): Likewise.
8329 (_mm_minpos_epu16): Likewise.
8330 (_mm_mul_epi32): Likewise.
8331 (_mm_cvtepi8_epi16): Likewise.
8332 (_mm_packus_epi32): Likewise.
8333 (_mm_cmpgt_epi64): Likewise.
8334
8335 2021-10-25 Roger Sayle <roger@nextmovesoftware.com>
8336
8337 * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
8338 shifts of the mode's smin_value and smax_value when the bit count
8339 operand doesn't have side-effects.
8340 [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
8341 when the bit count operand doesn't have side-effects.
8342 (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
8343 compile-time evaluation of saturating left shifts with constant
8344 arguments.
8345
8346 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
8347
8348 * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
8349 for TDF_DETAILS.
8350
8351 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
8352
8353 * flag-types.h (enum ranger_debug): Adjust values.
8354 * params.opt (ranger_debug): Ditto.
8355
8356 2021-10-25 Martin Jambor <mjambor@suse.cz>
8357
8358 PR tree-optimization/102886
8359 * tree-sra.c (totally_scalarize_subtree): Fix the out of
8360 access-condition.
8361
8362 2021-10-25 Andrew Pinski <apinski@marvell.com>
8363
8364 * tree-ssa-dce.c (simple_dce_from_worklist):
8365 Check stmt_unremovable_because_of_non_call_eh_p also
8366 before removing the statement.
8367
8368 2021-10-25 Richard Biener <rguenther@suse.de>
8369
8370 PR tree-optimization/102905
8371 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8372 Use vect_supportable_dr_alignment again to determine whether
8373 an access is supported when not aligned.
8374
8375 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
8376
8377 * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
8378 for zbs extension.
8379
8380 2021-10-25 Jim Wilson <jimw@sifive.com>
8381 Kito Cheng <kito.cheng@sifive.com>
8382 Jia-Wei Chen <jiawei@iscas.ac.cn>
8383 Shi-Hua Liao <shihua@iscas.ac.cn>
8384
8385 * config/riscv/bitmanip.md (shiftm1): New.
8386 (*bset<mode>): Ditto.
8387 (*bset<mode>_mask): Ditto.
8388 (*bset<mode>_1): Ditto.
8389 (*bset<mode>_1_mask): Ditto.
8390 (*bseti<mode>): Ditto.
8391 (*bclr<mode>): Ditto.
8392 (*bclri<mode>): Ditto.
8393 (*binv<mode>): Ditto.
8394 (*binvi<mode>): Ditto.
8395 (*bext<mode>): Ditto.
8396 (*bexti): Ditto.
8397 * config/riscv/predicates.md (splittable_const_int_operand):
8398 Handle bseti.
8399 (single_bit_mask_operand): New.
8400 (not_single_bit_mask_operand): Ditto.
8401 (const31_operand): Ditto.
8402 (const63_operand): Ditto.
8403 * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
8404 (riscv_output_move): Ditto.
8405 (riscv_print_operand): Handle new operand type: T and S.
8406 * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
8407
8408 2021-10-25 Jim Wilson <jimw@sifive.com>
8409
8410 * config/riscv/riscv.c (riscv_build_integer_1): Build integer
8411 with rotate.
8412
8413 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
8414
8415 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
8416 for zbb extension.
8417 (riscv_rtx_costs): Ditto.
8418
8419 2021-10-25 Jim Wilson <jimw@sifive.com>
8420 Kito Cheng <kito.cheng@sifive.com>
8421 Jia-Wei Chen <jiawei@iscas.ac.cn>
8422
8423 * config/riscv/bitmanip.md (bitmanip_bitwise): New.
8424 (bitmanip_minmax): New.
8425 (clz_ctz_pcnt): New.
8426 (bitmanip_optab): New.
8427 (bitmanip_insn): New.
8428 (*<optab>_not<mode>): New.
8429 (*xor_not<mode>): New.
8430 (<bitmanip_optab>si2): New.
8431 (*<bitmanip_optab>disi2): New.
8432 (<bitmanip_optab>di2): New.
8433 (*zero_extendhi<GPR:mode>2_bitmanip): New.
8434 (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
8435 (*zero_extendhi<GPR:mode>2_zbb): New.
8436 (rotrsi3): New.
8437 (rotrdi3): New.
8438 (rotrsi3_sext): New.
8439 (rotlsi3): New.
8440 (rotldi3): New.
8441 (rotlsi3_sext): New.
8442 (bswap<mode>2): New.
8443 (<bitmanip_optab><mode>3): New.
8444 * config/riscv/riscv.md (type): Add rotate.
8445 (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
8446 (*zero_extendhi<GPR:mode>2): New.
8447 (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
8448 (*extend<SHORT:mode><SUPERQI:mode>2): New.
8449
8450 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
8451
8452 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
8453 for zba extension.
8454 (riscv_rtx_costs): Ditto.
8455
8456 2021-10-25 Jim Wilson <jimw@sifive.com>
8457 Kito Cheng <kito.cheng@sifive.com>
8458 Jia-Wei Chen <jiawei@iscas.ac.cn>
8459
8460 * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
8461 (*shNadd): Ditto.
8462 (*shNadduw): Ditto.
8463 (*add.uw): Ditto.
8464 (*slliuw): Ditto.
8465 (riscv_rtx_costs): Ditto.
8466 * config/riscv/riscv.md: Include bitmanip.md
8467 (type): Add bitmanip bype.
8468 (zero_extendsidi2): Change to define_expand pattern.
8469 (*zero_extendsidi2_internal): New.
8470 (zero_extendsidi2_shifted): Disable for ZBA.
8471
8472 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
8473
8474 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
8475 Add zba, zbb, zbc and zbs.
8476 (riscv_ext_flag_table): Ditto.
8477 * config/riscv/riscv-opts.h (MASK_ZBA): New.
8478 (MASK_ZBB): Ditto.
8479 (MASK_ZBC): Ditto.
8480 (MASK_ZBS): Ditto.
8481 (TARGET_ZBA): Ditto.
8482 (TARGET_ZBB): Ditto.
8483 (TARGET_ZBC): Ditto.
8484 (TARGET_ZBS): Ditto.
8485 * config/riscv/riscv.opt (riscv_zb_subext): New.
8486
8487 2021-10-25 liuhongt <hongtao.liu@intel.com>
8488
8489 PR target/102464
8490 * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
8491 when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
8492
8493 2021-10-25 Richard Biener <rguenther@suse.de>
8494
8495 PR tree-optimization/102920
8496 * tree-ssa-sccvn.h (expressions_equal_p): Add argument
8497 controlling VN_TOP matching behavior.
8498 * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
8499 (vn_phi_eq): Do not optimistically match VN_TOP.
8500
8501 2021-10-25 konglin1 <lingling.kong@intel.com>
8502
8503 * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
8504 define_insn_and_split.
8505 (fma_<mode>_fadd_fcmul):Likewise
8506 (fma_<complexopname>_<mode>_fma_zero):Likewise
8507
8508 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
8509
8510 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
8511 TARGET_DISABLE_FPREGS.
8512 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
8513 MASK_DISABLE_FPREGS.
8514 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
8515 cost of hardware integer multiplication.
8516 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
8517 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
8518 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
8519 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
8520 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
8521 SOFT_FLOAT. Revise comment.
8522 (msoft-float): New option.
8523
8524 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
8525
8526 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
8527
8528 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
8529
8530 * doc/install.texi (Specific): Remove obsolete details
8531 around GNU/Linux on Itanium.
8532 (Specific): Remove reference to Windows for Itanium.
8533
8534 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8535
8536 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
8537 typo fix.
8538
8539 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
8540
8541 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
8542
8543 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
8544
8545 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
8546 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
8547 (one_cmplv1ti2): New define expand.
8548
8549 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
8550
8551 PR other/102663
8552 * Makefile.in: Handle dvidir and install-dvi target.
8553 * configure: Regenerate.
8554 * configure.ac: Add install-dvi to target_list.
8555
8556 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
8557
8558 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
8559 (Specific): Ditto.
8560
8561 2021-10-22 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/102893
8564 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
8565 test for an exit edge.
8566
8567 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
8568 Andrew MacLeod <amacleod@redhat.com>
8569
8570 * gimple-range-path.cc (path_range_query::compute_phi_relations):
8571 Kill any global relations we may know before registering a new
8572 one.
8573 * value-relation.cc (path_oracle::killing_def): New.
8574 * value-relation.h (path_oracle::killing_def): New.
8575
8576 2021-10-22 Richard Biener <rguenther@suse.de>
8577
8578 PR bootstrap/102681
8579 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
8580 record VN_TOP.
8581 (vn_phi_lookup): Likewise.
8582
8583 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
8584
8585 PR target/98667
8586 * doc/invoke.texi: Document -fcf-protection requires i686 or
8587 new.
8588
8589 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
8590
8591 PR middle-end/102764
8592 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
8593
8594 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
8595
8596 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
8597 macro and all invocations.
8598
8599 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
8600
8601 * doc/invoke.texi (ranger-debug): Document.
8602 * flag-types.h (enum ranger_debug): New.
8603 (enum evrp_mode): Remove debug values.
8604 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
8605 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
8606 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
8607 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
8608 (execute_early_vrp): Use evrp-mode directly.
8609 * params.opt (enum evrp_mode): Remove debug values.
8610 (ranger-debug): New.
8611 (ranger-logical-depth): Relocate to be in alphabetical order.
8612
8613 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
8614
8615 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
8616 * flag-types.h: (enum vrp_mode): New.
8617 * params.opt: (vrp1-mode, vrp2-mode): New.
8618 * tree-vrp.c (vrp_pass_num): New.
8619 (pass_vrp::pass_vrp): Set pass number.
8620 (pass_vrp::execute): Choose which VRP mode to execute.
8621
8622 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
8623
8624 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
8625 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
8626 * tree-vrp.c (class rvrp_folder): Relocate here.
8627 (execute_ranger_vrp): New.
8628 * tree-vrp.h (execute_ranger_vrp): Export.
8629
8630 2021-10-21 Martin Liska <mliska@suse.cz>
8631
8632 PR debug/102585
8633 PR bootstrap/102766
8634 * opts.c (finish_options): Process flag_var_tracking* options
8635 here as they can be adjusted by optimize attribute.
8636 Process also flag_syntax_only and flag_gtoggle.
8637 * toplev.c (process_options): Remove it here.
8638 * common.opt: Make debug_nonbind_markers_p as PerFunction
8639 attribute as it depends on optimization level.
8640
8641 2021-10-21 Martin Jambor <mjambor@suse.cz>
8642
8643 PR tree-optimization/102505
8644 * tree-sra.c (totally_scalarize_subtree): Check that the
8645 encountered field fits within the acces we would like to put it
8646 in.
8647
8648 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
8649
8650 * tree-ssa-threadbackward.c
8651 (back_threader::maybe_register_path): Remove circular paths check.
8652
8653 2021-10-21 Richard Biener <rguenther@suse.de>
8654
8655 * toplev.c (process_options): Move the initial debug_hooks
8656 setting ...
8657 (toplev::main): ... before the call of the post_options
8658 langhook.
8659
8660 2021-10-21 Richard Biener <rguenther@suse.de>
8661
8662 PR tree-optimization/102847
8663 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
8664 load cost in the prologue for VMAT_INVARIANT.
8665
8666 2021-10-21 Richard Biener <rguenther@suse.de>
8667
8668 PR tree-optimization/102847
8669 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
8670 handle VMAT_INVARIANT as a splat in the prologue.
8671
8672 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
8673
8674 PR target/102812
8675 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
8676 move to use the same logic as HImode.
8677
8678 2021-10-21 Richard Biener <rguenther@suse.de>
8679
8680 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
8681 superfluous gimple_call_nothrow_p check.
8682
8683 2021-10-21 Andrew Pinski <apinski@marvell.com>
8684
8685 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
8686 Mark the ssa-name of the rhs as one to be removed.
8687 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
8688 Call simple_dce_from_worklist at the end to a simple dce.
8689
8690 2021-10-21 Andrew Pinski <apinski@marvell.com>
8691
8692 * tree-cfg.c (maybe_remove_writeonly_store): New function
8693 factored out from ...
8694 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
8695
8696 2021-10-21 Andrew Pinski <apinski@marvell.com>
8697
8698 * tree-cfg.c (execute_fixup_cfg): Remove comment
8699 about standalone pass.
8700
8701 2021-10-21 Andrew Pinski <apinski@marvell.com>
8702
8703 * tree-cfg.c (execute_fixup_cfg): Output when the statement
8704 is removed when it is a write only var.
8705
8706 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
8707
8708 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
8709 Avoid threading circular paths.
8710
8711 2021-10-20 Alex Coplan <alex.coplan@arm.com>
8712
8713 * calls.c (initialize_argument_information): Remove some dead
8714 code, remove handling for function_arg returning const_int.
8715 * doc/tm.texi: Delete documentation for unused target hooks.
8716 * doc/tm.texi.in: Likewise.
8717 * target.def (load_bounds_for_arg): Delete.
8718 (store_bounds_for_arg): Delete.
8719 (load_returned_bounds): Delete.
8720 (store_returned_bounds): Delete.
8721 * targhooks.c (default_load_bounds_for_arg): Delete.
8722 (default_store_bounds_for_arg): Delete.
8723 (default_load_returned_bounds): Delete.
8724 (default_store_returned_bounds): Delete.
8725 * targhooks.h (default_load_bounds_for_arg): Delete.
8726 (default_store_bounds_for_arg): Delete.
8727 (default_load_returned_bounds): Delete.
8728 (default_store_returned_bounds): Delete.
8729
8730 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
8731
8732 * doc/extend.texi (Basic Asm): Clarify that asm is not an
8733 extension in C++.
8734 * doc/invoke.texi (-fno-asm): Fix description for C++.
8735
8736 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
8737
8738 * doc/install.texi: Remove link to old.html
8739
8740 2021-10-20 Tamar Christina <tamar.christina@arm.com>
8741
8742 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
8743
8744 2021-10-20 Tamar Christina <tamar.christina@arm.com>
8745
8746 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
8747
8748 2021-10-20 Tamar Christina <tamar.christina@arm.com>
8749
8750 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
8751 case.
8752 * config/aarch64/constraints.md (D1): New.
8753
8754 2021-10-20 Tamar Christina <tamar.christina@arm.com>
8755
8756 * config/aarch64/aarch64-simd.md
8757 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
8758 (*aarch64_topbits_shuffle<mode>_le): New.
8759 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
8760 (*aarch64_topbits_shuffle<mode>_be): New.
8761 * config/aarch64/predicates.md
8762 (aarch64_simd_shift_imm_vec_exact_top): New.
8763
8764 2021-10-20 Tamar Christina <tamar.christina@arm.com>
8765
8766 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
8767 *aarch64_<srn_op>shrn<mode>2_vect_le,
8768 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
8769 * config/aarch64/iterators.md (srn_op): New.
8770
8771 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
8772
8773 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
8774 as local variable.
8775 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
8776 ctx->outer instead of ctx.
8777
8778 2021-10-20 Martin Liska <mliska@suse.cz>
8779
8780 Revert:
8781 2021-10-19 Martin Liska <mliska@suse.cz>
8782
8783 PR target/102374
8784 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
8785 * system.h (strip_whilespaces): New function.
8786
8787 2021-10-20 Martin Liska <mliska@suse.cz>
8788
8789 Revert:
8790 2021-10-19 Martin Liska <mliska@suse.cz>
8791
8792 PR target/102375
8793 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
8794 Strip whitespaces.
8795
8796 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8797
8798 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
8799 Change to 8 with -Os, 11 otherwise.
8800
8801 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8802
8803 * config/aarch64/aarch64.c (neoversev1_tunings):
8804 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
8805 (neoversen2_tunings): Likewise.
8806
8807 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8808
8809 PR target/100966
8810 * config/aarch64/aarch64.md (frint_pattern): Update comment.
8811 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
8812 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
8813 * config/aarch64/arm_neon.h: Likewise.
8814 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
8815
8816 2021-10-20 Martin Liska <mliska@suse.cz>
8817
8818 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
8819 already declared global variable.
8820 (arm_unwind_emit_set): Use out_file as function argument.
8821 (arm_unwind_emit): Likewise.
8822 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
8823 (machopic_output_stub_indirection): Likewise.
8824 (machopic_output_indirection): Likewise.
8825 (machopic_finish): Likewise.
8826 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
8827 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8828 * config/ia64/ia64.c (process_epilogue): Likewise.
8829 (process_cfa_adjust_cfa): Likewise.
8830 (process_cfa_register): Likewise.
8831 (process_cfa_offset): Likewise.
8832 (ia64_asm_unwind_emit): Likewise.
8833 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
8834
8835 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
8836
8837 * config/aarch64/aarch64-builtins.c
8838 (aarch64_general_gimple_fold_builtin):
8839 lower vld1 and vst1 variants of the neon builtins
8840 * config/aarch64/aarch64-protos.h:
8841 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
8842 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
8843 Likwise.
8844
8845 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
8846
8847 * match.pd: Generate IFN_TRUNC.
8848
8849 2021-10-20 Richard Biener <rguenther@suse.de>
8850
8851 PR tree-optimization/102853
8852 * tree-data-ref.c (split_constant_offset_1): Bail out
8853 immediately if the expression traps on overflow.
8854
8855 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8856
8857 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
8858
8859 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8860
8861 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
8862 Remove superflous debugging message.
8863 (back_jt_path_registry::duplicate_thread_path): Same.
8864
8865 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8866
8867 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
8868 Remove.
8869 (back_threader_registry::register_path): Remove m_threaded_paths.
8870
8871 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8872
8873 PR tree-optimization/102814
8874 * doc/invoke.texi: Document --param=max-fsm-thread-length.
8875 * params.opt: Add --param=max-fsm-thread-length.
8876 * tree-ssa-threadbackward.c
8877 (back_threader_profitability::profitable_path_p): Fail on paths
8878 longer than max-fsm-thread-length.
8879
8880 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
8881
8882 PR middle-end/102764
8883 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
8884 statement to reset the current location for the outgoing edges.
8885
8886 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8887 Richard Biener <rguenther@suse.de>
8888
8889 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
8890 on the same line as the threading cancellation.
8891 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
8892 Avoid threading through loop headers where the path remains in the
8893 loop.
8894
8895 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
8896
8897 * tree-object-size.c (unknown): Make into a function. Adjust
8898 all uses.
8899 (unknown_object_size): Simplify implementation.
8900
8901 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
8902 Kewen Lin <linkw@linux.ibm.com>
8903
8904 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8905 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
8906 vect_slp_v16qi_store, vect_slp_v2hi_store,
8907 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
8908
8909 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
8910
8911 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
8912
8913 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
8914
8915 PR target/101893
8916 PR target/102719
8917 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
8918 * config/rs6000/pmmintrin.h: Same.
8919 * config/rs6000/smmintrin.h: Same.
8920 * config/rs6000/tmmintrin.h: Same.
8921
8922 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
8923
8924 * config.gcc (extra_headers): Add nmmintrin.h.
8925
8926 2021-10-19 Richard Biener <rguenther@suse.de>
8927
8928 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
8929 misalignment parameter.
8930 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
8931 Do not change DR_MISALIGNMENT in place, instead pass the
8932 adjusted misalignment to vect_supportable_dr_alignment.
8933 (vect_peeling_supportable): Likewise.
8934 (vect_peeling_hash_get_lowest_cost): Adjust.
8935 (vect_enhance_data_refs_alignment): Likewise.
8936 (vect_vfa_access_size): Likewise.
8937 (vect_supportable_dr_alignment): Add misalignment
8938 parameter and simplify.
8939 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
8940 (get_group_load_store_type): Likewise.
8941 (get_load_store_type): Likewise.
8942
8943 2021-10-19 Clément Chigot <clement.chigot@atos.net>
8944
8945 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
8946 __tls_get_addr reference to .text csect.
8947
8948 2021-10-19 Martin Liska <mliska@suse.cz>
8949
8950 PR target/102375
8951 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
8952 Strip whitespaces.
8953
8954 2021-10-19 Richard Biener <rguenther@suse.de>
8955
8956 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
8957 (vect_get_load_cost): Likewise.
8958 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
8959 alignment support scheme and misalignment as arguments
8960 and pass them down.
8961 (vect_get_peeling_costs_all_drs): Compute that info here
8962 and note that we shouldn't need to.
8963 * tree-vect-stmts.c (vect_model_store_cost): Get
8964 alignment support scheme and misalignment as arguments.
8965 (vect_get_store_cost): Likewise.
8966 (vect_model_load_cost): Likewise.
8967 (vect_get_load_cost): Likewise.
8968 (vectorizable_store): Pass down alignment support scheme
8969 and misalignment to costing.
8970 (vectorizable_load): Likewise.
8971
8972 2021-10-19 Richard Biener <rguenther@suse.de>
8973
8974 * tree-vect-stmts.c (get_negative_load_store_type): Add
8975 offset output parameter and initialize it.
8976 (get_group_load_store_type): Likewise.
8977 (get_load_store_type): Likewise.
8978 (vectorizable_store): Use offset as computed by
8979 get_load_store_type.
8980 (vectorizable_load): Likewise.
8981
8982 2021-10-19 Richard Biener <rguenther@suse.de>
8983
8984 PR tree-optimization/102827
8985 * tree-if-conv.c (predicate_statements): Add pe parameter
8986 and use that edge to insert invariant stmts on.
8987 (combine_blocks): Pass through pe.
8988 (tree_if_conversion): Compute the edge to insert invariant
8989 stmts on and pass it along.
8990
8991 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
8992
8993 PR target/102785
8994 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
8995 sssubaddv2hi3): Swap the order of operators in vec_concat.
8996
8997 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
8998
8999 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
9000 (altivec_vmrghb_direct): New.
9001 (*altivec_vmrghh_internal): Delete.
9002 (altivec_vmrghh_direct): New.
9003 (*altivec_vmrghw_internal): Delete.
9004 (altivec_vmrghw_direct_<mode>): New.
9005 (altivec_vmrghw_direct): Delete.
9006 (*altivec_vmrglb_internal): Delete.
9007 (altivec_vmrglb_direct): New.
9008 (*altivec_vmrglh_internal): Delete.
9009 (altivec_vmrglh_direct): New.
9010 (*altivec_vmrglw_internal): Delete.
9011 (altivec_vmrglw_direct_<mode>): New.
9012 (altivec_vmrglw_direct): Delete.
9013 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
9014 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
9015 Adjust.
9016 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
9017 (vsx_xxmrglw_<mode>): Adjust.
9018
9019 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
9020
9021 * passes.def: Change threading comment before pass_ccp pass.
9022
9023 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
9024
9025 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
9026 Modify the expansion for sign extension. All extensions are done
9027 within VSX registers.
9028
9029 2021-10-19 Richard Biener <rguenther@suse.de>
9030
9031 * tree-vect-stmts.c (get_group_load_store_type): Add
9032 misalignment output parameter and initialize it.
9033 (get_group_load_store_type): Likewise.
9034 (vectorizable_store): Remove now redundant queries.
9035 (vectorizable_load): Likewise.
9036
9037 2021-10-19 Richard Biener <rguenther@suse.de>
9038
9039 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
9040 check_aligned argument.
9041 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
9042 Likewise.
9043 (vect_peeling_hash_insert): Add supportable_if_not_aligned
9044 argument and do not call vect_supportable_dr_alignment here.
9045 (vect_peeling_supportable): Adjust.
9046 (vect_enhance_data_refs_alignment): Compute whether the
9047 access is supported with different alignment here and
9048 pass that down to vect_peeling_hash_insert.
9049 (vect_vfa_access_size): Adjust.
9050 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
9051 (vect_get_load_cost): Likewise.
9052 (get_negative_load_store_type): Likewise.
9053 (get_group_load_store_type): Likewise.
9054 (get_load_store_type): Likewise.
9055
9056 2021-10-19 Martin Liska <mliska@suse.cz>
9057
9058 PR target/102374
9059 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
9060 * system.h (strip_whilespaces): New function.
9061
9062 2021-10-19 dianhong xu <dianhong.xu@intel.com>
9063
9064 * config/i386/avx512fp16intrin.h:
9065 (_mm512_set1_pch): New intrinsic.
9066 * config/i386/avx512fp16vlintrin.h:
9067 (_mm256_set1_pch): New intrinsic.
9068 (_mm_set1_pch): Ditto.
9069
9070 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
9071
9072 PR tree-optimization/102796
9073 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
9074 normally. Return get_tree_range for non gimple_range_ssa_p names.
9075 (gimple_ranger::range_of_stmt): Use get_tree_range for non
9076 gimple_range_ssa_p names.
9077
9078 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
9079
9080 PR target/102761
9081 * config/i386/i386.c (ix86_print_operand_address):
9082 Error out for non-address_operand asm operands.
9083
9084 2021-10-18 Richard Biener <rguenther@suse.de>
9085
9086 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
9087 not auto-convert dr_alignment_support to bool.
9088 (vect_peeling_supportable): Likewise.
9089 (vect_enhance_data_refs_alignment): Likewise.
9090 (vect_supportable_dr_alignment): Commonize read/write case.
9091 * tree-vect-stmts.c (vect_get_store_cost): Use
9092 dr_alignment_support, not int, for the vect_supportable_dr_alignment
9093 result.
9094 (vect_get_load_cost): Likewise.
9095
9096 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
9097
9098 * tree-object-size.c (object_sizes_execute): Consolidate LHS
9099 null check and do it early.
9100
9101 2021-10-18 Richard Biener <rguenther@suse.de>
9102
9103 * tree-vect-stmts.c (vectorizable_store): Use the
9104 computed alignment scheme instead of querying
9105 aligned_access_p.
9106
9107 2021-10-18 Richard Biener <rguenther@suse.de>
9108
9109 * tree-vect-stmts.c (vectorizable_store): Do not recompute
9110 alignment scheme already determined by get_load_store_type.
9111
9112 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
9113
9114 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
9115 Clone corresponding pass.
9116
9117 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
9118
9119 * combine.c (recog_for_combine): For an unrecognized move/set of
9120 a constant, try force_const_mem to place it in the constant pool.
9121 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
9122 Delete global variables (that are no longer assigned a cost value).
9123 (cse_insn): Simplify logic for deciding whether to place a folded
9124 constant in the constant pool using force_const_mem.
9125 (cse_main): Remove zero initialization of constant_pool_entries_cost
9126 and constant_pool_entries_regcost.
9127 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
9128 fractionally more expensive, when optimizing for speed.
9129
9130 2021-10-18 Martin Liska <mliska@suse.cz>
9131
9132 PR gcov-profile/102746
9133 PR gcov-profile/102747
9134 * gcov.c (main): Return return_code.
9135 (output_gcov_file): Mark return_code when error happens.
9136 (generate_results): Likewise.
9137 (read_graph_file): Likewise.
9138 (read_count_file): Likewise.
9139
9140 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
9141
9142 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
9143 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
9144 a popcount, allowing compile-time evaluation/simplification.
9145 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
9146
9147 2021-10-18 Richard Biener <rguenther@suse.de>
9148
9149 PR tree-optimization/102788
9150 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
9151 a NULL vectype.
9152 (vect_pattern_recog_1): Likewise.
9153 (vect_recog_bool_pattern): Continue matching the pattern
9154 even if we do not have a vector type for a conversion
9155 result.
9156
9157 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
9158
9159 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
9160 Evalute SS_NEG and SS_ABS of a constant argument.
9161
9162 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9163
9164 PR target/93183
9165 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
9166 * internal-fn.def: Add entry for COND_NEG internal function.
9167 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
9168 NEGATE_EXPR, COND_NEG mapping.
9169 * optabs.def: Add entry for cond_neg_optab.
9170 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
9171 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
9172 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
9173
9174 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
9175
9176 * tree-ssa-strlen.c (class strlen_pass): Rename from
9177 strlen_dom_walker.
9178 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
9179 (handle_assign): Same.
9180 (adjust_last_stmt): Same.
9181 (maybe_warn_overflow): Same.
9182 (handle_builtin_strlen): Same.
9183 (handle_builtin_strchr): Same.
9184 (handle_builtin_strcpy): Same.
9185 (handle_builtin_strncat): Same.
9186 (handle_builtin_stxncpy_strncat): Same.
9187 (handle_builtin_memcpy): Same.
9188 (handle_builtin_strcat): Same.
9189 (handle_alloc_call): Same.
9190 (handle_builtin_memset): Same.
9191 (handle_builtin_memcmp): Same.
9192 (get_len_or_size): Same.
9193 (strxcmp_eqz_result): Same.
9194 (handle_builtin_string_cmp): Same.
9195 (handle_pointer_plus): Same.
9196 (count_nonzero_bytes_addr): Same.
9197 (count_nonzero_bytes): Same.
9198 (handle_store): Same.
9199 (strlen_check_and_optimize_call): Same.
9200 (handle_integral_assign): Same.
9201 (check_and_optimize_stmt): Same.
9202 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
9203
9204 2021-10-18 Richard Biener <rguenther@suse.de>
9205
9206 PR tree-optimization/102798
9207 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9208 Only copy points-to info to newly generated SSA names.
9209
9210 2021-10-18 Martin Liska <mliska@suse.cz>
9211
9212 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
9213 * gcov.c (get_cycles_count): Likewise.
9214 * lto-compress.c (lto_compression_zlib): Likewise.
9215 (lto_uncompression_zlib): Likewise.
9216 * targhooks.c (default_pch_valid_p): Likewise.
9217
9218 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
9219
9220 * tree-pass.h (make_pass_thread_jumps_full): New.
9221 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
9222 (try_thread_blocks): Add resolve and speed arguments.
9223 (pass_thread_jumps::execute): Inline.
9224 (do_early_thread_jumps): New.
9225 (do_thread_jumps): New.
9226 (make_pass_thread_jumps): Move.
9227 (pass_early_thread_jumps::gate): Inline.
9228 (pass_early_thread_jumps::execute): Inline.
9229 (class pass_thread_jumps_full): New.
9230
9231 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
9232
9233 * configure.ac: Treat powerpc64*-*-freebsd* the same as
9234 powerpc64-*-freebsd*.
9235 * configure: Regenerate.
9236
9237 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
9238
9239 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
9240 set_ptr_nonull to set_ptr_nonnull in comments.
9241
9242 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
9243
9244 PR tree-optimization/102720
9245 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
9246 of call used and clobbered sets.
9247
9248 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
9249
9250 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
9251 skip gomp and itm when r or nodefaultlibs is given.
9252 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
9253 Update ordering of exclusions, remove duplicate 'v' addition
9254 (collect2 will add this from the main command line).
9255
9256 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
9257
9258 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
9259 filelist and framework options in specs instead of code.
9260 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
9261 specs that are really driver ones.
9262 (DARWIN_CC1_SPEC): Likewise.
9263 (CPP_SPEC): Likewise.
9264 (SYSROOT_SPEC): Append space.
9265 (LINK_SYSROOT_SPEC): Remove most driver link specs.
9266 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
9267 (STARTFILE_SPEC): Likewise.
9268 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
9269 (ASM_SPEC): Update driver-related specs.
9270 (ASM_FINAL_SPEC): Likewise.
9271 * config/darwin.opt: Remove now unused option aliases.
9272 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
9273 (ASM_SPEC): Update driver-related specs.
9274
9275 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
9276
9277 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
9278 allow standard_sse_constant_p immediate constants.
9279
9280 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
9281
9282 * config.gcc: Add tm-dwarf2.h to tm_d-file.
9283
9284 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
9285
9286 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
9287 that occur in abnormal phis.
9288 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
9289 abnormal and EH edges.
9290 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
9291 (rvrp_folder::value_on_edge): Ditto.
9292 (rvrp_folder::value_of_stmt): Ditto.
9293 (hybrid_folder::value_of_expr): Ditto for ranger queries.
9294 (hybrid_folder::value_on_edge): Ditto.
9295 (hybrid_folder::value_of_stmt): Ditto.
9296 * value-query.cc (gimple_range_global): Always return a range if
9297 the type is supported.
9298
9299 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
9300
9301 * config/pa/pa.md: Consistently use "rG" constraint for copy
9302 instruction in move patterns.
9303
9304 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
9305
9306 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
9307 (S_900): Likewise.
9308 (S_906): Likewise.
9309 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
9310 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
9311 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
9312 (ELFABIVERSION_AMDGPU_HSA_V4): New.
9313 (SET_SRAM_ECC_UNSUPPORTED): New.
9314 (copy_early_debug_info): Create elf flags to match the other objects.
9315 (main): Just let the attribute flags pass through.
9316
9317 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9318
9319 * tree-loop-distribution.c (reduction_var_overflows_first):
9320 Pass the type of reduction_var as first argument as it is also
9321 done for the load type.
9322 (loop_distribution::transform_reduction_loop): Add missing
9323 TREE_TYPE while determining precission of reduction_var.
9324
9325 2021-10-15 Richard Biener <rguenther@suse.de>
9326
9327 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
9328 when not set.
9329 * toplev.c (process_options): Warn when STABS debugging is
9330 enabled but not the preferred format.
9331 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
9332 DBX_DEBUG.
9333 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
9334
9335 2021-10-15 Richard Biener <rguenther@suse.de>
9336
9337 PR ipa/102762
9338 * tree-inline.c (copy_bb): Avoid underflowing nargs.
9339
9340 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
9341
9342 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
9343 HFmode input operand to HImode.
9344 (ix86_vectorize_vec_perm_const): Likewise.
9345 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
9346 New define_insn.
9347 (*avx512f_permvar_truncv8siv8hi_1_hf):
9348 Likewise.
9349
9350 2021-10-15 Richard Biener <rguenther@suse.de>
9351
9352 PR middle-end/102682
9353 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
9354 not create a paradoxical subreg.
9355
9356 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
9357
9358 * config/i386/i386-expand.c (ix86_expand_vector_init):
9359 For half_vector concat for HFmode, handle them like HImode.
9360
9361 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9362
9363 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
9364 (back_threader::back_threader): Same.
9365 (back_threader::resolve_phi): Try to solve without looking back if
9366 possible.
9367 (back_threader::find_paths_to_names): Same.
9368 (try_thread_blocks): Pass resolve argument to back threader.
9369 (pass_early_thread_jumps::execute): Same.
9370
9371 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9372
9373 * doc/invoke.texi: Remove max-fsm-thread-length,
9374 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
9375 * params.opt: Same.
9376 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
9377 argument.
9378 (back_threader_registry::back_threader_registry): Same.
9379 (back_threader_profitability::profitable_path_p): Remove
9380 param_max_fsm_thread-length.
9381 (back_threader_registry::register_path): Remove
9382 m_max_allowable_paths.
9383
9384 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9385
9386 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
9387 an auto_bitmap.
9388 (back_threader::~back_threader): Do not release m_path.
9389
9390 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
9391
9392 PR tree-optimization/102738
9393 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
9394
9395 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
9396
9397 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
9398 (omp_mark_declare_variant): Move from c-omp.c.
9399 (omp_context_name_list_prop): Update for Fortran strings.
9400 * omp-general.h (omp_check_context_selector): New prototype.
9401 (omp_mark_declare_variant): New prototype.
9402
9403 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
9404
9405 * config/rs6000/rs6000.c (rs6000_density_test): Move early
9406 exit test further up the function.
9407
9408 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
9409
9410 * config/arm/arm.c (arm_add_stmt_cost): Delete.
9411 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
9412
9413 2021-10-14 Martin Jambor <mjambor@suse.cz>
9414
9415 * doc/invoke.texi (Optimize Options): Add entry for
9416 ipa-cp-recursive-freq-factor.
9417
9418 2021-10-14 Tamar Christina <tamar.christina@arm.com>
9419
9420 * match.pd: New rule.
9421
9422 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
9423
9424 PR ipa/102557
9425 * ipa-modref-tree.h (modref_access_node::update2):
9426 Also check that parm_offset is unchanged.
9427 (modref_ref_node::insert_access): Fix updating of
9428 parameter.
9429
9430 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9431
9432 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
9433 FIXME note.
9434
9435 2021-10-14 Richard Biener <rguenther@suse.de>
9436
9437 PR tree-optimization/102659
9438 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
9439 rewrite pointer typed undefined overflow operations.
9440 (predicate_statements): Likewise. Make sure to emit invariant
9441 conversions in the preheader.
9442 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
9443 non-empty preheaders.
9444 * tree-data-ref.c (dr_analyze_indices): Strip useless
9445 conversions to the MEM_REF base type.
9446
9447 2021-10-14 Martin Liska <mliska@suse.cz>
9448
9449 * common.opt: Stop using AUTODETECT_VALUE
9450 and use EnabledBy where possible.
9451 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
9452 * toplev.c (AUTODETECT_VALUE): Remove macro.
9453 (process_options): Simplify by using EnabledBy and
9454 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
9455 AUTODETECT_VALUE.
9456
9457 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
9458
9459 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
9460 pointer parameter.
9461 (vld1_s32_x3): Likewise.
9462
9463 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9464
9465 PR tree-optimization/102736
9466 PR tree-optimization/102736
9467 * gimple-range-path.cc (path_range_query::range_on_path_entry):
9468 Assert that the requested range is defined outside the path.
9469 (path_range_query::ssa_range_in_phi): Do not call
9470 range_on_path_entry for SSA names that are defined within the
9471 path.
9472
9473 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
9474
9475 * config/darwin-driver.c (darwin_find_version_from_kernel):
9476 Quote internal identifiers and avoid contractions in
9477 warnings.
9478 (darwin_default_min_version): Likewise.
9479 (darwin_driver_init): Likewise.
9480
9481 2021-10-14 Martin Jambor <mjambor@suse.cz>
9482
9483 * params.opt (ipa-cp-recursive-freq-factor): New.
9484 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
9485 scc_no, self_recursion_generated_level, same_scc and
9486 self_recursion_generated_p.
9487 (ipcp_lattice::add_value): Replaced parameter unlimited with
9488 same_lat_gen_level, usit it determine limit of values and store it to
9489 the value.
9490 (ipcp_lattice<valtype>::print): Dump the new fileds.
9491 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
9492 parameter and store it to the new value.
9493 (self_recursively_generated_p): Removed.
9494 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
9495 instead of self_recursively_generated_p, store self generation level
9496 to such values.
9497 (value_topo_info<valtype>::add_val): Set scc_no.
9498 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
9499 recursively feeding values and self generated values by appropriate
9500 new factors.
9501
9502 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
9503
9504 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
9505 redundant test for flag_vect_cost_model.
9506
9507 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
9508
9509 * bitmap.c (debug): New overloaded function for auto_bitmaps.
9510 * bitmap.h (debug): Same.
9511
9512 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
9513
9514 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
9515 Adjust builtin call.
9516 (_mm512_mask3_fcmadd_pch): Likewise.
9517 (_mm512_mask_fmadd_pch): Likewise
9518 (_mm512_mask3_fmadd_pch): Likewise
9519 (_mm512_mask_fcmadd_round_pch): Likewise
9520 (_mm512_mask3_fcmadd_round_pch): Likewise
9521 (_mm512_mask_fmadd_round_pch): Likewise
9522 (_mm512_mask3_fmadd_round_pch): Likewise
9523 (_mm_mask_fcmadd_sch): Likewise
9524 (_mm_mask3_fcmadd_sch): Likewise
9525 (_mm_mask_fmadd_sch): Likewise
9526 (_mm_mask3_fmadd_sch): Likewise
9527 (_mm_mask_fcmadd_round_sch): Likewise
9528 (_mm_mask3_fcmadd_round_sch): Likewise
9529 (_mm_mask_fmadd_round_sch): Likewise
9530 (_mm_mask3_fmadd_round_sch): Likewise
9531 (_mm_fcmadd_round_sch): Likewise
9532 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
9533 Adjust builtin call.
9534 (_mm_mask3_fmadd_pch): Likewise
9535 (_mm256_mask_fmadd_pch): Likewise
9536 (_mm256_mask3_fmadd_pch): Likewise
9537 (_mm_mask_fcmadd_pch): Likewise
9538 (_mm_mask3_fcmadd_pch): Likewise
9539 (_mm256_mask_fcmadd_pch): Likewise
9540 (_mm256_mask3_fcmadd_pch): Likewise
9541 * config/i386/i386-builtin.def: Add mask3 builtin for complex
9542 fma, and adjust mask_builtin to corresponding expander.
9543 * config/i386/i386-expand.c (ix86_expand_round_builtin):
9544 Skip eraseing embedded rounding for expanders that emits
9545 multiple insns.
9546 * config/i386/sse.md (complexmove): New mode_attr.
9547 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
9548 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
9549 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
9550 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
9551 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
9552 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
9553 * config/i386/subst.md (round_embedded_complex): New subst.
9554
9555 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
9556
9557 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
9558 (cbranchdf4): Likewise.
9559 Add missing move patterns for TARGET_SOFT_FLOAT.
9560
9561 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
9562
9563 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
9564 pseudo intermediate when moving a SUBREG into a hard register,
9565 by checking ix86_hardreg_mov_ok.
9566 (ix86_expand_vector_extract): Store zero-extended SImode
9567 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
9568 annotated subreg.
9569 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
9570 complex (SUBREG) sets of (vector) hard registers before reload, by
9571 checking ix86_hardreg_mov_ok.
9572
9573 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
9574
9575 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
9576
9577 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
9578
9579 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
9580
9581 2021-10-13 Martin Sebor <msebor@redhat.com>
9582
9583 PR middle-end/102630
9584 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
9585
9586 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
9587
9588 * collect2.c (is_lto_object_file): Release simple-object
9589 resources, close files.
9590
9591 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
9592
9593 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
9594 when checking mve addressing modes.
9595 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
9596 addressing modes.
9597 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
9598 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
9599 there is a single Ux constraint.
9600
9601 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
9602
9603 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
9604 multiplication on 32-bit PA 1.1 and 2.0 targets.
9605
9606 2021-10-13 Martin Liska <mliska@suse.cz>
9607
9608 PR gcov-profile/90364
9609 * coverage.c (build_info): Emit checksum to the global variable.
9610 (build_info_type): Add new field for checksum.
9611 (coverage_obj_finish): Pass object_checksum.
9612 (coverage_init): Use 0 as checksum for .gcno files.
9613 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
9614 * gcov.c (read_graph_file): Read also checksum.
9615 * doc/invoke.texi: Document the behaviour change.
9616
9617 2021-10-13 Richard Biener <rguenther@suse.de>
9618
9619 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
9620 start at integer value 2.
9621 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
9622 the iterator for GSI_LAST_NEW_STMT.
9623 (gsi_insert_seq_nodes_after): Likewise.
9624 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
9625 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
9626 arguments to gsi_replace.
9627
9628 2021-10-13 Martin Liska <mliska@suse.cz>
9629
9630 PR target/102688
9631 * common.opt: Use EnabledBy instead of detection in
9632 finish_options and process_options.
9633 * opts.c (finish_options): Remove handling of
9634 x_flag_unroll_all_loops.
9635 * toplev.c (process_options): Likewise for flag_web and
9636 flag_rename_registers.
9637
9638 2021-10-13 Richard Biener <rguenther@suse.de>
9639
9640 PR tree-optimization/102659
9641 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
9642 (if_convertible_gimple_assign_stmt_p): Mark the loop for
9643 rewrite when stmts with undefined behavior on integer
9644 overflow appear.
9645 (combine_blocks): Predicate also when we need to rewrite stmts.
9646 (predicate_statements): Rewrite affected stmts to something
9647 with well-defined behavior on overflow.
9648 (tree_if_conversion): Initialize need_to_rewrite_undefined.
9649
9650 2021-10-13 Richard Biener <rguenther@suse.de>
9651
9652 PR ipa/102714
9653 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
9654 check.
9655
9656 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
9657
9658 * dwarf2ctf.c: Fix typo in comment.
9659
9660 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
9661
9662 PR target/101985
9663 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
9664 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
9665 avoid generating an automatic #define of vec_cpsgn. Use the
9666 correct built-in for V4SFmode that doesn't depend on VSX.
9667
9668 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
9669
9670 PR target/85730
9671 PR target/82524
9672 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
9673 define_insn_and_split pattern. Add alternative 1 and split it
9674 post reload to insert operand 1 into the low part of operand 0.
9675 (*sub<mode>_1_slp): Ditto.
9676 (*and<mode>_1_slp): Ditto.
9677 (*<any_or:code><mode>_1_slp): Ditto.
9678 (*ashl<mode>3_1_slp): Ditto.
9679 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
9680 (*<any_rotate:insn><mode>3_1_slp): Ditto.
9681 (*neg<mode>_1_slp): New insn_and_split pattern.
9682 (*one_cmpl<mode>_1_slp): Ditto.
9683
9684 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
9685
9686 * doc/install.texi: Update MinGW and mingw-64 Binaries
9687 download links.
9688
9689 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
9690
9691 * doc/extend.texi (Common Variable Attributes): Fix typos in
9692 alloc_size documentation.
9693
9694 2021-10-12 Richard Biener <rguenther@suse.de>
9695
9696 PR tree-optimization/102696
9697 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
9698 the tree fatally failed when we reject a BIT_FIELD_REF.
9699
9700 2021-10-12 Richard Biener <rguenther@suse.de>
9701
9702 PR tree-optimization/102572
9703 * tree-vect-stmts.c (vect_build_gather_load_calls): When
9704 gathering the vectorized defs for the mask pass in the
9705 desired mask vector type so invariants will be handled
9706 correctly.
9707
9708 2021-10-12 Tamar Christina <tamar.christina@arm.com>
9709
9710 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
9711 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
9712 *fcmuo<mode>_nor_combine): New.
9713
9714 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
9715
9716 PR target/102588
9717 * config/sparc/sparc-modes.def (OI): New integer mode.
9718
9719 2021-10-12 Jakub Jelinek <jakub@redhat.com>
9720
9721 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
9722 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
9723 static.
9724
9725 2021-10-12 Jakub Jelinek <jakub@redhat.com>
9726
9727 * tree-vectorizer.h (loop_cost_model): New function.
9728 (unlimited_cost_model): Use it.
9729 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
9730 call instead of flag_vect_cost_model.
9731 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9732 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
9733 of flag_simd_cost_model.
9734
9735 2021-10-12 liuhongt <hongtao.liu@intel.com>
9736
9737 PR target/102483
9738 * config/i386/i386-expand.c (emit_reduc_half): Handle
9739 V4QImode.
9740 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
9741 (reduc_plus_scal_v4qi): Ditto.
9742
9743 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
9744
9745 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
9746 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
9747 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
9748
9749 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
9750
9751 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
9752 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
9753 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
9754 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
9755 _mm_cvtepu32_epi64): New.
9756
9757 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
9758
9759 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
9760 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
9761
9762 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
9763
9764 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
9765 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
9766 _mm_max_epi32, _mm_max_epu32): New.
9767
9768 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
9769
9770 * ipa-modref-tree.h (struct modref_access_node): Revert
9771 accidental change.
9772 (struct modref_ref_node): Likewise.
9773
9774 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
9775
9776 * ipa-modref-tree.h (modref_tree::global_access_p): New member
9777 function.
9778 * ipa-modref.c:
9779 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
9780 ignore_stores_eaf_flags): Move to ipa-modref.h
9781 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
9782 (modref_summary::global_memory_read_p): New member function.
9783 (modref_summary::global_memory_written_p): New member function.
9784 * ipa-modref.h (modref_summary::global_memory_read_p,
9785 modref_summary::global_memory_written_p): Declare.
9786 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
9787 ignore_stores_eaf_flags): move here.
9788 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
9789 and attr-fnspec.h.
9790 (handle_rhs_call): Rewrite.
9791 (handle_call_arg): New function.
9792 (determine_global_memory_access): New function.
9793 (handle_const_call): Remove
9794 (handle_pure_call): Remove
9795 (find_func_aliases_for_call): Update use of handle_rhs_call.
9796 (compute_points_to_sets): Handle global memory acccesses
9797 selectively
9798
9799 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
9800
9801 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
9802 documentation, mention UBSAN_OPTIONS, similar to what is done
9803 for AddressSanitizer.
9804
9805 2021-10-11 Richard Biener <rguenther@suse.de>
9806
9807 PR middle-end/102683
9808 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
9809 availability before building an integer type for storage
9810 purposes.
9811
9812 2021-10-11 Richard Biener <rguenther@suse.de>
9813
9814 PR middle-end/101480
9815 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
9816 as const.
9817
9818 2021-10-11 Martin Liska <mliska@suse.cz>
9819
9820 * common.opt: Remove Init(2) for some options.
9821 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
9822 use rather OPTION_SET_P.
9823
9824 2021-10-11 Martin Liska <mliska@suse.cz>
9825
9826 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
9827 * flag-types.h (enum ira_region): Likewise.
9828 * toplev.c (process_options): Use OPTION_SET_P instead of
9829 IRA_REGION_AUTODETECT.
9830
9831 2021-10-11 Jakub Jelinek <jakub@redhat.com>
9832
9833 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
9834 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
9835
9836 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9837
9838 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
9839 * config/s390/s390.c (s390_rawmemchr): New function.
9840 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
9841 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
9842 the pattern vfees<mode> from vx-builtins.md.
9843 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
9844
9845 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9846
9847 * builtins.c (get_memory_rtx): Change to external linkage.
9848 * builtins.h (get_memory_rtx): Add function prototype.
9849 * doc/md.texi (rawmemchr<mode>): Document.
9850 * internal-fn.c (expand_RAWMEMCHR): Define.
9851 * internal-fn.def (RAWMEMCHR): Add.
9852 * optabs.def (rawmemchr_optab): Add.
9853 * tree-loop-distribution.c (find_single_drs): Change return code
9854 behaviour by also returning true if no single store was found
9855 but a single load.
9856 (loop_distribution::classify_partition): Respect the new return
9857 code behaviour of function find_single_drs.
9858 (loop_distribution::execute): Call new function
9859 transform_reduction_loop in order to replace rawmemchr or strlen
9860 like loops by calls into builtins.
9861 (generate_reduction_builtin_1): New function.
9862 (generate_rawmemchr_builtin): New function.
9863 (generate_strlen_builtin_1): New function.
9864 (generate_strlen_builtin): New function.
9865 (generate_strlen_builtin_using_rawmemchr): New function.
9866 (reduction_var_overflows_first): New function.
9867 (determine_reduction_stmt_1): New function.
9868 (determine_reduction_stmt): New function.
9869 (loop_distribution::transform_reduction_loop): New function.
9870
9871 2021-10-11 Martin Liska <mliska@suse.cz>
9872
9873 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
9874 and remove legacy hashing code.
9875
9876 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
9877
9878 PR target/100316
9879 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
9880 CONST_INT for BEGIN and END, and use gcc_assert rather than
9881 error.
9882
9883 2021-10-10 Jakub Jelinek <jakub@redhat.com>
9884
9885 PR debug/102441
9886 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
9887 use MO_VAL_SET if loc is not sp.
9888
9889 2021-10-10 Andrew Pinski <apinski@marvell.com>
9890
9891 PR tree-optimization/102622
9892 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
9893 Swap the order of a?0:pow2cst and a?0:-1 transformations.
9894
9895 2021-10-09 liuhongt <hongtao.liu@intel.com>
9896
9897 PR target/102639
9898 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
9899 HFmode.
9900 (ix86_use_mask_cmp_p): Ditto.
9901 (ix86_expand_sse_movcc): Ditto.
9902 * config/i386/i386.md (setcc_hf_mask): New define_insn.
9903 (movhf_mask): Ditto.
9904 (UNSPEC_MOVCC_MASK): New unspec.
9905 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
9906
9907 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
9908
9909 PR rtl-optimization/102627
9910 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
9911
9912 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
9913
9914 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
9915 bitmap if needed.
9916
9917 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
9918
9919 * value-range.cc (irange::debug): New.
9920 * value-range.h (irange::debug): New.
9921
9922 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
9923
9924 PR tree-optimization/102385
9925 * predict.h (change_edge_frequency): Declare.
9926 * predict.c (change_edge_frequency): New function.
9927 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
9928 edge argument.
9929 (tree_unroll_loop): Likewise.
9930 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
9931 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
9932 Likewise.
9933 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
9934 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
9935 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
9936 to retrieve the exit edges. Make all the old profile update code
9937 conditional on !single_loop_p -- the case it was written for --
9938 and use a different approach for the single-loop case.
9939
9940 2021-10-08 Martin Liska <mliska@suse.cz>
9941
9942 * config/alpha/alpha.c (alpha_option_override): Use new macro
9943 OPTION_SET_P.
9944 * config/arc/arc.c (arc_override_options): Likewise.
9945 * config/arm/arm.c (arm_option_override): Likewise.
9946 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
9947 * config/c6x/c6x.c (c6x_option_override): Likewise.
9948 * config/csky/csky.c: Likewise.
9949 * config/darwin.c (darwin_override_options): Likewise.
9950 * config/frv/frv.c (frv_option_override): Likewise.
9951 * config/i386/djgpp.h: Likewise.
9952 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
9953 (ix86_max_noce_ifcvt_seq_cost): Likewise.
9954 * config/ia64/ia64.c (ia64_option_override): Likewise.
9955 (ia64_override_options_after_change): Likewise.
9956 * config/m32c/m32c.c (m32c_option_override): Likewise.
9957 * config/m32r/m32r.c (m32r_init): Likewise.
9958 * config/m68k/m68k.c (m68k_option_override): Likewise.
9959 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
9960 * config/mips/mips.c (mips_option_override): Likewise.
9961 * config/nios2/nios2.c (nios2_option_override): Likewise.
9962 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
9963 * config/pa/pa.c (pa_option_override): Likewise.
9964 * config/riscv/riscv.c (riscv_option_override): Likewise.
9965 * config/rs6000/aix71.h: Likewise.
9966 * config/rs6000/aix72.h: Likewise.
9967 * config/rs6000/aix73.h: Likewise.
9968 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
9969 (rs6000_override_options_after_change): Likewise.
9970 (rs6000_linux64_override_options): Likewise.
9971 (glibc_supports_ieee_128bit): Likewise.
9972 (rs6000_option_override_internal): Likewise.
9973 (rs6000_file_start): Likewise.
9974 (rs6000_darwin_file_start): Likewise.
9975 * config/rs6000/rtems.h: Likewise.
9976 * config/rs6000/sysv4.h: Likewise.
9977 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
9978 * config/s390/s390.c (s390_option_override): Likewise.
9979 * config/sh/linux.h: Likewise.
9980 * config/sh/netbsd-elf.h (while): Likewise.
9981 * config/sh/sh.c (sh_option_override): Likewise.
9982 * config/sol2.c (solaris_override_options): Likewise.
9983 * config/sparc/sparc.c (sparc_option_override): Likewise.
9984 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
9985 * config/visium/visium.c (visium_option_override): Likewise.
9986 * config/vxworks.c (vxworks_override_options): Likewise.
9987 * lto-opts.c (lto_write_options): Likewise.
9988 * omp-expand.c (expand_omp_simd): Likewise.
9989 * omp-general.c (omp_max_vf): Likewise.
9990 * omp-offload.c (oacc_xform_loop): Likewise.
9991 * opts.h (OPTION_SET_P): Likewise.
9992 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
9993 * toplev.c (process_options): Likewise.
9994 * tree-predcom.c: Likewise.
9995 * tree-sra.c (analyze_all_variable_accesses): Likewise.
9996
9997 2021-10-08 liuhongt <hongtao.liu@intel.com>
9998
9999 PR target/102464
10000 * config/i386/i386.c (ix86_optab_supported_p):
10001 Return true for HFmode.
10002 * match.pd: Simplify (_Float16) ceil ((double) x) to
10003 __builtin_ceilf16 (a) when a is _Float16 type and
10004 direct_internal_fn_supported_p.
10005
10006 2021-10-08 liuhongt <hongtao.liu@intel.com>
10007
10008 PR target/102494
10009 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
10010 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
10011 (reduc_<code>_scal_v4hi): New.
10012
10013 2021-10-08 liuhongt <hongtao.liu@intel.com>
10014
10015 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
10016 * doc/invoke.texi (Options That Control Optimization): Update
10017 documents.
10018 * opts.c (default_options_table): Enable auto-vectorization at
10019 O2 with very-cheap cost model.
10020 (finish_options): Use cheap cost model for
10021 explicit -ftree{,-loop}-vectorize.
10022
10023 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
10024
10025 * ctfc.c (ctfc_delete_container): Free hash table contents.
10026
10027 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
10028
10029 * toplev.c (process_options): Do not warn for GNU GIMPLE.
10030
10031 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
10032
10033 * tree-object-size.c (addr_object_size,
10034 compute_builtin_object_size): Drop PDECL and POFF arguments.
10035 (addr_object_size): Adjust calls.
10036 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
10037 and POFF arguments.
10038
10039 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
10040
10041 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
10042 representing signed and unsigned high-part multiplication resp.
10043 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
10044 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
10045 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
10046 SS_DIV, US_DIV]: Similar simplifications for saturating
10047 arithmetic.
10048 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
10049 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
10050 Implement compile-time evaluation for constant operands.
10051 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
10052 UMUL_HIGHPART.
10053 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
10054 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
10055 Mention the new smul_highpart and umul_highpart RTX codes.
10056 * doc/invoke.texi: Silence @xref "compilation" warnings.
10057
10058 2021-10-07 Martin Jambor <mjambor@suse.cz>
10059
10060 PR ipa/102388
10061 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
10062 case when the source reference description corresponds to a
10063 referance taken in a function src->caller is inlined to.
10064
10065 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
10066
10067 PR ipa/102581
10068 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
10069 better.
10070 (modref_access_node::try_merge_with): Add sanity check that there
10071 are no redundant entries in the list.
10072
10073 2021-10-07 Richard Biener <rguenther@suse.de>
10074
10075 PR tree-optimization/102608
10076 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
10077 varying.
10078
10079 2021-10-07 Martin Liska <mliska@suse.cz>
10080
10081 * toplev.c (toplev::main): Make
10082 save_opt_decoded_options a pointer type
10083 * toplev.h: Likewise.
10084
10085 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
10086
10087 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
10088 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
10089 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
10090
10091 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
10092
10093 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
10094 Adjust for new -msram-ecc=any behaviour.
10095 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
10096 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
10097 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
10098 (EF_AMDGPU_XNACK_V3): ... this.
10099 (EF_AMDGPU_SRAM_ECC): Rename to ...
10100 (EF_AMDGPU_SRAM_ECC_V3): ... this.
10101 (EF_AMDGPU_FEATURE_XNACK_V4): New.
10102 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
10103 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
10104 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
10105 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
10106 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
10107 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
10108 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
10109 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
10110 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
10111 (SET_XNACK_ON): New.
10112 (SET_XNACK_OFF): New.
10113 (TEST_XNACK): New.
10114 (SET_SRAM_ECC_ON): New.
10115 (SET_SRAM_ECC_ANY): New.
10116 (SET_SRAM_ECC_OFF): New.
10117 (TEST_SRAM_ECC_ANY): New.
10118 (TEST_SRAM_ECC_ON): New.
10119 (main): Implement HSACOv4 and -msram-ecc=any.
10120
10121 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
10122
10123 * config.in: Regenerate.
10124 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
10125 (X_900): New macro.
10126 (X_906): New macro.
10127 (X_908): New macro.
10128 (A_FIJI): Rename to ...
10129 (S_FIJI): ... this.
10130 (A_900): Rename to ...
10131 (S_900): ... this.
10132 (A_906): Rename to ...
10133 (S_906): ... this.
10134 (A_908): Rename to ...
10135 (S_908): ... this.
10136 (SRAMOPT): New macro.
10137 (ASM_SPEC): Adjust xnack option usage.
10138 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
10139 * configure: Regenerate.
10140 * configure.ac: Detect LLVM assembler dialect.
10141
10142 2021-10-07 Richard Biener <rguenther@suse.de>
10143
10144 * tree-pretty-print.c (dump_generic_node): Do not elide
10145 printing '&' when dumping with -gimple.
10146
10147 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
10148
10149 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
10150 intersect routine.
10151 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
10152 (adjust_imagpart_expr): Ditto.
10153 * value-range.cc (irange::irange_intersect): Call new routine if
10154 RHS is a single pair.
10155 (irange::intersect): New wide_int version.
10156 * value-range.h (class irange): New prototype.
10157
10158 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
10159
10160 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
10161 Add parameter to limit size when recognizing switches.
10162 (gimple_outgoing_range::edge_range_p): Check size limit.
10163 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
10164 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
10165 that exceed the size limit.
10166 (gori_compute::gori_compute): Add initializer.
10167 * params.opt (evrp-switch-limit): New.
10168 * doc/invoke.texi: Update docs.
10169
10170 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
10171
10172 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
10173 TYPE_MAX_VALUE instead of creating new trees when possible.
10174
10175 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
10176
10177 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
10178 zero and non-zero more efficently.
10179
10180 2021-10-06 Richard Biener <rguenther@suse.de>
10181
10182 PR c/102605
10183 * dumpfile.h (TDF_GIMPLE_VAL): New.
10184 (dump_flag): Re-order and adjust TDF_* flags. Make
10185 the enum uint32_t. Use std::underlying_type in the
10186 operator overloads.
10187 (optgroup_flag): Likewise for the operator overloads.
10188 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
10189 in _Literal if TDF_GIMPLE_VAL.
10190 * gimple-pretty-print.c (dump_gimple_assign): Add
10191 TDF_GIMPLE_VAL to flags when dumping operands where only
10192 is_gimple_val are allowed.
10193 (dump_gimple_cond): Likewise.
10194
10195 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10196
10197 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
10198 condition.
10199
10200 2021-10-05 qing zhao <qing.zhao@oracle.com>
10201
10202 PR middle-end/102359
10203 * gimplify.c (gimplify_decl_expr): Not add initialization for an
10204 auto variable when it has been initialized by frontend.
10205
10206 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
10207
10208 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
10209 Loosen restrictions
10210
10211 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10212
10213 * common/config/avr/avr-common.c (avr_handle_option): Mark
10214 argument as ATTRIBUTE_UNUSED.
10215
10216 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10217
10218 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
10219 Undefine before redefinition.
10220
10221 2021-10-05 Richard Biener <rguenther@suse.de>
10222
10223 * toplev.c (no_backend): Remove global var.
10224 (process_options): Pass in no_backend, move post_options
10225 langhook call to toplev::main.
10226 (do_compile): Pass in no_backend, move process_options call
10227 to toplev::main.
10228 (toplev::run_self_tests): Check no_backend at the caller.
10229 (toplev::main): Call post_options and process_options
10230 split out from do_compile, do self-tests only if
10231 no_backend is initialized.
10232
10233 2021-10-05 Richard Biener <rguenther@suse.de>
10234
10235 * tree-cfg.c (dump_function_to_file): Dump the UID of the
10236 function as part of the name when requested.
10237 * tree-pretty-print.c (dump_function_name): Dump the UID when
10238 requested and the langhook produced the actual name.
10239
10240 2021-10-05 Richard Biener <rguenther@suse.de>
10241
10242 PR middle-end/102587
10243 PR middle-end/102285
10244 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
10245 zero-initialization as last resort, use the constant
10246 size as given by the DEFERRED_INIT argument to build
10247 the initializer.
10248
10249 2021-10-04 Marek Polacek <polacek@redhat.com>
10250
10251 PR c++/97573
10252 * doc/invoke.texi: Document -Warray-compare.
10253
10254 2021-10-04 Richard Biener <rguenther@suse.de>
10255
10256 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
10257 variables are not to be initialized.
10258
10259 2021-10-04 Richard Biener <rguenther@suse.de>
10260
10261 * expr.h (non_mem_decl_p): Declare.
10262 (mem_ref_refers_to_non_mem_p): Likewise.
10263 * expr.c (non_mem_decl_p): Export.
10264 (mem_ref_refers_to_non_mem_p): Likewise.
10265 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
10266 but check the base with mem_ref_refers_to_non_mem_p
10267 and non_mem_decl_p.
10268
10269 2021-10-04 Richard Biener <rguenther@suse.de>
10270
10271 PR tree-optimization/102570
10272 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
10273 we are using clique for the internal function code.
10274 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
10275 internal function code.
10276 (print_vn_reference_ops): Print the internal function code.
10277 (vn_reference_op_compute_hash): Hash it.
10278 (copy_reference_ops_from_call): Record it.
10279 (visit_stmt): Remove the restriction around internal function
10280 calls.
10281 (fully_constant_vn_reference_p): Use fold_const_call and handle
10282 internal functions.
10283 (vn_reference_eq): Compare call return types.
10284 * tree-ssa-pre.c (create_expression_by_pieces): Handle
10285 generating calls to internal functions.
10286 (compute_avail): Remove the restriction around internal function
10287 calls.
10288
10289 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
10290
10291 PR tree-optimization/102560
10292 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
10293 marker for invalid_range.
10294
10295 2021-10-04 Richard Biener <rguenther@suse.de>
10296
10297 PR middle-end/102587
10298 * internal-fn.c (expand_DEFERRED_INIT): Guard register
10299 initialization path an avoid initializing VLA registers
10300 with it.
10301
10302 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
10303
10304 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
10305
10306 2021-10-03 Martin Liska <mliska@suse.cz>
10307
10308 * toplev.c (toplev::main): Check opt_index if it is a part
10309 of cl_options.
10310
10311 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
10312
10313 PR tree-optimization/102563
10314 * range-op.cc (operator_lshift::op1_range): Do not clobber
10315 range.
10316
10317 2021-10-02 Martin Liska <mliska@suse.cz>
10318
10319 * toplev.c (toplev::main): save_decoded_options[0] is program
10320 name and so it should be skipped.
10321
10322 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
10323
10324 PR tree-optimization/102546
10325 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
10326 X << Y is non-zero implies X is also non-zero.
10327
10328 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10329
10330 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
10331 Cortex-X2 core.
10332 * config/aarch64/aarch64-tune.md: Regenerate.
10333 * doc/invoke.texi: Update docs.
10334
10335 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10336
10337 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
10338 Cortex-A710 core.
10339 * config/aarch64/aarch64-tune.md: Regenerate.
10340 * doc/invoke.texi: Update docs.
10341
10342 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10343
10344 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
10345 Cortex-A510 core.
10346 * config/aarch64/aarch64-tune.md: Regenerate.
10347 * doc/invoke.texi: Update docs.
10348
10349 2021-10-01 Martin Sebor <msebor@redhat.com>
10350
10351 PR c/102103
10352 * doc/invoke.texi (-Waddress): Update.
10353 * gengtype.c (write_types): Avoid -Waddress.
10354 * poly-int.h (POLY_SET_COEFF): Avoid using null.
10355
10356 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
10357
10358 PR debug/102373
10359 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
10360 on hppa64-hpux.
10361
10362 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10363
10364 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
10365
10366 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
10367
10368 * gimple-range-path.cc (path_range_query::compute_ranges): Use
10369 get_path_oracle.
10370 * gimple-range-path.h (class path_range_query): Remove shadowed
10371 m_oracle field.
10372 (path_range_query::get_path_oracle): New.
10373
10374 2021-10-01 Jakub Jelinek <jakub@redhat.com>
10375 Richard Biener <rguenther@suse.de>
10376
10377 PR sanitizer/102515
10378 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
10379 INT_MIN / -1 division detection from here ...
10380 (-fsanitize=signed-integer-overflow): ... and add it here.
10381
10382 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10383
10384 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
10385 armv9-a.
10386 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
10387 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
10388 (AARCH64_ISA_V9): New ISA flag.
10389 * doc/invoke.texi: Update docs.
10390
10391 2021-10-01 Martin Liska <mliska@suse.cz>
10392
10393 * toplev.c (toplev::main): Save decoded optimization options.
10394 * toplev.h (save_opt_decoded_options): New.
10395 * doc/extend.texi: Be more clear about optimize and target
10396 attributes.
10397
10398 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
10399
10400 * explow.c: Include langhooks.h.
10401 (set_stack_check_libfunc): Build a proper function type.
10402
10403 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
10404
10405 PR c++/64697
10406 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
10407 not return true for external weak function symbols in medium model.
10408
10409 2021-10-01 Jakub Jelinek <jakub@redhat.com>
10410
10411 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
10412 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
10413 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
10414 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
10415 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
10416 OMP_CLAUSE_SCHEDULE_STATIC.
10417
10418 2021-10-01 Richard Biener <rguenther@suse.de>
10419
10420 PR middle-end/102518
10421 * tree-inline.c (setup_one_parameter): Avoid substituting
10422 an invariant into contexts where a GIMPLE register is not valid.
10423
10424 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10425
10426 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
10427 * config/arm/arm-tables.opt: Regenerate.
10428 * config/arm/arm-tune.md: Regenerate.
10429 * doc/invoke.texi: Update docs.
10430
10431 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
10432
10433 PR target/89954
10434 * config/i386/i386.md
10435 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
10436 New splitters.
10437
10438 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
10439
10440 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
10441 omp_{c,re}alloc, fix omp_alloc/omp_free.
10442
10443 2021-09-30 Martin Liska <mliska@suse.cz>
10444
10445 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
10446 asm_out_file and stream directly to MYFILE.
10447
10448 2021-09-30 Richard Biener <rguenther@suse.de>
10449
10450 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10451 Restore and fix condition under which we apply npeel to
10452 the DRs misalignment value.
10453
10454 2021-09-30 Richard Biener <rguenther@suse.de>
10455
10456 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10457 Fix npeel check for variable amount of peeling.
10458
10459 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
10460
10461 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
10462
10463 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
10464
10465 * gimple-range.cc (gimple_ranger::debug): New.
10466 * gimple-range.h (class gimple_ranger): Add debug.
10467
10468 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
10469
10470 PR middle-end/102519
10471 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
10472
10473 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
10474
10475 PR debug/102507
10476 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
10477 (btf_finalize): Empty the hash_map btf_var_ids.
10478
10479 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
10480
10481 * tree-vrp.c (thread_through_all_blocks): Return bool.
10482 (execute_vrp_threader): Return TODO_* flags.
10483 (pass_data_vrp_threader): Set todo_flags_finish to 0.
10484
10485 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
10486
10487 * timevar.def (TV_TREE_VRP_THREADER): New.
10488 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
10489
10490 2021-09-29 David Faust <david.faust@oracle.com>
10491
10492 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
10493
10494 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
10495
10496 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
10497 new type qualifier enum.
10498 (TYPES_TERNOP_SSSU): Likewise.
10499 (TYPES_TERNOP_PPPU): Likewise.
10500 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
10501 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
10502 Neon builtins.
10503 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
10504 builtin and remove casts.
10505 (vqtbl1_s8): Likewise.
10506 (vqtbl1q_p8): Likewise.
10507 (vqtbl1q_s8): Likewise.
10508 (vqtbx1_s8): Likewise.
10509 (vqtbx1_p8): Likewise.
10510 (vqtbx1q_s8): Likewise.
10511 (vqtbx1q_p8): Likewise.
10512 (vtbl1_p8): Likewise.
10513 (vtbl2_p8): Likewise.
10514 (vtbx2_p8): Likewise.
10515
10516 2021-09-29 Richard Biener <rguenther@suse.de>
10517
10518 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
10519 New helper.
10520 (vect_update_misalignment_for_peel): Use it to update
10521 misaligned to the value necessary for an aligned access.
10522 (vect_get_peeling_costs_all_drs): Likewise.
10523 (vect_enhance_data_refs_alignment): Likewise.
10524
10525 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10526
10527 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
10528 emitted operations and adjust heuristic for code size.
10529
10530 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10531
10532 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
10533 emitted operations and adjust heuristic for code size.
10534
10535 2021-09-29 Jakub Jelinek <jakub@redhat.com>
10536
10537 PR middle-end/102504
10538 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
10539 in OMP_SCOPE clauses, not just on worksharing construct clauses.
10540
10541 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
10542
10543 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
10544 (<u>mulditi3): Call <su>muldi3_highpart.
10545 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
10546 (<u>mulsidi3): Call <su>mulsi3_highpart.
10547 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
10548
10549 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
10550
10551 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
10552
10553 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
10554
10555 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
10556 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
10557 of the fixed regs.
10558
10559 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10560
10561 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
10562 (AARCH64_FL_V8_7): Likewise.
10563 (AARCH64_FL_FOR_ARCH8_7): Likewise.
10564 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
10565 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
10566 * doc/invoke.texi: Document the above.
10567
10568 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
10569
10570 * dbgcnt.c (dbg_cnt_counter): New.
10571 * dbgcnt.h (dbg_cnt_counter): New.
10572 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
10573 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
10574 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
10575 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
10576 debug counter.
10577
10578 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
10579
10580 * cfgcleanup.c (pass_jump::execute): Check
10581 flag_expensive_optimizations.
10582 (pass_jump_after_combine::gate): Same.
10583 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
10584 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
10585 * tree-ssa-threadupdate.c
10586 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
10587 flag_thread_jumps.
10588
10589 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
10590
10591 * tree-ssa-reassoc.c (biased_names): New global.
10592 (propagate_bias_p): New function.
10593 (loop_carried_phi): Remove.
10594 (propagate_rank): Propagate bias along single uses.
10595 (get_rank): Update biased_names when needed.
10596
10597 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
10598
10599 * passes.def (pass_reassoc): Rename parameter to early_p.
10600 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
10601 New variable.
10602 (phi_rank): Don't bias loop-carried phi ranks
10603 before vectorization pass.
10604 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
10605 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
10606 initializer.
10607 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
10608 value.
10609 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
10610 execute_reassoc.
10611 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
10612
10613 2021-09-28 Jakub Jelinek <jakub@redhat.com>
10614
10615 PR target/102498
10616 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
10617 special 80387 instruction XFmode constants if flag_rounding_math.
10618
10619 2021-09-28 Richard Biener <rguenther@suse.de>
10620
10621 PR tree-optimization/100112
10622 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
10623 referece into the hashtable twice in case last_vuse is
10624 different from the original vuse on the stmt.
10625
10626 2021-09-28 Jakub Jelinek <jakub@redhat.com>
10627
10628 PR middle-end/102492
10629 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
10630 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
10631 clauses on SIMD constructs.
10632
10633 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
10634
10635 PR tree-optimization/102511
10636 * gimple-range-path.cc (path_range_query::range_on_path_entry):
10637 Return VARYING when nothing found.
10638
10639 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
10640
10641 PR target/102230
10642 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
10643 V2HF mode check.
10644 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
10645 (VALID_MMX_REG_MODE): Add V4HFmode.
10646 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
10647 vector mode condition.
10648 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
10649 via sse regs.
10650 (function_arg_32): Add V4HFmode.
10651 (function_arg_advance_32): Likewise.
10652 * config/i386/i386.md (mode): Add V4HF/V2HF.
10653 (MODE_SIZE): Likewise.
10654 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
10655 (V_32): Add V2HF mode.
10656 (VHF_32_64): New mode iterator.
10657 (*mov<mode>_internal): Adjust sse alternatives to support
10658 V4HF mode move.
10659 (*mov<mode>_internal): Adjust sse alternatives to support
10660 V2HF mode move.
10661 (<insn><mode>3): New define_insn for add/sub/mul/div.
10662
10663 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
10664
10665 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
10666 flag_thread_jumps.
10667 (pass_early_thread_jumps::gate): Same.
10668 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
10669 Return if !flag_thread_jumps.
10670 * tree-ssa-threadupdate.c
10671 (jt_path_registry::register_jump_thread): Assert that
10672 flag_thread_jumps is true.
10673
10674 2021-09-28 liuhongt <hongtao.liu@intel.com>
10675
10676 * simplify-rtx.c
10677 (simplify_context::simplify_binary_operation_1): Relax
10678 condition of simplifying (vec_concat:M (vec_select op0
10679 index0)(vec_select op1 index1)) to allow different modes
10680 between op0 and M, but have same inner mode.
10681
10682 2021-09-28 liuhongt <hongtao.liu@intel.com>
10683
10684 * config/i386/i386-expand.c (emit_reduc_half): Handle
10685 V8HF/V16HF/V32HFmode.
10686 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
10687 (REDUC_SSE_SMINMAX_MODE): Ditto.
10688 (REDUC_PLUS_MODE): Add V16HF and V32HF.
10689 (REDUC_SMINMAX_MODE): Ditto.
10690
10691 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
10692
10693 * gimple-range-path.cc
10694 (path_range_query::precompute_ranges_in_block): Rename to...
10695 (path_range_query::compute_ranges_in_block): ...this.
10696 (path_range_query::precompute_ranges): Rename to...
10697 (path_range_query::compute_ranges): ...this.
10698 (path_range_query::precompute_relations): Rename to...
10699 (path_range_query::compute_relations): ...this.
10700 (path_range_query::precompute_phi_relations): Rename to...
10701 (path_range_query::compute_phi_relations): ...this.
10702 * gimple-range-path.h: Rename precompute* to compute*.
10703 * tree-ssa-threadbackward.c
10704 (back_threader::find_taken_edge_switch): Same.
10705 (back_threader::find_taken_edge_cond): Same.
10706 * tree-ssa-threadedge.c
10707 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
10708 (hybrid_jt_state::register_equivs_stmt): Inline...
10709 * tree-ssa-threadedge.h: ...here.
10710
10711 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
10712
10713 * tree-vrp.c (lhs_of_dominating_assert): Remove.
10714 (class vrp_jt_state): Remove.
10715 (class vrp_jt_simplifier): Remove.
10716 (vrp_jt_simplifier::simplify): Remove.
10717 (class vrp_jump_threader): Remove.
10718 (vrp_jump_threader::vrp_jump_threader): Remove.
10719 (vrp_jump_threader::~vrp_jump_threader): Remove.
10720 (vrp_jump_threader::before_dom_children): Remove.
10721 (vrp_jump_threader::after_dom_children): Remove.
10722
10723 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
10724
10725 * passes.def (pass_vrp_threader): New.
10726 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
10727 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
10728 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
10729 (hybrid_jt_simplifier::simplify): New.
10730 (hybrid_jt_simplifier::compute_ranges_from_state): New.
10731 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
10732 (class hybrid_jt_simplifier): New.
10733 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
10734 threader.
10735 (class hybrid_threader): New.
10736 (hybrid_threader::hybrid_threader): New.
10737 (hybrid_threader::~hybrid_threader): New.
10738 (hybrid_threader::before_dom_children): New.
10739 (hybrid_threader::after_dom_children): New.
10740 (execute_vrp_threader): New.
10741 (class pass_vrp_threader): New.
10742 (make_pass_vrp_threader): New.
10743
10744 2021-09-27 Martin Liska <mliska@suse.cz>
10745
10746 * output.h (enum section_flag): New.
10747 (SECTION_FORGET): Remove.
10748 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
10749 (SECTION_STYLE_MASK): Define it based on other enum
10750 values.
10751 * varasm.c (switch_to_section): Remove unused handling of
10752 SECTION_FORGET.
10753
10754 2021-09-27 Martin Liska <mliska@suse.cz>
10755
10756 * common.opt: Add new variable flag_default_complex_method.
10757 * opts.c (finish_options): Handle flags related to
10758 x_flag_complex_method.
10759 * toplev.c (process_options): Remove option handling related
10760 to flag_complex_method.
10761
10762 2021-09-27 Richard Biener <rguenther@suse.de>
10763
10764 PR middle-end/102450
10765 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
10766 type_for_size, instead use int_mode_for_size.
10767
10768 2021-09-27 Andrew Pinski <apinski@marvell.com>
10769
10770 PR c/94726
10771 * gimplify.c (gimplify_save_expr): Return early
10772 if the type of val is error_mark_node.
10773
10774 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
10775
10776 * tree-ssanames.c (ssa_name_has_boolean_range): Use
10777 get_range_query.
10778
10779 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
10780
10781 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
10782 vrp_visit_cond_stmt.
10783 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
10784 (cprop_into_stmt): Same.
10785 (dom_opt_dom_walker::optimize_stmt): Same.
10786
10787 2021-09-27 Richard Biener <rguenther@suse.de>
10788
10789 PR tree-optimization/97351
10790 PR tree-optimization/97352
10791 PR tree-optimization/82426
10792 * tree-vectorizer.h (dr_misalignment): Add vector type
10793 argument.
10794 (aligned_access_p): Likewise.
10795 (known_alignment_for_access_p): Likewise.
10796 (vect_supportable_dr_alignment): Likewise.
10797 (vect_known_alignment_in_bytes): Likewise. Refactor.
10798 (DR_MISALIGNMENT): Remove.
10799 (vect_update_shared_vectype): Likewise.
10800 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
10801 a vector type with larger alignment requirement and apply
10802 the negative step adjustment here.
10803 (vect_calculate_target_alignment): Remove.
10804 (vect_compute_data_ref_alignment): Get explicit vector type
10805 argument, do not apply a negative step alignment adjustment
10806 here.
10807 (vect_slp_analyze_node_alignment): Re-analyze alignment
10808 when we re-visit the DR with a bigger desired alignment but
10809 keep more precise results from smaller alignments.
10810 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
10811 (vect_slp_analyze_node_operations_1): Do not update the
10812 shared vector type on stmts.
10813 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
10814 vector type of an SLP node to the representative stmt-info.
10815 (vect_transform_stmt): Likewise.
10816
10817 2021-09-27 liuhongt <hongtao.liu@intel.com>
10818
10819 Revert:
10820 2021-09-09 liuhongt <hongtao.liu@intel.com>
10821
10822 PR target/101059
10823 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
10824 (reduc_plus_scal_v4sf): .. this, New define_expand.
10825 (reduc_plus_scal_v2df): .. and this, New define_expand.
10826
10827 2021-09-26 liuhongt <hongtao.liu@intel.com>
10828
10829 * doc/extend.texi (Half-Precision): Remove storage only
10830 description for _Float16 w/o avx512fp16.
10831
10832 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
10833
10834 * config/pru/constraints.md (Rrio): New constraint.
10835 * config/pru/predicates.md (regio_operand): New predicate.
10836 * config/pru/pru-pragma.c (pru_register_pragmas): Register
10837 the __regio_symbol address space.
10838 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
10839 * config/pru/pru.c (pru_symref2ioregno): New helper function.
10840 (pru_legitimate_address_p): Remove.
10841 (pru_addr_space_legitimate_address_p): Use the address space
10842 aware hook variant.
10843 (pru_nongeneric_pointer_addrspace): New helper function.
10844 (pru_insert_attributes): New function to validate __regio_symbol
10845 usage.
10846 (TARGET_INSERT_ATTRIBUTES): New macro.
10847 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
10848 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
10849 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
10850 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
10851 registers.
10852 (*regio_nozext_writesi): New pattern to write to I/O registers.
10853 (*regio_zext_write_r30<EQS0:mode>): Ditto.
10854 * doc/extend.texi: Document the new PRU Named Address Space.
10855
10856 2021-09-24 Patrick Palka <ppalka@redhat.com>
10857
10858 PR c++/98216
10859 PR c++/91292
10860 * real.c (encode_ieee_double): Avoid unwanted sign extension.
10861 (encode_ieee_quad): Likewise.
10862
10863 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
10864
10865 PR rtl-optimization/102147
10866 * ira-build.c (ira_conflict_vector_profitable_p): Make
10867 profitability calculation independent of host compiler pointer and
10868 IRA_INT_BITS sizes.
10869
10870 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
10871
10872 * gimple-range-path.cc (path_range_query::path_range_query):
10873 Move debugging header...
10874 (path_range_query::precompute_ranges): ...here.
10875 (path_range_query::internal_range_of_expr): Do not call
10876 range_on_path_entry if NAME is defined in the current block.
10877
10878 2021-09-24 Richard Biener <rguenther@suse.de>
10879
10880 * cfghooks.c (verify_flow_info): Verify unallocated BB and
10881 edge flags are not set.
10882
10883 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
10884
10885 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
10886 New.
10887 (jt_path_registry::register_jump_thread): Call
10888 cancel_invalid_paths.
10889 * tree-ssa-threadupdate.h (class jt_path_registry): Add
10890 cancel_invalid_paths.
10891
10892 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
10893
10894 PR tree-optimization/102400
10895 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
10896 result_vdef to zero value.
10897
10898 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
10899
10900 PR tree-optimization/102451
10901 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
10902 before removal.
10903
10904 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
10905
10906 * config/i386/sse.md (cond_<insn><mode>): Extend to support
10907 vector HFmodes.
10908 (cond_mul<mode>): Likewise.
10909 (cond_div<mode>): Likewise.
10910 (cond_<code><mode>): Likewise.
10911 (cond_fma<mode>): Likewise.
10912 (cond_fms<mode>): Likewise.
10913 (cond_fnma<mode>): Likewise.
10914 (cond_fnms<mode>): Likewise.
10915
10916 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
10917
10918 PR tree-optimization/102463
10919 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
10920 there is no range-ops handler, don't look for a relation.
10921
10922 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
10923
10924 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
10925 non-executable_edge flag as parameter.
10926 * gimple-range-cache.h (ranger_cache): Adjust prototype.
10927 * gimple-range-gori.cc (gori_compute::gori_compute): Take
10928 non-executable_edge flag as parameter.
10929 (gori_compute::outgoing_edge_range_p): Check new flag.
10930 * gimple-range-gori.h (gori_compute): Adjust prototype.
10931 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
10932 (gimple_ranger::range_on_edge): Check new flag.
10933 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
10934 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
10935 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
10936 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
10937 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
10938 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
10939 (simplify_using_ranges::simplify_switch_using_ranges): Clear
10940 EDGE_EXECUTABLE like it originally did.
10941 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
10942 NON_EXECUTABLE flags.
10943 (simplify_using_ranges::simplify_using_ranges): Adjust.
10944 * vr-values.h (class simplify_using_ranges): Adjust.
10945 (simplify_using_ranges::set_range_query): Add non-executable flag param.
10946
10947 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
10948
10949 PR target/102024
10950 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
10951 zero-width bit fields and return indicator.
10952 (rs6000_discover_homogeneous_aggregate): Diagnose when the
10953 presence of a zero-width bit field changes parameter passing in
10954 GCC 12.
10955
10956 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
10957
10958 * gimple-range-fold.cc (fold_using_range::range_of_phi):
10959 Remove dominator check.
10960
10961 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
10962
10963 * gimple-range-path.cc (path_range_query::precompute_relations):
10964 Hoist edge calculations before using EDGE_SUCC.
10965
10966 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
10967
10968 * configure.ac: Fix --with-multilib-list description.
10969 * configure: Regenerate.
10970
10971 2021-09-23 Richard Biener <rguenther@suse.de>
10972
10973 PR tree-optimization/102448
10974 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
10975 Clear alignment info copied from DR_PTR_INFO.
10976
10977 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10978
10979 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
10980 HFmode mask_cmp.
10981 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
10982 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
10983 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
10984 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
10985 (vcond<mode><mode>): New expander.
10986 (vcond<mode><sseintvecmodelower>): Likewise.
10987 (vcond<sseintvecmodelower><mode>): Likewise.
10988 (vcondu<mode><sseintvecmodelower>): Likewise.
10989
10990 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10991
10992 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
10993 New expander.
10994 (extendv4hf<mode>2): Likewise.
10995 (extendv2hfv2df2): Likewise.
10996 (trunc<mode><ssePHmodelower>2): Likewise.
10997 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
10998 (trunc<mode>v4hf2): ... this, and drop constraints.
10999 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
11000 (truncv2dfv2hf2): ... this, and likewise.
11001
11002 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
11003
11004 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
11005 New expander.
11006 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
11007 Rename to ...
11008 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
11009 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
11010 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
11011
11012 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
11013
11014 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
11015 (fixuns_trunchfhi2): Likewise.
11016 (*fixuns_trunchfsi2zext): New define_insn.
11017 * config/i386/sse.md (ssePHmodelower): New mode_attr.
11018 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
11019 New expander for same element vector fix_truncate.
11020 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
11021 Likewise for V4HF to V4SI/V4DI fix_truncate.
11022 (fix<fixunssuffix>_truncv2hfv2di2):
11023 Likeise for V2HF to V2DI fix_truncate.
11024
11025 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
11026
11027 * config/i386/i386.md (<code>hf3): New expander.
11028
11029 2021-09-23 liuhongt <hongtao.liu@intel.com>
11030
11031 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
11032 (VFH_SF_AVX512VL): Extend to handle HFmode.
11033 (VF_SF_AVX512VL): Deleted.
11034
11035 2021-09-23 liuhongt <hongtao.liu@intel.com>
11036
11037 * config/i386/i386.md (rinthf2): New expander.
11038 (nearbyinthf2): New expander.
11039
11040 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
11041
11042 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
11043 (class dom_jt_state): ...this and provide virtual overrides.
11044 (dom_jt_state::register_equiv): New.
11045 (class dom_jt_simplifier): Rename from
11046 dom_jump_threader_simplifier.
11047 (dom_jump_threader_simplifier::simplify): Rename...
11048 (dom_jt_simplifier::simplify): ...to this.
11049 (pass_dominator::execute): Use dom_jt_simplifier and
11050 dom_jt_state.
11051 * tree-ssa-threadedge.c (jump_threader::jump_threader):
11052 Clean-up.
11053 (jt_state::register_equivs_stmt): Abstract out...
11054 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
11055 ...from here.
11056 (jump_threader::thread_around_empty_blocks): Update state.
11057 (jump_threader::thread_through_normal_block): Same.
11058 (jt_state::jt_state): Remove.
11059 (jt_state::push): Remove pass specific bits. Keep block vector
11060 updated.
11061 (jt_state::append_path): New.
11062 (jt_state::pop): Remove pass specific bits.
11063 (jt_state::register_equiv): Same.
11064 (jt_state::record_ranges_from_stmt): Same.
11065 (jt_state::register_equivs_on_edge): Same. Rename...
11066 (jt_state::register_equivs_edge): ...to this.
11067 (jt_state::dump): New.
11068 (jt_state::debug): New.
11069 (jump_threader_simplifier::simplify): Remove.
11070 (jt_state::get_path): New.
11071 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
11072 class. Expose common functionality as virtual methods.
11073 (class jump_threader_simplifier): Same. Rename...
11074 (class jt_simplifier): ...to this.
11075 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
11076 (class vrp_jt_simplifier): ...to this. Provide pass specific
11077 overrides.
11078 (class vrp_jt_state): New.
11079 (vrp_jump_threader_simplifier::simplify): Rename...
11080 (vrp_jt_simplifier::simplify): ...to this. Inline code from
11081 what used to be the base class.
11082 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
11083 vrp_jt_simplifier.
11084
11085 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
11086
11087 PR fortran/55534
11088 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
11089 behavior.
11090
11091 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
11092 Richard Biener <rguenther@suse.de>
11093
11094 * match.pd (negation simplifications): Implement some negation
11095 folding transformations from fold-const.c's fold_negate_expr.
11096 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
11097 argument, to control whether the op should be simplified prior
11098 to looking up/assigning a value number.
11099 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
11100 (vn_nary_simplify): Likewise.
11101 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
11102 now call vn_nary_build_or_lookup_1 disabling simplification.
11103
11104 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
11105
11106 PR tree-optimization/102087
11107 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
11108 Update bound/cmp/control for niter.
11109
11110 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
11111
11112 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
11113 Move check for non-empty BB here.
11114 (fur_source::register_outgoing_edges): ...from here.
11115
11116 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
11117
11118 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
11119 Remove call to improve_range_with_equivs.
11120 (path_range_query::improve_range_with_equivs): Remove
11121 * gimple-range-path.h: Remove improve_range_with_equivs.
11122
11123 2021-09-22 dianhong xu <dianhong.xu@intel.com>
11124
11125 * config/i386/avx512fp16intrin.h:
11126 (_mm512_mask_blend_ph): New intrinsic.
11127 (_mm512_permutex2var_ph): Ditto.
11128 (_mm512_permutexvar_ph): Ditto.
11129 * config/i386/avx512fp16vlintrin.h:
11130 (_mm256_mask_blend_ph): New intrinsic.
11131 (_mm256_permutex2var_ph): Ditto.
11132 (_mm256_permutexvar_ph): Ditto.
11133 (_mm_mask_blend_ph): Ditto.
11134 (_mm_permutex2var_ph): Ditto.
11135 (_mm_permutexvar_ph): Ditto.
11136
11137 2021-09-22 dianhong xu <dianhong.xu@intel.com>
11138
11139 * config/i386/avx512fp16intrin.h: Add new intrinsics.
11140 (_mm512_conj_pch): New intrinsic.
11141 (_mm512_mask_conj_pch): Ditto.
11142 (_mm512_maskz_conj_pch): Ditto.
11143 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
11144 (_mm256_conj_pch): New intrinsic.
11145 (_mm256_mask_conj_pch): Ditto.
11146 (_mm256_maskz_conj_pch): Ditto.
11147 (_mm_conj_pch): Ditto.
11148 (_mm_mask_conj_pch): Ditto.
11149 (_mm_maskz_conj_pch): Ditto.
11150
11151 2021-09-22 dianhong xu <dianhong.xu@intel.com>
11152
11153 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
11154 (_mm512_reduce_add_ph): New intrinsic.
11155 (_mm512_reduce_mul_ph): Ditto.
11156 (_mm512_reduce_min_ph): Ditto.
11157 (_mm512_reduce_max_ph): Ditto.
11158 * config/i386/avx512fp16vlintrin.h
11159 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
11160 (_mm256_reduce_add_ph): New intrinsic.
11161 (_mm256_reduce_mul_ph): Ditto.
11162 (_mm256_reduce_min_ph): Ditto.
11163 (_mm256_reduce_max_ph): Ditto.
11164 (_mm_reduce_add_ph): Ditto.
11165 (_mm_reduce_mul_ph): Ditto.
11166 (_mm_reduce_min_ph): Ditto.
11167 (_mm_reduce_max_ph): Ditto.
11168
11169 2021-09-22 dianhong xu <dianhong.xu@intel.com>
11170
11171 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
11172 __m128h_u): New typedef.
11173 (_mm512_load_ph): New intrinsic.
11174 (_mm256_load_ph): Ditto.
11175 (_mm_load_ph): Ditto.
11176 (_mm512_loadu_ph): Ditto.
11177 (_mm256_loadu_ph): Ditto.
11178 (_mm_loadu_ph): Ditto.
11179 (_mm512_store_ph): Ditto.
11180 (_mm256_store_ph): Ditto.
11181 (_mm_store_ph): Ditto.
11182 (_mm512_storeu_ph): Ditto.
11183 (_mm256_storeu_ph): Ditto.
11184 (_mm_storeu_ph): Ditto.
11185 (_mm512_abs_ph): Ditto.
11186 * config/i386/avx512fp16vlintrin.h
11187 (_mm_abs_ph): Ditto.
11188 (_mm256_abs_ph): Ditto.
11189
11190 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
11191
11192 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
11193
11194 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
11195
11196 PR target/102222
11197 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
11198 is actually a full copy of the source operand into the target.
11199 Don't emit a strict low part move if source and target mode match.
11200
11201 2021-09-22 Jakub Jelinek <jakub@redhat.com>
11202
11203 PR middle-end/102415
11204 * omp-expand.c (expand_omp_single): If region->exit is NULL,
11205 assert region->entry is GIMPLE_OMP_SCOPE region and return.
11206
11207 2021-09-22 Jakub Jelinek <jakub@redhat.com>
11208
11209 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
11210 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
11211 arguments from 2 to 3.
11212 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
11213 allocate clause allocator and print align if present.
11214 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
11215 for omp_default_mem_alloc if align modifier is present. If align
11216 modifier is present, use TREE_LIST to encode both allocator and
11217 align.
11218 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
11219 Handle align modifier on allocator clause if present.
11220
11221 2021-09-22 liuhongt <hongtao.liu@intel.com>
11222
11223 * config/i386/i386.md (define_attr "isa"): Add
11224 fma_or_avx512vl.
11225 (define_attr "enabled"): Correspond fma_or_avx512vl to
11226 TARGET_FMA || TARGET_AVX512VL.
11227 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
11228 (fmsv2sf4): Ditto.
11229 (fnmav2sf4): Ditto.
11230 (fnmsv2sf4): Ditto.
11231
11232 2021-09-22 liuhongt <hongtao.liu@intel.com>
11233
11234 * config/i386/i386.md (cstorehf3): New define_expand.
11235
11236 2021-09-22 liuhongt <hongtao.liu@intel.com>
11237
11238 * config/i386/i386.md (<rounding_insn>hf2): New expander.
11239 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
11240 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
11241 Extend from VF_128 to VFH_128.
11242
11243 2021-09-22 liuhongt <hongtao.liu@intel.com>
11244
11245 * config/i386/i386-features.c (i386-features.c): Handle
11246 E_HFmode.
11247 * config/i386/i386.md (sqrthf2): New expander.
11248 (*sqrthf2): New define_insn.
11249 * config/i386/sse.md
11250 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
11251 Extend to VFH_128.
11252
11253 2021-09-22 liuhongt <hongtao.liu@intel.com>
11254
11255 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
11256 New intrinsic.
11257 (_mm_mask3_fcmadd_sch): Likewise.
11258 (_mm_maskz_fcmadd_sch): Likewise.
11259 (_mm_fcmadd_sch): Likewise.
11260 (_mm_mask_fmadd_sch): Likewise.
11261 (_mm_mask3_fmadd_sch): Likewise.
11262 (_mm_maskz_fmadd_sch): Likewise.
11263 (_mm_fmadd_sch): Likewise.
11264 (_mm_mask_fcmadd_round_sch): Likewise.
11265 (_mm_mask3_fcmadd_round_sch): Likewise.
11266 (_mm_maskz_fcmadd_round_sch): Likewise.
11267 (_mm_fcmadd_round_sch): Likewise.
11268 (_mm_mask_fmadd_round_sch): Likewise.
11269 (_mm_mask3_fmadd_round_sch): Likewise.
11270 (_mm_maskz_fmadd_round_sch): Likewise.
11271 (_mm_fmadd_round_sch): Likewise.
11272 (_mm_fcmul_sch): Likewise.
11273 (_mm_mask_fcmul_sch): Likewise.
11274 (_mm_maskz_fcmul_sch): Likewise.
11275 (_mm_fmul_sch): Likewise.
11276 (_mm_mask_fmul_sch): Likewise.
11277 (_mm_maskz_fmul_sch): Likewise.
11278 (_mm_fcmul_round_sch): Likewise.
11279 (_mm_mask_fcmul_round_sch): Likewise.
11280 (_mm_maskz_fcmul_round_sch): Likewise.
11281 (_mm_fmul_round_sch): Likewise.
11282 (_mm_mask_fmul_round_sch): Likewise.
11283 (_mm_maskz_fmul_round_sch): Likewise.
11284 * config/i386/i386-builtin.def: Add corresponding new builtins.
11285 * config/i386/sse.md
11286 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
11287 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
11288 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
11289 New define insn.
11290 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
11291 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
11292 Ditto.
11293 * config/i386/subst.md (mask_scalarcz_name): New.
11294 (mask_scalarc_name): Ditto.
11295 (mask_scalarc_operand3): Ditto.
11296 (mask_scalarcz_operand4): Ditto.
11297 (round_scalarcz_name): Ditto.
11298 (round_scalarc_mask_operand3): Ditto.
11299 (round_scalarcz_mask_operand4): Ditto.
11300 (round_scalarc_mask_op3): Ditto.
11301 (round_scalarcz_mask_op4): Ditto.
11302 (round_scalarcz_constraint): Ditto.
11303 (round_scalarcz_nimm_predicate): Ditto.
11304 (mask_scalarcz): Ditto.
11305 (mask_scalarc): Ditto.
11306 (round_scalarcz): Ditto.
11307
11308 2021-09-22 liuhongt <hongtao.liu@intel.com>
11309
11310 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
11311 New intrinsic.
11312 (_mm512_mask_fcmadd_pch): Likewise.
11313 (_mm512_mask3_fcmadd_pch): Likewise.
11314 (_mm512_maskz_fcmadd_pch): Likewise.
11315 (_mm512_fmadd_pch): Likewise.
11316 (_mm512_mask_fmadd_pch): Likewise.
11317 (_mm512_mask3_fmadd_pch): Likewise.
11318 (_mm512_maskz_fmadd_pch): Likewise.
11319 (_mm512_fcmadd_round_pch): Likewise.
11320 (_mm512_mask_fcmadd_round_pch): Likewise.
11321 (_mm512_mask3_fcmadd_round_pch): Likewise.
11322 (_mm512_maskz_fcmadd_round_pch): Likewise.
11323 (_mm512_fmadd_round_pch): Likewise.
11324 (_mm512_mask_fmadd_round_pch): Likewise.
11325 (_mm512_mask3_fmadd_round_pch): Likewise.
11326 (_mm512_maskz_fmadd_round_pch): Likewise.
11327 (_mm512_fcmul_pch): Likewise.
11328 (_mm512_mask_fcmul_pch): Likewise.
11329 (_mm512_maskz_fcmul_pch): Likewise.
11330 (_mm512_fmul_pch): Likewise.
11331 (_mm512_mask_fmul_pch): Likewise.
11332 (_mm512_maskz_fmul_pch): Likewise.
11333 (_mm512_fcmul_round_pch): Likewise.
11334 (_mm512_mask_fcmul_round_pch): Likewise.
11335 (_mm512_maskz_fcmul_round_pch): Likewise.
11336 (_mm512_fmul_round_pch): Likewise.
11337 (_mm512_mask_fmul_round_pch): Likewise.
11338 (_mm512_maskz_fmul_round_pch): Likewise.
11339 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
11340 New intrinsic.
11341 (_mm_mask_fmadd_pch): Likewise.
11342 (_mm_mask3_fmadd_pch): Likewise.
11343 (_mm_maskz_fmadd_pch): Likewise.
11344 (_mm256_fmadd_pch): Likewise.
11345 (_mm256_mask_fmadd_pch): Likewise.
11346 (_mm256_mask3_fmadd_pch): Likewise.
11347 (_mm256_maskz_fmadd_pch): Likewise.
11348 (_mm_fcmadd_pch): Likewise.
11349 (_mm_mask_fcmadd_pch): Likewise.
11350 (_mm_mask3_fcmadd_pch): Likewise.
11351 (_mm_maskz_fcmadd_pch): Likewise.
11352 (_mm256_fcmadd_pch): Likewise.
11353 (_mm256_mask_fcmadd_pch): Likewise.
11354 (_mm256_mask3_fcmadd_pch): Likewise.
11355 (_mm256_maskz_fcmadd_pch): Likewise.
11356 (_mm_fmul_pch): Likewise.
11357 (_mm_mask_fmul_pch): Likewise.
11358 (_mm_maskz_fmul_pch): Likewise.
11359 (_mm256_fmul_pch): Likewise.
11360 (_mm256_mask_fmul_pch): Likewise.
11361 (_mm256_maskz_fmul_pch): Likewise.
11362 (_mm_fcmul_pch): Likewise.
11363 (_mm_mask_fcmul_pch): Likewise.
11364 (_mm_maskz_fcmul_pch): Likewise.
11365 (_mm256_fcmul_pch): Likewise.
11366 (_mm256_mask_fcmul_pch): Likewise.
11367 (_mm256_maskz_fcmul_pch): Likewise.
11368 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
11369 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
11370 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
11371 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
11372 * config/i386/i386-builtin.def: Add new builtins.
11373 * config/i386/i386-expand.c: Handle new builtin types.
11374 * config/i386/subst.md (SUBST_CV): New.
11375 (maskc_name): Ditto.
11376 (maskc_operand3): Ditto.
11377 (maskc): Ditto.
11378 (sdc_maskz_name): Ditto.
11379 (sdc_mask_op4): Ditto.
11380 (sdc_mask_op5): Ditto.
11381 (sdc_mask_mode512bit_condition): Ditto.
11382 (sdc): Ditto.
11383 (round_maskc_operand3): Ditto.
11384 (round_sdc_mask_operand4): Ditto.
11385 (round_maskc_op3): Ditto.
11386 (round_sdc_mask_op4): Ditto.
11387 (round_saeonly_sdc_mask_operand5): Ditto.
11388 * config/i386/sse.md (unspec): Add complex fma unspecs.
11389 (avx512fmaskcmode): New.
11390 (UNSPEC_COMPLEX_F_C_MA): Ditto.
11391 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
11392 (complexopname): Ditto.
11393 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
11394 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
11395 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
11396 define insn.
11397 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
11398 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
11399
11400 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
11401
11402 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
11403 rs6000-density-size-threshold, rs6000-density-penalty,
11404 rs6000-density-load-pct-threshold,
11405 rs6000-density-load-num-threshold): New parameter.
11406 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
11407 corresponding parameters.
11408
11409 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11410
11411 * gimple-range-path.cc (path_range_query::defined_outside_path):
11412 New.
11413 (path_range_query::range_on_path_entry): New.
11414 (path_range_query::internal_range_of_expr): Resolve unknowns
11415 with ranger.
11416 (path_range_query::improve_range_with_equivs): New.
11417 (path_range_query::ssa_range_in_phi): Resolve unknowns with
11418 ranger.
11419 * gimple-range-path.h (class path_range_query): Add
11420 defined_outside_path, range_on_path_entry, and
11421 improve_range_with_equivs.
11422
11423 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11424
11425 * gimple-range-path.cc (path_range_query::add_to_imports): New.
11426 (path_range_query::add_copies_to_imports): New.
11427 (path_range_query::precompute_ranges): Call
11428 add_copies_to_imports.
11429 * gimple-range-path.h (class path_range_query): Add prototypes
11430 for add_copies_to_imports and add_to_imports.
11431
11432 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11433
11434 * gimple-range-path.cc (path_range_query::range_defined_in_block):
11435 Remove useless code.
11436
11437 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11438
11439 * gimple-range-fold.h (class fur_source): Make oracle protected.
11440 * gimple-range-path.cc (path_range_query::path_range_query): Add
11441 resolve argument. Initialize oracle.
11442 (path_range_query::~path_range_query): Delete oracle.
11443 (path_range_query::range_of_stmt): Adapt to use relations.
11444 (path_range_query::precompute_ranges): Pre-compute relations.
11445 (class jt_fur_source): New
11446 (jt_fur_source::jt_fur_source): New.
11447 (jt_fur_source::register_relation): New.
11448 (jt_fur_source::query_relation): New.
11449 (path_range_query::precompute_relations): New.
11450 (path_range_query::precompute_phi_relations): New.
11451 * gimple-range-path.h (path_range_query): Add resolve argument.
11452 Add oracle, precompute_relations, precompute_phi_relations.
11453 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
11454 resolve argument to solver.
11455
11456 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11457
11458 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
11459 Rename postfold_gcond_edges to register_outgoing_edges and
11460 adapt.
11461 (fold_using_range::postfold_gcond_edges): Rename...
11462 (fur_source::register_outgoing_edges): ...to this.
11463 * gimple-range-fold.h (postfold_gcond_edges): Rename to
11464 register_outgoing_edges and move to fur_source.
11465
11466 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11467
11468 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
11469 dom_info_available_p.
11470
11471 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
11472
11473 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
11474 and quick_grow_cleared instead of safe_grow_cleared.
11475
11476 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
11477
11478 PR other/102408
11479 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
11480 'random ()' to '0'.
11481
11482 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
11483
11484 * configure.ac: Detect when the assembler supports new-style
11485 architecture extensions.
11486 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
11487 the full CPU string if the assembler can grok it.
11488 (arm_rewrite_march): Likewise but for the architecture.
11489 * config.in: Regenerate.
11490 * configure: Regenerate.
11491
11492 2021-09-21 Richard Biener <rguenther@suse.de>
11493
11494 PR tree-optimization/102421
11495 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
11496 adjust alignment info.
11497
11498 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
11499
11500 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
11501 bitfield stream out.
11502
11503 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
11504
11505 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
11506 undefined edges, apply an equivalence if appropriate.
11507 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
11508 UNDEFINED if EDGE_EXECUTABLE is not set.
11509 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
11510 as EXECUTABLE upon startup.
11511 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
11512 EDGE_EXECUTABLE set.
11513 * vr-values.c (set_and_propagate_unexecutable): New.
11514 (simplify_using_ranges::fold_cond): Call set_and_propagate.
11515 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
11516 * vr-values.h: Add prototype.
11517
11518 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
11519
11520 * value-relation.cc (equiv_oracle::register_initial_def): New.
11521 (equiv_oracle::register_relation): Call register_initial_def.
11522 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
11523 (relation_oracle::register_stmt): Check def block of PHI arguments.
11524 * value-relation.h (equiv_oracle): Add new prototypes.
11525
11526 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
11527
11528 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
11529 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
11530 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
11531 __ROUNDING_MATH__ according to their corresponding flags.
11532 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
11533 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
11534 and __ROUNDING_MATH__.
11535
11536 2021-09-20 Richard Biener <rguenther@suse.de>
11537
11538 * tree-vect-stmts.c (vectorizable_load): Use the vectype
11539 from the SLP node.
11540
11541 2021-09-20 Richard Biener <rguenther@suse.de>
11542
11543 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
11544 Do not compute alignment of the vectorized access here.
11545
11546 2021-09-20 Richard Biener <rguenther@suse.de>
11547
11548 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11549 Store -1 for runtime alias peeling iterations.
11550
11551 2021-09-20 Richard Biener <rguenther@suse.de>
11552
11553 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
11554
11555 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
11556
11557 * input.c (string_concat_db::record_string_concatenation)
11558 (string_concat_db::get_string_concatenation): Skip for
11559 'RESERVED_LOCATION_P'.
11560
11561 2021-09-20 Richard Biener <rguenther@suse.de>
11562
11563 PR tree-optimization/65206
11564 * tree-data-ref.h (struct data_reference): Add alt_indices,
11565 order it last.
11566 * tree-data-ref.c (free_data_ref): Release alt_indices.
11567 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
11568 (create_data_ref): Adjust.
11569 (initialize_data_dependence_relation): Split into head
11570 and tail. When the base objects fail to match up try
11571 again with pointer-based analysis of indices.
11572 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
11573 not compare the lazily computed alternate set of indices.
11574
11575 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
11576
11577 * gcc.c: Test for execute OK when we find the
11578 programs for assembler linker and dsymutil and those
11579 were specified at configure-time.
11580
11581 2021-09-19 Martin Sebor <msebor@redhat.com>
11582
11583 PR middle-end/102403
11584 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
11585 Correct a function pre/postcondition.
11586
11587 2021-09-19 Martin Sebor <msebor@redhat.com>
11588
11589 PR middle-end/102243
11590 * tree-ssa-strlen.c (get_range): Handle null cfun.
11591
11592 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
11593
11594 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
11595 unwinder shim as a convenience library.
11596
11597 2021-09-19 Andrew Pinski <apinski@marvell.com>
11598
11599 * doc/install.texi: Add note about
11600 binutils 2.35 is required for LTO usage.
11601
11602 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
11603
11604 * tree-ssa-threadbackward.c
11605 (back_threader_registry::register_path): Use push_edge.
11606 * tree-ssa-threadedge.c
11607 (jump_threader::thread_around_empty_blocks): Same.
11608 (jump_threader::thread_through_normal_block): Same.
11609 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
11610 Tidy up code.
11611 * tree-ssa-threadupdate.c
11612 (jt_path_registry::allocate_thread_edge): Remove.
11613 (jt_path_registry::push_edge): New.
11614 (dump_jump_thread_path): Make static.
11615 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
11616 (push_edge): New.
11617
11618 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
11619
11620 * gimple-range-path.cc (path_range_query::path_range_query): Add
11621 header.
11622 (path_range_query::dump): Remove extern declaration of dump_ranger.
11623 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
11624 * gimple-range-trace.h (dump_ranger): Add prototype.
11625
11626 2021-09-19 John Ericson <git@JohnEricson.me>
11627
11628 * gcc.c (find_a_program): New function, factored out of...
11629 (find_a_file): Here.
11630 (execute): Use find_a_program when looking for programs rather
11631 than find_a_file.
11632
11633 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
11634
11635 * config/avr/avr-mcus.def: Add atmega324pb.
11636 * doc/avr-mmcu.texi: Corresponding changes.
11637
11638 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
11639
11640 PR middle-end/88173
11641 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
11642 the same transformations as to @1. For comparisons against NaN,
11643 don't check HONOR_SNANS but confirm that neither operand is a
11644 signaling NaN.
11645
11646 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
11647
11648 * attribs.c (make_unique_name): Delete.
11649 * attribs.h (make_unique_name): Delete.
11650
11651 2021-09-19 Andrew Pinski <apinski@marvell.com>
11652
11653 * lra-constraints.c (check_and_process_move): Assert
11654 that dclass and sclass are greater than or equal to NO_REGS.
11655
11656 2021-09-18 Jakub Jelinek <jakub@redhat.com>
11657
11658 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
11659 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
11660 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
11661
11662 2021-09-18 liuhongt <hongtao.liu@intel.com>
11663
11664 * config/i386/i386-features.c (remove_partial_avx_dependency):
11665 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
11666 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
11667
11668 2021-09-18 Jakub Jelinek <jakub@redhat.com>
11669
11670 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
11671 if file/namespace scope variable doesn't have predetermined sharing,
11672 treat it as if there was default(none).
11673
11674 2021-09-18 liuhongt <hongtao.liu@intel.com>
11675
11676 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
11677 New intrinsic.
11678 (_mm_mask_fmadd_sh): Likewise.
11679 (_mm_mask3_fmadd_sh): Likewise.
11680 (_mm_maskz_fmadd_sh): Likewise.
11681 (_mm_fmadd_round_sh): Likewise.
11682 (_mm_mask_fmadd_round_sh): Likewise.
11683 (_mm_mask3_fmadd_round_sh): Likewise.
11684 (_mm_maskz_fmadd_round_sh): Likewise.
11685 (_mm_fnmadd_sh): Likewise.
11686 (_mm_mask_fnmadd_sh): Likewise.
11687 (_mm_mask3_fnmadd_sh): Likewise.
11688 (_mm_maskz_fnmadd_sh): Likewise.
11689 (_mm_fnmadd_round_sh): Likewise.
11690 (_mm_mask_fnmadd_round_sh): Likewise.
11691 (_mm_mask3_fnmadd_round_sh): Likewise.
11692 (_mm_maskz_fnmadd_round_sh): Likewise.
11693 (_mm_fmsub_sh): Likewise.
11694 (_mm_mask_fmsub_sh): Likewise.
11695 (_mm_mask3_fmsub_sh): Likewise.
11696 (_mm_maskz_fmsub_sh): Likewise.
11697 (_mm_fmsub_round_sh): Likewise.
11698 (_mm_mask_fmsub_round_sh): Likewise.
11699 (_mm_mask3_fmsub_round_sh): Likewise.
11700 (_mm_maskz_fmsub_round_sh): Likewise.
11701 (_mm_fnmsub_sh): Likewise.
11702 (_mm_mask_fnmsub_sh): Likewise.
11703 (_mm_mask3_fnmsub_sh): Likewise.
11704 (_mm_maskz_fnmsub_sh): Likewise.
11705 (_mm_fnmsub_round_sh): Likewise.
11706 (_mm_mask_fnmsub_round_sh): Likewise.
11707 (_mm_mask3_fnmsub_round_sh): Likewise.
11708 (_mm_maskz_fnmsub_round_sh): Likewise.
11709 * config/i386/i386-builtin-types.def
11710 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
11711 * config/i386/i386-builtin.def: Add new builtins.
11712 * config/i386/i386-expand.c: Handle new builtin type.
11713 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
11714 Ajdust to support FP16.
11715 (fmai_vmfmsub_<mode><round_name>): Ditto.
11716 (fmai_vmfnmadd_<mode><round_name>): Ditto.
11717 (fmai_vmfnmsub_<mode><round_name>): Ditto.
11718 (*fmai_fmadd_<mode>): Ditto.
11719 (*fmai_fmsub_<mode>): Ditto.
11720 (*fmai_fnmadd_<mode><round_name>): Ditto.
11721 (*fmai_fnmsub_<mode><round_name>): Ditto.
11722 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
11723 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
11724 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
11725 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
11726 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
11727 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
11728 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
11729 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
11730 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
11731 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
11732 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
11733 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
11734 adjust to support FP16.
11735 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
11736 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
11737 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
11738 expander.
11739
11740 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
11741
11742 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
11743 HF modes.
11744 (maskload<mode><avx512fmaskmodelower>): Ditto.
11745 (maskstore<mode><avx512fmaskmodelower>): Ditto.
11746
11747 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
11748
11749 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
11750 Handle HFmode.
11751 (ix86_expand_copysign): Ditto.
11752 (ix86_expand_xorsign): Ditto.
11753 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
11754 modes.
11755 (ix86_build_signbit_mask): Ditto.
11756 (ix86_can_change_mode_class): Ditto.
11757 * config/i386/i386.md
11758 (SSEMODEF): Add HFmode.
11759 (ssevecmodef): Ditto.
11760 (<code>hf2): New define_expand.
11761 (*<code>hf2_1): New define_insn_and_split.
11762 (copysign<mode>): Extend to support HFmode under AVX512FP16.
11763 (xorsign<mode>): Ditto.
11764 * config/i386/sse.md (VFB): New mode iterator.
11765 (VFB_128_256): Ditto.
11766 (VFB_512): Ditto.
11767 (sseintvecmode2): Support HF vector mode.
11768 (<code><mode>2): Use new mode iterator.
11769 (*<code><mode>2): Ditto.
11770 (copysign<mode>3): Ditto.
11771 (xorsign<mode>3): Ditto.
11772 (<code><mode>3<mask_name>): Ditto.
11773 (<code><mode>3<mask_name>): Ditto.
11774 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
11775 (<sse>_andnot<mode>3<mask_name>): Ditto.
11776 (*<code><mode>3<mask_name>): Ditto.
11777 (*<code><mode>3<mask_name>): Ditto.
11778
11779 2021-09-18 liuhongt <hongtao.liu@intel.com>
11780
11781 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
11782 New intrinsic.
11783 (_mm512_mask3_fmadd_ph): Likewise.
11784 (_mm512_maskz_fmadd_ph): Likewise.
11785 (_mm512_fmadd_round_ph): Likewise.
11786 (_mm512_mask_fmadd_round_ph): Likewise.
11787 (_mm512_mask3_fmadd_round_ph): Likewise.
11788 (_mm512_maskz_fmadd_round_ph): Likewise.
11789 (_mm512_fnmadd_ph): Likewise.
11790 (_mm512_mask_fnmadd_ph): Likewise.
11791 (_mm512_mask3_fnmadd_ph): Likewise.
11792 (_mm512_maskz_fnmadd_ph): Likewise.
11793 (_mm512_fnmadd_round_ph): Likewise.
11794 (_mm512_mask_fnmadd_round_ph): Likewise.
11795 (_mm512_mask3_fnmadd_round_ph): Likewise.
11796 (_mm512_maskz_fnmadd_round_ph): Likewise.
11797 (_mm512_fmsub_ph): Likewise.
11798 (_mm512_mask_fmsub_ph): Likewise.
11799 (_mm512_mask3_fmsub_ph): Likewise.
11800 (_mm512_maskz_fmsub_ph): Likewise.
11801 (_mm512_fmsub_round_ph): Likewise.
11802 (_mm512_mask_fmsub_round_ph): Likewise.
11803 (_mm512_mask3_fmsub_round_ph): Likewise.
11804 (_mm512_maskz_fmsub_round_ph): Likewise.
11805 (_mm512_fnmsub_ph): Likewise.
11806 (_mm512_mask_fnmsub_ph): Likewise.
11807 (_mm512_mask3_fnmsub_ph): Likewise.
11808 (_mm512_maskz_fnmsub_ph): Likewise.
11809 (_mm512_fnmsub_round_ph): Likewise.
11810 (_mm512_mask_fnmsub_round_ph): Likewise.
11811 (_mm512_mask3_fnmsub_round_ph): Likewise.
11812 (_mm512_maskz_fnmsub_round_ph): Likewise.
11813 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
11814 New intrinsic.
11815 (_mm256_mask_fmadd_ph): Likewise.
11816 (_mm256_mask3_fmadd_ph): Likewise.
11817 (_mm256_maskz_fmadd_ph): Likewise.
11818 (_mm_fmadd_ph): Likewise.
11819 (_mm_mask_fmadd_ph): Likewise.
11820 (_mm_mask3_fmadd_ph): Likewise.
11821 (_mm_maskz_fmadd_ph): Likewise.
11822 (_mm256_fnmadd_ph): Likewise.
11823 (_mm256_mask_fnmadd_ph): Likewise.
11824 (_mm256_mask3_fnmadd_ph): Likewise.
11825 (_mm256_maskz_fnmadd_ph): Likewise.
11826 (_mm_fnmadd_ph): Likewise.
11827 (_mm_mask_fnmadd_ph): Likewise.
11828 (_mm_mask3_fnmadd_ph): Likewise.
11829 (_mm_maskz_fnmadd_ph): Likewise.
11830 (_mm256_fmsub_ph): Likewise.
11831 (_mm256_mask_fmsub_ph): Likewise.
11832 (_mm256_mask3_fmsub_ph): Likewise.
11833 (_mm256_maskz_fmsub_ph): Likewise.
11834 (_mm_fmsub_ph): Likewise.
11835 (_mm_mask_fmsub_ph): Likewise.
11836 (_mm_mask3_fmsub_ph): Likewise.
11837 (_mm_maskz_fmsub_ph): Likewise.
11838 (_mm256_fnmsub_ph): Likewise.
11839 (_mm256_mask_fnmsub_ph): Likewise.
11840 (_mm256_mask3_fnmsub_ph): Likewise.
11841 (_mm256_maskz_fnmsub_ph): Likewise.
11842 (_mm_fnmsub_ph): Likewise.
11843 (_mm_mask_fnmsub_ph): Likewise.
11844 (_mm_mask3_fnmsub_ph): Likewise.
11845 (_mm_maskz_fnmsub_ph): Likewise.
11846 * config/i386/i386-builtin.def: Add corresponding new builtins.
11847 * config/i386/sse.md
11848 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
11849 support HF vector modes.
11850 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
11851 Ditto.
11852 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
11853 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
11854 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
11855 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
11856 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
11857 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
11858 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
11859 Ditto.
11860 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
11861 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
11862 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
11863 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
11864 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
11865 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
11866 Ditto.
11867 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
11868 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
11869 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
11870 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
11871 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
11872 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
11873 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
11874 Ditto.
11875 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
11876 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
11877 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
11878 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
11879 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
11880
11881 2021-09-18 liuhongt <hongtao.liu@intel.com>
11882
11883 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
11884 New intrinsic.
11885 (_mm512_mask_fmaddsub_ph): Likewise.
11886 (_mm512_mask3_fmaddsub_ph): Likewise.
11887 (_mm512_maskz_fmaddsub_ph): Likewise.
11888 (_mm512_fmaddsub_round_ph): Likewise.
11889 (_mm512_mask_fmaddsub_round_ph): Likewise.
11890 (_mm512_mask3_fmaddsub_round_ph): Likewise.
11891 (_mm512_maskz_fmaddsub_round_ph): Likewise.
11892 (_mm512_mask_fmsubadd_ph): Likewise.
11893 (_mm512_mask3_fmsubadd_ph): Likewise.
11894 (_mm512_maskz_fmsubadd_ph): Likewise.
11895 (_mm512_fmsubadd_round_ph): Likewise.
11896 (_mm512_mask_fmsubadd_round_ph): Likewise.
11897 (_mm512_mask3_fmsubadd_round_ph): Likewise.
11898 (_mm512_maskz_fmsubadd_round_ph): Likewise.
11899 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
11900 New intrinsic.
11901 (_mm256_mask_fmaddsub_ph): Likewise.
11902 (_mm256_mask3_fmaddsub_ph): Likewise.
11903 (_mm256_maskz_fmaddsub_ph): Likewise.
11904 (_mm_fmaddsub_ph): Likewise.
11905 (_mm_mask_fmaddsub_ph): Likewise.
11906 (_mm_mask3_fmaddsub_ph): Likewise.
11907 (_mm_maskz_fmaddsub_ph): Likewise.
11908 (_mm256_fmsubadd_ph): Likewise.
11909 (_mm256_mask_fmsubadd_ph): Likewise.
11910 (_mm256_mask3_fmsubadd_ph): Likewise.
11911 (_mm256_maskz_fmsubadd_ph): Likewise.
11912 (_mm_fmsubadd_ph): Likewise.
11913 (_mm_mask_fmsubadd_ph): Likewise.
11914 (_mm_mask3_fmsubadd_ph): Likewise.
11915 (_mm_maskz_fmsubadd_ph): Likewise.
11916 * config/i386/i386-builtin.def: Add corresponding new builtins.
11917 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
11918 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
11919 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
11920 VFH_SF_AVX512VL.
11921 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
11922 Ditto.
11923 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
11924 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
11925 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
11926 Ditto.
11927 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
11928 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
11929
11930 2021-09-18 liuhongt <hongtao.liu@intel.com>
11931
11932 PR target/87767
11933 * config/i386/i386.c (ix86_print_operand): Handle
11934 V8HF/V16HF/V32HFmode.
11935 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
11936 * config/i386/sse.md (avx512bcst): Remove.
11937
11938 2021-09-17 Martin Sebor <msebor@redhat.com>
11939
11940 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
11941 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
11942 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
11943 (check_defs): Add comment.
11944 (can_skip_redundant_opnd): Update comment.
11945 (compute_uninit_opnds_pos): Adjust to namespace change.
11946 (find_pdom): Move to gimple-predicate-analysis.cc.
11947 (find_dom): Same.
11948 (struct uninit_undef_val_t): New.
11949 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
11950 (find_control_equiv_block): Same.
11951 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
11952 (MAX_SWITCH_CASES): Same.
11953 (compute_control_dep_chain): Same.
11954 (find_uninit_use): Use predicate analyzer.
11955 (struct pred_info): Move to gimple-predicate-analysis.
11956 (convert_control_dep_chain_into_preds): Same.
11957 (find_predicates): Same.
11958 (collect_phi_def_edges): Same.
11959 (warn_uninitialized_phi): Use predicate analyzer.
11960 (find_def_preds): Move to gimple-predicate-analysis.
11961 (dump_pred_info): Same.
11962 (dump_pred_chain): Same.
11963 (dump_predicates): Same.
11964 (destroy_predicate_vecs): Remove.
11965 (execute_late_warn_uninitialized): New.
11966 (get_cmp_code): Move to gimple-predicate-analysis.
11967 (is_value_included_in): Same.
11968 (value_sat_pred_p): Same.
11969 (find_matching_predicate_in_rest_chains): Same.
11970 (is_use_properly_guarded): Same.
11971 (prune_uninit_phi_opnds): Same.
11972 (find_var_cmp_const): Same.
11973 (use_pred_not_overlap_with_undef_path_pred): Same.
11974 (pred_equal_p): Same.
11975 (is_neq_relop_p): Same.
11976 (is_neq_zero_form_p): Same.
11977 (pred_expr_equal_p): Same.
11978 (is_pred_expr_subset_of): Same.
11979 (is_pred_chain_subset_of): Same.
11980 (is_included_in): Same.
11981 (is_superset_of): Same.
11982 (pred_neg_p): Same.
11983 (simplify_pred): Same.
11984 (simplify_preds_2): Same.
11985 (simplify_preds_3): Same.
11986 (simplify_preds_4): Same.
11987 (simplify_preds): Same.
11988 (push_pred): Same.
11989 (push_to_worklist): Same.
11990 (get_pred_info_from_cmp): Same.
11991 (is_degenerated_phi): Same.
11992 (normalize_one_pred_1): Same.
11993 (normalize_one_pred): Same.
11994 (normalize_one_pred_chain): Same.
11995 (normalize_preds): Same.
11996 (can_one_predicate_be_invalidated_p): Same.
11997 (can_chain_union_be_invalidated_p): Same.
11998 (uninit_uses_cannot_happen): Same.
11999 (pass_late_warn_uninitialized::execute): Define.
12000 * gimple-predicate-analysis.cc: New file.
12001 * gimple-predicate-analysis.h: New file.
12002
12003 2021-09-17 Julian Brown <julian@codesourcery.com>
12004
12005 * config/gcn/gcn.c (gimple.h): Include.
12006 (gcn_fork_join): Emit barrier for worker-level joins.
12007 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
12008 writes_gang_private bitmap parameter. Set bit for blocks
12009 containing gang-private variable writes.
12010 (worker_single_simple): Don't emit barrier after predicated block.
12011 (worker_single_copy): Don't emit barrier if we're not broadcasting
12012 anything and the block contains no gang-private writes.
12013 (neuter_worker_single): Don't predicate blocks that only contain
12014 NOPs or internal marker functions. Pass has_gang_private_write
12015 argument to worker_single_copy.
12016 (oacc_do_neutering): Add writes_gang_private bitmap handling.
12017
12018 2021-09-17 Julian Brown <julian@codesourcery.com>
12019
12020 * config/gcn/gcn-protos.h
12021 (gcn_goacc_create_worker_broadcast_record): Update prototype.
12022 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
12023 preallocated block of LDS memory. Do not cache/share decls for
12024 reduction temporaries between invocations.
12025 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
12026 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
12027 and return temporary LDS space at that offset. Return pointer in
12028 "sender" case.
12029 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
12030 New global vars.
12031 (ACC_LDS_SIZE): Define as acc_lds_size.
12032 (gcn_init_machine_status): Don't initialise lds_allocated,
12033 lds_allocs, reduc_decls fields of machine function struct.
12034 (gcn_option_override): Handle default size for gang-private
12035 variables and -mgang-private-size option.
12036 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
12037 initialising M0_REG.
12038 (gcn_shared_mem_layout): New function.
12039 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
12040 gang_private_hwm variable.
12041 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
12042 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
12043 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
12044 * config/gcn/gcn.opt (gang_private_size_opt): New global.
12045 (mgang-private-size=): New option.
12046 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
12047 documentation hook.
12048 * doc/tm.texi: Regenerate.
12049 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
12050 Add includes.
12051 (build_sender_ref): Handle sender_decl being pointer.
12052 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
12053 parameters. Pass placement argument to
12054 create_worker_broadcast_record hook invocations. Handle
12055 sender_decl being pointer and isolate_broadcasts inserting extra
12056 barriers.
12057 (blk_offset_map_t): Add typedef.
12058 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
12059 preallocated range to worker_single_copy call.
12060 (dfs_broadcast_reachable_1): New function.
12061 (idx_decl_pair_t, used_range_vec_t): New typedefs.
12062 (sort_size_descending): New function.
12063 (addr_range): New class.
12064 (splay_tree_compare_addr_range, splay_tree_free_key)
12065 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
12066 (execute_omp_oacc_neuter_broadcast): Rename to...
12067 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
12068 parameters. Arrange layout of shared memory for broadcast
12069 operations.
12070 (execute_omp_oacc_neuter_broadcast): New function.
12071 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
12072 handling from here. Enable pass for all OpenACC routines in order
12073 to call shared memory-layout hook.
12074 * target.def (create_worker_broadcast_record): Add OFFSET
12075 parameter.
12076 (shared_mem_layout): New hook.
12077
12078 2021-09-17 Julian Brown <julian@codesourcery.com>
12079 Thomas Schwinge <thomas@codesourcery.com>
12080
12081 * omp-oacc-neuter-broadcast.cc
12082 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
12083 1.
12084 (execute_omp_oacc_neuter_broadcast): Adjust.
12085
12086 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
12087
12088 * value-relation.cc (class equiv_chain): Move to header file.
12089 (path_oracle::path_oracle): New.
12090 (path_oracle::~path_oracle): New.
12091 (path_oracle::register_relation): New.
12092 (path_oracle::query_relation): New.
12093 (path_oracle::reset_path): New.
12094 (path_oracle::dump): New.
12095 * value-relation.h (class equiv_chain): Move to here.
12096 (class path_oracle): New.
12097
12098 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
12099
12100 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
12101 based oracle.
12102 * gimple-range-fold.cc (fur_depend::register_relation): Use
12103 register_stmt/edge routines.
12104 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
12105 (equiv_oracle::equiv_oracle): Create self equivalence cache.
12106 (equiv_oracle::~equiv_oracle): Release same.
12107 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
12108 are no equivalences.
12109 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
12110 (equiv_oracle::register_relation): Rename from register_equiv.
12111 (relation_chain_head::find_relation): Relocate from dom_oracle.
12112 (relation_oracle::register_stmt): New.
12113 (relation_oracle::register_edge): New.
12114 (dom_oracle::*): Rename from relation_oracle.
12115 (dom_oracle::register_relation): Adjust to call equiv_oracle.
12116 (dom_oracle::set_one_relation): Split from register_relation.
12117 (dom_oracle::register_transitives): Consolidate 2 methods.
12118 (dom_oracle::find_relation_block): Move core to relation_chain.
12119 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
12120 * value-relation.h (class relation_oracle): New pure virtual base.
12121 (class equiv_oracle): Inherit from relation_oracle and adjust.
12122 (class dom_oracle): Rename from old relation_oracle and adjust.
12123
12124 2021-09-17 Martin Sebor <msebor@redhat.com>
12125
12126 PR middle-end/102200
12127 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
12128 (handle_min_max_size): Change argument. Store original SSA_NAME for
12129 operands to potentially distinct (sub)objects.
12130 (compute_objsize_r): Adjust call to the above.
12131
12132 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
12133
12134 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
12135 (rs6000_new_builtin_vectorized_function): New function.
12136 (rs6000_new_builtin_md_vectorized_function): Likewise.
12137 (rs6000_builtin_vectorized_function): Call
12138 rs6000_new_builtin_vectorized_function.
12139 (rs6000_builtin_md_vectorized_function): Call
12140 rs6000_new_builtin_md_vectorized_function.
12141
12142 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
12143
12144 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
12145 (ASSEMBLE_PAIR): Likewise.
12146 (BUILD_ACC): Likewise.
12147 (DISASSEMBLE_ACC): Likewise.
12148 (DISASSEMBLE_PAIR): Likewise.
12149 (PMXVBF16GER2): Likewise.
12150 (PMXVBF16GER2NN): Likewise.
12151 (PMXVBF16GER2NP): Likewise.
12152 (PMXVBF16GER2PN): Likewise.
12153 (PMXVBF16GER2PP): Likewise.
12154 (PMXVF16GER2): Likewise.
12155 (PMXVF16GER2NN): Likewise.
12156 (PMXVF16GER2NP): Likewise.
12157 (PMXVF16GER2PN): Likewise.
12158 (PMXVF16GER2PP): Likewise.
12159 (PMXVF32GER): Likewise.
12160 (PMXVF32GERNN): Likewise.
12161 (PMXVF32GERNP): Likewise.
12162 (PMXVF32GERPN): Likewise.
12163 (PMXVF32GERPP): Likewise.
12164 (PMXVF64GER): Likewise.
12165 (PMXVF64GERNN): Likewise.
12166 (PMXVF64GERNP): Likewise.
12167 (PMXVF64GERPN): Likewise.
12168 (PMXVF64GERPP): Likewise.
12169 (PMXVI16GER2): Likewise.
12170 (PMXVI16GER2PP): Likewise.
12171 (PMXVI16GER2S): Likewise.
12172 (PMXVI16GER2SPP): Likewise.
12173 (PMXVI4GER8): Likewise.
12174 (PMXVI4GER8PP): Likewise.
12175 (PMXVI8GER4): Likewise.
12176 (PMXVI8GER4PP): Likewise.
12177 (PMXVI8GER4SPP): Likewise.
12178 (XVBF16GER2): Likewise.
12179 (XVBF16GER2NN): Likewise.
12180 (XVBF16GER2NP): Likewise.
12181 (XVBF16GER2PN): Likewise.
12182 (XVBF16GER2PP): Likewise.
12183 (XVF16GER2): Likewise.
12184 (XVF16GER2NN): Likewise.
12185 (XVF16GER2NP): Likewise.
12186 (XVF16GER2PN): Likewise.
12187 (XVF16GER2PP): Likewise.
12188 (XVF32GER): Likewise.
12189 (XVF32GERNN): Likewise.
12190 (XVF32GERNP): Likewise.
12191 (XVF32GERPN): Likewise.
12192 (XVF32GERPP): Likewise.
12193 (XVF64GER): Likewise.
12194 (XVF64GERNN): Likewise.
12195 (XVF64GERNP): Likewise.
12196 (XVF64GERPN): Likewise.
12197 (XVF64GERPP): Likewise.
12198 (XVI16GER2): Likewise.
12199 (XVI16GER2PP): Likewise.
12200 (XVI16GER2S): Likewise.
12201 (XVI16GER2SPP): Likewise.
12202 (XVI4GER8): Likewise.
12203 (XVI4GER8PP): Likewise.
12204 (XVI8GER4): Likewise.
12205 (XVI8GER4PP): Likewise.
12206 (XVI8GER4SPP): Likewise.
12207 (XXMFACC): Likewise.
12208 (XXMTACC): Likewise.
12209 (XXSETACCZ): Likewise.
12210 (ASSEMBLE_PAIR_V): Likewise.
12211 (BUILD_PAIR): Likewise.
12212 (DISASSEMBLE_PAIR_V): Likewise.
12213 (LXVP): New.
12214 (STXVP): New.
12215 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
12216 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
12217 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
12218 (parse_bif_attrs): Handle ismmaint.
12219 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
12220 (write_bif_static_init): Handle ismmaint.
12221
12222 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
12223
12224 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
12225 forward decl.
12226 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
12227 (rs6000_new_builtin_valid_without_lhs): New function.
12228 (rs6000_gimple_fold_new_mma_builtin): Likewise.
12229 (rs6000_gimple_fold_new_builtin): Likewise.
12230
12231 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
12232
12233 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
12234 Destruct stale Value objects.
12235 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
12236 Update.
12237
12238 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
12239
12240 PR c/102245
12241 * match.pd (shift optimizations): Disable recent sign-changing
12242 optimization for shifts by zero, these will be folded later.
12243
12244 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
12245
12246 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
12247 [power9] to [always].
12248
12249 2021-09-17 Richard Biener <rguenther@suse.de>
12250
12251 * tree-vect-stmts.c (vectorizable_load): Do not frob
12252 stmt_info for SLP.
12253
12254 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
12255
12256 * config/i386/i386-features.c (remove_partial_avx_dependency):
12257 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
12258 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
12259 vxorps.
12260 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
12261 New.
12262 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
12263 * config/i386/i386.md (SSE FP to FP splitters): Replace
12264 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
12265 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
12266 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
12267 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
12268 * config/i386/x86-tune.def
12269 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
12270 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
12271
12272 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
12273
12274 PR target/101900
12275 * config/i386/i386-features.c (remove_partial_avx_dependency):
12276 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
12277 before generating vxorps.
12278
12279 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
12280
12281 * config/i386/i386-options.c (processor_cost_table): Use
12282 tremont_cost for Tremont.
12283 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
12284 (tremont_memset): Likewise.
12285 (tremont_cost): Likewise.
12286 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
12287 Enable for Tremont.
12288
12289 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
12290
12291 * common/config/i386/i386-common.c: Use Haswell scheduling model
12292 for Tremont.
12293 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
12294 scheduling pass.
12295 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
12296 issue rate to 4.
12297 (ix86_adjust_cost): Handle Tremont.
12298 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
12299 Enable for Tremont.
12300 (X86_TUNE_USE_LEAVE): Likewise.
12301 (X86_TUNE_PUSH_MEMORY): Likewise.
12302 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
12303 (X86_TUNE_USE_CLTD): Likewise.
12304 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
12305 (X86_TUNE_AVOID_MFENCE): Likewise.
12306 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
12307 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
12308 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
12309 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
12310 (X86_TUNE_OPT_AGU): Likewise.
12311 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
12312 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
12313 (X86_TUNE_EXPAND_ABS): Likewise.
12314 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
12315 (X86_TUNE_SLOW_PSHUFB): Likewise.
12316
12317 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
12318
12319 PR rtl-optimization/102306
12320 * combine.c (try_combine): Abort the combination if we are about to
12321 duplicate volatile references.
12322
12323 2021-09-17 liuhongt <hongtao.liu@intel.com>
12324
12325 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
12326 New intrinsic.
12327 (_mm256_undefined_ph): Likewise.
12328 (_mm512_undefined_ph): Likewise.
12329 (_mm_cvtsh_h): Likewise.
12330 (_mm256_cvtsh_h): Likewise.
12331 (_mm512_cvtsh_h): Likewise.
12332 (_mm512_castph_ps): Likewise.
12333 (_mm512_castph_pd): Likewise.
12334 (_mm512_castph_si512): Likewise.
12335 (_mm512_castph512_ph128): Likewise.
12336 (_mm512_castph512_ph256): Likewise.
12337 (_mm512_castph128_ph512): Likewise.
12338 (_mm512_castph256_ph512): Likewise.
12339 (_mm512_zextph128_ph512): Likewise.
12340 (_mm512_zextph256_ph512): Likewise.
12341 (_mm512_castps_ph): Likewise.
12342 (_mm512_castpd_ph): Likewise.
12343 (_mm512_castsi512_ph): Likewise.
12344 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
12345 New intrinsic.
12346 (_mm256_castph_ps): Likewise.
12347 (_mm_castph_pd): Likewise.
12348 (_mm256_castph_pd): Likewise.
12349 (_mm_castph_si128): Likewise.
12350 (_mm256_castph_si256): Likewise.
12351 (_mm_castps_ph): Likewise.
12352 (_mm256_castps_ph): Likewise.
12353 (_mm_castpd_ph): Likewise.
12354 (_mm256_castpd_ph): Likewise.
12355 (_mm_castsi128_ph): Likewise.
12356 (_mm256_castsi256_ph): Likewise.
12357 (_mm256_castph256_ph128): Likewise.
12358 (_mm256_castph128_ph256): Likewise.
12359 (_mm256_zextph128_ph256): Likewise.
12360
12361 2021-09-17 liuhongt <hongtao.liu@intel.com>
12362
12363 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
12364 New intrinsic.
12365 (_mm_mask_cvtsh_ss): Likewise.
12366 (_mm_maskz_cvtsh_ss): Likewise.
12367 (_mm_cvtsh_sd): Likewise.
12368 (_mm_mask_cvtsh_sd): Likewise.
12369 (_mm_maskz_cvtsh_sd): Likewise.
12370 (_mm_cvt_roundsh_ss): Likewise.
12371 (_mm_mask_cvt_roundsh_ss): Likewise.
12372 (_mm_maskz_cvt_roundsh_ss): Likewise.
12373 (_mm_cvt_roundsh_sd): Likewise.
12374 (_mm_mask_cvt_roundsh_sd): Likewise.
12375 (_mm_maskz_cvt_roundsh_sd): Likewise.
12376 (_mm_cvtss_sh): Likewise.
12377 (_mm_mask_cvtss_sh): Likewise.
12378 (_mm_maskz_cvtss_sh): Likewise.
12379 (_mm_cvtsd_sh): Likewise.
12380 (_mm_mask_cvtsd_sh): Likewise.
12381 (_mm_maskz_cvtsd_sh): Likewise.
12382 (_mm_cvt_roundss_sh): Likewise.
12383 (_mm_mask_cvt_roundss_sh): Likewise.
12384 (_mm_maskz_cvt_roundss_sh): Likewise.
12385 (_mm_cvt_roundsd_sh): Likewise.
12386 (_mm_mask_cvt_roundsd_sh): Likewise.
12387 (_mm_maskz_cvt_roundsd_sh): Likewise.
12388 * config/i386/i386-builtin-types.def
12389 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
12390 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
12391 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
12392 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
12393 * config/i386/i386-builtin.def: Add corrresponding new builtins.
12394 * config/i386/i386-expand.c: Handle new builtin types.
12395 * config/i386/sse.md (VF48_128): New mode iterator.
12396 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
12397 New.
12398 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
12399 Ditto.
12400
12401 2021-09-17 liuhongt <hongtao.liu@intel.com>
12402
12403 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
12404 New intrinsic.
12405 (_mm512_mask_cvtph_pd): Likewise.
12406 (_mm512_maskz_cvtph_pd): Likewise.
12407 (_mm512_cvt_roundph_pd): Likewise.
12408 (_mm512_mask_cvt_roundph_pd): Likewise.
12409 (_mm512_maskz_cvt_roundph_pd): Likewise.
12410 (_mm512_cvtxph_ps): Likewise.
12411 (_mm512_mask_cvtxph_ps): Likewise.
12412 (_mm512_maskz_cvtxph_ps): Likewise.
12413 (_mm512_cvtx_roundph_ps): Likewise.
12414 (_mm512_mask_cvtx_roundph_ps): Likewise.
12415 (_mm512_maskz_cvtx_roundph_ps): Likewise.
12416 (_mm512_cvtxps_ph): Likewise.
12417 (_mm512_mask_cvtxps_ph): Likewise.
12418 (_mm512_maskz_cvtxps_ph): Likewise.
12419 (_mm512_cvtx_roundps_ph): Likewise.
12420 (_mm512_mask_cvtx_roundps_ph): Likewise.
12421 (_mm512_maskz_cvtx_roundps_ph): Likewise.
12422 (_mm512_cvtpd_ph): Likewise.
12423 (_mm512_mask_cvtpd_ph): Likewise.
12424 (_mm512_maskz_cvtpd_ph): Likewise.
12425 (_mm512_cvt_roundpd_ph): Likewise.
12426 (_mm512_mask_cvt_roundpd_ph): Likewise.
12427 (_mm512_maskz_cvt_roundpd_ph): Likewise.
12428 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
12429 New intrinsic.
12430 (_mm_mask_cvtph_pd): Likewise.
12431 (_mm_maskz_cvtph_pd): Likewise.
12432 (_mm256_cvtph_pd): Likewise.
12433 (_mm256_mask_cvtph_pd): Likewise.
12434 (_mm256_maskz_cvtph_pd): Likewise.
12435 (_mm_cvtxph_ps): Likewise.
12436 (_mm_mask_cvtxph_ps): Likewise.
12437 (_mm_maskz_cvtxph_ps): Likewise.
12438 (_mm256_cvtxph_ps): Likewise.
12439 (_mm256_mask_cvtxph_ps): Likewise.
12440 (_mm256_maskz_cvtxph_ps): Likewise.
12441 (_mm_cvtxps_ph): Likewise.
12442 (_mm_mask_cvtxps_ph): Likewise.
12443 (_mm_maskz_cvtxps_ph): Likewise.
12444 (_mm256_cvtxps_ph): Likewise.
12445 (_mm256_mask_cvtxps_ph): Likewise.
12446 (_mm256_maskz_cvtxps_ph): Likewise.
12447 (_mm_cvtpd_ph): Likewise.
12448 (_mm_mask_cvtpd_ph): Likewise.
12449 (_mm_maskz_cvtpd_ph): Likewise.
12450 (_mm256_cvtpd_ph): Likewise.
12451 (_mm256_mask_cvtpd_ph): Likewise.
12452 (_mm256_maskz_cvtpd_ph): Likewise.
12453 * config/i386/i386-builtin.def: Add corresponding new builtins.
12454 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12455 * config/i386/i386-expand.c: Handle new builtin types.
12456 * config/i386/sse.md
12457 (VF4_128_8_256): New.
12458 (VF48H_AVX512VL): Ditto.
12459 (ssePHmode): Add HF vector modes.
12460 (castmode): Add new convertable modes.
12461 (qq2phsuff): Ditto.
12462 (ph2pssuffix): New.
12463 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
12464 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
12465 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
12466 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
12467 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
12468 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
12469 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
12470 Ditto.
12471 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
12472 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
12473 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
12474 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
12475
12476 2021-09-17 liuhongt <hongtao.liu@intel.com>
12477
12478 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
12479 New intrinsic.
12480 (_mm_cvttsh_u32): Likewise.
12481 (_mm_cvtt_roundsh_i32): Likewise.
12482 (_mm_cvtt_roundsh_u32): Likewise.
12483 (_mm_cvttsh_i64): Likewise.
12484 (_mm_cvttsh_u64): Likewise.
12485 (_mm_cvtt_roundsh_i64): Likewise.
12486 (_mm_cvtt_roundsh_u64): Likewise.
12487 * config/i386/i386-builtin.def: Add corresponding new builtins.
12488 * config/i386/sse.md
12489 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
12490 New.
12491
12492 2021-09-17 liuhongt <hongtao.liu@intel.com>
12493
12494 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
12495 New intrinsic.
12496 (_mm512_mask_cvttph_epi32): Likewise.
12497 (_mm512_maskz_cvttph_epi32): Likewise.
12498 (_mm512_cvtt_roundph_epi32): Likewise.
12499 (_mm512_mask_cvtt_roundph_epi32): Likewise.
12500 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
12501 (_mm512_cvttph_epu32): Likewise.
12502 (_mm512_mask_cvttph_epu32): Likewise.
12503 (_mm512_maskz_cvttph_epu32): Likewise.
12504 (_mm512_cvtt_roundph_epu32): Likewise.
12505 (_mm512_mask_cvtt_roundph_epu32): Likewise.
12506 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
12507 (_mm512_cvttph_epi64): Likewise.
12508 (_mm512_mask_cvttph_epi64): Likewise.
12509 (_mm512_maskz_cvttph_epi64): Likewise.
12510 (_mm512_cvtt_roundph_epi64): Likewise.
12511 (_mm512_mask_cvtt_roundph_epi64): Likewise.
12512 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
12513 (_mm512_cvttph_epu64): Likewise.
12514 (_mm512_mask_cvttph_epu64): Likewise.
12515 (_mm512_maskz_cvttph_epu64): Likewise.
12516 (_mm512_cvtt_roundph_epu64): Likewise.
12517 (_mm512_mask_cvtt_roundph_epu64): Likewise.
12518 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
12519 (_mm512_cvttph_epi16): Likewise.
12520 (_mm512_mask_cvttph_epi16): Likewise.
12521 (_mm512_maskz_cvttph_epi16): Likewise.
12522 (_mm512_cvtt_roundph_epi16): Likewise.
12523 (_mm512_mask_cvtt_roundph_epi16): Likewise.
12524 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
12525 (_mm512_cvttph_epu16): Likewise.
12526 (_mm512_mask_cvttph_epu16): Likewise.
12527 (_mm512_maskz_cvttph_epu16): Likewise.
12528 (_mm512_cvtt_roundph_epu16): Likewise.
12529 (_mm512_mask_cvtt_roundph_epu16): Likewise.
12530 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
12531 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
12532 New intirnsic.
12533 (_mm_mask_cvttph_epi32): Likewise.
12534 (_mm_maskz_cvttph_epi32): Likewise.
12535 (_mm256_cvttph_epi32): Likewise.
12536 (_mm256_mask_cvttph_epi32): Likewise.
12537 (_mm256_maskz_cvttph_epi32): Likewise.
12538 (_mm_cvttph_epu32): Likewise.
12539 (_mm_mask_cvttph_epu32): Likewise.
12540 (_mm_maskz_cvttph_epu32): Likewise.
12541 (_mm256_cvttph_epu32): Likewise.
12542 (_mm256_mask_cvttph_epu32): Likewise.
12543 (_mm256_maskz_cvttph_epu32): Likewise.
12544 (_mm_cvttph_epi64): Likewise.
12545 (_mm_mask_cvttph_epi64): Likewise.
12546 (_mm_maskz_cvttph_epi64): Likewise.
12547 (_mm256_cvttph_epi64): Likewise.
12548 (_mm256_mask_cvttph_epi64): Likewise.
12549 (_mm256_maskz_cvttph_epi64): Likewise.
12550 (_mm_cvttph_epu64): Likewise.
12551 (_mm_mask_cvttph_epu64): Likewise.
12552 (_mm_maskz_cvttph_epu64): Likewise.
12553 (_mm256_cvttph_epu64): Likewise.
12554 (_mm256_mask_cvttph_epu64): Likewise.
12555 (_mm256_maskz_cvttph_epu64): Likewise.
12556 (_mm_cvttph_epi16): Likewise.
12557 (_mm_mask_cvttph_epi16): Likewise.
12558 (_mm_maskz_cvttph_epi16): Likewise.
12559 (_mm256_cvttph_epi16): Likewise.
12560 (_mm256_mask_cvttph_epi16): Likewise.
12561 (_mm256_maskz_cvttph_epi16): Likewise.
12562 (_mm_cvttph_epu16): Likewise.
12563 (_mm_mask_cvttph_epu16): Likewise.
12564 (_mm_maskz_cvttph_epu16): Likewise.
12565 (_mm256_cvttph_epu16): Likewise.
12566 (_mm256_mask_cvttph_epu16): Likewise.
12567 (_mm256_maskz_cvttph_epu16): Likewise.
12568 * config/i386/i386-builtin.def: Add new builtins.
12569 * config/i386/sse.md
12570 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
12571 New.
12572 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
12573 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
12574 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
12575 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
12576
12577 2021-09-17 liuhongt <hongtao.liu@intel.com>
12578
12579 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
12580 (_mm_cvtsh_u32): Likewise.
12581 (_mm_cvt_roundsh_i32): Likewise.
12582 (_mm_cvt_roundsh_u32): Likewise.
12583 (_mm_cvtsh_i64): Likewise.
12584 (_mm_cvtsh_u64): Likewise.
12585 (_mm_cvt_roundsh_i64): Likewise.
12586 (_mm_cvt_roundsh_u64): Likewise.
12587 (_mm_cvti32_sh): Likewise.
12588 (_mm_cvtu32_sh): Likewise.
12589 (_mm_cvt_roundi32_sh): Likewise.
12590 (_mm_cvt_roundu32_sh): Likewise.
12591 (_mm_cvti64_sh): Likewise.
12592 (_mm_cvtu64_sh): Likewise.
12593 (_mm_cvt_roundi64_sh): Likewise.
12594 (_mm_cvt_roundu64_sh): Likewise.
12595 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12596 * config/i386/i386-builtin.def: Add corresponding new builtins.
12597 * config/i386/i386-expand.c (ix86_expand_round_builtin):
12598 Handle new builtin types.
12599 * config/i386/sse.md
12600 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
12601 New define_insn.
12602 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
12603 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
12604
12605 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
12606
12607 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
12608 (altivec_resolve_new_overloaded_builtin): New forward decl.
12609 (rs6000_new_builtin_type_compatible): New function.
12610 (altivec_resolve_overloaded_builtin): Call
12611 altivec_resolve_new_overloaded_builtin.
12612 (altivec_build_new_resolved_builtin): New function.
12613 (altivec_resolve_new_overloaded_builtin): Likewise.
12614 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
12615 Likewise.
12616 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
12617 name of rs6000_new_builtin_is_supported.
12618
12619 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
12620
12621 * config/i386/i386-protos.h (ix86_decompose_address):
12622 Change return type to bool.
12623 * config/i386/i386.c (ix86_decompose_address): Ditto.
12624
12625 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
12626
12627 PR target/102353
12628 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
12629 Added 'build/' to target, use build/%.o rule.
12630 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
12631 '$(build_exeext)' to target and 'build/' for the *.o files.
12632 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
12633 with $(RUN_GEN).
12634
12635 2021-09-16 Martin Jambor <mjambor@suse.cz>
12636
12637 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
12638 the body has been removed. Remove trailing whitespace.
12639
12640 2021-09-16 Richard Biener <rguenther@suse.de>
12641
12642 PR middle-end/102360
12643 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
12644 of non-memory more robust.
12645
12646 2021-09-16 Daniel Cederman <cederman@gaisler.com>
12647
12648 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
12649 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
12650 (leon5_adjust_cost): Increase cost of store with data dependency
12651 on ALU instruction and FPU anti-dependencies.
12652 (sparc_option_override): Add LEON5 costs
12653 (sparc_adjust_cost): Add LEON5 cost adjustments
12654 * config/sparc/sparc.h: Add LEON5
12655 * config/sparc/sparc.md: Include LEON5 scheduling information
12656 * config/sparc/sparc.opt: Add LEON5
12657 * doc/invoke.texi: Add LEON5
12658 * config/sparc/leon5.md: New file.
12659
12660 2021-09-16 Daniel Cederman <cederman@gaisler.com>
12661
12662 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
12663 sensitive sequence for B2BST errata workaround.
12664
12665 2021-09-16 Daniel Cederman <cederman@gaisler.com>
12666
12667 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
12668 functions with atomic instruction in the UT700 errata workaround.
12669
12670 2021-09-16 Daniel Cederman <cederman@gaisler.com>
12671
12672 * config/sparc/sparc.c (next_active_non_empty_insn): New function
12673 that returns next active non empty assembly instruction.
12674 (sparc_do_work_around_errata): Use new function.
12675
12676 2021-09-16 Daniel Cederman <cederman@gaisler.com>
12677
12678 * config/sparc/sparc.c (store_insn_p): Add predicate for store
12679 attributes.
12680 (load_insn_p): Add predicate for load attributes.
12681 (sparc_do_work_around_errata): Use new predicates.
12682
12683 2021-09-16 Andreas Larsson <andreas@gaisler.com>
12684
12685 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
12686 LEON and LEON3.
12687
12688 2021-09-16 Martin Liska <mliska@suse.cz>
12689
12690 * config/mips/netbsd.h: Fix typo in name of a macro.
12691
12692 2021-09-16 liuhongt <hongtao.liu@intel.com>
12693
12694 PR middle-end/102080
12695 * match.pd: Check mask type when doing cond_op related gimple
12696 simplification.
12697 * tree.c (is_truth_type_for): New function.
12698 * tree.h (is_truth_type_for): New declaration.
12699
12700 2021-09-16 liuhongt <hongtao.liu@intel.com>
12701
12702 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
12703 intrinsic.
12704 (_mm512_mask_cvtepi32_ph): Likewise.
12705 (_mm512_maskz_cvtepi32_ph): Likewise.
12706 (_mm512_cvt_roundepi32_ph): Likewise.
12707 (_mm512_mask_cvt_roundepi32_ph): Likewise.
12708 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
12709 (_mm512_cvtepu32_ph): Likewise.
12710 (_mm512_mask_cvtepu32_ph): Likewise.
12711 (_mm512_maskz_cvtepu32_ph): Likewise.
12712 (_mm512_cvt_roundepu32_ph): Likewise.
12713 (_mm512_mask_cvt_roundepu32_ph): Likewise.
12714 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
12715 (_mm512_cvtepi64_ph): Likewise.
12716 (_mm512_mask_cvtepi64_ph): Likewise.
12717 (_mm512_maskz_cvtepi64_ph): Likewise.
12718 (_mm512_cvt_roundepi64_ph): Likewise.
12719 (_mm512_mask_cvt_roundepi64_ph): Likewise.
12720 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
12721 (_mm512_cvtepu64_ph): Likewise.
12722 (_mm512_mask_cvtepu64_ph): Likewise.
12723 (_mm512_maskz_cvtepu64_ph): Likewise.
12724 (_mm512_cvt_roundepu64_ph): Likewise.
12725 (_mm512_mask_cvt_roundepu64_ph): Likewise.
12726 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
12727 (_mm512_cvtepi16_ph): Likewise.
12728 (_mm512_mask_cvtepi16_ph): Likewise.
12729 (_mm512_maskz_cvtepi16_ph): Likewise.
12730 (_mm512_cvt_roundepi16_ph): Likewise.
12731 (_mm512_mask_cvt_roundepi16_ph): Likewise.
12732 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
12733 (_mm512_cvtepu16_ph): Likewise.
12734 (_mm512_mask_cvtepu16_ph): Likewise.
12735 (_mm512_maskz_cvtepu16_ph): Likewise.
12736 (_mm512_cvt_roundepu16_ph): Likewise.
12737 (_mm512_mask_cvt_roundepu16_ph): Likewise.
12738 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
12739 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
12740 intrinsic.
12741 (_mm_mask_cvtepi32_ph): Likewise.
12742 (_mm_maskz_cvtepi32_ph): Likewise.
12743 (_mm256_cvtepi32_ph): Likewise.
12744 (_mm256_mask_cvtepi32_ph): Likewise.
12745 (_mm256_maskz_cvtepi32_ph): Likewise.
12746 (_mm_cvtepu32_ph): Likewise.
12747 (_mm_mask_cvtepu32_ph): Likewise.
12748 (_mm_maskz_cvtepu32_ph): Likewise.
12749 (_mm256_cvtepu32_ph): Likewise.
12750 (_mm256_mask_cvtepu32_ph): Likewise.
12751 (_mm256_maskz_cvtepu32_ph): Likewise.
12752 (_mm_cvtepi64_ph): Likewise.
12753 (_mm_mask_cvtepi64_ph): Likewise.
12754 (_mm_maskz_cvtepi64_ph): Likewise.
12755 (_mm256_cvtepi64_ph): Likewise.
12756 (_mm256_mask_cvtepi64_ph): Likewise.
12757 (_mm256_maskz_cvtepi64_ph): Likewise.
12758 (_mm_cvtepu64_ph): Likewise.
12759 (_mm_mask_cvtepu64_ph): Likewise.
12760 (_mm_maskz_cvtepu64_ph): Likewise.
12761 (_mm256_cvtepu64_ph): Likewise.
12762 (_mm256_mask_cvtepu64_ph): Likewise.
12763 (_mm256_maskz_cvtepu64_ph): Likewise.
12764 (_mm_cvtepi16_ph): Likewise.
12765 (_mm_mask_cvtepi16_ph): Likewise.
12766 (_mm_maskz_cvtepi16_ph): Likewise.
12767 (_mm256_cvtepi16_ph): Likewise.
12768 (_mm256_mask_cvtepi16_ph): Likewise.
12769 (_mm256_maskz_cvtepi16_ph): Likewise.
12770 (_mm_cvtepu16_ph): Likewise.
12771 (_mm_mask_cvtepu16_ph): Likewise.
12772 (_mm_maskz_cvtepu16_ph): Likewise.
12773 (_mm256_cvtepu16_ph): Likewise.
12774 (_mm256_mask_cvtepu16_ph): Likewise.
12775 (_mm256_maskz_cvtepu16_ph): Likewise.
12776 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12777 * config/i386/i386-builtin.def: Add corresponding new builtins.
12778 * config/i386/i386-expand.c
12779 (ix86_expand_args_builtin): Handle new builtin types.
12780 (ix86_expand_round_builtin): Ditto.
12781 * config/i386/i386-modes.def: Declare V2HF and V6HF.
12782 * config/i386/sse.md (VI2H_AVX512VL): New.
12783 (qq2phsuff): Ditto.
12784 (sseintvecmode): Add HF vector modes.
12785 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
12786 New.
12787 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
12788 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
12789 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
12790 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
12791 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
12792 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
12793 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
12794 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
12795 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
12796 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
12797 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
12798
12799 2021-09-16 liuhongt <hongtao.liu@intel.com>
12800
12801 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
12802 New intrinsic/
12803 (_mm512_mask_cvtph_epi32): Likewise.
12804 (_mm512_maskz_cvtph_epi32): Likewise.
12805 (_mm512_cvt_roundph_epi32): Likewise.
12806 (_mm512_mask_cvt_roundph_epi32): Likewise.
12807 (_mm512_maskz_cvt_roundph_epi32): Likewise.
12808 (_mm512_cvtph_epu32): Likewise.
12809 (_mm512_mask_cvtph_epu32): Likewise.
12810 (_mm512_maskz_cvtph_epu32): Likewise.
12811 (_mm512_cvt_roundph_epu32): Likewise.
12812 (_mm512_mask_cvt_roundph_epu32): Likewise.
12813 (_mm512_maskz_cvt_roundph_epu32): Likewise.
12814 (_mm512_cvtph_epi64): Likewise.
12815 (_mm512_mask_cvtph_epi64): Likewise.
12816 (_mm512_maskz_cvtph_epi64): Likewise.
12817 (_mm512_cvt_roundph_epi64): Likewise.
12818 (_mm512_mask_cvt_roundph_epi64): Likewise.
12819 (_mm512_maskz_cvt_roundph_epi64): Likewise.
12820 (_mm512_cvtph_epu64): Likewise.
12821 (_mm512_mask_cvtph_epu64): Likewise.
12822 (_mm512_maskz_cvtph_epu64): Likewise.
12823 (_mm512_cvt_roundph_epu64): Likewise.
12824 (_mm512_mask_cvt_roundph_epu64): Likewise.
12825 (_mm512_maskz_cvt_roundph_epu64): Likewise.
12826 (_mm512_cvtph_epi16): Likewise.
12827 (_mm512_mask_cvtph_epi16): Likewise.
12828 (_mm512_maskz_cvtph_epi16): Likewise.
12829 (_mm512_cvt_roundph_epi16): Likewise.
12830 (_mm512_mask_cvt_roundph_epi16): Likewise.
12831 (_mm512_maskz_cvt_roundph_epi16): Likewise.
12832 (_mm512_cvtph_epu16): Likewise.
12833 (_mm512_mask_cvtph_epu16): Likewise.
12834 (_mm512_maskz_cvtph_epu16): Likewise.
12835 (_mm512_cvt_roundph_epu16): Likewise.
12836 (_mm512_mask_cvt_roundph_epu16): Likewise.
12837 (_mm512_maskz_cvt_roundph_epu16): Likewise.
12838 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
12839 New intrinsic.
12840 (_mm_mask_cvtph_epi32): Likewise.
12841 (_mm_maskz_cvtph_epi32): Likewise.
12842 (_mm256_cvtph_epi32): Likewise.
12843 (_mm256_mask_cvtph_epi32): Likewise.
12844 (_mm256_maskz_cvtph_epi32): Likewise.
12845 (_mm_cvtph_epu32): Likewise.
12846 (_mm_mask_cvtph_epu32): Likewise.
12847 (_mm_maskz_cvtph_epu32): Likewise.
12848 (_mm256_cvtph_epu32): Likewise.
12849 (_mm256_mask_cvtph_epu32): Likewise.
12850 (_mm256_maskz_cvtph_epu32): Likewise.
12851 (_mm_cvtph_epi64): Likewise.
12852 (_mm_mask_cvtph_epi64): Likewise.
12853 (_mm_maskz_cvtph_epi64): Likewise.
12854 (_mm256_cvtph_epi64): Likewise.
12855 (_mm256_mask_cvtph_epi64): Likewise.
12856 (_mm256_maskz_cvtph_epi64): Likewise.
12857 (_mm_cvtph_epu64): Likewise.
12858 (_mm_mask_cvtph_epu64): Likewise.
12859 (_mm_maskz_cvtph_epu64): Likewise.
12860 (_mm256_cvtph_epu64): Likewise.
12861 (_mm256_mask_cvtph_epu64): Likewise.
12862 (_mm256_maskz_cvtph_epu64): Likewise.
12863 (_mm_cvtph_epi16): Likewise.
12864 (_mm_mask_cvtph_epi16): Likewise.
12865 (_mm_maskz_cvtph_epi16): Likewise.
12866 (_mm256_cvtph_epi16): Likewise.
12867 (_mm256_mask_cvtph_epi16): Likewise.
12868 (_mm256_maskz_cvtph_epi16): Likewise.
12869 (_mm_cvtph_epu16): Likewise.
12870 (_mm_mask_cvtph_epu16): Likewise.
12871 (_mm_maskz_cvtph_epu16): Likewise.
12872 (_mm256_cvtph_epu16): Likewise.
12873 (_mm256_mask_cvtph_epu16): Likewise.
12874 (_mm256_maskz_cvtph_epu16): Likewise.
12875 * config/i386/i386-builtin-types.def: Add new builtin types.
12876 * config/i386/i386-builtin.def: Add new builtins.
12877 * config/i386/i386-expand.c
12878 (ix86_expand_args_builtin): Handle new builtin types.
12879 (ix86_expand_round_builtin): Ditto.
12880 * config/i386/sse.md (sseintconvert): New.
12881 (ssePHmode): Ditto.
12882 (UNSPEC_US_FIX_NOTRUNC): Ditto.
12883 (sseintconvertsignprefix): Ditto.
12884 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
12885 Ditto.
12886
12887 2021-09-16 liuhongt <hongtao.liu@intel.com>
12888
12889 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
12890 New intrinsic.
12891 (_mm_cvtsi128_si16): Likewise.
12892 (_mm_mask_load_sh): Likewise.
12893 (_mm_maskz_load_sh): Likewise.
12894 (_mm_mask_store_sh): Likewise.
12895 (_mm_move_sh): Likewise.
12896 (_mm_mask_move_sh): Likewise.
12897 (_mm_maskz_move_sh): Likewise.
12898 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12899 * config/i386/i386-builtin.def: Add corresponding new builtins.
12900 * config/i386/i386-expand.c
12901 (ix86_expand_special_args_builtin): Handle new builtin types.
12902 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
12903 * config/i386/sse.md (VI2F): New mode iterator.
12904 (vec_set<mode>_0): Use new mode iterator.
12905 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
12906 (avx512f_store<mode>_mask): Ditto.
12907
12908 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
12909
12910 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
12911
12912 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
12913
12914 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
12915 Proceed if no symbol summary or the symbol alias flag is false.
12916
12917 2021-09-15 Jakub Jelinek <jakub@redhat.com>
12918
12919 PR c++/88578
12920 PR c++/102295
12921 * varasm.c (output_constructor_regular_field): Instead of assertion
12922 that array_size_for_constructor result is equal to size of
12923 TREE_TYPE (local->val) in bytes, assert that the type size is greater
12924 or equal to array_size_for_constructor result and use type size as
12925 fieldsize.
12926
12927 2021-09-15 Martin Liska <mliska@suse.cz>
12928
12929 PR target/102351
12930 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
12931
12932 2021-09-15 Martin Liska <mliska@suse.cz>
12933
12934 PR target/102349
12935 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
12936 Check that we have a symbol summary for a symbol.
12937
12938 2021-09-15 Richard Biener <rguenther@suse.de>
12939
12940 PR target/102348
12941 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
12942 to inherit from elfos.h
12943
12944 2021-09-15 liuhongt <hongtao.liu@intel.com>
12945
12946 PR target/102327
12947 * config/i386/i386-expand.c
12948 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
12949 HFmodes.
12950 (ix86_expand_vector_set): Use blendw instead of pinsrw.
12951 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
12952 AVX512FP16 which supports 16bit vector load.
12953 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
12954 Rename to ..
12955 (avx512bw_interleave_high<mode><mask_name>): .. this, and
12956 extend to V32HFmode.
12957 (avx2_interleave_highv16hi<mask_name>): Rename to ..
12958 (avx2_interleave_high<mode><mask_name>): .. this, and extend
12959 to V16HFmode.
12960 (vec_interleave_highv8hi<mask_name>): Rename to ..
12961 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
12962 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
12963 Rename to ..
12964 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
12965 this, and extend to V32HFmode.
12966 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
12967 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
12968 (vec_interleave_lowv8hi<mask_name>): Rename to ..
12969 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
12970 (sse4_1_pblendw): Rename to ..
12971 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
12972 (avx2_pblendph): New define_expand.
12973 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
12974 sseintmodesuffix instead of ssemodesuffix.
12975 (blendsuf): New mode attr.
12976
12977 2021-09-15 Richard Biener <rguenther@suse.de>
12978
12979 * tree-vectorizer.h (dr_misalignment): Move out of line.
12980 (dr_target_alignment): New.
12981 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
12982 (set_dr_target_alignment): New.
12983 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
12984 * tree-vect-data-refs.c (dr_misalignment): Compute and
12985 return the group members misalignment.
12986 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
12987 (vect_analyze_data_refs_alignment): Compute alignment only
12988 for the first element of a DR group.
12989 (vect_slp_analyze_node_alignment): Likewise.
12990
12991 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
12992
12993 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
12994 * config/i386/avx512fp16vlintrin.h: Likewise.
12995 * config/i386/i386-builtin.def: Adjust builtin name and
12996 enumeration to match AVX512F style.
12997
12998 2021-09-15 Richard Biener <rguenther@suse.de>
12999
13000 PR tree-optimization/102318
13001 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
13002 previous change and do the mode conversion separately from
13003 the sign conversion.
13004
13005 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
13006 Peter Cordes <peter@cordes.ca>
13007
13008 PR target/91103
13009 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
13010 (*vec_extract<mode><ssescalarmodelower>_valign): Output
13011 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
13012 0.
13013
13014 2021-09-15 Richard Biener <rguenther@suse.de>
13015
13016 * config.gcc: Remove vax-*-openbsd* configuration.
13017
13018 2021-09-15 Richard Biener <rguenther@suse.de>
13019
13020 * config.gcc: Remove m68k-openbsd.
13021
13022 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
13023
13024 PR target/102336
13025 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
13026
13027 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
13028
13029 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
13030 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
13031 (*mma_xxsetaccz): Delete.
13032 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
13033 Use UNSPECV_MMA_XXSETACCZ. Update comment.
13034 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
13035
13036 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
13037
13038 * Makefile.in: Remove variables related to applying no-PIE
13039 to the exes on $build.
13040 * configure: Regenerate.
13041 * configure.ac: Remove configuration related to applying
13042 no-PIE to the exes on $build.
13043
13044 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
13045
13046 * config/arc/arc.md (doloop_end): Add missing mode.
13047 (loop_end): Likewise.
13048
13049 2021-09-14 Jakub Jelinek <jakub@redhat.com>
13050
13051 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
13052 it to recursive calls, for depth above 7 just gimplify or return.
13053 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
13054 __builtin_clear_padding and TARGET_EXPR.
13055 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
13056
13057 2021-09-14 liuhongt <hongtao.liu@intel.com>
13058
13059 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
13060 New intrinsic.
13061 (_mm_mask_fpclass_sh_mask): Likewise.
13062 (_mm512_mask_fpclass_ph_mask): Likewise.
13063 (_mm512_fpclass_ph_mask): Likewise.
13064 (_mm_getexp_sh): Likewise.
13065 (_mm_mask_getexp_sh): Likewise.
13066 (_mm_maskz_getexp_sh): Likewise.
13067 (_mm512_getexp_ph): Likewise.
13068 (_mm512_mask_getexp_ph): Likewise.
13069 (_mm512_maskz_getexp_ph): Likewise.
13070 (_mm_getexp_round_sh): Likewise.
13071 (_mm_mask_getexp_round_sh): Likewise.
13072 (_mm_maskz_getexp_round_sh): Likewise.
13073 (_mm512_getexp_round_ph): Likewise.
13074 (_mm512_mask_getexp_round_ph): Likewise.
13075 (_mm512_maskz_getexp_round_ph): Likewise.
13076 (_mm_getmant_sh): Likewise.
13077 (_mm_mask_getmant_sh): Likewise.
13078 (_mm_maskz_getmant_sh): Likewise.
13079 (_mm512_getmant_ph): Likewise.
13080 (_mm512_mask_getmant_ph): Likewise.
13081 (_mm512_maskz_getmant_ph): Likewise.
13082 (_mm_getmant_round_sh): Likewise.
13083 (_mm_mask_getmant_round_sh): Likewise.
13084 (_mm_maskz_getmant_round_sh): Likewise.
13085 (_mm512_getmant_round_ph): Likewise.
13086 (_mm512_mask_getmant_round_ph): Likewise.
13087 (_mm512_maskz_getmant_round_ph): Likewise.
13088 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
13089 New intrinsic.
13090 (_mm_fpclass_ph_mask): Likewise.
13091 (_mm256_mask_fpclass_ph_mask): Likewise.
13092 (_mm256_fpclass_ph_mask): Likewise.
13093 (_mm256_getexp_ph): Likewise.
13094 (_mm256_mask_getexp_ph): Likewise.
13095 (_mm256_maskz_getexp_ph): Likewise.
13096 (_mm_getexp_ph): Likewise.
13097 (_mm_mask_getexp_ph): Likewise.
13098 (_mm_maskz_getexp_ph): Likewise.
13099 (_mm256_getmant_ph): Likewise.
13100 (_mm256_mask_getmant_ph): Likewise.
13101 (_mm256_maskz_getmant_ph): Likewise.
13102 (_mm_getmant_ph): Likewise.
13103 (_mm_mask_getmant_ph): Likewise.
13104 (_mm_maskz_getmant_ph): Likewise.
13105 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13106 * config/i386/i386-builtin.def: Add corresponding new builtins.
13107 * config/i386/i386-expand.c
13108 (ix86_expand_args_builtin): Handle new builtin types.
13109 (ix86_expand_round_builtin): Ditto.
13110 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
13111 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
13112 to support HF vector modes.
13113 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
13114 Ditto.
13115 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
13116 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
13117 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
13118 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
13119 Ditto.
13120
13121 2021-09-14 liuhongt <hongtao.liu@intel.com>
13122
13123 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
13124 New intrinsic.
13125 (_mm512_mask_reduce_ph): Likewise.
13126 (_mm512_maskz_reduce_ph): Likewise.
13127 (_mm512_reduce_round_ph): Likewise.
13128 (_mm512_mask_reduce_round_ph): Likewise.
13129 (_mm512_maskz_reduce_round_ph): Likewise.
13130 (_mm_reduce_sh): Likewise.
13131 (_mm_mask_reduce_sh): Likewise.
13132 (_mm_maskz_reduce_sh): Likewise.
13133 (_mm_reduce_round_sh): Likewise.
13134 (_mm_mask_reduce_round_sh): Likewise.
13135 (_mm_maskz_reduce_round_sh): Likewise.
13136 (_mm512_roundscale_ph): Likewise.
13137 (_mm512_mask_roundscale_ph): Likewise.
13138 (_mm512_maskz_roundscale_ph): Likewise.
13139 (_mm512_roundscale_round_ph): Likewise.
13140 (_mm512_mask_roundscale_round_ph): Likewise.
13141 (_mm512_maskz_roundscale_round_ph): Likewise.
13142 (_mm_roundscale_sh): Likewise.
13143 (_mm_mask_roundscale_sh): Likewise.
13144 (_mm_maskz_roundscale_sh): Likewise.
13145 (_mm_roundscale_round_sh): Likewise.
13146 (_mm_mask_roundscale_round_sh): Likewise.
13147 (_mm_maskz_roundscale_round_sh): Likewise.
13148 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
13149 New intrinsic.
13150 (_mm_mask_reduce_ph): Likewise.
13151 (_mm_maskz_reduce_ph): Likewise.
13152 (_mm256_reduce_ph): Likewise.
13153 (_mm256_mask_reduce_ph): Likewise.
13154 (_mm256_maskz_reduce_ph): Likewise.
13155 (_mm_roundscale_ph): Likewise.
13156 (_mm_mask_roundscale_ph): Likewise.
13157 (_mm_maskz_roundscale_ph): Likewise.
13158 (_mm256_roundscale_ph): Likewise.
13159 (_mm256_mask_roundscale_ph): Likewise.
13160 (_mm256_maskz_roundscale_ph): Likewise.
13161 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13162 * config/i386/i386-builtin.def: Add corresponding new builtins.
13163 * config/i386/i386-expand.c
13164 (ix86_expand_args_builtin): Handle new builtin types.
13165 (ix86_expand_round_builtin): Ditto.
13166 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
13167 Renamed to ...
13168 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
13169 ... this, and adjust for round operands.
13170 (reduces<mode><mask_scalar_name>): Likewise, with ...
13171 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
13172 ... this.
13173 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
13174 Adjust for HF vector modes.
13175 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
13176 Ditto.
13177 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
13178
13179 2021-09-14 liuhongt <hongtao.liu@intel.com>
13180
13181 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
13182 New intrinsic.
13183 (_mm512_mask_rcp_ph): Likewise.
13184 (_mm512_maskz_rcp_ph): Likewise.
13185 (_mm_rcp_sh): Likewise.
13186 (_mm_mask_rcp_sh): Likewise.
13187 (_mm_maskz_rcp_sh): Likewise.
13188 (_mm512_scalef_ph): Likewise.
13189 (_mm512_mask_scalef_ph): Likewise.
13190 (_mm512_maskz_scalef_ph): Likewise.
13191 (_mm512_scalef_round_ph): Likewise.
13192 (_mm512_mask_scalef_round_ph): Likewise.
13193 (_mm512_maskz_scalef_round_ph): Likewise.
13194 (_mm_scalef_sh): Likewise.
13195 (_mm_mask_scalef_sh): Likewise.
13196 (_mm_maskz_scalef_sh): Likewise.
13197 (_mm_scalef_round_sh): Likewise.
13198 (_mm_mask_scalef_round_sh): Likewise.
13199 (_mm_maskz_scalef_round_sh): Likewise.
13200 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
13201 New intrinsic.
13202 (_mm256_rcp_ph): Likewise.
13203 (_mm_mask_rcp_ph): Likewise.
13204 (_mm256_mask_rcp_ph): Likewise.
13205 (_mm_maskz_rcp_ph): Likewise.
13206 (_mm256_maskz_rcp_ph): Likewise.
13207 (_mm_scalef_ph): Likewise.
13208 (_mm256_scalef_ph): Likewise.
13209 (_mm_mask_scalef_ph): Likewise.
13210 (_mm256_mask_scalef_ph): Likewise.
13211 (_mm_maskz_scalef_ph): Likewise.
13212 (_mm256_maskz_scalef_ph): Likewise.
13213 * config/i386/i386-builtin.def: Add new builtins.
13214 * config/i386/sse.md (VFH_AVX512VL): New.
13215 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
13216 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
13217 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
13218 Adjust to support HF vector modes.
13219 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
13220
13221 2021-09-14 liuhongt <hongtao.liu@intel.com>
13222
13223 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
13224 New intrinsic.
13225 (_mm512_mask_sqrt_ph): Likewise.
13226 (_mm512_maskz_sqrt_ph): Likewise.
13227 (_mm512_sqrt_round_ph): Likewise.
13228 (_mm512_mask_sqrt_round_ph): Likewise.
13229 (_mm512_maskz_sqrt_round_ph): Likewise.
13230 (_mm512_rsqrt_ph): Likewise.
13231 (_mm512_mask_rsqrt_ph): Likewise.
13232 (_mm512_maskz_rsqrt_ph): Likewise.
13233 (_mm_rsqrt_sh): Likewise.
13234 (_mm_mask_rsqrt_sh): Likewise.
13235 (_mm_maskz_rsqrt_sh): Likewise.
13236 (_mm_sqrt_sh): Likewise.
13237 (_mm_mask_sqrt_sh): Likewise.
13238 (_mm_maskz_sqrt_sh): Likewise.
13239 (_mm_sqrt_round_sh): Likewise.
13240 (_mm_mask_sqrt_round_sh): Likewise.
13241 (_mm_maskz_sqrt_round_sh): Likewise.
13242 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
13243 (_mm256_sqrt_ph): Likewise.
13244 (_mm_mask_sqrt_ph): Likewise.
13245 (_mm256_mask_sqrt_ph): Likewise.
13246 (_mm_maskz_sqrt_ph): Likewise.
13247 (_mm256_maskz_sqrt_ph): Likewise.
13248 (_mm_rsqrt_ph): Likewise.
13249 (_mm256_rsqrt_ph): Likewise.
13250 (_mm_mask_rsqrt_ph): Likewise.
13251 (_mm256_mask_rsqrt_ph): Likewise.
13252 (_mm_maskz_rsqrt_ph): Likewise.
13253 (_mm256_maskz_rsqrt_ph): Likewise.
13254 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13255 * config/i386/i386-builtin.def: Add corresponding new builtins.
13256 * config/i386/i386-expand.c
13257 (ix86_expand_args_builtin): Handle new builtins.
13258 (ix86_expand_round_builtin): Ditto.
13259 * config/i386/sse.md (VF_AVX512FP16VL): New.
13260 (sqrt<mode>2): Adjust for HF vector modes.
13261 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
13262 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
13263 Likewise.
13264 (<sse>_rsqrt<mode>2<mask_name>): New.
13265 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
13266
13267 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
13268
13269 PR bootstrap/101574
13270 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
13271 'RESERVED_LOCATION_P' locations.
13272 * warning-control.cc (get_nowarn_spec, suppress_warning)
13273 (copy_warning): Likewise.
13274
13275 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
13276
13277 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
13278 (typedef key_type_t): ... this. Remove.
13279 (nowarn_map): Document.
13280 * diagnostic-spec.c (nowarn_map): Likewise.
13281 * warning-control.cc (convert_to_key): Evolve functions into...
13282 (get_location): ... these. Adjust all users.
13283
13284 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
13285
13286 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
13287
13288 2021-09-13 Jason Merrill <jason@redhat.com>
13289
13290 * params.opt: Add destructive-interference-size and
13291 constructive-interference-size.
13292 * doc/invoke.texi: Document them.
13293 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13294 Set them.
13295 * config/arm/arm.c (arm_option_override): Set them.
13296 * config/i386/i386-options.c (ix86_option_override_internal):
13297 Set them.
13298
13299 2021-09-13 Martin Liska <mliska@suse.cz>
13300 H.J. Lu <hjl.tools@gmail.com>
13301
13302 PR target/101696
13303 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
13304 for x86-64 micro levels for __builtin_cpu_supports.
13305 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
13306 Add priorities for the micro-arch levels.
13307 (enum processor_features): Add new features.
13308 * common/config/i386/i386-isas.h: Add micro-arch features.
13309 * config/i386/i386-builtins.c (get_builtin_code_for_version):
13310 Support the micro-arch levels by callsing
13311 __builtin_cpu_supports.
13312 * doc/extend.texi: Document that the levels are support by
13313 __builtin_cpu_supports.
13314
13315 2021-09-13 Andrew Pinski <apinski@marvell.com>
13316
13317 PR target/95969
13318 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
13319 New function.
13320 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
13321 (aarch64_general_gimple_fold_builtin): Likewise.
13322
13323 2021-09-13 Andrew Pinski <apinski@marvell.com>
13324
13325 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
13326 to the Unsupported targets list.
13327 Remove support for m32r-*-linux* and m32rle-*-linux*.
13328 * config/m32r/linux.h: Removed.
13329 * config/m32r/t-linux: Removed.
13330
13331 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13332
13333 PR target/102252
13334 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
13335 register index for SVE predicate modes.
13336
13337 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
13338
13339 * tree-ssa-threadbackward.c
13340 (back_threader_profitability::profitable_path_p): Remove FSM
13341 references.
13342 (back_threader_registry::register_path): Same.
13343 * tree-ssa-threadedge.c
13344 (jump_threader::simplify_control_stmt_condition): Same.
13345 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
13346 Add backedge_threads argument.
13347 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
13348 backedge_threads argument.
13349 (back_jt_path_registry::back_jt_path_registry): Same.
13350 (dump_jump_thread_path): Adjust for FSM removal.
13351 (back_jt_path_registry::rewire_first_differing_edge): Same.
13352 (back_jt_path_registry::adjust_paths_after_duplication): Same.
13353 (back_jt_path_registry::update_cfg): Same.
13354 (jt_path_registry::register_jump_thread): Same.
13355 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
13356 EDGE_FSM_THREAD.
13357 (class back_jt_path_registry): Add backedge_threads to
13358 constructor.
13359
13360 2021-09-13 Martin Liska <mliska@suse.cz>
13361
13362 PR c++/101331
13363 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
13364
13365 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
13366
13367 PR target/101935
13368 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
13369 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
13370 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
13371 TARGET_AVX256_STORE_BY_PIECES instead of
13372 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
13373 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
13374 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
13375 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
13376 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
13377 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
13378
13379 2021-09-13 liuhongt <hongtao.liu@intel.com>
13380
13381 PR bootstrap/102302
13382 * expmed.c (extract_bit_field_using_extv): Use
13383 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
13384
13385 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
13386
13387 * Makefile.in (OBJS): Add value-pointer-equiv.o.
13388 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
13389 value-pointer-equiv.*.
13390 (ssa_equiv_stack::ssa_equiv_stack): Same.
13391 (ssa_equiv_stack::enter): Same.
13392 (ssa_equiv_stack::leave): Same.
13393 (ssa_equiv_stack::push_replacement): Same.
13394 (ssa_equiv_stack::get_replacement): Same.
13395 (is_pointer_ssa): Same.
13396 (class pointer_equiv_analyzer): Same.
13397 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
13398 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
13399 (pointer_equiv_analyzer::set_global_equiv): Same.
13400 (pointer_equiv_analyzer::set_cond_equiv): Same.
13401 (pointer_equiv_analyzer::get_equiv): Same.
13402 (pointer_equiv_analyzer::enter): Same.
13403 (pointer_equiv_analyzer::leave): Same.
13404 (pointer_equiv_analyzer::get_equiv_expr): Same.
13405 (pta_valueize): Same.
13406 (pointer_equiv_analyzer::visit_stmt): Same.
13407 (pointer_equiv_analyzer::visit_edge): Same.
13408 (hybrid_folder::value_of_expr): Same.
13409 (hybrid_folder::value_on_edge): Same.
13410 * value-pointer-equiv.cc: New file.
13411 * value-pointer-equiv.h: New file.
13412
13413 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
13414
13415 PR target/102125
13416 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
13417 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
13418
13419 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
13420
13421 PR target/102125
13422 * config/arm/arm.md (movmisaligndi): New define_expand.
13423 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
13424
13425 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
13426
13427 PR target/102125
13428 * emit-rtl.c (gen_highpart): Use adjust_address to handle
13429 MEM rather than calling simplify_gen_subreg.
13430
13431 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
13432
13433 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
13434 define into a block.
13435
13436 2021-09-13 Richard Biener <rguenther@suse.de>
13437
13438 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
13439 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
13440 change based on DARWIN_PREFER_DWARF not being defined.
13441
13442 2021-09-13 Richard Biener <rguenther@suse.de>
13443
13444 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
13445 to inherit from elfos.h
13446
13447 2021-09-13 Richard Biener <rguenther@suse.de>
13448
13449 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
13450
13451 2021-09-13 Richard Biener <rguenther@suse.de>
13452
13453 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
13454 override, pick up DWARF2_DEBUG define from elfos.h
13455
13456 2021-09-13 Richard Biener <rguenther@suse.de>
13457
13458 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
13459 DWARF2_DEBUG.
13460
13461 2021-09-13 Richard Biener <rguenther@suse.de>
13462
13463 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
13464 DWARF2_DEBUG.
13465
13466 2021-09-13 Richard Biener <rguenther@suse.de>
13467
13468 * config/i386/cygming.h: Always default to DWARF2 debugging.
13469 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
13470 already.
13471 * doc/install.texi: Document binutils 2.16 as minimum
13472 requirement for mingw.
13473
13474 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
13475
13476 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
13477 nstmts, nloads and extra_ctor_cost.
13478 (rs6000_density_test): Add load density related heuristics. Do
13479 extra costing on vector construction statements if need.
13480 (rs6000_init_cost): Init new members.
13481 (rs6000_update_target_cost_per_stmt): New function.
13482 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
13483 rs6000_update_target_cost_per_stmt and call it.
13484
13485 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
13486
13487 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
13488 (rs6000_init_cost): Adjust.
13489
13490 2021-09-13 liuhongt <hongtao.liu@intel.com>
13491
13492 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
13493 (UNSPEC_XORSIGN): Ditto.
13494
13495 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
13496
13497 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
13498 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
13499 subreg.
13500
13501 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
13502
13503 * tree-ssa-threadbackward.c (class back_threader_registry): Use
13504 back_jt_path_registry.
13505 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
13506 fwd_jt_path_registry.
13507 * tree-ssa-threadedge.h (class jump_threader): Same..
13508 * tree-ssa-threadupdate.c
13509 (jump_thread_path_registry::jump_thread_path_registry): Rename...
13510 (jt_path_registry::jt_path_registry): ...to this.
13511 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
13512 (jt_path_registry::~jt_path_registry): ...this.
13513 (fwd_jt_path_registry::fwd_jt_path_registry): New.
13514 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
13515 (jump_thread_path_registry::allocate_thread_edge): Rename...
13516 (jt_path_registry::allocate_thread_edge): ...to this.
13517 (jump_thread_path_registry::allocate_thread_path): Rename...
13518 (jt_path_registry::allocate_thread_path): ...to this.
13519 (jump_thread_path_registry::lookup_redirection_data): Rename...
13520 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
13521 (jump_thread_path_registry::thread_block_1): Rename...
13522 (fwd_jt_path_registry::thread_block_1): ...to this.
13523 (jump_thread_path_registry::thread_block): Rename...
13524 (fwd_jt_path_registry::thread_block): ...to this.
13525 (jt_path_registry::thread_through_loop_header): Rename...
13526 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
13527 (jump_thread_path_registry::mark_threaded_blocks): Rename...
13528 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
13529 (jump_thread_path_registry::debug_path): Rename...
13530 (jt_path_registry::debug_path): ...to this.
13531 (jump_thread_path_registry::dump): Rename...
13532 (jt_path_registry::debug): ...to this.
13533 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
13534 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
13535 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
13536 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
13537 (jump_thread_path_registry::duplicate_thread_path): Rename...
13538 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
13539 drop ill-formed candidates.
13540 (jump_thread_path_registry::remove_jump_threads_including): Rename...
13541 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
13542 (jt_path_registry::thread_through_all_blocks): New.
13543 (back_jt_path_registry::update_cfg): New.
13544 (fwd_jt_path_registry::update_cfg): New.
13545 (jump_thread_path_registry::register_jump_thread): Rename...
13546 (jt_path_registry::register_jump_thread): ...to this.
13547 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
13548 Abstract to...
13549 (class jt_path_registry): ...here.
13550 (class fwd_jt_path_registry): New.
13551 (class back_jt_path_registry): New.
13552
13553 2021-09-10 liuhongt <hongtao.liu@intel.com>
13554
13555 Revert:
13556 2021-09-01 liuhongt <hongtao.liu@intel.com>
13557
13558 * emit-rtl.c (validate_subreg): Get rid of all float-int
13559 special cases.
13560
13561 2021-09-10 Jakub Jelinek <jakub@redhat.com>
13562
13563 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
13564 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
13565 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
13566 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
13567 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
13568 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
13569 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
13570 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
13571 load/store.
13572 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
13573 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
13574 GF_OMP_ATOMIC_WEAK.
13575 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
13576 functions.
13577 * tree.h (OMP_ATOMIC_WEAK): Define.
13578 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
13579 fail memory order being encoded in the same enum and also print
13580 fail clause if present.
13581 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
13582 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
13583 handle pre_p == NULL case as a test mode that only returns value
13584 but doesn't change gimplify nor change anything otherwise, adjust
13585 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
13586 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
13587 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
13588 than rvalue.
13589 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
13590 COND_EXPR rhs. Set weak flag on gimple load/store for
13591 OMP_ATOMIC_WEAK.
13592 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
13593 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
13594 in the same enum.
13595 (expand_omp_atomic_cas): New function.
13596 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
13597 function.
13598 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
13599 using expand_omp_atomic_cas.
13600
13601 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
13602 Michael Matz <matz@suse.de>
13603
13604 * tree-pass.h (PROP_loop_opts_done): New.
13605 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
13606 Intersect with global range.
13607 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
13608 * tree-ssa-threadbackward.c
13609 (back_threader_profitability::profitable_path_p): Disable
13610 threading through latches until after loop optimizations have run.
13611
13612 2021-09-10 David Faust <david.faust@oracle.com>
13613
13614 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
13615 options.
13616
13617 2021-09-10 David Faust <david.faust@oracle.com>
13618
13619 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
13620 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
13621 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
13622 (bpf_expand_cbranch): New function.
13623 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
13624 mode.
13625 (zero_extendsidi2): Only use mov32 instruction if it is available.
13626 (SIM mode iterator): Conditionalize support for SI mode.
13627 (JM mode iterator): New.
13628 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
13629 (*branch_on_di): Update name, use new JM iterator.
13630 * config/bpf/bpf.opt: (mjmpext): New option.
13631 (malu32): Likewise.
13632 (mjmp32): Likewise.
13633 (mcpu): Likewise.
13634 (bpf_isa): New enum.
13635
13636 2021-09-10 David Faust <david.faust@oracle.com>
13637
13638 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
13639 for register-to-register extensions.
13640 (zero_extendqidi2): Likewise.
13641
13642 2021-09-10 Richard Biener <rguenther@suse.de>
13643
13644 PR middle-end/102273
13645 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
13646
13647 2021-09-10 Richard Biener <rguenther@suse.de>
13648
13649 PR middle-end/102269
13650 * gimplify.c (is_var_need_auto_init): Empty types do not need
13651 initialization.
13652
13653 2021-09-10 Richard Biener <rguenther@suse.de>
13654
13655 * configure.ac (--with-stabs): Remove.
13656 * configure: Regenerate.
13657 * doc/install.texi: Remove --with-stabs documentation.
13658
13659 2021-09-10 liuhongt <hongtao.liu@intel.com>
13660
13661 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
13662 New intrinsic.
13663 (_mm512_mask_cmp_ph_mask): Likewise.
13664 (_mm512_cmp_round_ph_mask): Likewise.
13665 (_mm512_mask_cmp_round_ph_mask): Likewise.
13666 (_mm_cmp_sh_mask): Likewise.
13667 (_mm_mask_cmp_sh_mask): Likewise.
13668 (_mm_cmp_round_sh_mask): Likewise.
13669 (_mm_mask_cmp_round_sh_mask): Likewise.
13670 (_mm_comieq_sh): Likewise.
13671 (_mm_comilt_sh): Likewise.
13672 (_mm_comile_sh): Likewise.
13673 (_mm_comigt_sh): Likewise.
13674 (_mm_comige_sh): Likewise.
13675 (_mm_comineq_sh): Likewise.
13676 (_mm_ucomieq_sh): Likewise.
13677 (_mm_ucomilt_sh): Likewise.
13678 (_mm_ucomile_sh): Likewise.
13679 (_mm_ucomigt_sh): Likewise.
13680 (_mm_ucomige_sh): Likewise.
13681 (_mm_ucomineq_sh): Likewise.
13682 (_mm_comi_round_sh): Likewise.
13683 (_mm_comi_sh): Likewise.
13684 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
13685 (_mm_mask_cmp_ph_mask): Likewise.
13686 (_mm256_cmp_ph_mask): Likewise.
13687 (_mm256_mask_cmp_ph_mask): Likewise.
13688 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13689 * config/i386/i386-builtin.def: Add corresponding new builtins.
13690 * config/i386/i386-expand.c
13691 (ix86_expand_args_builtin): Handle new builtin types.
13692 (ix86_expand_round_builtin): Ditto.
13693 * config/i386/i386.md (ssevecmode): Add HF mode.
13694 (MODEFH): New mode iterator.
13695 * config/i386/sse.md
13696 (V48H_AVX512VL): New mode iterator to support HF vector modes.
13697 Ajdust corresponding description.
13698 (ssecmpintprefix): New.
13699 (VI12_AVX512VL): Adjust to support HF vector modes.
13700 (cmp_imm_predicate): Likewise.
13701 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
13702 Likewise.
13703 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
13704 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
13705 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
13706
13707 2021-09-10 liuhongt <hongtao.liu@intel.com>
13708
13709 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
13710 (_mm512_mask_max_ph): Likewise.
13711 (_mm512_maskz_max_ph): Likewise.
13712 (_mm512_min_ph): Likewise.
13713 (_mm512_mask_min_ph): Likewise.
13714 (_mm512_maskz_min_ph): Likewise.
13715 (_mm512_max_round_ph): Likewise.
13716 (_mm512_mask_max_round_ph): Likewise.
13717 (_mm512_maskz_max_round_ph): Likewise.
13718 (_mm512_min_round_ph): Likewise.
13719 (_mm512_mask_min_round_ph): Likewise.
13720 (_mm512_maskz_min_round_ph): Likewise.
13721 (_mm_max_sh): Likewise.
13722 (_mm_mask_max_sh): Likewise.
13723 (_mm_maskz_max_sh): Likewise.
13724 (_mm_min_sh): Likewise.
13725 (_mm_mask_min_sh): Likewise.
13726 (_mm_maskz_min_sh): Likewise.
13727 (_mm_max_round_sh): Likewise.
13728 (_mm_mask_max_round_sh): Likewise.
13729 (_mm_maskz_max_round_sh): Likewise.
13730 (_mm_min_round_sh): Likewise.
13731 (_mm_mask_min_round_sh): Likewise.
13732 (_mm_maskz_min_round_sh): Likewise.
13733 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
13734 (_mm256_max_ph): Likewise.
13735 (_mm_mask_max_ph): Likewise.
13736 (_mm256_mask_max_ph): Likewise.
13737 (_mm_maskz_max_ph): Likewise.
13738 (_mm256_maskz_max_ph): Likewise.
13739 (_mm_min_ph): Likewise.
13740 (_mm256_min_ph): Likewise.
13741 (_mm_mask_min_ph): Likewise.
13742 (_mm256_mask_min_ph): Likewise.
13743 (_mm_maskz_min_ph): Likewise.
13744 (_mm256_maskz_min_ph): Likewise.
13745 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13746 * config/i386/i386-builtin.def: Add corresponding new builtins.
13747 * config/i386/i386-expand.c
13748 (ix86_expand_args_builtin): Handle new builtin types.
13749 * config/i386/sse.md
13750 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
13751 support HF vector modes.
13752 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
13753 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13754 Likewise.
13755 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
13756 Likewise.
13757 * config/i386/subst.md (round_saeonly_mode512bit_condition):
13758 Adjust for HF vector modes.
13759
13760 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
13761
13762 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
13763 (_mm_mask_add_sh): Likewise.
13764 (_mm_maskz_add_sh): Likewise.
13765 (_mm_sub_sh): Likewise.
13766 (_mm_mask_sub_sh): Likewise.
13767 (_mm_maskz_sub_sh): Likewise.
13768 (_mm_mul_sh): Likewise.
13769 (_mm_mask_mul_sh): Likewise.
13770 (_mm_maskz_mul_sh): Likewise.
13771 (_mm_div_sh): Likewise.
13772 (_mm_mask_div_sh): Likewise.
13773 (_mm_maskz_div_sh): Likewise.
13774 (_mm_add_round_sh): Likewise.
13775 (_mm_mask_add_round_sh): Likewise.
13776 (_mm_maskz_add_round_sh): Likewise.
13777 (_mm_sub_round_sh): Likewise.
13778 (_mm_mask_sub_round_sh): Likewise.
13779 (_mm_maskz_sub_round_sh): Likewise.
13780 (_mm_mul_round_sh): Likewise.
13781 (_mm_mask_mul_round_sh): Likewise.
13782 (_mm_maskz_mul_round_sh): Likewise.
13783 (_mm_div_round_sh): Likewise.
13784 (_mm_mask_div_round_sh): Likewise.
13785 (_mm_maskz_div_round_sh): Likewise.
13786 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
13787 * config/i386/i386-builtin.def: Add corresponding new builtins.
13788 * config/i386/i386-expand.c
13789 (ix86_expand_round_builtin): Handle new builtins.
13790 * config/i386/sse.md (VF_128): Change description.
13791 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
13792 Adjust to support HF vector modes.
13793 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
13794 Likewise.
13795
13796 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
13797
13798 * config/i386/i386-expand.c
13799 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
13800 * config/i386/i386.c
13801 (ix86_preferred_simd_mode): Handle HF mode.
13802 * config/i386/sse.md (V_256H): New mode iterator.
13803 (avx_vextractf128<mode>): Use it.
13804 (VEC_INIT_MODE): Align vector HFmode condition to vector
13805 HImodes since there're no real HF instruction used.
13806 (VEC_INIT_HALF_MODE): Ditto.
13807 (VIHF): Ditto.
13808 (VIHF_AVX512BW): Ditto.
13809 (*vec_extracthf): Ditto.
13810 (VEC_EXTRACT_MODE): Ditto.
13811
13812 2021-09-10 Richard Biener <rguenther@suse.de>
13813
13814 PR target/102255
13815 * config/dbx.h: Remove.
13816 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
13817 * config/lynx.h: Likewise.
13818
13819 2021-09-10 liuhongt <hongtao.liu@intel.com>
13820
13821 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
13822 right into ANDNOT + AND + IOR, using paradoxical subregs.
13823 (ix86_split_copysign_const): Remove.
13824 (ix86_split_copysign_var): Ditto.
13825 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
13826 (ix86_split_copysign_var): Ditto.
13827 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
13828 (@copysign<mode>3_var): Ditto.
13829
13830 2021-09-09 qing zhao <qing.zhao@oracle.com>
13831
13832 * builtins.c (expand_builtin_memset): Make external visible.
13833 * builtins.h (expand_builtin_memset): Declare extern.
13834 * common.opt (ftrivial-auto-var-init=): New option.
13835 * doc/extend.texi: Document the uninitialized attribute.
13836 * doc/invoke.texi: Document -ftrivial-auto-var-init.
13837 * flag-types.h (enum auto_init_type): New enumerated type
13838 auto_init_type.
13839 * gimple-fold.c (clear_padding_type): Add one new parameter.
13840 (clear_padding_union): Likewise.
13841 (clear_padding_emit_loop): Likewise.
13842 (clear_type_padding_in_mask): Likewise.
13843 (gimple_fold_builtin_clear_padding): Handle this new parameter.
13844 * gimplify.c (gimple_add_init_for_auto_var): New function.
13845 (gimple_add_padding_init_for_auto_var): New function.
13846 (is_var_need_auto_init): New function.
13847 (gimplify_decl_expr): Add initialization to automatic variables per
13848 users' requests.
13849 (gimplify_call_expr): Add one new parameter for call to
13850 __builtin_clear_padding.
13851 (gimplify_init_constructor): Add padding initialization in the end.
13852 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
13853 (expand_DEFERRED_INIT): New function.
13854 * internal-fn.def (DEFERRED_INIT): New internal function.
13855 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
13856 * tree-sra.c (generate_subtree_deferred_init): New function.
13857 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
13858 calls to .DEFERRED_INIT.
13859 (sra_modify_deferred_init): New function.
13860 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
13861 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
13862 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
13863 specially.
13864 (check_defs): Likewise.
13865 (warn_uninitialized_vars): Likewise.
13866 * tree-ssa.c (ssa_undefined_value_p): Likewise.
13867 * tree.c (build_common_builtin_nodes): Build tree node for
13868 BUILT_IN_CLEAR_PADDING when needed.
13869
13870 2021-09-09 Richard Biener <rguenther@suse.de>
13871
13872 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
13873 into all subloops.
13874
13875 2021-09-09 Richard Biener <rguenther@suse.de>
13876
13877 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
13878 DOM walk from get_loop_body_in_dom_order using a worklist
13879 approach.
13880
13881 2021-09-09 liuhongt <hongtao.liu@intel.com>
13882
13883 * config.gcc: Add avx512fp16vlintrin.h.
13884 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
13885 (_mm512_mask_add_ph): Likewise.
13886 (_mm512_maskz_add_ph): Likewise.
13887 (_mm512_sub_ph): Likewise.
13888 (_mm512_mask_sub_ph): Likewise.
13889 (_mm512_maskz_sub_ph): Likewise.
13890 (_mm512_mul_ph): Likewise.
13891 (_mm512_mask_mul_ph): Likewise.
13892 (_mm512_maskz_mul_ph): Likewise.
13893 (_mm512_div_ph): Likewise.
13894 (_mm512_mask_div_ph): Likewise.
13895 (_mm512_maskz_div_ph): Likewise.
13896 (_mm512_add_round_ph): Likewise.
13897 (_mm512_mask_add_round_ph): Likewise.
13898 (_mm512_maskz_add_round_ph): Likewise.
13899 (_mm512_sub_round_ph): Likewise.
13900 (_mm512_mask_sub_round_ph): Likewise.
13901 (_mm512_maskz_sub_round_ph): Likewise.
13902 (_mm512_mul_round_ph): Likewise.
13903 (_mm512_mask_mul_round_ph): Likewise.
13904 (_mm512_maskz_mul_round_ph): Likewise.
13905 (_mm512_div_round_ph): Likewise.
13906 (_mm512_mask_div_round_ph): Likewise.
13907 (_mm512_maskz_div_round_ph): Likewise.
13908 * config/i386/avx512fp16vlintrin.h: New header.
13909 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
13910 Add new builtin types.
13911 * config/i386/i386-builtin.def: Add corresponding builtins.
13912 * config/i386/i386-expand.c
13913 (ix86_expand_args_builtin): Handle new builtin types.
13914 (ix86_expand_round_builtin): Likewise.
13915 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
13916 * config/i386/sse.md (VFH): New mode_iterator.
13917 (VF2H): Likewise.
13918 (avx512fmaskmode): Add HF vector modes.
13919 (avx512fmaskhalfmode): Likewise.
13920 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
13921 HF vector modes.
13922 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
13923 (mul<mode>3<mask_name><round_name>): Likewise.
13924 (*mul<mode>3<mask_name><round_name>): Likewise.
13925 (div<mode>3): Likewise.
13926 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
13927 * config/i386/subst.md (SUBST_V): Add HF vector modes.
13928 (SUBST_A): Likewise.
13929 (round_mode512bit_condition): Adjust for V32HFmode.
13930
13931 2021-09-09 liuhongt <hongtao.liu@intel.com>
13932
13933 PR target/101059
13934 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
13935 (reduc_plus_scal_v4sf): .. this, New define_expand.
13936 (reduc_plus_scal_v2df): .. and this, New define_expand.
13937
13938 2021-09-09 liuhongt <hongtao.liu@intel.com>
13939
13940 PR target/91103
13941 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
13942 New define_insn.
13943
13944 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
13945
13946 PR c++/60318
13947 * doc/trouble.texi (Copy Assignment): Fix description of
13948 behaviour and fix code in example.
13949
13950 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13951
13952 PR target/102107
13953 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
13954 r11 instead of r12 for restoring CR.
13955
13956 2021-09-08 Jakub Jelinek <jakub@redhat.com>
13957 liuhongt <hongtao.liu@intel.com>
13958
13959 PR target/89984
13960 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
13961 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
13962 into AND with mask and XOR, using paradoxical subregs.
13963 (ix86_split_xorsign): Remove.
13964 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
13965
13966 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
13967
13968 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
13969
13970 2021-09-08 Jakub Jelinek <jakub@redhat.com>
13971
13972 PR target/102224
13973 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
13974 operands[2], emit abs<mode>2 instead.
13975 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
13976 first alternative even for avx, add another alternative with
13977 =&Yv <- 0, Yv, Yvm constraints.
13978 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
13979 to op1, emit vpandn instead.
13980
13981 2021-09-08 liuhongt <hongtao.liu@intel.com>
13982
13983 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
13984 (_mm256_set_ph): Likewise.
13985 (_mm512_set_ph): Likewise.
13986 (_mm_setr_ph): Likewise.
13987 (_mm256_setr_ph): Likewise.
13988 (_mm512_setr_ph): Likewise.
13989 (_mm_set1_ph): Likewise.
13990 (_mm256_set1_ph): Likewise.
13991 (_mm512_set1_ph): Likewise.
13992 (_mm_setzero_ph): Likewise.
13993 (_mm256_setzero_ph): Likewise.
13994 (_mm512_setzero_ph): Likewise.
13995 (_mm_set_sh): Likewise.
13996 (_mm_load_sh): Likewise.
13997 (_mm_store_sh): Likewise.
13998 * config/i386/i386-builtin-types.def (V8HF): New type.
13999 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
14000 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
14001 Support vector HFmodes.
14002 (ix86_expand_vector_init_one_nonzero): Likewise.
14003 (ix86_expand_vector_init_one_var): Likewise.
14004 (ix86_expand_vector_init_interleave): Likewise.
14005 (ix86_expand_vector_init_general): Likewise.
14006 (ix86_expand_vector_set): Likewise.
14007 (ix86_expand_vector_extract): Likewise.
14008 (ix86_expand_vector_init_concat): Likewise.
14009 (ix86_expand_sse_movcc): Handle vector HFmodes.
14010 (ix86_expand_vector_set_var): Ditto.
14011 * config/i386/i386-modes.def: Add HF vector modes in comment.
14012 * config/i386/i386.c (classify_argument): Add HF vector modes.
14013 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
14014 (ix86_vector_mode_supported_p): Likewise.
14015 (ix86_set_reg_reg_cost): Handle vector HFmode.
14016 (ix86_get_ssemov): Handle vector HFmode.
14017 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
14018 by stack.
14019 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
14020 mode.
14021 (function_arg_advance_32): Ditto.
14022 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
14023 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
14024 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
14025 (VALID_SSE2_REG_VHF_MODE): New.
14026 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
14027 (SSE_REG_MODE_P): Add vector HFmode.
14028 * config/i386/i386.md (mode): Add HF vector modes.
14029 (MODE_SIZE): Likewise.
14030 (ssemodesuffix): Add ph suffix for HF vector modes.
14031 * config/i386/sse.md (VFH_128): New mode iterator.
14032 (VMOVE): Adjust for HF vector modes.
14033 (V): Likewise.
14034 (V_256_512): Likewise.
14035 (avx512): Likewise.
14036 (avx512fmaskmode): Likewise.
14037 (shuffletype): Likewise.
14038 (sseinsnmode): Likewise.
14039 (ssedoublevecmode): Likewise.
14040 (ssehalfvecmode): Likewise.
14041 (ssehalfvecmodelower): Likewise.
14042 (ssePScmode): Likewise.
14043 (ssescalarmode): Likewise.
14044 (ssescalarmodelower): Likewise.
14045 (sseintprefix): Likewise.
14046 (i128): Likewise.
14047 (bcstscalarsuff): Likewise.
14048 (xtg_mode): Likewise.
14049 (VI12HF_AVX512VL): New mode_iterator.
14050 (VF_AVX512FP16): Likewise.
14051 (VIHF): Likewise.
14052 (VIHF_256): Likewise.
14053 (VIHF_AVX512BW): Likewise.
14054 (V16_256): Likewise.
14055 (V32_512): Likewise.
14056 (sseintmodesuffix): New mode_attr.
14057 (sse): Add scalar and vector HFmodes.
14058 (ssescalarmode): Add vector HFmode mapping.
14059 (ssescalarmodesuffix): Add sh suffix for HFmode.
14060 (*<sse>_vm<insn><mode>3): Use VFH_128.
14061 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14062 (*ieee_<ieee_maxmin><mode>3): Likewise.
14063 (<avx512>_blendm<mode>): New define_insn.
14064 (vec_setv8hf): New define_expand.
14065 (vec_set<mode>_0): New define_insn for HF vector set.
14066 (*avx512fp16_movsh): Likewise.
14067 (avx512fp16_movsh): Likewise.
14068 (vec_extract_lo_v32hi): Rename to ...
14069 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
14070 vector modes.
14071 (vec_extract_hi_v32hi): Likewise.
14072 (vec_extract_hi_<mode>): Likewise.
14073 (vec_extract_lo_v16hi): Likewise.
14074 (vec_extract_lo_<mode>): Likewise.
14075 (vec_extract_hi_v16hi): Likewise.
14076 (vec_extract_hi_<mode>): Likewise.
14077 (vec_set_hi_v16hi): Likewise.
14078 (vec_set_hi_<mode>): Likewise.
14079 (vec_set_lo_v16hi): Likewise.
14080 (vec_set_lo_<mode>): Likewise.
14081 (*vec_extract<mode>_0): New define_insn_and_split for HF
14082 vector extract.
14083 (*vec_extracthf): New define_insn.
14084 (VEC_EXTRACT_MODE): Add HF vector modes.
14085 (PINSR_MODE): Add V8HF.
14086 (sse2p4_1): Likewise.
14087 (pinsr_evex_isa): Likewise.
14088 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
14089 insert for V8HFmode.
14090 (pbroadcast_evex_isa): Add HF vector modes.
14091 (AVX2_VEC_DUP_MODE): Likewise.
14092 (VEC_INIT_MODE): Likewise.
14093 (VEC_INIT_HALF_MODE): Likewise.
14094 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
14095 broadcast.
14096 (avx2_pbroadcast<mode>_1): Likewise.
14097 (<avx512>_vec_dup<mode>_1): Likewise.
14098 (<avx512>_vec_dup<mode><mask_name>): Likewise.
14099 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
14100 Likewise.
14101
14102 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
14103 H.J. Lu <hongjiu.lu@intel.com>
14104 Liu Hongtao <hongtao.liu@intel.com>
14105 Wang Hongyu <hongyu.wang@intel.com>
14106 Xu Dianhong <dianhong.xu@intel.com>
14107
14108 * common/config/i386/cpuinfo.h (get_available_features):
14109 Detect FEATURE_AVX512FP16.
14110 * common/config/i386/i386-common.c
14111 (OPTION_MASK_ISA_AVX512FP16_SET,
14112 OPTION_MASK_ISA_AVX512FP16_UNSET,
14113 OPTION_MASK_ISA2_AVX512FP16_SET,
14114 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
14115 (OPTION_MASK_ISA2_AVX512BW_UNSET,
14116 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
14117 (ix86_handle_option): Handle -mavx512fp16.
14118 * common/config/i386/i386-cpuinfo.h (enum processor_features):
14119 Add FEATURE_AVX512FP16.
14120 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
14121 * config.gcc: Add avx512fp16intrin.h.
14122 * config/i386/avx512fp16intrin.h: New intrinsic header.
14123 * config/i386/cpuid.h: Add bit_AVX512FP16.
14124 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
14125 * config/i386/i386-builtins.c: Support _Float16 type for i386
14126 backend.
14127 (ix86_register_float16_builtin_type): New function.
14128 (ix86_float16_type_node): New.
14129 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14130 __AVX512FP16__.
14131 * config/i386/i386-expand.c (ix86_expand_branch): Support
14132 HFmode.
14133 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
14134 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
14135 (ix86_expand_fp_movcc): Ditto.
14136 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
14137 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
14138 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
14139 * config/i386/i386.c (ix86_get_ssemov): Use
14140 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
14141 (ix86_get_excess_precision): Use
14142 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
14143 existed.
14144 (sse_store_index): Use SFmode cost for HFmode cost.
14145 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
14146 GPR cost for HFmode.
14147 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
14148 (ix86_mangle_type): Add manlging for _Float16 type.
14149 (inline_secondary_memory_needed): No memory is needed for
14150 16bit movement between gpr and sse reg under
14151 TARGET_AVX512FP16.
14152 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
14153 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
14154 (ix86_division_cost): Ditto.
14155 (ix86_rtx_costs): Ditto.
14156 (ix86_add_stmt_cost): Ditto.
14157 (ix86_optab_supported_p): Ditto.
14158 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
14159 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
14160 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
14161 * config/i386/i386.md (mode): Add HFmode.
14162 (MODE_SIZE): Add HFmode.
14163 (isa): Add avx512fp16.
14164 (enabled): Handle avx512fp16.
14165 (ssemodesuffix): Add sh suffix for HFmode.
14166 (comm): Add mult, div.
14167 (plusminusmultdiv): New code iterator.
14168 (insn): Add mult, div.
14169 (*movhf_internal): Adjust for avx512fp16 instruction.
14170 (*movhi_internal): Ditto.
14171 (*cmpi<unord>hf): New define_insn for HFmode.
14172 (*ieee_s<ieee_maxmin>hf3): Likewise.
14173 (extendhf<mode>2): Likewise.
14174 (trunc<mode>hf2): Likewise.
14175 (float<floatunssuffix><mode>hf2): Likewise.
14176 (*<insn>hf): Likewise.
14177 (cbranchhf4): New expander.
14178 (movhfcc): Likewise.
14179 (<insn>hf3): Likewise.
14180 (mulhf3): Likewise.
14181 (divhf3): Likewise.
14182 * config/i386/i386.opt: Add mavx512fp16.
14183 * config/i386/immintrin.h: Include avx512fp16intrin.h.
14184 * doc/invoke.texi: Add mavx512fp16.
14185 * doc/extend.texi: Add avx512fp16 Usage Notes.
14186
14187 2021-09-08 liuhongt <hongtao.liu@intel.com>
14188
14189 * common.opt: Support -fexcess-precision=16.
14190 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
14191 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
14192 EXCESS_PRECISION_TYPE_FLOAT16.
14193 * config/arm/arm.c (arm_excess_precision): Ditto.
14194 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
14195 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
14196 when EXCESS_PRECISION_TYPE_FLOAT16.
14197 * config/s390/s390.c (s390_excess_precision): Ditto.
14198 * coretypes.h (enum excess_precision_type): Add
14199 EXCESS_PRECISION_TYPE_FLOAT16.
14200 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
14201 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
14202 * doc/extend.texi (Half-Precision): Document
14203 -fexcess-precision=16.
14204 * flag-types.h (enum excess_precision): Add
14205 EXCESS_PRECISION_FLOAT16.
14206 * target.def (excess_precision): Update document.
14207 * tree.c (excess_precision_type): Set excess_precision_type to
14208 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
14209
14210 2021-09-08 liuhongt <hongtao.liu@intel.com>
14211
14212 * doc/extend.texi: (@node Floating Types): Adjust the wording.
14213 (@node Half-Precision): Ditto.
14214
14215 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
14216
14217 PR target/102115
14218 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
14219 'CONST_INT_P (src)' to the condition of the block that tries to
14220 eliminate literal when loading integer contant.
14221
14222 2021-09-07 David Faust <david.faust@oracle.com>
14223
14224 * doc/extend.texi (BPF Type Attributes) New node.
14225 Document new preserve_access_index attribute.
14226 Document new preserve_access_index builtin.
14227 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
14228
14229 2021-09-07 David Faust <david.faust@oracle.com>
14230
14231 * config/bpf/bpf.c: Adjust includes.
14232 (bpf_handle_preserve_access_index_attribute): New function.
14233 (bpf_attribute_table): Use it here.
14234 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
14235 (bpf_option_override): Handle "-mco-re" option.
14236 (bpf_asm_init_sections): New.
14237 (TARGET_ASM_INIT_SECTIONS): Redefine.
14238 (bpf_file_end): New.
14239 (TARGET_ASM_FILE_END): Redefine.
14240 (bpf_init_builtins): Add "__builtin_preserve_access_index".
14241 (bpf_core_compute, bpf_core_get_index): New.
14242 (is_attr_preserve_access): New.
14243 (bpf_expand_builtin): Handle new builtins.
14244 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
14245 (bpf_core_walk): New.
14246 (bpf_resolve_overloaded_builtin): New.
14247 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
14248 (handle_attr): New.
14249 (pass_bpf_core_attr): New RTL pass.
14250 * config/bpf/bpf-passes.def: New file.
14251 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
14252 * config/bpf/coreout.c: New file.
14253 * config/bpf/coreout.h: Likewise.
14254 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
14255 (coreout.o): New rule.
14256 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
14257 * config.gcc (bpf): Add coreout.h to extra_headers.
14258 Add coreout.o to extra_objs.
14259 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
14260
14261 2021-09-07 David Faust <david.faust@oracle.com>
14262
14263 * btfout.c (get_btf_id): Function is no longer static.
14264 * ctfc.h: Expose it here.
14265
14266 2021-09-07 David Faust <david.faust@oracle.com>
14267
14268 * ctfc.c (ctf_lookup_tree_type): New function.
14269 * ctfc.h: Likewise.
14270
14271 2021-09-07 David Faust <david.faust@oracle.com>
14272
14273 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
14274 * ctfc.h: Analogous change.
14275
14276 2021-09-07 David Faust <david.faust@oracle.com>
14277
14278 * dwarf2out.c (lookup_type_die): Function is no longer static.
14279 * dwarf2out.h: Expose it here.
14280
14281 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
14282
14283 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
14284 (ctf_debug_early_finish): New definition.
14285 (ctf_debug_finish): Likewise.
14286 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
14287 (ctf_debug_early_finish): New declaration.
14288 (ctf_debug_finish): Likewise.
14289 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
14290 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
14291
14292 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
14293
14294 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
14295 support when compiling for CO-RE.
14296 * config/bpf/bpf.opt: Add new command line option -mco-re.
14297
14298 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
14299
14300 * flag-types.h (enum debug_info_type): Add new enum
14301 DINFO_TYPE_BTF_WITH_CORE.
14302 (BTF_WITH_CORE_DEBUG): New bitmask.
14303 * flags.h (btf_with_core_debuginfo_p): New declaration.
14304 * opts.c (btf_with_core_debuginfo_p): New definition.
14305
14306 2021-09-07 Jason Merrill <jason@redhat.com>
14307
14308 * tree.h (error_operand_p): Change to inline function.
14309
14310 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
14311
14312 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
14313 (empty_block_with_phis_p): ...this.
14314 (potentially_threadable_block): Same.
14315 (jump_threader::thread_through_normal_block): Same.
14316
14317 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
14318
14319 PR debug/101947
14320 * dwarf2out.c (mark_base_types): New overloaded function.
14321 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
14322 as the compilation unit, and call move_marked_base_types afterward.
14323
14324 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
14325
14326 PR target/85819
14327 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
14328 Enable FMA.
14329 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
14330
14331 2021-09-07 Richard Biener <rguenther@suse.de>
14332
14333 PR tree-optimization/102226
14334 * tree-vect-loop.c (vect_transform_cycle_phi): Record
14335 the converted value for the epilogue PHI use.
14336
14337 2021-09-07 Martin Liska <mliska@suse.cz>
14338
14339 PR gcov-profile/80223
14340 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
14341 options, do not inline when no_profile_instrument_function
14342 attributes are different in early inliner. It's fine to inline
14343 it after PGO instrumentation.
14344
14345 2021-09-07 Richard Biener <rguenther@suse.de>
14346
14347 PR tree-optimization/101555
14348 * tree-ssa-pre.c (translate_vuse_through_block): Do not
14349 perform an alias walk to determine the validity of the
14350 mem at the start of the block which is already guaranteed
14351 by means of prune_clobbered_mems.
14352 (phi_translate_1): Pass edge to translate_vuse_through_block.
14353
14354 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
14355
14356 PR target/97142
14357 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
14358 (remainder<mode>3): Likewise.
14359
14360 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
14361
14362 * config/mips/mips.c (mips_file_start): add .module for
14363 arch and ase.
14364
14365 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
14366
14367 * wide-int.cc (wi::clz): Reorder tests to ensure the result
14368 is zero for all negative values.
14369
14370 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
14371
14372 * doc/invoke.texi (-foffload-options): Fix @opindex.
14373
14374 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
14375
14376 PR target/89984
14377 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
14378 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
14379 source alternative for AVX.
14380
14381 2021-09-06 liuhongt <hongtao.liu@intel.com>
14382
14383 PR middle-end/102182
14384 * optabs.c (expand_fix): Add from1 to avoid from being
14385 overwritten.
14386
14387 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
14388
14389 * dwarf2out.c (modified_type_die): Deal with all array types earlier
14390 and use local variable consistently throughout the function.
14391
14392 2021-09-06 Jakub Jelinek <jakub@redhat.com>
14393
14394 PR tree-optimization/102207
14395 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
14396 were promoted from signed to wider unsigned type.
14397
14398 2021-09-06 Andrew Pinski <apinski@marvell.com>
14399
14400 PR tree-optimization/63184
14401 * match.pd: Add simplification of pointer_diff of two pointer_plus
14402 with addr_expr in the first operand of each pointer_plus.
14403 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
14404 in the first operand of each pointer_plus.
14405
14406 2021-09-06 Richard Biener <rguenther@suse.de>
14407
14408 PR tree-optimization/102176
14409 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
14410 New function.
14411 (vect_bb_slp_scalar_cost): Use the computed set of
14412 vectorized scalar stmts instead of relying on the out-of-date
14413 and not accurate PURE_SLP_STMT.
14414 (vect_bb_vectorization_profitable_p): Compute the set
14415 of vectorized scalar stmts.
14416
14417 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
14418
14419 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
14420 GIMPLE_COND special casing.
14421 (path_range_query::range_defined_in_block): Use range_of_stmt
14422 instead of calling fold_range directly.
14423
14424 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
14425
14426 * gimple-range-path.cc (path_range_query::range_of_expr): Set
14427 m_undefined_path when appropriate.
14428 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
14429 (path_range_query::unreachable_path_p): New.
14430 (path_range_query::precompute_ranges): Set m_undefined_path.
14431 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
14432 (path_range_query::internal_range_of_expr): New.
14433 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
14434 Use unreachable_path_p.
14435
14436 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
14437
14438 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
14439 Remove argument and call find_taken_edge.
14440 (back_threader::resolve_phi): Do not calculate taken edge before
14441 calling maybe_register_path.
14442 (back_threader::find_paths_to_names): Same.
14443
14444 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
14445
14446 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
14447 * config/h8300/testcompare.md (store_c): Update name, use new
14448 QHSI2 iterator.
14449 (store_neg_c, store_shifted_c): New patterns.
14450
14451 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
14452
14453 PR target/102107
14454 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
14455 instead of r12 for CR save, in all cases.
14456
14457 2021-09-03 Andrew Pinski <apinski@marvell.com>
14458
14459 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
14460 Handle error_mark_node as the type of the type_decl.
14461
14462 2021-09-03 Andrew Pinski <apinski@marvell.com>
14463
14464 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
14465 Mark with GTY.
14466 (aarch64_simd_types): Likewise.
14467 (aarch64_simd_intOI_type_node): Likewise.
14468 (aarch64_simd_intCI_type_node): Likewise.
14469 (aarch64_simd_intXI_type_node): Likewise.
14470 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
14471 (aarch64_fp16_ptr_type_node): Likewise.
14472 (aarch64_bf16_type_node): Likewise.
14473 (aarch64_bf16_ptr_type_node): Likewise.
14474
14475 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14476
14477 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
14478 out to...
14479 (minus_op1_op2_relation_effect): ...here.
14480 (class operator_pointer_diff): New.
14481 (operator_pointer_diff::op1_op2_relation_effect): Call
14482 minus_op1_op2_relation_effect.
14483 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
14484
14485 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14486
14487 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
14488 Add may_peel_loop_headers.
14489 (back_threader_registry::thread_through_all_blocks): Same.
14490 (try_thread_blocks): Pass may_peel_loop_headers argument.
14491 (pass_early_thread_jumps::execute): Same.
14492
14493 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14494
14495 * tree-ssa-threadedge.c (has_phis_p): New.
14496 (forwarder_block_p): New.
14497 (potentially_threadable_block): Call forwarder_block_p.
14498 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
14499 (jump_threader::thread_through_normal_block): Call
14500 forwarder_block_p.
14501
14502 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14503
14504 * tree-ssa-threadbackward.c (back_threader::dump): New.
14505 (back_threader::debug): New.
14506 (back_threader_profitability::profitable_path_p): Dump blocks
14507 even if we are bailing early.
14508
14509 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14510
14511 * tree-ssa-threadupdate.c (cancel_thread): New.
14512 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
14513 (jump_thread_path_registry::mark_threaded_blocks): Same.
14514 (jump_thread_path_registry::register_jump_thread): Same.
14515
14516 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14517
14518 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
14519 which objects are available.
14520 (jt_state::pop): Same.
14521 (jt_state::register_equiv): Same.
14522 (jt_state::register_equivs_on_edge): Same.
14523
14524 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14525
14526 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
14527 Move pop until after a thread is registered.
14528
14529 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14530
14531 * tree-ssa-threadupdate.c (debug): New.
14532
14533 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14534
14535 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
14536 (push_dump_file::~push_dump_file): New.
14537 (dump_ranger): Change dump_file temporarily while dumping
14538 ranger.
14539 * gimple-range-trace.h (class push_dump_file): New.
14540
14541 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14542
14543 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
14544 (dump_ranger): Dump function name.
14545
14546 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14547
14548 * gimple-range-path.cc (path_range_query::range_defined_in_block):
14549 Adjust for non-null.
14550 (path_range_query::adjust_for_non_null_uses): New.
14551 (path_range_query::precompute_ranges): Call
14552 adjust_for_non_null_uses.
14553 * gimple-range-path.h: Add m_non_null and
14554 adjust_for_non_null_uses.
14555
14556 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14557
14558 * gimple-range-path.cc (path_range_query::dump): Dump path
14559 length.
14560 (path_range_query::precompute_ranges): Dump entire path.
14561
14562 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14563
14564 * value-relation.cc (relation_oracle::debug): New.
14565 * value-relation.h (relation_oracle::debug): New.
14566
14567 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14568
14569 * tree-ssa-loop-ch.c: Remove unnecessary include file.
14570
14571 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14572
14573 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
14574 Skip statements with no defining BB.
14575 * gimple-range-path.cc (path_range_query::range_defined_in_block):
14576 Do not get confused by statements with no defining BB.
14577
14578 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
14579
14580 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
14581 gimple_range_adjustment. Add support for constants.
14582 (adjust_realpart_expr): New.
14583 (gimple_range_adjustment): Move IMAGPART_EXPR code to
14584 adjust_imagpart_expr.
14585 * range-op.cc (integral_table::integral_table): Add entry for
14586 REALPART_CST.
14587
14588 2021-09-03 Jakub Jelinek <jakub@redhat.com>
14589
14590 * omp-expand.c (expand_omp_atomic_pipeline): Use
14591 IFN_ATOMIC_COMPARE_EXCHANGE instead of
14592 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
14593 can be provided.
14594
14595 2021-09-03 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR target/102024
14598 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
14599 that is false if DECL_BIT_FIELD.
14600 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
14601 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
14602 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
14603 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
14604 of DECL_FIELD_ABI_IGNORED.
14605 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
14606 SET_DECL_FIELD_ABI_IGNORED instead of writing to
14607 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
14608 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
14609 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
14610 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
14611
14612 2021-09-03 liuhongt <hongtao.liu@intel.com>
14613
14614 PR target/102166
14615 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
14616 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
14617 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
14618
14619 2021-09-02 Martin Sebor <msebor@redhat.com>
14620
14621 PR tree-optimization/17506
14622 PR testsuite/37182
14623 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
14624
14625 2021-09-02 Richard Biener <rguenther@suse.de>
14626
14627 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
14628 fix for PR78185 and continue processing when leaving
14629 finite inner loops.
14630
14631 2021-09-02 Jakub Jelinek <jakub@redhat.com>
14632
14633 PR tree-optimization/99591
14634 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
14635 were promoted.
14636
14637 2021-09-02 Richard Biener <rguenther@suse.de>
14638
14639 Revert:
14640 2021-09-02 Richard Biener <rguenther@suse.de>
14641
14642 PR tree-optimization/102155
14643 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
14644 over a part of the RPO array and do not recurse here.
14645 Dump blocks marked as always executed.
14646 (fill_always_executed_in): Walk over the RPO array and
14647 process loops whose header we run into.
14648 (loop_invariant_motion_in_fun): Compute the first RPO
14649 using rev_post_order_and_mark_dfs_back_seme in iteration
14650 order and pass that to fill_always_executed_in.
14651
14652 2021-09-02 liuhongt <hongtao.liu@intel.com>
14653
14654 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
14655 * config/i386/i386.c (enum x86_64_reg_class): Add
14656 X86_64_SSEHF_CLASS.
14657 (merge_classes): Handle X86_64_SSEHF_CLASS.
14658 (examine_argument): Ditto.
14659 (construct_container): Ditto.
14660 (classify_argument): Ditto, and set HFmode/HCmode to
14661 X86_64_SSEHF_CLASS.
14662 (function_value_32): Return _FLoat16/Complex Float16 by
14663 %xmm0.
14664 (function_value_64): Return _Float16/Complex Float16 by SSE
14665 register.
14666 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
14667 (ix86_secondary_reload): Require gpr as intermediate register
14668 to store _Float16 from sse register when sse4 is not
14669 available.
14670 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
14671 sse2.
14672 (ix86_scalar_mode_supported_p): Ditto.
14673 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
14674 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
14675 (VALID_INT_MODE_P): Add HFmode and HCmode.
14676 * config/i386/i386.md (*pushhf_rex64): New define_insn.
14677 (*pushhf): Ditto.
14678 (*movhf_internal): Ditto.
14679 * doc/extend.texi (Half-Precision Floating Point): Documemt
14680 _Float16 for x86.
14681
14682 2021-09-02 Richard Biener <rguenther@suse.de>
14683
14684 PR tree-optimization/102155
14685 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
14686 over a part of the RPO array and do not recurse here.
14687 Dump blocks marked as always executed.
14688 (fill_always_executed_in): Walk over the RPO array and
14689 process loops whose header we run into.
14690 (loop_invariant_motion_in_fun): Compute the first RPO
14691 using rev_post_order_and_mark_dfs_back_seme in iteration
14692 order and pass that to fill_always_executed_in.
14693
14694 2021-09-02 YunQiang Su <syq@debian.org>
14695
14696 Revert:
14697 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
14698
14699 * config/mips/mips.c (mips_module_isa_name): New.
14700 mips_file_start: add .module mipsREV to all asm output
14701
14702 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
14703
14704 PR tree-optimization/102152
14705 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
14706 comparison to a scalar comparison before calling
14707 update_stmt_if_modified.
14708
14709 2021-09-01 Andrew Pinski <apinski@marvell.com>
14710
14711 PR target/101934
14712 * config/aarch64/aarch64.c (aarch64_expand_setmem):
14713 Check STRICT_ALIGNMENT before creating an overlapping
14714 store.
14715
14716 2021-09-01 Martin Sebor <msebor@redhat.com>
14717
14718 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
14719 (check_access): Pass additional argument.
14720 (check_memop_access): Remove template and make a member function.
14721 (maybe_check_dealloc_call): Make a pass_waccess member function.
14722 (class pass_waccess): Add, rename, and remove members.
14723 (pass_waccess::pass_waccess): Adjust to name change.
14724 (pass_waccess::~pass_waccess): Same.
14725 (check_alloca): Make a member function.
14726 (check_alloc_size_call): Same.
14727 (check_strcat): Same.
14728 (check_strncat): Same.
14729 (check_stxcpy): Same.
14730 (check_stxncpy): Same.
14731 (check_strncmp): Same.
14732 (maybe_warn_rdwr_sizes): Rename...
14733 (pass_waccess::maybe_check_access_sizes): ...to this.
14734 (pass_waccess::check_call): Adjust to name changes.
14735 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
14736 function.
14737 (pass_waccess::execute): Adjust to name changes.
14738 * gimple-ssa-warn-access.h (check_memop_access): Remove.
14739 * pointer-query.cc (access_ref::phi): Handle null pointer.
14740 (access_ref::inform_access): Same.
14741 (pointer_query::put_ref): Modify a cached value, not a copy of it.
14742 (pointer_query::dump): New function.
14743 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
14744 more results.
14745 * pointer-query.h (pointer_query::dump): Declare.
14746 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
14747 (dump_strlen_info): Use function query.
14748 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
14749
14750 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
14751
14752 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
14753
14754 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
14755
14756 * doc/extend.texi: Document unavailable attribute.
14757 * print-tree.c (print_node): Handle unavailable attribute.
14758 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
14759 * tree.c (error_unavailable_use): New.
14760 * tree.h (TREE_UNAVAILABLE): New.
14761 (error_unavailable_use): New.
14762
14763 2021-09-01 Jakub Jelinek <jakub@redhat.com>
14764
14765 PR tree-optimization/102124
14766 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
14767 MINUS_EXPR, if itype is unsigned with smaller precision than type,
14768 add an extra cast to signed variant of itype to ensure sign-extension.
14769
14770 2021-09-01 Martin Liska <mliska@suse.cz>
14771
14772 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
14773 edges and rather use colors for TRUE and FALSE edges.
14774
14775 2021-09-01 Richard Biener <rguenther@suse.de>
14776
14777 PR tree-optimization/93491
14778 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
14779 after processing the stmt itself. Do not consider
14780 pure functions possibly not returning. Properly avoid
14781 adding possibly trapping calls to EXP_GEN when there's
14782 a preceeding possibly not returning call.
14783 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
14784 not handle calls.
14785
14786 2021-09-01 Richard Biener <rguenther@suse.de>
14787
14788 PR tree-optimization/102139
14789 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
14790 type to record a std::pair of the stmt-info and the innermost
14791 loop behavior.
14792 (dr_vec_info::group): New member.
14793 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
14794 (vect_compute_data_ref_alignment): Verify the recorded
14795 base alignment can be used.
14796 (data_ref_pair): Remove.
14797 (dr_group_sort_cmp): Adjust.
14798 (vect_analyze_data_ref_accesses): Store the group-ID in the
14799 dr_vec_info and operate on a vector of dr_vec_infos.
14800
14801 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
14802
14803 * read-md.c (md_reader::handle_enum): support value assignation.
14804 * doc/md.texi: record define_c_enum value assignation support.
14805
14806 2021-09-01 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR tree-optimization/102141
14809 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
14810 argument. If false, emit stmts after gsi instead of before, and
14811 with GSI_NEW_STMT.
14812 (bswap_replace): Adjust callers. When converting output of bswap,
14813 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
14814 of before it.
14815
14816 2021-09-01 liuhongt <hongtao.liu@intel.com>
14817
14818 * emit-rtl.c (validate_subreg): Get rid of all float-int
14819 special cases.
14820
14821 2021-09-01 liuhongt <hongtao.liu@intel.com>
14822
14823 Revert:
14824 2021-08-30 liuhongt <hongtao.liu@intel.com>
14825
14826 * expmed.c (extract_bit_field_1): Make sure we're playing with
14827 integral modes before call extract_integral_bit_field.
14828 (extract_integral_bit_field): Add a parameter of type
14829 scalar_int_mode which corresponds to of tmode.
14830 And call extract_and_convert_fixed_bit_field instead of
14831 extract_fixed_bit_field and convert_extracted_bit_field.
14832 (extract_and_convert_fixed_bit_field): New function, it's a
14833 combination of extract_fixed_bit_field and
14834 convert_extracted_bit_field.
14835
14836 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
14837
14838 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
14839
14840 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
14841
14842 * omp-general.h (omp_is_reference): Rename to...
14843 (omp_privatize_by_reference): ... this. Adjust all users...
14844 * omp-general.c: ... here, ...
14845 * gimplify.c: ... here, ...
14846 * omp-expand.c: ... here, ...
14847 * omp-low.c: ... here.
14848
14849 2021-08-31 Martin Sebor <msebor@redhat.com>
14850
14851 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
14852 pointer element for equality to zero, not that of the cotaining
14853 array.
14854
14855 2021-08-31 Martin Sebor <msebor@redhat.com>
14856
14857 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
14858
14859 2021-08-31 Martin Sebor <msebor@redhat.com>
14860
14861 * function.h (function): Add comments.
14862 (get_range_query): Same. Add attribute returns nonnull.
14863
14864 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14865
14866 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
14867 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
14868 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
14869
14870 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
14871
14872 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
14873 tm_file.
14874 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
14875 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
14876 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
14877 (m32c-*-elf*, m32c-*-rtems*): Likewise.
14878 * config/cris/cris.h (DBX_NO_XREFS): Remove.
14879 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
14880 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
14881 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
14882 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
14883 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
14884
14885 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
14886
14887 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
14888 allowed on target constructs and only with particular other clauses.
14889 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
14890 'ancestor' is used.
14891 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
14892 structs when 'ancestor' is used.
14893 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
14894 'ancestor' is used.
14895 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
14896 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
14897
14898 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14899
14900 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
14901 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
14902 subreg.
14903 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
14904 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
14905 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
14906 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
14907 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
14908 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
14909 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
14910 would be paradoxical.
14911
14912 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14913
14914 * combine.c (combine_simplify_rtx): Avoid converting an explicit
14915 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
14916 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14917
14918 2021-08-31 Richard Biener <rguenther@suse.de>
14919
14920 PR tree-optimization/102142
14921 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
14922 condition under which to unset the visited flag.
14923
14924 2021-08-31 Richard Biener <rguenther@suse.de>
14925
14926 PR middle-end/102129
14927 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
14928 possibly trapping expressions across calls.
14929
14930 2021-08-31 Jakub Jelinek <jakub@redhat.com>
14931
14932 PR tree-optimization/102134
14933 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
14934 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
14935 become negative.
14936
14937 2021-08-31 Andrew Pinski <apinski@marvell.com>
14938
14939 PR driver/79181
14940 * collect-utils.c (setup_signals): New declaration.
14941 * collect-utils.h (setup_signals): New function.
14942 * collect2.c (handler): Delete.
14943 (main): Instead of manually setting up the signals,
14944 just call setup_signals.
14945 * lto-wrapper.c (main): Likewise.
14946
14947 2021-08-31 Andrew Pinski <apinski@marvell.com>
14948
14949 PR target/56337
14950 * config/i386/i386-protos.h (x86_output_aligned_bss):
14951 Change align argument to unsigned type.
14952 (x86_elf_aligned_decl_common): Likewise.
14953 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
14954 (x86_output_aligned_bss): Likewise.
14955
14956 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
14957
14958 * config/mips/mips.c (mips_module_isa_name): New.
14959 mips_file_start: add .module mipsREV to all asm output
14960
14961 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
14962
14963 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
14964 use enum instead of int for 'isa' member.
14965 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
14966 config/mips/netbsd.h: replace hardcoded numbers with enum.
14967
14968 2021-08-31 liuhongt <hongtao.liu@intel.com>
14969
14970 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
14971 define_split to define_insn_and_split.
14972 (*avx2_eq<mode>3): Removed.
14973 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
14974 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
14975 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
14976 adjust pattern.
14977 (*avx2_gt<mode>3): Removed.
14978 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
14979 define_insn to define_expand, and adjust pattern.
14980 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
14981
14982 2021-08-30 David Malcolm <dmalcolm@redhat.com>
14983
14984 PR analyzer/99260
14985 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
14986
14987 2021-08-30 Jason Merrill <jason@redhat.com>
14988
14989 * doc/invoke.texi: Document -Wmissing-requires.
14990
14991 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
14992
14993 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
14994 TARGET_EXTRA_BUILTINS guard.
14995
14996 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
14997
14998 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
14999 initialization of V2DI_type_node and unsigned_V2DI_type_node.
15000
15001 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
15002
15003 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
15004 decl when new_builtins_are_live.
15005 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
15006 built-in.
15007
15008 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
15009
15010 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
15011 OPTION_MASK_P10_FUSION_2STORE.
15012 (POWERPC_MASKS): Likewise.
15013 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
15014 store fusion for Power10.
15015 (is_fusable_store): New.
15016 (power10_sched_reorder): Likewise.
15017 (rs6000_sched_reorder): Do Power10 specific reordering.
15018 (rs6000_sched_reorder2): Likewise.
15019 * config/rs6000/rs6000.opt: Add new option.
15020
15021 2021-08-30 Richard Biener <rguenther@suse.de>
15022
15023 PR tree-optimization/102128
15024 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
15025 Move scanning for if-converted scalar code to the caller
15026 and instead delay clearing the visited flag for profitable
15027 subgraphs.
15028 (vect_slp_region): Cost all subgraphs before scheduling.
15029 For if-converted BB vectorization scan for scalar COND_EXPRs
15030 and do not vectorize if any found and the cost model is
15031 very-cheap.
15032
15033 2021-08-30 Richard Biener <rguenther@suse.de>
15034
15035 * common.opt (fexceptions): Mark
15036 EnabledBy(fnon-call-exceptions).
15037 * doc/invoke.texi (fnon-call-exceptions): Document this
15038 enables -fexceptions.
15039
15040 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
15041
15042 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
15043 is not already defined.
15044
15045 2021-08-30 liuhongt <hongtao.liu@intel.com>
15046
15047 * expmed.c (extract_bit_field_1): Make sure we're playing with
15048 integral modes before call extract_integral_bit_field.
15049 (extract_integral_bit_field): Add a parameter of type
15050 scalar_int_mode which corresponds to of tmode.
15051 And call extract_and_convert_fixed_bit_field instead of
15052 extract_fixed_bit_field and convert_extracted_bit_field.
15053 (extract_and_convert_fixed_bit_field): New function, it's a
15054 combination of extract_fixed_bit_field and
15055 convert_extracted_bit_field.
15056
15057 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
15058
15059 * config/darwin.c (darwin_libc_has_function): Do not run
15060 the checks for x86 or modern Darwin. Make sure that there
15061 is a value set for darwin_macosx_version_min before testing.
15062
15063 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
15064
15065 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
15066
15067 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
15068
15069 * ipa-modref-tree.h (modref_access_node::merge): Break out
15070 logic combining offsets and logic merging ranges to ...
15071 (modref_access_node::combined_offsets): ... here
15072 (modref_access_node::update2): ... here
15073 (modref_access_node::closer_pair_p): New member function.
15074 (modref_access_node::forced_merge): New member function.
15075 (modre_ref_node::insert): Do merging when table is full.
15076
15077 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
15078
15079 PR target/102089
15080 * config.gcc: MIPS: use N64 ABI by default if the triple end
15081 with -gnuabi64, which is used by Debian since 2013.
15082
15083 2021-08-28 Alexandre Oliva <oliva@adacore.com>
15084
15085 * ipa-modref.c (analyze_function): Skip debug stmts.
15086 * tree-inline.c (estimate_num_insn): Consider builtins even
15087 without a cgraph_node.
15088
15089 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
15090
15091 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
15092 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
15093 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
15094 * config/h8300/h8300.md (eqne): New code iterator.
15095 (geultu, geultu_to_c): Similarly.
15096 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
15097 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
15098 (cmp<mode>_c): New pattern
15099
15100 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
15101
15102 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
15103 function.
15104 (dom_opt_dom_walker::optimize_stmt): Use it.
15105
15106 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
15107
15108 * config/darwin.c (finalize_ctors): Add a section-start linker-
15109 visible symbol.
15110 (finalize_dtors): Likewise.
15111 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
15112
15113 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
15114
15115 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
15116 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
15117 old initialization logic when new builtins are enabled.
15118 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
15119 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
15120 (write_init_file): Likewise.
15121
15122 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
15123
15124 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
15125 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
15126 (amdgcn-* | gcn-*) Likewise.
15127
15128 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
15129
15130 * symbol-summary.h: Added missing template keyword.
15131
15132 2021-08-27 Richard Biener <rguenther@suse.de>
15133
15134 PR tree-optimization/45178
15135 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
15136 infinite loops without exit do not mark control dependent
15137 edges of the latch necessary.
15138
15139 2021-08-27 konglin1 <lingling.kong@intel.com>
15140
15141 PR target/101472
15142 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
15143 UNSPEC_VSIBADDR.
15144 (<avx512>scattersi<mode>): Likewise.
15145 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
15146 (*avx512f_scatterdi<VI48F:mode>): Likewise
15147
15148 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
15149
15150 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
15151 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
15152 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
15153 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
15154 P10_BUILTIN_PEXTD on Power10.
15155
15156 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
15157
15158 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
15159 signedness for some Power10 bifs.
15160
15161 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
15162
15163 PR target/102068
15164 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
15165 computed alignment if the entire struct has attribute packed.
15166
15167 2021-08-27 liuhongt <hongtao.liu@intel.com>
15168
15169 PR target/98167
15170 PR target/43147
15171 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
15172 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
15173 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
15174 IX86_BUILTIN_SHUFPS256.
15175 (ix86_masked_all_ones): New function.
15176
15177 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
15178
15179 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
15180 (conditional moves with memory inputs splitters): Ditto.
15181 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
15182
15183 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
15184
15185 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
15186 search after merging.
15187
15188 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
15189
15190 * config/rs6000/rs6000-overload.def: Add remaining overloads.
15191
15192 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
15193
15194 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
15195
15196 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
15197
15198 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
15199 crypto, and htm stanzas.
15200
15201 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
15202
15203 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
15204
15205 2021-08-26 Martin Sebor <msebor@redhat.com>
15206
15207 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
15208 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
15209 (warn_uninitialized_vars): Same. Reduce visibility of locals.
15210 (warn_uninitialized_phi): Same.
15211
15212 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
15213
15214 * tree-ssa-ccp.c (get_individual_bits): Helper function to
15215 extract the individual bits from a widest_int constant (mask).
15216 (gray_code_bit_flips): New read-only table for effiently
15217 enumerating permutations/combinations of bits.
15218 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
15219 by unknown counts that are guaranteed less than the target
15220 precision and four or fewer unknown bits by enumeration.
15221 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
15222 enumeration under the same conditions. Handle remaining
15223 shifts as a mask based upon the minimum possible shift value.
15224
15225 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
15226 Richard Biener <rguenther@suse.de>
15227
15228 * match.pd (shift transformations): Remove a redundant
15229 !POINTER_TYPE_P check.
15230
15231 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
15232
15233 PR target/102057
15234 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
15235 Set all_regs to true in the call to replace_rtx.
15236
15237 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
15238
15239 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
15240 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
15241 hiting --param modref-max-refs limit.
15242 (modref_tree:insert_base): Be smarter when hitting
15243 --param modref-max-bases limit. Add new parameter REF.
15244 (modref_tree:insert): Update.
15245 (modref_tree:merge): Update.
15246 * ipa-modref.c (read_modref_records): Update.
15247
15248 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
15249
15250 * params.opt: (modref-max-adjustments): Add full stop.
15251
15252 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
15253
15254 * ipa-modref-tree.h (modref_ref_node::verify): New member
15255 functoin.
15256 (modref_ref_node::insert): Use it.
15257 (modref_ref_node::try_mere_with): Fix off by one error.
15258
15259 2021-08-26 Martin Liska <mliska@suse.cz>
15260 Stefan Kneifel <stefan.kneifel@bluewin.ch>
15261
15262 * cgraph.h (create_version_clone_with_body): Add new parameter.
15263 * cgraphclones.c: Likewise.
15264 * multiple_target.c (create_dispatcher_calls): Do not use
15265 numbered suffixes.
15266 (create_target_clone): Likewise here.
15267
15268 2021-08-26 Jonathan Yong <10walls@gmail.com>
15269
15270 * doc/extend.texi: Add note about reserved priorities
15271 to the constructor attribute.
15272
15273 2021-08-25 Martin Sebor <msebor@redhat.com>
15274
15275 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
15276 range table header alone.
15277 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
15278
15279 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
15280
15281 * doc/invoke.texi: Document --param modref-max-adjustments.
15282 * ipa-modref-tree.c (test_insert_search_collapse): Update.
15283 (test_merge): Update.
15284 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
15285 (modref_access_node::operator==): Fix handling of access ranges.
15286 (modref_access_node::contains): Constify parameter; handle also
15287 mismatched parm offsets.
15288 (modref_access_node::update): New function.
15289 (modref_access_node::merge): New function.
15290 (unspecified_modref_access_node): Update constructor.
15291 (modref_ref_node::insert_access): Add record_adjustments parameter;
15292 handle merging.
15293 (modref_ref_node::try_merge_with): New private function.
15294 (modref_tree::insert): New record_adjustments parameter.
15295 (modref_tree::merge): New record_adjustments parameter.
15296 (modref_tree::copy_from): Update.
15297 * ipa-modref.c (dump_access): Dump adjustments field.
15298 (get_access): Update constructor.
15299 (record_access): Update call of insert.
15300 (record_access_lto): Update call of insert.
15301 (merge_call_side_effects): Add record_adjustments parameter.
15302 (get_access_for_fnspec): Update.
15303 (process_fnspec): Update.
15304 (analyze_call): Update.
15305 (analyze_function): Update.
15306 (read_modref_records): Update.
15307 (ipa_merge_modref_summary_after_inlining): Update.
15308 (propagate_unknown_call): Update.
15309 (modref_propagate_in_scc): Update.
15310 * params.opt (param-max-modref-adjustments=): New.
15311
15312 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
15313
15314 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
15315 UNSPEC_XXSPLTID.
15316 (xxspltiw_v4si): Use vecperm type attribute.
15317 (xxspltiw_v4si_inst): Use vecperm type attribute.
15318 (xxspltiw_v4sf_inst): Likewise.
15319 (xxspltidp_v2df): Use vecperm type attribute. Use
15320 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
15321 (xxspltidp_v2df_inst): Likewise.
15322 (xxsplti32dx_v4si): Use vecperm type attribute.
15323 (xxsplti32dx_v4si_inst): Likewise.
15324 (xxsplti32dx_v4sf_inst): Likewise.
15325 (xxblend_<mode>): Likewise.
15326 (xxpermx): Likewise.
15327 (xxpermx_inst): Likewise.
15328 (xxeval): Likewise.
15329
15330 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
15331
15332 PR other/93067
15333 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
15334 * diagnostic.c (diagnostic_initialize_input_context): New function.
15335 * diagnostic.h (diagnostic_initialize_input_context): Declare.
15336 * input.c (default_charset_callback): New function.
15337 (file_cache::initialize_input_context): New function.
15338 (file_cache_slot::create): Added ability to convert the input
15339 according to the input context.
15340 (file_cache::file_cache): Initialize the new input context.
15341 (class file_cache_slot): Added new m_alloc_offset member.
15342 (file_cache_slot::file_cache_slot): Initialize the new member.
15343 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
15344 (file_cache_slot::maybe_grow): Likewise.
15345 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
15346 (file_cache_slot::get_next_line): Likewise.
15347 * input.h (class file_cache): Added input context member.
15348
15349 2021-08-25 Richard Biener <rguenther@suse.de>
15350
15351 PR tree-optimization/102046
15352 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
15353 update ->any_pattern when swapping operands.
15354
15355 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
15356
15357 PR target/101716
15358 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
15359 (ix86_decompose_address): Remove retval check for ASHIFT,
15360 allow non-canonical zero extend if AND mask covers ASHIFT
15361 count.
15362 (ix86_legitimate_address_p): Adjust condition for decompose.
15363 (ix86_rtx_costs): Adjust cost for lea with non-canonical
15364 zero-extend.
15365 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
15366
15367 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
15368
15369 PR tree-optimization/101145
15370 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
15371 New function.
15372 (number_of_iterations_lt): Invoke above function.
15373 (adjust_cond_for_loop_until_wrap):
15374 Merge to number_of_iterations_until_wrap.
15375 (number_of_iterations_cond): Update invokes for
15376 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
15377
15378 2021-08-25 konglin1 <lingling.kong@intel.com>
15379
15380 PR target/101471
15381 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
15382 macro define in O0.
15383 (_mm512_mask_fpclass_ps_mask): Ditto.
15384
15385 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
15386
15387 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
15388 (vec_unpacku_hi_v8hi): Likewise.
15389 (vec_unpacku_lo_v16qi): Likewise.
15390 (vec_unpacku_lo_v8hi): Likewise.
15391 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
15392 (vec_unpacku_lo_<VP_small_lc>): Likewise.
15393
15394 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
15395
15396 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
15397 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
15398 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
15399 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
15400
15401 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
15402
15403 PR middle-end/102031
15404 * simplify-rtx.c (simplify_truncation): When comparing precisions
15405 use "subreg_prec" variable, not "subreg_mode".
15406
15407 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
15408
15409 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
15410 stanzas.
15411
15412 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
15413
15414 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
15415 various pointer type nodes.
15416 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
15417 values for various pointer types.
15418 (ptr_V16QI_type_node): New macro.
15419 (ptr_V1TI_type_node): New macro.
15420 (ptr_V2DI_type_node): New macro.
15421 (ptr_V2DF_type_node): New macro.
15422 (ptr_V4SI_type_node): New macro.
15423 (ptr_V4SF_type_node): New macro.
15424 (ptr_V8HI_type_node): New macro.
15425 (ptr_unsigned_V16QI_type_node): New macro.
15426 (ptr_unsigned_V1TI_type_node): New macro.
15427 (ptr_unsigned_V8HI_type_node): New macro.
15428 (ptr_unsigned_V4SI_type_node): New macro.
15429 (ptr_unsigned_V2DI_type_node): New macro.
15430 (ptr_bool_V16QI_type_node): New macro.
15431 (ptr_bool_V8HI_type_node): New macro.
15432 (ptr_bool_V4SI_type_node): New macro.
15433 (ptr_bool_V2DI_type_node): New macro.
15434 (ptr_bool_V1TI_type_node): New macro.
15435 (ptr_pixel_type_node): New macro.
15436 (ptr_intQI_type_node): New macro.
15437 (ptr_uintQI_type_node): New macro.
15438 (ptr_intHI_type_node): New macro.
15439 (ptr_uintHI_type_node): New macro.
15440 (ptr_intSI_type_node): New macro.
15441 (ptr_uintSI_type_node): New macro.
15442 (ptr_intDI_type_node): New macro.
15443 (ptr_uintDI_type_node): New macro.
15444 (ptr_intTI_type_node): New macro.
15445 (ptr_uintTI_type_node): New macro.
15446 (ptr_long_integer_type_node): New macro.
15447 (ptr_long_unsigned_type_node): New macro.
15448 (ptr_float_type_node): New macro.
15449 (ptr_double_type_node): New macro.
15450 (ptr_long_double_type_node): New macro.
15451 (ptr_dfloat64_type_node): New macro.
15452 (ptr_dfloat128_type_node): New macro.
15453 (ptr_ieee128_type_node): New macro.
15454 (ptr_ibm128_type_node): New macro.
15455 (ptr_vector_pair_type_node): New macro.
15456 (ptr_vector_quad_type_node): New macro.
15457 (ptr_long_long_integer_type_node): New macro.
15458 (ptr_long_long_unsigned_type_node): New macro.
15459
15460 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
15461
15462 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
15463 and power9-64 stanzas.
15464
15465 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
15466 Tom de Vries <tdevries@suse.de>
15467
15468 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
15469 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
15470 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
15471 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
15472 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
15473 * config/nvptx/nvptx-c.c: New source file.
15474 (nvptx_cpu_cpp_builtins): Move implementation here.
15475
15476 2021-08-24 Martin Sebor <msebor@redhat.com>
15477
15478 PR middle-end/101600
15479 PR middle-end/101977
15480 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
15481 the phrasing of a warning.
15482 (check_access): Use the remaining size after subtracting any offset
15483 rather than the whole object size.
15484 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
15485 clear for any nonnull PHI argument.
15486 (compute_objsize): Clear argument.
15487
15488 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
15489
15490 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
15491
15492 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
15493
15494 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
15495 stanzas.
15496
15497 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
15498
15499 * value-relation.cc (rr_transitive_table): New.
15500 (relation_transitive): New.
15501 (value_relation::swap): Remove.
15502 (value_relation::apply_transitive): New.
15503 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
15504 (relation_oracle::register_relation): Call register_transitives.
15505 (relation_oracle::register_transitives): New.
15506 * value-relation.h (relation_oracle): Add new temporary bitmap and
15507 methods.
15508
15509 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
15510
15511 PR target/102021
15512 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
15513 from integer to a pseudo vector register.
15514
15515 2021-08-24 Richard Biener <rguenther@suse.de>
15516
15517 PR tree-optimization/100089
15518 * tree-vectorizer.h (vect_slp_bb): Rename to ...
15519 (vect_slp_if_converted_bb): ... this and get the original
15520 loop as new argument.
15521 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
15522 pass original loop to vect_slp_if_converted_bb.
15523 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
15524 If orig_loop was passed scan the not vectorized stmts
15525 for COND_EXPRs and force not profitable if found.
15526 (vect_slp_region): Pass down all SLP instances to costing
15527 if orig_loop was specified.
15528 (vect_slp_bbs): Pass through orig_loop.
15529 (vect_slp_bb): Rename to ...
15530 (vect_slp_if_converted_bb): ... this and get the original
15531 loop as new argument.
15532 (vect_slp_function): Adjust.
15533
15534 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
15535
15536 PR target/102035
15537 * config/arm/arm.md (attribute arch): Add fix_vlldm.
15538 (arch_enabled): Use it.
15539 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
15540 use when erratum mitigation is needed.
15541
15542 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
15543
15544 PR target/102035
15545 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
15546 * doc/invoke.texi (Arm Options): Document it.
15547 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
15548 (ALL_QUIRKS): Add quirk_vlldm.
15549 (cortex-m33): Add quirk_vlldm.
15550 (cortex-m35p, cortex-m55): Likewise.
15551 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
15552 targetting an affected CPU and not explicitly controlled on
15553 the command line.
15554
15555 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
15556
15557 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
15558 (lazy_load_multiple_insn): Likewise.
15559
15560 2021-08-24 liuhongt <hongtao.liu@intel.com>
15561
15562 PR target/101989
15563 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
15564 Enable avx512 embedded broadcast.
15565 (*<avx512>_vternlog<mode>_all): Ditto.
15566 (<avx512>_vternlog<mode>_mask): Ditto.
15567
15568 2021-08-24 liuhongt <hongtao.liu@intel.com>
15569
15570 PR target/101989
15571 * config/i386/i386.c (ix86_rtx_costs): Define cost for
15572 UNSPEC_VTERNLOG.
15573 * config/i386/i386.h (STRIP_UNARY): New macro.
15574 * config/i386/predicates.md (reg_or_notreg_operand): New
15575 predicate.
15576 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
15577 (*<avx512>_vternlog<mode>_1): New pre_reload
15578 define_insn_and_split.
15579 (*<avx512>_vternlog<mode>_2): Ditto.
15580 (*<avx512>_vternlog<mode>_3): Ditto.
15581 (any_logic1,any_logic2): New code iterator.
15582 (logic_op): New code attribute.
15583 (ternlogsuffix): Extend to VNxDF and VNxSF.
15584
15585 2021-08-24 Richard Biener <rguenther@suse.de>
15586
15587 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
15588 * params.opt (--param vect-inner-loop-cost-factor): Adjust
15589 maximum value.
15590 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
15591 inner_loop_cost_factor to the minimum of the estimated number
15592 of iterations of the inner loop and vect-inner-loop-cost-factor.
15593
15594 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
15595 Richard Biener <rguenther@suse.de>
15596
15597 * config/i386/i386-features.c (compute_convert_gain): Provide
15598 more accurate values for CONST_INT, when optimizing for size.
15599 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
15600 * config/i386/i386.h (COSTS_N_BYTES): to here.
15601
15602 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
15603 Jakub Jelinek <jakub@redhat.com>
15604
15605 PR middle-end/102029
15606 * match.pd (shift transformations): Add an additional check for
15607 !POINTER_TYPE_P in the recently added left shift transformation.
15608
15609 2021-08-24 liuhongt <hongtao.liu@intel.com>
15610
15611 PR tree-optimization/100089
15612 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
15613 loop vectorizer when cost model is very-cheap.
15614
15615 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
15616
15617 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
15618 asprintf, which is not available on AIX.
15619
15620 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
15621
15622 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
15623 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
15624
15625 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
15626
15627 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
15628 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
15629 last.
15630 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
15631 (rbtree.o): Likewise.
15632 (rs6000-gen-builtins): Likewise.
15633 (rs6000-builtins.c): Likewise.
15634 (rs6000-builtins.h): Likewise.
15635 (rs6000.o): Add dependency.
15636 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
15637 (rs6000-vecdefines.h): New target.
15638 (rs6000-builtins.o): Likewise.
15639 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
15640 (rs6000-c.o): Likewise.
15641
15642 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
15643
15644 PR target/101830
15645 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
15646 Diagnose buffer overrun.
15647 (safe_inc_pos): Fix overrun detection.
15648 (match_identifier): Diagnose buffer overrun.
15649 (match_integer): Likewise.
15650 (match_to_right_bracket): Likewise.
15651
15652 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
15653
15654 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
15655 Improve range compare.
15656 (modref_access_node::contains): New member function.
15657 (modref_access_node::search): Remove.
15658 (modref_access_node::insert): Be smarter about subaccesses.
15659
15660 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
15661
15662 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
15663 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
15664 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
15665 Add "intel_mic".
15666
15667 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
15668
15669 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
15670 argument.
15671 * config/h8300/jumpcall.md (call, call_value): Restrict to
15672 !SIBLING_CALL_P cases.
15673 (subcall, sibcall_value): New patterns & expanders.
15674 * config/h8300/proepi.md (epilogue): Pass new argument to
15675 h8300_expand_epilogue.
15676 (sibcall_epilogue): New expander.
15677 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
15678 epilogues too.
15679 (h8300_ok_for_sibcall_p): New function.
15680 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
15681
15682 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
15683
15684 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
15685 Handle case where the operand is already the desired mode.
15686
15687 2021-08-23 Richard Biener <rguenther@suse.de>
15688
15689 PR ipa/97565
15690 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
15691 in addition to has_gimple_body.
15692
15693 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
15694
15695 PR middle-end/101949
15696 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
15697 EAF_NOCLOBBER
15698
15699 2021-08-23 Martin Liska <mliska@suse.cz>
15700
15701 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
15702 table.
15703
15704 2021-08-23 Richard Biener <rguenther@suse.de>
15705
15706 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15707 Properly scale the inner loop cost only once.
15708
15709 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
15710
15711 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
15712 Provide bounds for unsigned (and signed with non-negative operands)
15713 division and modulus.
15714
15715 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
15716
15717 * simplify-rtx.c (simplify_truncation): Generalize simplification
15718 of (truncate:A (subreg:B X)).
15719 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
15720 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
15721 already has the desired machine mode.
15722 (test_scalar_int_ops): Add tests that useless extensions and
15723 truncations are optimized away.
15724 (test_scalar_int_ext_ops): New self-test function to confirm
15725 that truncations of extensions are correctly simplified.
15726 (test_scalar_int_ext_ops2): New self-test function to check
15727 truncations of truncations, extensions of extensions, and
15728 truncations of extensions.
15729 (test_scalar_ops): Call the above two functions with a
15730 representative sampling of integer machine modes.
15731
15732 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
15733
15734 * match.pd (shift transformations): Change the sign of an
15735 LSHIFT_EXPR if it reduces the number of explicit conversions.
15736
15737 2021-08-23 Jakub Jelinek <jakub@redhat.com>
15738
15739 PR tree-optimization/86723
15740 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
15741 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
15742 non-memory permutation of 64-bit src which only has bytes of
15743 0 or [5..8] and n->range is 4.
15744 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
15745 find_bswap_or_nop_finalize caller, support bswap with some bytes
15746 zeroed, as long as at least two bytes are not zeroed.
15747 (bswap_replace): Add mask argument and handle masking of bswap
15748 result.
15749 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
15750 caller, punt if cast64_to_32 or mask is not all ones.
15751 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
15752 caller, for now punt if cast64_to_32.
15753
15754 2021-08-23 Richard Biener <rguenther@suse.de>
15755
15756 PR tree-optimization/79334
15757 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15758 a type also for COMPONENT_REFs.
15759 (vn_reference_may_trap): Check ARRAY_REF with constant index
15760 against the array domain.
15761
15762 2021-08-23 liuhongt <hongtao.liu@intel.com>
15763
15764 PR target/102016
15765 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
15766 TARGET_AVX512BW to condition.
15767
15768 2021-08-23 Jakub Jelinek <jakub@redhat.com>
15769
15770 PR debug/101905
15771 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
15772 register variables already during early_dwarf if possible.
15773
15774 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
15775
15776 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
15777
15778 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
15779
15780 PR target/100856
15781 * config/arm/arm.opt: Fix typo.
15782 * config/arm/t-rmprofile: Fix typo.
15783
15784 2021-08-23 Jakub Jelinek <jakub@redhat.com>
15785
15786 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
15787 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
15788 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
15789 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
15790 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
15791 if either grainsize or num_tasks clause has the strict modifier.
15792
15793 2021-08-23 Martin Liska <mliska@suse.cz>
15794
15795 * dbgcnt.def (DEBUG_COUNTER): New counter.
15796 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
15797
15798 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
15799
15800 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
15801
15802 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
15803
15804 PR target/101922
15805 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
15806 Declare.
15807 * config/mips/mips.c (mips_msa_output_shift_immediate): New
15808 function.
15809 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
15810 vlshr<mode>3): Call it.
15811
15812 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
15813 Martin Liska <mliska@suse.cz>
15814
15815 PR middle-end/101949
15816 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
15817 ~EAF_NOCLOBBER.
15818
15819 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
15820
15821 * config/mips/mips.c (mips_function_rodata_section,
15822 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
15823
15824 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
15825
15826 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
15827
15828 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15829
15830 * configure.ac (thread-local storage support): Remove tls_first_major
15831 and tls_first_minor. Use "$conftest_s" to check support.
15832 * configure: Regenerate.
15833
15834 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15835
15836 * configure.ac: Fixup formatting.
15837
15838 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15839
15840 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
15841 * configure.ac: ... update all callers.
15842
15843 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15844
15845 PR target/91602
15846 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
15847 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
15848 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
15849 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
15850 Remove remaining checks for in-tree assembler.
15851 * configure: Regenerate.
15852
15853 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
15854
15855 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
15856 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
15857 bits for H8/S.
15858 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
15859 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
15860 Improve logical shifts by 27 bits for H8/S.
15861 (get_shift_alg): Corresponding changes.
15862 (h8300_option_override): Revert to loops for -Os when profitable.
15863
15864 2021-08-20 Richard Biener <rguenther@suse.de>
15865
15866 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
15867 BBs.
15868 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
15869 index as group_id when dataref_groups were not computed.
15870 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
15871 we advace to the next BB.
15872
15873 2021-08-20 Jakub Jelinek <jakub@redhat.com>
15874
15875 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
15876 builtins.
15877
15878 2021-08-20 Martin Liska <mliska@suse.cz>
15879
15880 PR gcov-profile/89961
15881 * gcov.c (make_gcov_file_name): Rewrite using std::string.
15882 (mangle_name): Simplify, do not used the second argument.
15883 (strip_extention): New function.
15884 (get_md5sum): Likewise.
15885 (get_gcov_intermediate_filename): Handle properly -p and -x
15886 options.
15887 (output_gcov_file): Use string type.
15888 (generate_results): Likewise.
15889 (md5sum_to_hex): Remove.
15890
15891 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
15892
15893 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
15894 (UNSPEC_XXSPLTIW): Move to vsx.md.
15895 (UNSPEC_XXSPLTID): Move to vsx.md.
15896 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
15897 (UNSPEC_XXBLEND): Move to vsx.md.
15898 (UNSPEC_XXPERMX): Move to vsx.md.
15899 (VM3): Move to vsx.md.
15900 (VM3_char): Move to vsx.md.
15901 (xxspltiw_v4si): Move to vsx.md.
15902 (xxspltiw_v4sf): Move to vsx.md.
15903 (xxspltiw_v4sf_inst): Move to vsx.md.
15904 (xxspltidp_v2df): Move to vsx.md.
15905 (xxspltidp_v2df_inst): Move to vsx.md.
15906 (xxsplti32dx_v4si_inst): Move to vsx.md.
15907 (xxsplti32dx_v4sf): Move to vsx.md.
15908 (xxsplti32dx_v4sf_inst): Move to vsx.md.
15909 (xxblend_<mode>): Move to vsx.md.
15910 (xxpermx): Move to vsx.md.
15911 (xxpermx_inst): Move to vsx.md.
15912 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
15913 (UNSPEC_XXSPLTIW): Move from altivec.md.
15914 (UNSPEC_XXSPLTID): Move from altivec.md.
15915 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
15916 (UNSPEC_XXBLEND): Move from altivec.md.
15917 (UNSPEC_XXPERMX): Move from altivec.md.
15918 (VM3): Move from altivec.md.
15919 (VM3_char): Move from altivec.md.
15920 (xxspltiw_v4si): Move from altivec.md.
15921 (xxspltiw_v4sf): Move from altivec.md.
15922 (xxspltiw_v4sf_inst): Move from altivec.md.
15923 (xxspltidp_v2df): Move from altivec.md.
15924 (xxspltidp_v2df_inst): Move from altivec.md.
15925 (xxsplti32dx_v4si_inst): Move from altivec.md.
15926 (xxsplti32dx_v4sf): Move from altivec.md.
15927 (xxsplti32dx_v4sf_inst): Move from altivec.md.
15928 (xxblend_<mode>): Move from altivec.md.
15929 (xxpermx): Move from altivec.md.
15930 (xxpermx_inst): Move from altivec.md.
15931
15932 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
15933
15934 * tree-vect-generic.c (expand_vector_operations_1): Use either
15935 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
15936 when constructing scalar splat expressions.
15937
15938 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
15939
15940 PR target/101849
15941 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
15942 pointer to __vector_pair *.
15943
15944 2021-08-19 Martin Sebor <msebor@redhat.com>
15945
15946 * gimple-range.cc: Add comments.
15947 * gimple-range.h: Same.
15948
15949 2021-08-19 Martin Sebor <msebor@redhat.com>
15950
15951 PR middle-end/101984
15952 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
15953 disable_ranger.
15954
15955 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
15956
15957 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
15958 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
15959 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
15960
15961 2021-08-19 Jakub Jelinek <jakub@redhat.com>
15962
15963 PR middle-end/101950
15964 * optabs.c (expand_clrsb_using_clz): New function.
15965 (expand_unop): Use it as another clrsb expansion fallback.
15966
15967 2021-08-19 liuhongt <hongtao.liu@intel.com>
15968
15969 Revert:
15970 2021-07-28 liuhongt <hongtao.liu@intel.com>
15971
15972 PR target/99881
15973 * config/i386/i386.h (processor_costs): Add new member
15974 integer_to_sse.
15975 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
15976 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
15977 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
15978 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
15979 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
15980 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
15981 generic_cost, core_cost): Initialize integer_to_sse same value
15982 as sse_op.
15983 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
15984 * config/i386/i386.c (ix86_builtin_vectorization_cost):
15985 Use integer_to_sse instead of sse_op to calculate the cost of
15986 vec_construct.
15987
15988 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
15989
15990 * config.gcc: Include rpath.opt for Darwin.
15991 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
15992
15993 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
15994
15995 PR bootstrap/101959
15996 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
15997 Use an 'int_hash'.
15998
15999 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
16000
16001 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
16002 pattern and type cast.
16003 (vld4_lane_f32): Use float RTL pattern.
16004 (vld4q_lane_f64): Use float type cast.
16005
16006 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
16007
16008 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
16009 EAF_NOREAD.
16010
16011 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
16012
16013 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
16014 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
16015 (hash_map_tests_c_tests): Call it.
16016
16017 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
16018
16019 * ggc.h (enum ggc_collect): New.
16020 (ggc_collect): Use it.
16021 * ggc-page.c: Adjust.
16022 * ggc-common.c: Likewise.
16023 * ggc-tests.c: Likewise.
16024 * read-rtl-function.c: Likewise.
16025 * selftest-run-tests.c: Likewise.
16026 * doc/gty.texi (Invoking the garbage collector): Likewise.
16027
16028 2021-08-18 liuhongt <hongtao.liu@intel.com>
16029
16030 PR target/97147
16031 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
16032 New macro.
16033 * config/i386/sse.md (*sse3_haddv2df3_low): Add
16034 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
16035 (*sse3_hsubv2df3_low): Ditto.
16036 * config/i386/x86-tune.def
16037 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
16038
16039 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
16040
16041 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
16042 (gori_compute::compute_operand_range): Add tracing.
16043 (gori_compute::logical_combine): Ditto.
16044 (gori_compute::compute_logical_operands): Ditto.
16045 (gori_compute::compute_operand1_range): Ditto.
16046 (gori_compute::compute_operand2_range): Ditto.
16047 (gori_compute::outgoing_edge_range_p): Ditto.
16048 * gimple-range-gori.h (class gori_compute): Add range_tracer.
16049
16050 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
16051
16052 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
16053 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
16054 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
16055 * params.opt (--param=evrp-mode): Adjust options.
16056
16057 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
16058
16059 * Makefile.in (OBJS): Add gimple-range-trace.o.
16060 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
16061 * gimple-range-fold.cc: Adjust headers.
16062 * gimple-range-trace.cc: New.
16063 * gimple-range-trace.h: New.
16064 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
16065 (gimple_ranger::range_of_expr): Add tracing.
16066 (gimple_ranger::range_on_entry): Ditto.
16067 (gimple_ranger::range_on_exit): Ditto.
16068 (gimple_ranger::range_on_edge): Ditto.
16069 (gimple_ranger::fold_range_internal): Ditto.
16070 (gimple_ranger::dump_bb): Do not calculate edge range twice.
16071 (trace_ranger::*): Remove.
16072 (enable_ranger): Never create a trace_ranger.
16073 (debug_seed_ranger): Move to gimple-range-trace.cc.
16074 (dump_ranger): Ditto.
16075 (debug_ranger): Ditto.
16076 * gimple-range.h: Include gimple-range-trace.h.
16077 (range_on_entry, range_on_exit): No longer virtual.
16078 (class trace_ranger): Remove.
16079 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
16080
16081 2021-08-17 Martin Sebor <msebor@redhat.com>
16082
16083 PR middle-end/101854
16084 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
16085 in gimple-ssa-warn-access.cc.
16086 * calls.c (alloc_max_size): Move code to check_alloca.
16087 (get_size_range): Move to pointer-query.cc.
16088 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
16089 (get_attr_nonstring_decl): Move to tree.c.
16090 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
16091 (append_attrname): Same.
16092 (maybe_warn_rdwr_sizes): Same.
16093 (initialize_argument_information): Move code to
16094 gimple-ssa-warn-access.cc.
16095 * calls.h (maybe_warn_alloc_args_overflow): Move to
16096 gimple-ssa-warn-access.h.
16097 (get_attr_nonstring_decl): Move to tree.h.
16098 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
16099 (enum size_range_flags): Move to pointer-query.h.
16100 (get_size_range): Same.
16101 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
16102 to avoid Clang -Wunused-function.
16103 (get_size_range): Declare static.
16104 (maybe_emit_free_warning): Rename...
16105 (maybe_check_dealloc_call): ...to this for consistency.
16106 (class pass_waccess): Add members.
16107 (pass_waccess::~pass_waccess): Defined.
16108 (alloc_max_size): Move here from calls.c.
16109 (maybe_warn_alloc_args_overflow): Same.
16110 (check_alloca): New function.
16111 (check_alloc_size_call): New function.
16112 (check_strncat): Handle another warning flag.
16113 (pass_waccess::check_builtin): Handle alloca.
16114 (fntype_argno_type): Move here from calls.c.
16115 (append_attrname): Same.
16116 (maybe_warn_rdwr_sizes): Same.
16117 (pass_waccess::check_call): Define.
16118 (check_nonstring_args): New function.
16119 (pass_waccess::check): Call new member functions.
16120 (pass_waccess::execute): Enable ranger.
16121 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
16122 (maybe_warn_nonstring_arg): Same.
16123 * gimple-ssa-warn-restrict.c: Remove #include.
16124 * pointer-query.cc (get_size_range): Move here from calls.c.
16125 * pointer-query.h (enum size_range_flags): Same.
16126 (get_size_range): Same.
16127 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
16128 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
16129
16130 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
16131
16132 * ggc.h (ggc_collect): Add 'force_collect' parameter.
16133 * ggc-page.c (ggc_collect): Use that one instead of global
16134 'ggc_force_collect'. Adjust all users.
16135 * doc/gty.texi (Invoking the garbage collector): Update.
16136 * ggc-internal.h (ggc_force_collect): Remove.
16137 * ggc-common.c (ggc_force_collect): Likewise.
16138 * selftest.h (forcibly_ggc_collect): Remove.
16139 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
16140 * read-rtl-function.c (test_loading_labels): Adjust.
16141 * selftest-run-tests.c (run_tests): Likewise.
16142
16143 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
16144
16145 * config/darwin.c (darwin_file_end): Reset and reclaim the
16146 section names table at the end of compile.
16147
16148 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
16149
16150 PR target/100340
16151 * config.in: Regenerate.
16152 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
16153 (ASM_SPEC): Pass options to disable branch shortening where
16154 needed.
16155 * configure: Regenerate.
16156 * configure.ac: Detect versions of 'as' that support the
16157 optimisation which has the bug.
16158
16159 2021-08-17 Richard Biener <rguenther@suse.de>
16160
16161 * optabs-query.c (supports_vec_gather_load_p): Also check
16162 for masked optabs.
16163 (supports_vec_scatter_store_p): Likewise.
16164 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
16165 back to masked variants if non-masked are not supported.
16166 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
16167 When we need to use masked gather/scatter but do not have
16168 a mask set up a constant true one.
16169 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
16170 non-SSA_NAME masks.
16171
16172 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
16173
16174 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
16175 algorithm as PLUS_EXPR to improve subtraction bit bounds.
16176 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
16177
16178 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
16179
16180 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
16181 calculate the mask-value pair result of a multiplication by an
16182 unsigned constant.
16183 (bit_value_binop) [MULT_EXPR]: Call it from here for
16184 multiplications by (sparse) non-negative constants.
16185
16186 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
16187
16188 PR target/100896
16189 * config.gcc (gcc_cv_initfini_array): Leave undefined for
16190 uclinuxfdpiceabi targets.
16191
16192 2021-08-17 Alexandre Oliva <oliva@adacore.com>
16193
16194 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
16195 reverse debug stmts.
16196
16197 2021-08-17 Alexandre Oliva <oliva@adacore.com>
16198
16199 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
16200
16201 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
16202
16203 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
16204 (__LD4Q_LANE_FUNC): Likewise.
16205 (vld4_lane_u8): Define without macro.
16206 (vld4_lane_u16): Likewise.
16207 (vld4_lane_u32): Likewise.
16208 (vld4_lane_u64): Likewise.
16209 (vld4_lane_s8): Likewise.
16210 (vld4_lane_s16): Likewise.
16211 (vld4_lane_s32): Likewise.
16212 (vld4_lane_s64): Likewise.
16213 (vld4_lane_f16): Likewise.
16214 (vld4_lane_f32): Likewise.
16215 (vld4_lane_f64): Likewise.
16216 (vld4_lane_p8): Likewise.
16217 (vld4_lane_p16): Likewise.
16218 (vld4_lane_p64): Likewise.
16219 (vld4q_lane_u8): Likewise.
16220 (vld4q_lane_u16): Likewise.
16221 (vld4q_lane_u32): Likewise.
16222 (vld4q_lane_u64): Likewise.
16223 (vld4q_lane_s8): Likewise.
16224 (vld4q_lane_s16): Likewise.
16225 (vld4q_lane_s32): Likewise.
16226 (vld4q_lane_s64): Likewise.
16227 (vld4q_lane_f16): Likewise.
16228 (vld4q_lane_f32): Likewise.
16229 (vld4q_lane_f64): Likewise.
16230 (vld4q_lane_p8): Likewise.
16231 (vld4q_lane_p16): Likewise.
16232 (vld4q_lane_p64): Likewise.
16233 (vld4_lane_bf16): Likewise.
16234 (vld4q_lane_bf16): Likewise.
16235
16236 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
16237
16238 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
16239 (__LD3Q_LANE_FUNC): Delete.
16240 (vld3_lane_u8): Define without macro.
16241 (vld3_lane_u16): Likewise.
16242 (vld3_lane_u32): Likewise.
16243 (vld3_lane_u64): Likewise.
16244 (vld3_lane_s8): Likewise.
16245 (vld3_lane_s16): Likewise.
16246 (vld3_lane_s32): Likewise.
16247 (vld3_lane_s64): Likewise.
16248 (vld3_lane_f16): Likewise.
16249 (vld3_lane_f32): Likewise.
16250 (vld3_lane_f64): Likewise.
16251 (vld3_lane_p8): Likewise.
16252 (vld3_lane_p16): Likewise.
16253 (vld3_lane_p64): Likewise.
16254 (vld3q_lane_u8): Likewise.
16255 (vld3q_lane_u16): Likewise.
16256 (vld3q_lane_u32): Likewise.
16257 (vld3q_lane_u64): Likewise.
16258 (vld3q_lane_s8): Likewise.
16259 (vld3q_lane_s16): Likewise.
16260 (vld3q_lane_s32): Likewise.
16261 (vld3q_lane_s64): Likewise.
16262 (vld3q_lane_f16): Likewise.
16263 (vld3q_lane_f32): Likewise.
16264 (vld3q_lane_f64): Likewise.
16265 (vld3q_lane_p8): Likewise.
16266 (vld3q_lane_p16): Likewise.
16267 (vld3q_lane_p64): Likewise.
16268 (vld3_lane_bf16): Likewise.
16269 (vld3q_lane_bf16): Likewise.
16270
16271 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
16272
16273 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
16274 (__LD2Q_LANE_FUNC): Likewise.
16275 (vld2_lane_u8): Define without macro.
16276 (vld2_lane_u16): Likewise.
16277 (vld2_lane_u32): Likewise.
16278 (vld2_lane_u64): Likewise.
16279 (vld2_lane_s8): Likewise.
16280 (vld2_lane_s16): Likewise.
16281 (vld2_lane_s32): Likewise.
16282 (vld2_lane_s64): Likewise.
16283 (vld2_lane_f16): Likewise.
16284 (vld2_lane_f32): Likewise.
16285 (vld2_lane_f64): Likewise.
16286 (vld2_lane_p8): Likewise.
16287 (vld2_lane_p16): Likewise.
16288 (vld2_lane_p64): Likewise.
16289 (vld2q_lane_u8): Likewise.
16290 (vld2q_lane_u16): Likewise.
16291 (vld2q_lane_u32): Likewise.
16292 (vld2q_lane_u64): Likewise.
16293 (vld2q_lane_s8): Likewise.
16294 (vld2q_lane_s16): Likewise.
16295 (vld2q_lane_s32): Likewise.
16296 (vld2q_lane_s64): Likewise.
16297 (vld2q_lane_f16): Likewise.
16298 (vld2q_lane_f32): Likewise.
16299 (vld2q_lane_f64): Likewise.
16300 (vld2q_lane_p8): Likewise.
16301 (vld2q_lane_p16): Likewise.
16302 (vld2q_lane_p64): Likewise.
16303 (vld2_lane_bf16): Likewise.
16304 (vld2q_lane_bf16): Likewise.
16305
16306 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16307
16308 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
16309 lines for diff.
16310
16311 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16312
16313 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
16314 (rank_for_schedule): Use it.
16315
16316 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16317
16318 PR rtl-optimization/91598
16319 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
16320 insns after memory reads and before memory writes.
16321
16322 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
16323
16324 * rtl.h (CONST_VECTOR_P): New macro.
16325 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
16326 code testing macros.
16327 (aarch64_ptrue_all_mode): Likewise.
16328 (aarch64_expand_mov_immediate): Likewise.
16329 (aarch64_const_vec_all_in_range_p): Likewise.
16330 (aarch64_rtx_costs): Likewise.
16331 (aarch64_legitimate_constant_p): Likewise.
16332 (aarch64_simd_valid_immediate): Likewise.
16333 (aarch64_simd_make_constant): Likewise.
16334 (aarch64_convert_mult_to_shift): Likewise.
16335 (aarch64_expand_sve_vec_perm): Likewise.
16336 (aarch64_vec_fpconst_pow_of_2): Likewise.
16337
16338 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
16339
16340 PR tree-optimization/101938
16341 * range-op.cc (operator_abs::op1_range): Special case
16342 -TYPE_MIN_VALUE for flag_wrapv.
16343
16344 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
16345
16346 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
16347 value extraction.
16348
16349 2021-08-17 Jakub Jelinek <jakub@redhat.com>
16350
16351 * tree.def (OMP_SCOPE): New tree code.
16352 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
16353 * tree-nested.c (convert_nonlocal_reference_stmt,
16354 convert_local_reference_stmt, convert_gimple_call): Handle
16355 GIMPLE_OMP_SCOPE.
16356 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
16357 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
16358 * gimple.c (gimple_build_omp_scope): New function.
16359 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
16360 * gimple.h (gimple_build_omp_scope): Declare.
16361 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
16362 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
16363 gimple_omp_scope_set_clauses): New inline functions.
16364 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
16365 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
16366 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
16367 * gimple-walk.c (walk_gimple_stmt): Likewise.
16368 * gimple-low.c (lower_stmt): Likewise.
16369 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
16370 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
16371 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
16372 allowing task reductions. Reject inscan reductions on scope.
16373 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
16374 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
16375 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
16376 (estimate_num_insns): Likewise.
16377 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
16378 contexts if var isn't privatized there.
16379 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
16380 (scan_omp_1_stmt): Likewise.
16381 (maybe_add_implicit_barrier_cancel): Look through outer
16382 scope constructs.
16383 (lower_omp_scope): New function.
16384 (lower_omp_task_reductions): Handle OMP_SCOPE.
16385 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
16386 (diagnose_sb_1, diagnose_sb_2): Likewise.
16387 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
16388 (expand_omp): Handle GIMPLE_OMP_SCOPE.
16389 (omp_make_gimple_edges): Likewise.
16390 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
16391
16392 2021-08-17 Richard Biener <rguenther@suse.de>
16393
16394 PR tree-optimization/101925
16395 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
16396 reverse on COMPONENT_REF and ARRAY_REF according to
16397 what reverse_storage_order_for_component_p does.
16398 (vn_reference_eq): Compare reversed on reference ops.
16399 (reverse_storage_order_for_component_p): New overload.
16400 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
16401 on the reference looked up.
16402
16403 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
16404
16405 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
16406 shifts on the H8/S.
16407 (h8300_option_override): Use loops on H8/S more often when optimizing
16408 for size.
16409 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
16410 accordingly. Handle various arithmetic right shifts with special
16411 sequences that we couldn't handle before.
16412
16413 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
16414
16415 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
16416
16417 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16418
16419 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
16420 * config/sparc/sparc.c (sparc_gcov_type_size): New.
16421 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
16422 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
16423 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
16424 * doc/tm.texi.in: Regenerate.
16425 * target.def (gcov_type_size): New target hook.
16426 * targhooks.c (default_gcov_type_size): New.
16427 * targhooks.h (default_gcov_type_size): Declare.
16428 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
16429 gcov_type_node.
16430 (gimple_gen_time_profiler): Likewise.
16431
16432 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
16433
16434 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
16435
16436 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
16437
16438 PR middle-end/101931
16439 * omp-low.c (omp_runtime_api_call): Update for routines
16440 added in the meanwhile.
16441
16442 2021-08-16 Martin Liska <mliska@suse.cz>
16443
16444 PR tree-optimization/100393
16445 * tree-switch-conversion.c (group_cluster::dump): Use
16446 get_comparison_count.
16447 (jump_table_cluster::find_jump_tables): Pre-compute number of
16448 comparisons and then decrement it. Cache also max_ratio.
16449 (jump_table_cluster::can_be_handled): Change signature.
16450 * tree-switch-conversion.h (get_comparison_count): New.
16451
16452 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
16453
16454 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
16455 encodings only when -fgnat-encodings=all is specified.
16456 (add_bound_info): Likewise.
16457 (add_byte_size_attribute): Likewise.
16458 (gen_member_die): Likewise.
16459
16460 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
16461
16462 * omp-oacc-neuter-broadcast.cc
16463 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
16464
16465 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
16466
16467 * omp-oacc-neuter-broadcast.cc
16468 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
16469 'prop_set'.
16470
16471 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
16472
16473 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
16474 (execute_omp_oacc_neuter_broadcast): ... here.
16475 (install_var_field, build_receiver_ref, build_sender_ref): Take
16476 'field_map_t *' parameter. Adjust all users.
16477 (worker_single_copy, neuter_worker_single): Take a
16478 'record_field_map_t *' parameter. Adjust all users.
16479
16480 2021-08-16 liuhongt <hongtao.liu@intel.com>
16481
16482 PR target/101930
16483 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
16484 reg.
16485
16486 2021-08-16 Martin Liska <mliska@suse.cz>
16487
16488 PR ipa/101726
16489 * multiple_target.c (create_dispatcher_calls): Make default
16490 function local only if it is a definition.
16491
16492 2021-08-16 Martin Liska <mliska@suse.cz>
16493
16494 PR ipa/100600
16495 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
16496 consider equal SSA_NAMEs when one is a param.
16497
16498 2021-08-16 liuhongt <hongtao.liu@intel.com>
16499
16500 PR target/101846
16501 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
16502 Support vpermi2b for V32QI/V16QImode.
16503 (ix86_extract_perm_from_pool_constant): New function.
16504 (ix86_expand_vec_one_operand_perm_avx512): Support
16505 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
16506 (expand_vec_perm_1): Adjust comments for upper.
16507 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
16508 New declare.
16509 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
16510 (pshufb_truncv4siv4hi_operand): Ditto.
16511 (pshufb_truncv8hiv8qi_operand): Ditto.
16512 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
16513 New pre_reload define_insn_and_split.
16514 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
16515 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
16516 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
16517 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
16518 (*avx512f_permvar_truncv4div4si_1): Ditto.
16519 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
16520 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
16521 (*avx512f_pshufd_truncv2div2si_1): Ditto.
16522
16523 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
16524
16525 * config/riscv/multilib-generator: Support code model option for
16526 multi-lib.
16527 * doc/install.texi: Add document of new option for
16528 --with-multilib-generator.
16529
16530 2021-08-15 Clément Chigot <clement.chigot@atos.net>
16531
16532 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
16533 (rs6000_legitimize_tls_address_aix): Use it.
16534 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
16535 xcoff_tls_exec_model_detected is true.
16536
16537 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
16538
16539 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
16540 to allow a bit more code growth, saving many dozens of cycles.
16541 (h8300_option_override): Adjus shift_alg_si if optimizing for
16542 code size.
16543 (get_shift_alg): Use special + inline shifts for residuals
16544 in more cases.
16545
16546 2021-08-14 Stafford Horne <shorne@gmail.com>
16547
16548 PR target/99783
16549 * config/or1k/or1k-opts.h: New file.
16550 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
16551 Support generating gotha relocations if -mcmodel=large is
16552 specified.
16553 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
16554 New macros.
16555 * config/or1k/or1k.opt (mcmodel=): New option.
16556 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
16557
16558 2021-08-14 Martin Sebor <msebor@redhat.com>
16559
16560 PR middle-end/101791
16561 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
16562 to valid_new_delete_pair_p.
16563 * tree.c (valid_new_delete_pair_p): Add argument.
16564 * tree.h (valid_new_delete_pair_p): Same.
16565
16566 2021-08-14 Jakub Jelinek <jakub@redhat.com>
16567
16568 PR target/101896
16569 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
16570 <case E_V64QImode>: For this mode assert
16571 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
16572
16573 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
16574
16575 PR target/99921
16576 * config/rs6000/altivec.md (xxeval): Use register_predicate
16577 instead of altivec_register_predicate.
16578
16579 2021-08-13 Martin Sebor <msebor@redhat.com>
16580
16581 PR middle-end/101734
16582 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
16583 (maybe_warn_operand): Call it.
16584
16585 2021-08-13 Martin Liska <mliska@suse.cz>
16586
16587 PR ipa/101354
16588 * attribs.c (decl_attributes): Make naked functions "noipa"
16589 functions.
16590
16591 2021-08-13 Martin Liska <mliska@suse.cz>
16592
16593 PR ipa/101261
16594 * symtab.c (symtab_node::noninterposable_alias): Do not create
16595 local aliases for target_clone functions as the clonning pass
16596 rejects aliases.
16597
16598 2021-08-13 Martin Liska <mliska@suse.cz>
16599
16600 * opts.c (LIVE_PATCHING_OPTION): Define.
16601 (control_options_for_live_patching): Use it in error messages.
16602
16603 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
16604
16605 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
16606 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
16607 ignore_stores_eaf_flags): New constants.
16608 (remove_useless_eaf_flags): New function.
16609 (eaf_flags_useful_p): Use it.
16610 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
16611 handle EAF_NOREAD.
16612 (modref_lattice::init): Add EAF_NOREAD.
16613 (modref_lattice::add_escape_point): Do not reacord escape point if
16614 result is unused.
16615 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
16616 use remove_useless_eaf_flags.
16617 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
16618 (modref_lattice::merge_direct_load): Add EAF_NOREAD
16619 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
16620 (analyze_parms): Use remove_useless_eaf_flags.
16621 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
16622 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
16623 use remove_useless_eaf_flags.
16624 (modref_propagate_flags_in_scc): Update.
16625 * ipa-modref.h: Turn eaf_flags_t back to char.
16626 * tree-core.h (EAF_NOT_RETURNED): Fix.
16627 (EAF_NOREAD): New constant
16628 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
16629 EAF_NOREAD.
16630 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
16631 (handle_pure_call): Likewise.
16632
16633 2021-08-12 Jakub Jelinek <jakub@redhat.com>
16634
16635 * tree.def (OMP_MASKED): New tree code.
16636 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
16637 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
16638 OMP_CLAUSE_FILTER_EXPR): Define.
16639 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
16640 (omp_clause_code_name): Likewise.
16641 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
16642 * tree-nested.c (convert_nonlocal_omp_clauses,
16643 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
16644 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
16645 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
16646 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
16647 (dump_generic_node): Handle OMP_MASTER.
16648 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
16649 * gimple.c (gimple_build_omp_masked): New function.
16650 (gimple_copy): Handle GIMPLE_OMP_MASKED.
16651 * gimple.h (gimple_build_omp_masked): Declare.
16652 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
16653 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
16654 gimple_omp_masked_set_clauses): New inline functions.
16655 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
16656 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
16657 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
16658 * gimple-walk.c (walk_gimple_stmt): Likewise.
16659 * gimple-low.c (lower_stmt): Likewise.
16660 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
16661 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
16662 that take one expression rather than decl or constant, force
16663 gimplification of that into a SSA_NAME or temporary unless min
16664 invariant.
16665 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
16666 (gimplify_expr): Handle OMP_MASKED.
16667 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
16668 (estimate_num_insns): Likewise.
16669 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
16670 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
16671 diagnostics for existence of masked construct.
16672 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
16673 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
16674 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
16675 Likewise.
16676
16677 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
16678
16679 PR target/98309
16680 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
16681 (ldexp<mode>3): Use avx512f_scalef<mode>2.
16682 (UNSPEC_SCALEF): Move from ...
16683 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
16684
16685 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
16686
16687 * ipa-split.c (consider_split): Fix condition testing void functions.
16688
16689 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
16690
16691 * doc/invoke.texi: Remove docs for threader-mode param.
16692 * flag-types.h (enum threader_mode): Remove.
16693 * params.opt: Remove threader-mode param.
16694 * tree-ssa-threadbackward.c (class back_threader): Remove
16695 path_is_unreachable_p.
16696 Make find_paths private.
16697 Add maybe_thread and thread_through_all_blocks.
16698 Remove reference marker for m_registry.
16699 Remove reference marker for m_profit.
16700 (back_threader::back_threader): Adjust for registry and profit not
16701 being references.
16702 (dump_path): Move down.
16703 (debug): Move down.
16704 (class thread_jumps): Remove.
16705 (class back_threader_registry): Remove m_all_paths.
16706 Remove destructor.
16707 (thread_jumps::thread_through_all_blocks): Move to back_threader
16708 class.
16709 (fsm_find_thread_path): Remove
16710 (back_threader::maybe_thread): New.
16711 (back_threader::thread_through_all_blocks): Move from
16712 thread_jumps.
16713 (back_threader_registry::back_threader_registry): Remove
16714 m_all_paths.
16715 (back_threader_registry::~back_threader_registry): Remove.
16716 (thread_jumps::find_taken_edge): Remove.
16717 (thread_jumps::check_subpath_and_update_thread_path): Remove.
16718 (thread_jumps::maybe_register_path): Remove.
16719 (thread_jumps::handle_phi): Remove.
16720 (handle_assignment_p): Remove.
16721 (thread_jumps::handle_assignment): Remove.
16722 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
16723 (thread_jumps::find_jump_threads_backwards): Remove.
16724 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
16725 (try_thread_blocks): Rename find_jump_threads_backwards to
16726 maybe_thread.
16727 (pass_early_thread_jumps::execute): Same.
16728
16729 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
16730
16731 * tree-core.h (omp_clause_proc_bind_kind): Add
16732 OMP_CLAUSE_PROC_BIND_PRIMARY.
16733 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
16734 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
16735
16736 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
16737
16738 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
16739 fno-common reference.
16740 * config/arc/arc.c (arc_override_options): Remove overriding of
16741 flag_no_common.
16742
16743 2021-08-12 Jakub Jelinek <jakub@redhat.com>
16744
16745 PR target/101860
16746 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
16747 If d->testing_p, return true after performing checks instead of
16748 actually expanding the insn.
16749 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
16750 !TARGET_AVX512BW and return false.
16751
16752 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
16753
16754 * configure.ac (PE linker --disable-dynamicbase support): New check.
16755 * configure: Regenerate.
16756 * config.in: Likewise.
16757 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
16758 (LINK_SPEC): Use it.
16759 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
16760 (LINK_SPEC): Likewise.
16761
16762 2021-08-12 liuhongt <hongtao.liu@intel.com>
16763
16764 PR target/101846
16765 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
16766 post_reload define_insn_and_split.
16767 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
16768 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
16769 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
16770 (*avx2_zero_extendv8hiv8si2_2): Ditto.
16771 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
16772 (*avx512f_zero_extendv8siv8di2_2): Ditto.
16773 (*avx2_zero_extendv4siv4di2_2): Ditto.
16774 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
16775 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
16776 mode iterator.
16777
16778 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
16779
16780 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
16781 power6 stanzas.
16782
16783 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
16784
16785 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
16786
16787 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
16788
16789 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
16790 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
16791 initialization of pcvoid_type_node here...
16792 (altivec_init_builtins): ...from here.
16793 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
16794 RS6000_BTI_const_ptr_void.
16795 (pcvoid_type_node): New macro.
16796
16797 2021-08-11 Richard Biener <rguenther@suse.de>
16798
16799 PR target/101877
16800 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
16801 hard-register accesses.
16802
16803 2021-08-11 Richard Biener <rguenther@suse.de>
16804
16805 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
16806 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
16807 to determine has_volatile_ops.
16808
16809 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
16810
16811 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
16812
16813 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
16814 Alexandre Oliva <oliva@adacore.com>
16815
16816 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
16817 dumping.
16818 (modref_lattice::merge_deref): Fix handling of indirect scape points.
16819 (update_escape_summary_1): Likewise.
16820 (update_escape_summary): Likewise.
16821 (ipa_merge_modref_summary_after_inlining): Likewise.
16822
16823 2021-08-11 Richard Biener <rguenther@suse.de>
16824
16825 PR middle-end/101858
16826 * fold-const.c (fold_binary_loc): Guard simplification
16827 of X < (cast) (1 << Y) to integer types.
16828
16829 2021-08-11 Richard Biener <rguenther@suse.de>
16830
16831 PR tree-optimization/101861
16832 * tree-vect-stmts.c (vectorizable_load): Fix error in
16833 previous change with regard to gather vectorization.
16834
16835 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
16836
16837 PR target/66791
16838 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
16839 with constructor.
16840 (vdup_n_s16): Likewise.
16841 (vdup_n_s32): Likewise.
16842 (vdup_n_s64): Likewise.
16843 (vdup_n_u8): Likewise.
16844 (vdup_n_u16): Likewise.
16845 (vdup_n_u32): Likewise.
16846 (vdup_n_u64): Likewise.
16847 (vdup_n_p8): Likewise.
16848 (vdup_n_p16): Likewise.
16849 (vdup_n_p64): Likewise.
16850 (vdup_n_f16): Likewise.
16851 (vdup_n_f32): Likewise.
16852 (vdupq_n_s8): Likewise.
16853 (vdupq_n_s16): Likewise.
16854 (vdupq_n_s32): Likewise.
16855 (vdupq_n_s64): Likewise.
16856 (vdupq_n_u8): Likewise.
16857 (vdupq_n_u16): Likewise.
16858 (vdupq_n_u32): Likewise.
16859 (vdupq_n_u64): Likewise.
16860 (vdupq_n_p8): Likewise.
16861 (vdupq_n_p16): Likewise.
16862 (vdupq_n_p64): Likewise.
16863 (vdupq_n_f16): Likewise.
16864 (vdupq_n_f32): Likewise.
16865 (vmov_n_s8): Replace call to builtin with call to corresponding
16866 vdup_n intrinsic.
16867 (vmov_n_s16): Likewise.
16868 (vmov_n_s32): Likewise.
16869 (vmov_n_s64): Likewise.
16870 (vmov_n_u8): Likewise.
16871 (vmov_n_u16): Likewise.
16872 (vmov_n_u32): Likewise.
16873 (vmov_n_u64): Likewise.
16874 (vmov_n_p8): Likewise.
16875 (vmov_n_p16): Likewise.
16876 (vmov_n_f16): Likewise.
16877 (vmov_n_f32): Likewise.
16878 (vmovq_n_s8): Likewise.
16879 (vmovq_n_s16): Likewise.
16880 (vmovq_n_s32): Likewise.
16881 (vmovq_n_s64): Likewise.
16882 (vmovq_n_u8): Likewise.
16883 (vmovq_n_u16): Likewise.
16884 (vmovq_n_u32): Likewise.
16885 (vmovq_n_u64): Likewise.
16886 (vmovq_n_p8): Likewise.
16887 (vmovq_n_p16): Likewise.
16888 (vmovq_n_f16): Likewise.
16889 (vmovq_n_f32): Likewise.
16890 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
16891
16892 2021-08-11 liuhongt <hongtao.liu@intel.com>
16893
16894 PR target/98309
16895 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
16896 when TARGET_AVX512F and TARGET_SSE_MATH.
16897
16898 2021-08-10 Jakub Jelinek <jakub@redhat.com>
16899
16900 PR target/80355
16901 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
16902 for V32HImode if !TARGET_AVX512BW.
16903 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
16904 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
16905 early, but actually check the permutation.
16906
16907 2021-08-10 Richard Biener <rguenther@suse.de>
16908
16909 PR tree-optimization/101809
16910 * tree-vect-stmts.c (get_load_store_type): Allow emulated
16911 gathers with offset vector nunits being a constant multiple
16912 of the data vector nunits.
16913 (vect_get_gather_scatter_ops): Use the appropriate nunits
16914 for the offset vector defs.
16915 (vectorizable_store): Adjust call to
16916 vect_get_gather_scatter_ops.
16917 (vectorizable_load): Likewise. Handle the case of less
16918 offset vectors than data vectors.
16919
16920 2021-08-10 Jakub Jelinek <jakub@redhat.com>
16921
16922 PR target/80355
16923 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
16924 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
16925 patterns.
16926
16927 2021-08-10 Richard Biener <rguenther@suse.de>
16928
16929 PR tree-optimization/101801
16930 PR tree-optimization/101819
16931 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
16932 * tree-vect-loop.c (vect_emulated_vector_p): New function.
16933 (vectorizable_reduction): Re-instantiate a check for emulated
16934 operations.
16935 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16936 (vectorizable_operation): Likewise. Cost emulated vector
16937 operations according to the scalar sequence synthesized by
16938 vector lowering.
16939
16940 2021-08-10 Richard Biener <rguenther@suse.de>
16941
16942 PR middle-end/101824
16943 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
16944 volatile in case the variable was.
16945
16946 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
16947
16948 PR target/101804
16949 * config/i386/constraints.md (BC): Document for integer SSE
16950 constant all bits set operand.
16951 (BF): New constraint for const floating-point all bits set
16952 vectors.
16953 * config/i386/i386.c (standard_sse_constant_p): Likewise.
16954 (standard_sse_constant_opcode): Likewise.
16955 * config/i386/sse.md (sseconstm1): New mode attribute.
16956 (mov<mode>_internal): Replace BC with <sseconstm1>.
16957
16958 2021-08-10 liuhongt <hongtao.liu@intel.com>
16959
16960 * config/i386/sse.md (cond_<insn><mode>): New expander.
16961 (VI248_AVX512VLBW): New mode iterator.
16962 * config/i386/predicates.md
16963 (nonimmediate_or_const_vec_dup_operand): New predicate.
16964
16965 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
16966
16967 PR tree-optimization/101741
16968 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
16969 type of parameter for toupper/tolower.
16970
16971 2021-08-09 Martin Jambor <mjambor@suse.cz>
16972
16973 PR testsuite/101654
16974 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
16975
16976 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
16977
16978 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
16979 register.
16980 (is_store_insn1): Verify source is a register.
16981
16982 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
16983
16984 PR target/101812
16985 * config/i386/mmx.md (<any_logic:code>v2sf3):
16986 Rename from *mmx_<any_logic:code>v2sf3
16987
16988 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16989
16990 * config/nvptx/nvptx.c: Cross-reference parts adapted in
16991 'gcc/omp-oacc-neuter-broadcast.cc'.
16992 * omp-low.c: Likewise.
16993 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
16994 the above files.
16995
16996 2021-08-09 Julian Brown <julian@codesourcery.com>
16997 Kwok Cheung Yeung <kcy@codesourcery.com>
16998 Thomas Schwinge <thomas@codesourcery.com>
16999
17000 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
17001 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
17002 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
17003 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
17004 (gcn_fork_join): Update comment.
17005 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
17006 (macc_experimental_workers): Remove unused option.
17007
17008 2021-08-09 Julian Brown <julian@codesourcery.com>
17009 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
17010 Kwok Cheung Yeung <kcy@codesourcery.com>
17011 Thomas Schwinge <thomas@codesourcery.com>
17012
17013 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
17014 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
17015 Add documentation hook.
17016 * doc/tm.texi: Regenerate.
17017 * omp-oacc-neuter-broadcast.cc: New file.
17018 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
17019 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
17020 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
17021 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
17022 * target.def (goacc.create_worker_broadcast_record): Add target
17023 hook.
17024 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
17025 prototype.
17026 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
17027 Rename prototype to...
17028 (gcn_goacc_create_worker_broadcast_record): ... this.
17029 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
17030 function to...
17031 (gcn_goacc_create_worker_broadcast_record): ... this.
17032 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
17033 Rename to...
17034 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
17035
17036 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
17037
17038 PR target/101609
17039 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
17040 the right iterator.
17041
17042 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17043
17044 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
17045
17046 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17047
17048 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
17049 consider '-foffload-abi'.
17050 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
17051 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
17052 Ignore.
17053
17054 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17055
17056 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
17057 'Var'.
17058
17059 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17060
17061 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
17062
17063 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17064
17065 * doc/gty.texi (Files): Update.
17066
17067 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
17068
17069 * doc/gty.texi (Files): Fix GTY header file example.
17070
17071 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
17072
17073 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
17074 determine the upper and lower bounds from a mask-value pair.
17075 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
17076 absolute value and unsigned absolute value expressions.
17077 (bit_value_binop): Initialize *VAL's precision.
17078 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
17079 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
17080 support when the operands are unknown but potentially equal.
17081 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
17082
17083 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
17084
17085 * config/aarch64/aarch64.md
17086 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
17087
17088 2021-08-08 Sergei Trofimovich <siarheit@google.com>
17089
17090 * lra-constraints.c: Fix s/otput/output/ typo.
17091
17092 2021-08-06 Martin Sebor <msebor@redhat.com>
17093
17094 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
17095 (expand_builtin_strcat): Same.
17096 (expand_builtin_stpncpy): Same.
17097 (expand_builtin_strncat): Same.
17098 (check_read_access): Same.
17099 (check_memop_access): Same.
17100 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
17101 (expand_builtin_strnlen): Same.
17102 (expand_builtin_memcpy): Same.
17103 (expand_builtin_memmove): Same.
17104 (expand_builtin_mempcpy): Same.
17105 (expand_builtin_strcpy): Same.
17106 (expand_builtin_strcpy_args): Same.
17107 (expand_builtin_stpcpy_1): Same.
17108 (expand_builtin_strncpy): Same.
17109 (expand_builtin_memset): Same.
17110 (expand_builtin_bzero): Same.
17111 (expand_builtin_strcmp): Same.
17112 (expand_builtin_strncmp): Same.
17113 (expand_builtin): Remove handlers.
17114 (fold_builtin_strlen): Add a comment.
17115 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
17116 * calls.c (maybe_warn_nonstring_arg): Same.
17117 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
17118 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
17119 (gimple_fold_builtin_stpcpy): Same.
17120 * gimple-ssa-warn-access.cc (has_location): New function.
17121 (get_location): Same.
17122 (get_callee_fndecl): Same.
17123 (call_nargs): Same.
17124 (call_arg): Same.
17125 (warn_string_no_nul): Define.
17126 (unterminated_array): Same.
17127 (check_nul_terminated_array): Same.
17128 (maybe_warn_nonstring_arg): Same.
17129 (maybe_warn_for_bound): Same.
17130 (warn_for_access): Same.
17131 (check_access): Same.
17132 (check_memop_access): Same.
17133 (check_read_access): Same.
17134 (warn_dealloc_offset): Use helper functions.
17135 (maybe_emit_free_warning): Same.
17136 (class pass_waccess): Add members.
17137 (check_strcat): New function.
17138 (check_strncat): New function.
17139 (check_stxcpy): New function.
17140 (check_stxncpy): New function.
17141 (check_strncmp): New function.
17142 (pass_waccess::check_builtin): New function.
17143 (pass_waccess::check): Call it.
17144 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
17145 builtins.h.
17146 (maybe_warn_for_bound): Same.
17147 (check_access): Same.
17148 (check_memop_access): Same.
17149 (check_read_access): Same.
17150 * pointer-query.h (struct access_data): Define a ctor overload.
17151
17152 2021-08-06 Richard Biener <rguenther@suse.de>
17153
17154 PR tree-optimization/101801
17155 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
17156 (vect_can_vectorize_without_simd_p): ... to this.
17157 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
17158 (vect_can_vectorize_without_simd_p): ... to this and fold
17159 in vect_min_worthwhile_factor.
17160 (vect_min_worthwhile_factor): Remove.
17161 (vectorizable_reduction): Adjust and remove the cost part.
17162 * tree-vect-stmts.c (vectorizable_shift): Likewise.
17163 (vectorizable_operation): Likewise.
17164
17165 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
17166
17167 PR target/101797
17168 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
17169 Add general_gr_operand predicate to operand 3.
17170
17171 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
17172
17173 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
17174 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
17175
17176 2021-08-06 Tamar Christina <tamar.christina@arm.com>
17177
17178 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
17179 register_svprfop): Pass vec<> by pointer.
17180 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
17181 * langhooks.c (lhd_simulate_enum_decl): Likewise.
17182 * langhooks.h (struct lang_hooks_for_types): Likewise.
17183
17184 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
17185
17186 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
17187 __builtin_memcpy instead of constructing an additional
17188 __builtin_aarch64_simd_oi one vector at a time.
17189 (vst1q_bf16_x2): Likewise.
17190 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
17191 an additional __builtin_aarch64_simd_ci one vector at a time.
17192 (vst1q_bf16_x3): Likewise.
17193 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
17194 (vst1q_bf16_x4): Likewise.
17195 (vst2_bf16): Use __builtin_memcpy instead of constructing an
17196 additional __builtin_aarch64_simd_oi one vector at a time.
17197 (vst2q_bf16): Likewise.
17198 (vst3_bf16): Use __builtin_memcpy instead of constructing an
17199 additional __builtin_aarch64_simd_ci mode one vector at a
17200 time.
17201 (vst3q_bf16): Likewise.
17202 (vst4_bf16): Use __builtin_memcpy instead of constructing an
17203 additional __builtin_aarch64_simd_xi one vector at a time.
17204 (vst4q_bf16): Likewise.
17205
17206 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
17207
17208 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
17209 (__ST2Q_LANE_FUNC): Delete.
17210 (vst2_lane_f16): Use __builtin_memcpy to copy vector
17211 structure instead of constructing __builtin_aarch64_simd_oi
17212 one vector at a time.
17213 (vst2_lane_f32): Likewise.
17214 (vst2_lane_f64): Likewise.
17215 (vst2_lane_p8): Likewise.
17216 (vst2_lane_p16): Likewise.
17217 (vst2_lane_p64): Likewise.
17218 (vst2_lane_s8): Likewise.
17219 (vst2_lane_s16): Likewise.
17220 (vst2_lane_s32): Likewise.
17221 (vst2_lane_s64): Likewise.
17222 (vst2_lane_u8): Likewise.
17223 (vst2_lane_u16): Likewise.
17224 (vst2_lane_u32): Likewise.
17225 (vst2_lane_u64): Likewise.
17226 (vst2_lane_bf16): Likewise.
17227 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
17228 structure instead of using a union.
17229 (vst2q_lane_f32): Likewise.
17230 (vst2q_lane_f64): Likewise.
17231 (vst2q_lane_p8): Likewise.
17232 (vst2q_lane_p16): Likewise.
17233 (vst2q_lane_p64): Likewise.
17234 (vst2q_lane_s8): Likewise.
17235 (vst2q_lane_s16): Likewise.
17236 (vst2q_lane_s32): Likewise.
17237 (vst2q_lane_s64): Likewise.
17238 (vst2q_lane_u8): Likewise.
17239 (vst2q_lane_u16): Likewise.
17240 (vst2q_lane_u32): Likewise.
17241 (vst2q_lane_u64): Likewise.
17242 (vst2q_lane_bf16): Likewise.
17243
17244 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
17245
17246 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
17247 (__ST3Q_LANE_FUNC): Delete.
17248 (vst3_lane_f16): Use __builtin_memcpy to copy vector
17249 structure instead of constructing __builtin_aarch64_simd_ci
17250 one vector at a time.
17251 (vst3_lane_f32): Likewise.
17252 (vst3_lane_f64): Likewise.
17253 (vst3_lane_p8): Likewise.
17254 (vst3_lane_p16): Likewise.
17255 (vst3_lane_p64): Likewise.
17256 (vst3_lane_s8): Likewise.
17257 (vst3_lane_s16): Likewise.
17258 (vst3_lane_s32): Likewise.
17259 (vst3_lane_s64): Likewise.
17260 (vst3_lane_u8): Likewise.
17261 (vst3_lane_u16): Likewise.
17262 (vst3_lane_u32): Likewise.
17263 (vst3_lane_u64): Likewise.
17264 (vst3_lane_bf16): Likewise.
17265 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
17266 structure instead of using a union.
17267 (vst3q_lane_f32): Likewise.
17268 (vst3q_lane_f64): Likewise.
17269 (vst3q_lane_p8): Likewise.
17270 (vst3q_lane_p16): Likewise.
17271 (vst3q_lane_p64): Likewise.
17272 (vst3q_lane_s8): Likewise.
17273 (vst3q_lane_s16): Likewise.
17274 (vst3q_lane_s32): Likewise.
17275 (vst3q_lane_s64): Likewise.
17276 (vst3q_lane_u8): Likewise.
17277 (vst3q_lane_u16): Likewise.
17278 (vst3q_lane_u32): Likewise.
17279 (vst3q_lane_u64): Likewise.
17280 (vst3q_lane_bf16): Likewise.
17281
17282 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
17283
17284 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
17285 (__ST4Q_LANE_FUNC): Delete.
17286 (vst4_lane_f16): Use __builtin_memcpy to copy vector
17287 structure instead of constructing __builtin_aarch64_simd_xi
17288 one vector at a time.
17289 (vst4_lane_f32): Likewise.
17290 (vst4_lane_f64): Likewise.
17291 (vst4_lane_p8): Likewise.
17292 (vst4_lane_p16): Likewise.
17293 (vst4_lane_p64): Likewise.
17294 (vst4_lane_s8): Likewise.
17295 (vst4_lane_s16): Likewise.
17296 (vst4_lane_s32): Likewise.
17297 (vst4_lane_s64): Likewise.
17298 (vst4_lane_u8): Likewise.
17299 (vst4_lane_u16): Likewise.
17300 (vst4_lane_u32): Likewise.
17301 (vst4_lane_u64): Likewise.
17302 (vst4_lane_bf16): Likewise.
17303 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
17304 structure instead of using a union.
17305 (vst4q_lane_f32): Likewise.
17306 (vst4q_lane_f64): Likewise.
17307 (vst4q_lane_p8): Likewise.
17308 (vst4q_lane_p16): Likewise.
17309 (vst4q_lane_p64): Likewise.
17310 (vst4q_lane_s8): Likewise.
17311 (vst4q_lane_s16): Likewise.
17312 (vst4q_lane_s32): Likewise.
17313 (vst4q_lane_s64): Likewise.
17314 (vst4q_lane_u8): Likewise.
17315 (vst4q_lane_u16): Likewise.
17316 (vst4q_lane_u32): Likewise.
17317 (vst4q_lane_u64): Likewise.
17318 (vst4q_lane_bf16): Likewise.
17319
17320 2021-08-06 Martin Liska <mliska@suse.cz>
17321
17322 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
17323 a target option is restored, it can have
17324 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
17325 and error should not be emitted.
17326
17327 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
17328
17329 * gcov-io.h (gcov_write): Declare.
17330 * gcov-io.c (gcov_write): New.
17331 (gcov_write_counter): Remove.
17332 (gcov_write_tag_length): Likewise.
17333 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
17334 gcov_write_unsigned().
17335 * doc/invoke.texi (fprofile-info-section): Mention
17336 __gcov_info_to_gdca().
17337
17338 2021-08-06 Martin Sebor <msebor@redhat.com>
17339
17340 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
17341 arguments to by-reference.
17342 (iterate_fix_dominators): Same.
17343 * dominance.h (iterate_fix_dominators): Same.
17344 * ipa-prop.h: Call auto_vec::to_vec_legacy.
17345 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
17346 arguments to by-reference.
17347 (debug_data_dependence_relation): Same.
17348 (dump_data_dependence_relations): Same.
17349 * tree-data-ref.h (debug_data_dependence_relation): Same.
17350 (dump_data_dependence_relations): Same.
17351 * tree-predcom.c (dump_chains): Same.
17352 (initialize_root_vars_lm): Same.
17353 (determine_unroll_factor): Same.
17354 (replace_phis_by_defined_names): Same.
17355 (insert_init_seqs): Same.
17356 (pcom_worker::tree_predictive_commoning_loop): Call
17357 auto_vec::to_vec_legacy.
17358 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
17359 arguments to by-reference.
17360 * tree-ssa-threadbackward.c (populate_worklist): Same.
17361 (back_threader::resolve_def): Same.
17362 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
17363 (vect_enhance_data_refs_alignment): Same.
17364 (vect_check_lower_bound): Same.
17365 (vect_prune_runtime_alias_test_list): Same.
17366 (vect_permute_store_chain): Same.
17367 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
17368 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
17369 * tree-vectorizer.h (vect_permute_store_chain): Same.
17370 * vec.c (test_init): New function.
17371 (vec_c_tests): Call new function.
17372 * vec.h (vec): Declare ctors, dtor, and assignment.
17373 (auto_vec::vec_to_legacy): New function.
17374 (vec::copy): Adjust initialization.
17375
17376 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
17377
17378 PR target/99744
17379 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
17380 callee only uses GPRs.
17381 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
17382 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
17383 * config/i386/x86gprintrin.h: Add
17384 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
17385 to disable non-GPR ISAs.
17386
17387 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
17388
17389 PR middle-end/101787
17390 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
17391
17392 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
17393
17394 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
17395 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
17396 (vect_is_extending_load, vect_is_integer_truncation): New functions,
17397 moved from aarch64.c but given different names.
17398 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
17399 (aarch64_is_reduction, aarch64_reduc_type)
17400 (aarch64_embedded_comparison_type, aarch64_comparison_type)
17401 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
17402 in favor of the above. Update callers accordingly.
17403
17404 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
17405
17406 PR target/101723
17407 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
17408 writing .cpu directive in asm output.
17409 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
17410 (arm_last_printed_arch_string): Delete.
17411 (arm_last-printed_fpu_string): Delete.
17412 (arm_configure_build_target): If use of floating-point/SIMD is
17413 disabled, remove all fp/simd related features from the target ISA.
17414 (last_arm_targ_options): New variable.
17415 (arm_print_asm_arch_directives): Add new parameters. Change order
17416 of emitted directives and handle all cases here.
17417 (arm_file_start): Always call arm_print_asm_arch_directives, move
17418 all generation of .arch/.arch_extension here.
17419 (arm_file_end): Call arm_print_asm_arch.
17420 (arm_declare_function_name): Call arm_print_asm_arch_directives
17421 instead of printing .arch/.fpu directives directly.
17422
17423 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
17424
17425 * config/arm/arm.c (arm_configure_build_target): Don't call
17426 arm_option_reconfigure_globals.
17427 (arm_option_restore): Call arm_option_reconfigure_globals after
17428 reconfiguring the target.
17429 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
17430
17431 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
17432
17433 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
17434 arch_name is always set.
17435
17436 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
17437
17438 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
17439 of vec_select high-half from being added into Neon subtract
17440 cost.
17441
17442 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
17443
17444 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
17445 of vec_select high-half from being added into Neon add cost.
17446
17447 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
17448
17449 * cfgloop.h (loops_list::loops_list): Add one optional argument
17450 root and adjust accordingly, update loop tree walking and factor
17451 out to ...
17452 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
17453
17454 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
17455
17456 PR tree-optimization/101626
17457 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
17458 reverse scalar storage order on a pointer or vector component.
17459
17460 2021-08-05 liuhongt <hongtao.liu@intel.com>
17461
17462 * config/i386/sse.md (cond_<code><mode>): New expander.
17463
17464 2021-08-05 liuhongt <hongtao.liu@intel.com>
17465
17466 * config/i386/sse.md (cond_<code><mode>): New expander.
17467
17468 2021-08-05 liuhongt <hongtao.liu@intel.com>
17469
17470 * config/i386/sse.md (cond_<code><mode>): New expander.
17471
17472 2021-08-04 David Malcolm <dmalcolm@redhat.com>
17473
17474 PR analyzer/101570
17475 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
17476
17477 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
17478
17479 PR target/101742
17480 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
17481 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
17482
17483 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
17484
17485 PR target/101772
17486 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
17487 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
17488 data with SSE register from one memory location to another.
17489
17490 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
17491
17492 * config/s390/s390.c (expand_perm_with_vpdi): New function.
17493 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
17494 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
17495 parameterized expander.
17496 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
17497
17498 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
17499
17500 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
17501 (struct expand_vec_perm_d): Define struct.
17502 (expand_perm_with_merge): New function.
17503 (vectorize_vec_perm_const_1): New function.
17504 (s390_vectorize_vec_perm_const): New function.
17505 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
17506
17507 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
17508
17509 * config/s390/vector.md (V_HW_64): Remove mode iterator.
17510 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
17511 * config/s390/vx-builtins.md
17512 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
17513 V_HW_64.
17514
17515 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
17516
17517 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
17518 definition.
17519 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
17520 definitions.
17521 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
17522 instead of an unspec.
17523
17524 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
17525
17526 * config/s390/s390-modes.def: Add more vector modes to support
17527 concatenation of two vectors.
17528 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
17529 prototype.
17530 (s390_expand_merge): Likewise.
17531 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
17532 (s390_expand_merge): New function.
17533 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
17534 Remove constant definitions.
17535 * config/s390/vector.md (V_HW_2): Add mode iterators.
17536 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
17537 (vec_2x_nelts, vec_2x_wide): New mode attributes.
17538 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
17539 New pattern definitions.
17540 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
17541 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
17542 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
17543 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
17544 vec merge.
17545 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
17546 in vector.md.
17547 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
17548 emit vec merge pattern.
17549
17550 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
17551
17552 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
17553 Define.
17554 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
17555 vec_select high-half from being added into Neon multiply
17556 cost.
17557 * rtlanal.c (vec_series_highpart_p): Define.
17558 * rtlanal.h (vec_series_highpart_p): Declare.
17559
17560 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
17561
17562 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
17563 Define.
17564 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
17565 vec_select cost from being added into Neon multiply cost.
17566
17567 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
17568
17569 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
17570 which old_loop_vinfo is an epilogue loop that handles a constant
17571 number of iterations.
17572
17573 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
17574
17575 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
17576 when a reanalyzed loop fails to be cheaper than the current
17577 main loop.
17578
17579 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
17580
17581 * config/aarch64/aarch64.c: Fix a typo.
17582
17583 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
17584
17585 PR gcov-profile/101773
17586 * gcov-io.c (gcov_close): Check return code of a fclose.
17587
17588 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
17589
17590 PR ada/101575
17591 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
17592 .file statement when needed.
17593
17594 2021-08-04 Richard Biener <rguenther@suse.de>
17595
17596 * tree-vect-data-refs.c (vect_check_gather_scatter):
17597 Include widening conversions only when the result is
17598 still handed by native gather or the current offset
17599 size not already matches the data size.
17600 Also succeed analysis in case there's no native support,
17601 noted by a IFN_LAST ifn and a NULL decl.
17602 (vect_analyze_data_refs): Always consider gathers.
17603 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
17604 Test for no IFN gather rather than decl gather.
17605 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
17606 gather-scatter info and cost emulated gathers accordingly.
17607 (vect_truncate_gather_scatter_offset): Properly test for
17608 no IFN gather.
17609 (vect_use_strided_gather_scatters_p): Likewise.
17610 (get_load_store_type): Handle emulated gathers and its
17611 restrictions.
17612 (vectorizable_load): Likewise. Emulate them by extracting
17613 scalar offsets, doing scalar loads and a vector construct.
17614
17615 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
17616
17617 PR target/101742
17618 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
17619 argument to set m_max_size.
17620 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
17621 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
17622 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
17623
17624 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
17625 Marc Glisse <marc.glisse@inria.fr>
17626
17627 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
17628 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
17629 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
17630
17631 2021-08-04 Richard Biener <rguenther@suse.de>
17632
17633 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
17634 out code to decompose vector loads ...
17635 (optimize_vector_load): ... here. Generalize it to
17636 handle intermediate widening and TARGET_MEM_REF loads
17637 and apply it to loads with a supported vector mode as well.
17638
17639 2021-08-04 Richard Biener <rguenther@suse.de>
17640
17641 PR tree-optimization/101756
17642 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
17643 the result of the reduction epilogue is compatible to the original
17644 scalar result.
17645
17646 2021-08-04 liuhongt <hongtao.liu@intel.com>
17647
17648 PR target/101743
17649 * config/i386/i386.md (peephole2): Refine predicate from
17650 register_operand to general_reg_operand.
17651
17652 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
17653
17654 * gimple-range-path.h (path_range_query::dump): Mark override.
17655
17656 2021-08-04 Richard Biener <rguenther@suse.de>
17657
17658 PR tree-optimization/101769
17659 * tree-tailcall.c (eliminate_tail_call): Add the created loop
17660 for the first recursion and return it via the new output parameter.
17661 (optimize_tail_call): Pass through new output param.
17662 (tree_optimize_tail_calls_1): After creating all latches,
17663 add the created loop to the loop tree. Do not mark loops for fixup.
17664
17665 2021-08-04 Martin Liska <mliska@suse.cz>
17666
17667 * doc/invoke.texi: Document threader-mode param.
17668
17669 2021-08-04 liuhongt <hongtao.liu@intel.com>
17670
17671 * config/i386/sse.md (cond_fma<mode>): New expander.
17672 (cond_fms<mode>): Ditto.
17673 (cond_fnma<mode>): Ditto.
17674 (cond_fnms<mode>): Ditto.
17675
17676 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17677
17678 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
17679
17680 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17681
17682 * config/rs6000/constraints.md: Remove "e" from the list of available
17683 constraint characters.
17684
17685 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
17686
17687 PR gcov-profile/71672
17688 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
17689
17690 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
17691
17692 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
17693
17694 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
17695
17696 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
17697 try XMM31 to avoid vzeroupper.
17698
17699 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17700
17701 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
17702 -mcpu=neoverse-512tvb.
17703 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
17704 * config/aarch64/aarch64-tune.md: Regenerate.
17705 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
17706 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
17707 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
17708 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
17709 (aarch64_adjust_body_cost): Likewise.
17710
17711 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17712
17713 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
17714 record issue information for operations that occur in the
17715 innermost loop.
17716
17717 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17718
17719 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
17720 parameter. Detect cases in which an Advanced SIMD MLA would almost
17721 certainly require a MOV.
17722 (aarch64_count_ops): Update accordingly.
17723
17724 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17725
17726 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
17727 function, split out from...
17728 (aarch64_detect_vector_stmt_subtype): ...here.
17729 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
17730
17731 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17732
17733 * config/aarch64/aarch64-protos.h (sve_vec_cost):
17734 Add gather_load_x32_cost and gather_load_x64_cost.
17735 * config/aarch64/aarch64.c (generic_sve_vector_cost)
17736 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
17737 accordingly, using the values given by the scalar_load * number
17738 of elements calculation that we used previously.
17739 (aarch64_detect_vector_stmt_subtype): Use the new fields.
17740
17741 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17742
17743 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
17744 function, split out from...
17745 (aarch64_adjust_body_cost): ...here.
17746
17747 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17748
17749 * config/aarch64/fractional-cost.h: New file.
17750 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
17751 and cost_fraction.h.
17752 (vec_cost_fraction): New typedef.
17753 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
17754 (aarch64_detect_vector_stmt_subtype): Likewise.
17755 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
17756 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
17757 for cycle counts.
17758 (aarch64_adjust_body_cost): Likewise.
17759 (aarch64_test_cost_fraction): New function.
17760 (aarch64_run_selftests): Call it.
17761
17762 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
17763
17764 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
17765 into a bitmask.
17766 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
17767 accordingly.
17768 (aarch64_estimated_poly_value): Likewise. Use the least significant
17769 set bit for the minimum and likely values. Use the most significant
17770 set bit for the maximum value.
17771
17772 2021-08-03 liuhongt <hongtao.liu@intel.com>
17773
17774 * config/i386/sse.md (cond_<insn><mode>): New expander.
17775 (cond_mul<mode>): Ditto.
17776
17777 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
17778
17779 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
17780
17781 2021-08-03 liuhongt <hongtao.liu@intel.com>
17782
17783 * config/i386/sse.md (cond_<insn><mode>):New expander.
17784 (cond_mul<mode>): Ditto.
17785 (cond_div<mode>): Ditto.
17786
17787 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
17788
17789 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
17790 check stack_realign_needed for stack realignment.
17791 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
17792 than the largest integer supported by vector register.
17793 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
17794 (MOVE_MAX): Set to bytes of the largest integer supported by
17795 vector register.
17796 (STORE_MAX_PIECES): New.
17797
17798 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
17799
17800 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
17801 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
17802 data from one memory location to another.
17803
17804 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
17805
17806 PR middle-end/90773
17807 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
17808
17809 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
17810
17811 PR tree-optimization/101724
17812 * params.opt: Remove --param=threader-iterative.
17813 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
17814 iterative mode.
17815
17816 2021-08-02 Tom de Vries <tdevries@suse.de>
17817
17818 PR middle-end/101665
17819 * doc/extend.texi (nonnull attribute): Improve documentation.
17820
17821 2021-08-02 Andrew Pinski <apinski@marvell.com>
17822
17823 PR rtl-optimization/101683
17824 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
17825
17826 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
17827
17828 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
17829 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
17830 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
17831 (tree_ssa_phiop_worker): Update call to function above.
17832
17833 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
17834
17835 PR target/78103
17836 * config/i386/i386.md (bsr_rex64_1_zext): New.
17837 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
17838 with gen_bsr_rex64_1_zext.
17839
17840 2021-07-31 Jakub Jelinek <jakub@redhat.com>
17841
17842 PR target/78103
17843 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
17844 define_insn patterns.
17845 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
17846 Add combine splitters for constant - clz.
17847 (clz<mode>2): Use a temporary pseudo for bsr result.
17848
17849 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17850
17851 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
17852 _mm_floor_sd, _mm_floor_ss): New.
17853
17854 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17855
17856 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
17857 _mm_ceil_sd, _mm_ceil_ss): New.
17858
17859 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17860
17861 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
17862 _mm_blend_ps, _mm_blendv_ps): New.
17863
17864 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
17865 Uroš Bizjak <ubizjak@gmail.com>
17866
17867 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
17868 to generate a conditional move using the carry flag after sub $1.
17869 (peephole2): Eliminate a register-to-register move by inverting
17870 the condition of a conditional move.
17871
17872 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
17873
17874 * config/mmix/mmix.md ("call", "call_value", "*call_real")
17875 ("*call_value_real"): Don't generate rtx mentioning the generic
17876 operands 1 and 2 to "call", and similarly for "call_value".
17877 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
17878 (mmix_print_operand): Use '!' instead of 'p'.
17879
17880 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
17881
17882 * doc/md.texi (call): Correct information about operand 2.
17883 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
17884
17885 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17886
17887 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
17888
17889 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17890
17891 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
17892
17893 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17894
17895 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
17896 const_basic_block..
17897 (*::get_bb_range): Ditto.
17898 (*::bb_range_p): Ditto.
17899 * gimple-range-cache.h: Change prototypes.
17900
17901 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
17902
17903 PR middle-end/90773
17904 * builtins.c (builtin_memcpy_read_str): Change the mode argument
17905 from scalar_int_mode to fixed_size_mode.
17906 (builtin_strncpy_read_str): Likewise.
17907 (gen_memset_value_from_prev): New function.
17908 (builtin_memset_read_str): Change the mode argument from
17909 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
17910 and support CONST_VECTOR.
17911 (builtin_memset_gen_str): Likewise.
17912 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
17913 constfun.
17914 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
17915 with fixed_size_mode.
17916 (builtin_memset_read_str): Likewise.
17917 * expr.c (widest_int_mode_for_size): Renamed to ...
17918 (widest_fixed_size_mode_for_size): Add a bool argument to
17919 indicate if QI vector mode can be used.
17920 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
17921 instead of widest_int_mode_for_size.
17922 (pieces_addr::adjust): Change the mode argument from
17923 scalar_int_mode to fixed_size_mode.
17924 (op_by_pieces_d): Make m_len read-only. Add a bool member,
17925 m_qi_vector_mode, to indicate that QI vector mode can be used.
17926 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
17927 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
17928 instead of widest_int_mode_for_size.
17929 (op_by_pieces_d::get_usable_mode): Change the mode argument from
17930 scalar_int_mode to fixed_size_mode. Call
17931 widest_fixed_size_mode_for_size instead of
17932 widest_int_mode_for_size.
17933 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
17934 function to return the smallest integer or QI vector mode.
17935 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
17936 instead of widest_int_mode_for_size. Call
17937 smallest_fixed_size_mode_for_size instead of
17938 smallest_int_mode_for_size.
17939 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
17940 indicate that QI vector mode can be used and pass it to
17941 op_by_pieces_d::op_by_pieces_d.
17942 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
17943 instead of widest_int_mode_for_size. Pass memsetp to
17944 widest_fixed_size_mode_for_size to support QI vector mode.
17945 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
17946 (store_by_pieces): Pass memsetp to
17947 store_by_pieces_d::store_by_pieces_d.
17948 (clear_by_pieces_1): Removed.
17949 (clear_by_pieces): Replace clear_by_pieces_1 with
17950 builtin_memset_read_str and pass true to store_by_pieces_d to
17951 support vector mode broadcast.
17952 (string_cst_read_str): Change the mode argument from
17953 scalar_int_mode to fixed_size_mode.
17954 * expr.h (by_pieces_constfn): Change scalar_int_mode to
17955 fixed_size_mode.
17956 (by_pieces_prev): Likewise.
17957 * rtl.h (lowpart_subreg_regno): New.
17958 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
17959 simplify_subreg_regno.
17960 * target.def (gen_memset_scratch_rtx): New hook.
17961 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
17962 * doc/tm.texi: Regenerated.
17963
17964 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
17965
17966 PR target/94780
17967 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
17968 TARGET_EXPR instead of MODIFY_EXPR.
17969
17970 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
17971
17972 PR target/101132
17973 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
17974 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
17975 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
17976 expander.
17977 (vec_cmpu<IMSA:mode><mode_i>): New expander.
17978
17979 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
17980
17981 PR target/101685
17982 * config/i386/i386-options.c (ix86_option_override_internal):
17983 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
17984
17985 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
17986
17987 PR target/66791
17988 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
17989 explicitly dereferencing __a.
17990 (vld1_s64): Likewise.
17991 (vld1_u64): Likewise.
17992 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
17993 and change to VAR13.
17994
17995 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
17996
17997 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
17998 use of m_range_analyzer.
17999 (loop_versioning::lv_dom_walker::before_dom_children): Same.
18000 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
18001 (loop_versioning::prune_loop_conditions): Replace vr_values use
18002 with range_query interface.
18003 (pass_loop_versioning::execute): Use ranger.
18004
18005 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
18006
18007 PR ipa/101396
18008 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
18009 enum values, and emit a warning if they mismatch.
18010
18011 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
18012
18013 * cfgloop.h (as_const): New function.
18014 (class loop_iterator): Rename to ...
18015 (class loops_list): ... this.
18016 (loop_iterator::next): Rename to ...
18017 (loops_list::Iter::fill_curr_loop): ... this and adjust.
18018 (loop_iterator::loop_iterator): Rename to ...
18019 (loops_list::loops_list): ... this and adjust.
18020 (loops_list::Iter): New class.
18021 (loops_list::iterator): New type.
18022 (loops_list::const_iterator): New type.
18023 (loops_list::begin): New function.
18024 (loops_list::end): Likewise.
18025 (loops_list::begin const): Likewise.
18026 (loops_list::end const): Likewise.
18027 (FOR_EACH_LOOP): Remove.
18028 (FOR_EACH_LOOP_FN): Remove.
18029 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
18030 for loop with loops_list instance.
18031 (sort_sibling_loops): Likewise.
18032 (disambiguate_loops_with_multiple_latches): Likewise.
18033 (verify_loop_structure): Likewise.
18034 * cfgloopmanip.c (create_preheaders): Likewise.
18035 (force_single_succ_latches): Likewise.
18036 * config/aarch64/falkor-tag-collision-avoidance.c
18037 (execute_tag_collision_avoidance): Likewise.
18038 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
18039 * config/s390/s390.c (s390_adjust_loops): Likewise.
18040 * doc/loop.texi: Likewise.
18041 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
18042 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
18043 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
18044 (loop_versioning::make_versioning_decisions): Likewise.
18045 * gimple-ssa-split-paths.c (split_paths): Likewise.
18046 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
18047 * graphite.c (canonicalize_loop_form): Likewise.
18048 (graphite_transform_loops): Likewise.
18049 * ipa-fnsummary.c (analyze_function_body): Likewise.
18050 * ipa-pure-const.c (analyze_function): Likewise.
18051 * loop-doloop.c (doloop_optimize_loops): Likewise.
18052 * loop-init.c (loop_optimizer_finalize): Likewise.
18053 (fix_loop_structure): Likewise.
18054 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18055 (move_loop_invariants): Likewise.
18056 * loop-unroll.c (decide_unrolling): Likewise.
18057 (unroll_loops): Likewise.
18058 * modulo-sched.c (sms_schedule): Likewise.
18059 * predict.c (predict_loops): Likewise.
18060 (pass_profile::execute): Likewise.
18061 * profile.c (branch_prob): Likewise.
18062 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
18063 (sel_find_rgns): Likewise.
18064 * tree-cfg.c (replace_loop_annotate): Likewise.
18065 (replace_uses_by): Likewise.
18066 (move_sese_region_to_fn): Likewise.
18067 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
18068 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
18069 * tree-parloops.c (parallelize_loops): Likewise.
18070 * tree-predcom.c (tree_predictive_commoning): Likewise.
18071 * tree-scalar-evolution.c (scev_initialize): Likewise.
18072 (scev_reset): Likewise.
18073 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
18074 * tree-ssa-live.c (remove_unused_locals): Likewise.
18075 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
18076 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
18077 (tree_ssa_lim_initialize): Likewise.
18078 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
18079 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
18080 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
18081 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
18082 (free_numbers_of_iterations_estimates): Likewise.
18083 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
18084 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
18085 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
18086 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
18087 (pass_scev_cprop::execute): Likewise.
18088 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
18089 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
18090 * tree-ssa-threadupdate.c
18091 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
18092 * tree-vectorizer.c (vectorize_loops): Likewise.
18093 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
18094
18095 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
18096
18097 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
18098 generating a VOIDmode register for e.g the
18099 function_arg_info::end_marker.
18100
18101 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
18102
18103 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
18104 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
18105 (cc mode_attr): Similarly.
18106 (ccz subst_attr): Similarly.
18107 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
18108 * config/h8300/testcompare.md: Remove various cc0 based patterns
18109 that had been commented out. Add pattern to set CCZ from a bit
18110 test.
18111
18112 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
18113 Julian Brown <julian@codesourcery.com>
18114 Kwok Cheung Yeung <kcy@codesourcery.com>
18115
18116 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
18117 'update_stmt' after modification.
18118 (pass_oacc_loop_designation): New function, extracted out of...
18119 (pass_oacc_device_lower): ... this.
18120 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
18121 (make_pass_oacc_loop_designation): New
18122 * passes.def: Add it.
18123 * tree-parloops.c (create_parallel_loop): Adjust.
18124 * tree-pass.h (make_pass_oacc_loop_designation): New.
18125
18126 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
18127
18128 * flag-types.h (enum threader_mode): New.
18129 * params.opt: Add entry for --param=threader-mode.
18130 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
18131 (class back_threader): New.
18132 (back_threader::back_threader): New.
18133 (back_threader::~back_threader): New.
18134 (back_threader::maybe_register_path): New.
18135 (back_threader::find_taken_edge): New.
18136 (back_threader::find_taken_edge_switch): New.
18137 (back_threader::find_taken_edge_cond): New.
18138 (back_threader::resolve_def): New.
18139 (back_threader::resolve_phi): New.
18140 (back_threader::find_paths_to_names): New.
18141 (back_threader::find_paths): New.
18142 (dump_path): New.
18143 (debug): New.
18144 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
18145 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
18146 (pass_thread_jumps::execute): Abstract out code...
18147 (try_thread_blocks): ...here.
18148 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
18149 Abstract out threading candidate code to...
18150 (single_succ_to_potentially_threadable_block): ...here.
18151 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
18152 New.
18153 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
18154 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
18155 Return bool from register_jump_thread.
18156
18157 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
18158
18159 * target.def: in0 and in1 do not need to be registers.
18160 * doc/tm.texi: Regenerate.
18161
18162 2021-07-29 liuhongt <hongtao.liu@intel.com>
18163
18164 PR target/39821
18165 * config/i386/i386.c (ix86_widen_mult_cost): New function.
18166 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
18167 WIDEN_MULT_EXPR.
18168
18169 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
18170
18171 PR target/61837
18172 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
18173 (rs6000_preferred_doloop_mode): New hook.
18174 * doc/tm.texi: Regenerate.
18175 * doc/tm.texi.in: Add hook preferred_doloop_mode.
18176 * target.def (preferred_doloop_mode): New hook.
18177 * targhooks.c (default_preferred_doloop_mode): New hook.
18178 * targhooks.h (default_preferred_doloop_mode): New hook.
18179 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
18180 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
18181 and compute_doloop_base_on_mode.
18182
18183 2021-07-28 Martin Sebor <msebor@redhat.com>
18184
18185 PR middle-end/101494
18186 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
18187 and size computation.
18188
18189 2021-07-28 Martin Sebor <msebor@redhat.com>
18190
18191 PR middle-end/101601
18192 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
18193 a pointless test.
18194 Handle pointers to functions.
18195
18196 2021-07-28 Martin Sebor <msebor@redhat.com>
18197
18198 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
18199 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
18200 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
18201 (access_ref::access_ref): Same.
18202 (access_ref::phi): Same.
18203 (access_ref::get_ref): Same.
18204 (access_ref::size_remaining): Same.
18205 (access_ref::offset_in_range): Same.
18206 (access_ref::add_offset): Same.
18207 (access_ref::inform_access): Same.
18208 (ssa_name_limit_t::visit_phi): Same.
18209 (ssa_name_limit_t::leave_phi): Same.
18210 (ssa_name_limit_t::next): Same.
18211 (ssa_name_limit_t::next_phi): Same.
18212 (ssa_name_limit_t::~ssa_name_limit_t): Same.
18213 (pointer_query::pointer_query): Same.
18214 (pointer_query::get_ref): Same.
18215 (pointer_query::put_ref): Same.
18216 (pointer_query::flush_cache): Same.
18217 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
18218 (check_nul_terminated_array): Same.
18219 (unterminated_array): Same.
18220 (maybe_warn_for_bound): Same.
18221 (check_read_access): Same.
18222 (warn_for_access): Same.
18223 (get_size_range): Same.
18224 (check_access): Same.
18225 (gimple_call_alloc_size): Move to tree.c.
18226 (gimple_parm_array_size): Move to pointer-query.cc.
18227 (get_offset_range): Same.
18228 (gimple_call_return_array): Same.
18229 (handle_min_max_size): Same.
18230 (handle_array_ref): Same.
18231 (handle_mem_ref): Same.
18232 (compute_objsize): Same.
18233 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
18234 (call_dealloc_argno): Same.
18235 (fndecl_dealloc_argno): Same.
18236 (new_delete_mismatch_p): Same.
18237 (matching_alloc_calls_p): Same.
18238 (warn_dealloc_offset): Same.
18239 (maybe_emit_free_warning): Same.
18240 * builtins.h (check_nul_terminated_array): Move to
18241 gimple-ssa-warn-access.h.
18242 (check_nul_terminated_array): Same.
18243 (warn_string_no_nul): Same.
18244 (unterminated_array): Same.
18245 (class ssa_name_limit_t): Same.
18246 (class pointer_query): Same.
18247 (struct access_ref): Same.
18248 (class range_query): Same.
18249 (struct access_data): Same.
18250 (gimple_call_alloc_size): Same.
18251 (gimple_parm_array_size): Same.
18252 (compute_objsize): Same.
18253 (class access_data): Same.
18254 (maybe_emit_free_warning): Same.
18255 * calls.c (initialize_argument_information): Remove call to
18256 maybe_emit_free_warning.
18257 * gimple-array-bounds.cc: Include new header..
18258 * gimple-fold.c: Same.
18259 * gimple-ssa-sprintf.c: Same.
18260 * gimple-ssa-warn-restrict.c: Same.
18261 * passes.def: Add pass_warn_access.
18262 * tree-pass.h (make_pass_warn_access): Declare.
18263 * tree-ssa-strlen.c: Include new headers.
18264 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
18265 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
18266 * gimple-ssa-warn-access.cc: New file.
18267 * gimple-ssa-warn-access.h: New file.
18268 * pointer-query.cc: New file.
18269 * pointer-query.h: New file.
18270
18271 2021-07-28 Jakub Jelinek <jakub@redhat.com>
18272
18273 PR middle-end/101624
18274 * ubsan.c (maybe_instrument_pointer_overflow,
18275 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
18276 PARM_DECLs or RESULT_DECLs.
18277 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
18278
18279 2021-07-28 Jakub Jelinek <jakub@redhat.com>
18280
18281 PR middle-end/101642
18282 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
18283 to type of bswap16 for comparison.
18284 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
18285
18286 2021-07-28 Richard Biener <rguenther@suse.de>
18287
18288 PR tree-optimization/101615
18289 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
18290 at CTOR SLP graph entries.
18291
18292 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18293
18294 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
18295 Add "r,w" alternative.
18296
18297 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
18298
18299 PR target/101456
18300 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
18301 AVX_U128_DIRTY when all bits are zero.
18302
18303 2021-07-28 Richard Biener <rguenther@suse.de>
18304
18305 PR tree-optimization/101615
18306 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
18307 external nodes cannot be permuted so make them perm_out 0.
18308
18309 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
18310
18311 PR target/100208
18312 * config.in: Regenerate.
18313 * config/gcn/gcn-hsa.h (A_FIJI): New define.
18314 (A_900): New define.
18315 (A_906): New define.
18316 (A_908): New define.
18317 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
18318 * config/gcn/gcn.c (output_file_start): Adjust attributes according
18319 to the assembler capabilities.
18320 * config/gcn/mkoffload.c (main): Likewise.
18321 * configure: Regenerate.
18322 * configure.ac: Add tests for LLVM assembler attribute features.
18323
18324 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
18325
18326 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
18327 cond_false and cond_true on branches.
18328
18329 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
18330
18331 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
18332 gcc_stablesort.
18333
18334 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
18335
18336 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
18337
18338 2021-07-28 Jakub Jelinek <jakub@redhat.com>
18339
18340 PR target/101611
18341 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
18342 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
18343 and has special !TARGET_AVX512VL expansion.
18344 (vashrv2di3<mask_name>): Rename to ...
18345 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
18346 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
18347
18348 2021-07-28 Martin Uecker <muecker@gwdg.de>
18349
18350 * calls.c (maybe_warn_rdwr_sizes): Correct argument
18351 numbers in warning that were switched.
18352
18353 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
18354
18355 PR tree-optimization/101596
18356 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
18357 by using new_type's precision instead.
18358
18359 2021-07-28 liuhongt <hongtao.liu@intel.com>
18360
18361 PR target/99881
18362 * config/i386/i386.h (processor_costs): Add new member
18363 integer_to_sse.
18364 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
18365 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
18366 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
18367 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
18368 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
18369 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
18370 generic_cost, core_cost): Initialize integer_to_sse same value
18371 as sse_op.
18372 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
18373 * config/i386/i386.c (ix86_builtin_vectorization_cost):
18374 Use integer_to_sse instead of sse_op to calculate the cost of
18375 vec_construct.
18376
18377 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
18378
18379 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
18380 function.
18381 (write_init_file): Call write_ovld_static_init.
18382
18383 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
18384
18385 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
18386 function.
18387 (write_init_file): Call write_bif_static_init.
18388
18389 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
18390
18391 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
18392 (TYPE_MAP_SIZE): New macro.
18393 (type_map): New initialized variable.
18394 (typemap_cmp): New function.
18395 (write_type_node): Likewise.
18396 (write_fntype_init): Implement.
18397
18398 2021-07-27 Martin Sebor <msebor@redhat.com>
18399
18400 PR tree-optimization/101584
18401 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
18402 (check_defs): Call it.
18403
18404 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
18405
18406 * tree-ssa-dom.c (dom_jump_threader_simplifier):
18407 Put avail_exprs_stack in the class, instead of passing it to
18408 jump_threader_simplifier.
18409 (dom_jump_threader_simplifier::simplify): Add state argument.
18410 (dom_opt_dom_walker): Add state.
18411 (pass_dominator::execute): Pass state to threader.
18412 (dom_opt_dom_walker::before_dom_children): Use state.
18413 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
18414 arguments by state.
18415 (jump_threader::record_temporary_equivalences_from_phis):
18416 Register equivalences through the state variable.
18417 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
18418 Record ranges in a statement through the state variable.
18419 (jump_threader::simplify_control_stmt_condition): Pass state to
18420 simplify.
18421 (jump_threader::simplify_control_stmt_condition_1): Same.
18422 (jump_threader::thread_around_empty_blocks): Remove obsolete
18423 comment.
18424 (jump_threader::thread_through_normal_block): Record equivalences
18425 on edge through the state variable.
18426 (jump_threader::thread_across_edge): Abstract state pushing.
18427 (jt_state::jt_state): New.
18428 (jt_state::push): New.
18429 (jt_state::pop): New.
18430 (jt_state::register_equiv): New.
18431 (jt_state::record_ranges_from_stmt): New.
18432 (jt_state::register_equivs_on_edge): New.
18433 (jump_threader_simplifier::jump_threader_simplifier): Move from
18434 header.
18435 (jump_threader_simplifier::simplify): Add state argument.
18436 * tree-ssa-threadedge.h (class jt_state): New.
18437 (class jump_threader): Add state to constructor.
18438 (class jump_threader_simplifier): Add state to simplify. Remove
18439 avail_exprs_stack from class.
18440 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
18441 argument.
18442 (vrp_jump_threader::vrp_jump_threader): Add state.
18443 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
18444
18445 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
18446
18447 * Makefile.in (OBJS): Add gimple-range-path.o.
18448 * gimple-range-path.cc: New file.
18449 * gimple-range-path.h: New file.
18450
18451 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
18452
18453 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
18454 inside vec_duplicate for all patterns.
18455 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
18456 Push sign/zero-extension inside vec_duplicate.
18457
18458 2021-07-27 Richard Biener <rguenther@suse.de>
18459
18460 PR tree-optimization/101573
18461 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
18462 looking at uninitialized PHI arg defs in some constrained cases.
18463 (warn_uninitialized_vars): Call it.
18464 (execute_early_warn_uninitialized): Calculate dominators.
18465
18466 2021-07-27 Richard Biener <rguenther@suse.de>
18467
18468 PR tree-optimization/39821
18469 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
18470 vector_stmt for widening arithmetic.
18471 (vectorizable_conversion): Adjust.
18472
18473 2021-07-27 Martin Jambor <mjambor@suse.cz>
18474
18475 * cgraph.h (ipa_replace_map): New field force_load_ref.
18476 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
18477 aded new flag load_dereferenced, adjusted comments.
18478 (ipa_get_param_dereferenced): New function.
18479 (ipa_set_param_dereferenced): Likewise.
18480 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
18481 * ipa-cp.c: Include gimple.h.
18482 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
18483 (get_replacement_map): New parameter force_load_ref, set the
18484 appropriate flag in ipa_replace_map if set.
18485 (struct symbol_and_index_together): New type.
18486 (adjust_refs_in_act_callers): New function.
18487 (adjust_references_in_caller): Likewise.
18488 (create_specialized_node): When appropriate, call
18489 adjust_references_in_caller and force only load references.
18490 * ipa-prop.c (load_from_dereferenced_name): New function.
18491 (ipa_analyze_controlled_uses): Also detect loads from a
18492 dereference, harden testing of call statements.
18493 (ipa_write_node_info): Stream the dereferenced flag.
18494 (ipa_read_node_info): Likewise.
18495 (ipa_set_jf_constant): Also create refdesc when jump function
18496 references a variable.
18497 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
18498 also on references of variables and return a symtab_node. Adjust
18499 all callers.
18500 (propagate_controlled_uses): Also remove references to VAR_DECLs.
18501
18502 2021-07-27 Jakub Jelinek <jakub@redhat.com>
18503
18504 PR middle-end/101586
18505 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
18506 positions above or equal to sz except for diagnostics of flexible
18507 array members.
18508
18509 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
18510
18511 PR tree-optimization/78888
18512 * gimple-range-fold.cc (get_letter_range): New.
18513 (fold_using_range::range_of_builtin_call): Call get_letter_range.
18514
18515 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
18516
18517 PR tree-optimization/78888
18518 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
18519 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
18520
18521 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
18522 Marc Glisse <marc.glisse@inria.fr>
18523
18524 * match.pd (rotate): Simplify equality/inequality of rotations.
18525 (bswap): Simplify equality/inequality tests of byte swapping.
18526
18527 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
18528
18529 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
18530 New.
18531
18532 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
18533
18534 * range-op.cc (operator_lshift::fold_range): Pass rel to
18535 base class fold_range.
18536 (operator_rshift::fold_range): Same.
18537
18538 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
18539
18540 PR driver/101447
18541 * toplev.h (min_align_loops_log): Remove declaration.
18542 (min_align_jumps_log, min_align_labels_log): Likewise.
18543 (min_align_functions_log): Likewise.
18544
18545 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
18546
18547 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
18548 with range_query.
18549 (execute_vrp): Abstract out simplification of conditionals...
18550 (simplify_casted_conds): ...here.
18551
18552 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
18553
18554 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
18555 Add gimple argument.
18556 (array_bounds_checker::check_array_ref): Same.
18557 (array_bounds_checker::check_addr_expr): Same.
18558 (array_bounds_checker::check_array_bounds): Pass statement to
18559 check_array_bounds and check_addr_expr.
18560 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
18561 (check_addr_expr): Same.
18562 (get_value_range): Same.
18563
18564 2021-07-26 Tamar Christina <tamar.christina@arm.com>
18565
18566 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
18567 (sdot_prod, udot_prod): ... This.
18568 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
18569 into...
18570 (<sur>dot_prod<vsi2qi>): ... this.
18571 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
18572 Change operands order.
18573 (<sur>sadv16qi): Use new operands order.
18574 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
18575 vdotq_s32): Use new RTL ordering.
18576
18577 2021-07-26 Tamar Christina <tamar.christina@arm.com>
18578
18579 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
18580 aarch64_types_ternop_suss_qualifiers): New.
18581 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
18582 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
18583 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
18584
18585 2021-07-23 Jakub Jelinek <jakub@redhat.com>
18586
18587 PR rtl-optimization/101562
18588 * expmed.c (store_integral_bit_field): Only use movstrict_optab
18589 if the operand isn't paradoxical.
18590
18591 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
18592
18593 * gimple-array-bounds.h (class array_bounds_checker): Change
18594 ranges type to range_query.
18595
18596 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18597
18598 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
18599 __builtin_memcpy instead of constructing
18600 __builtin_aarch64_simd_oi one vector at a time.
18601 (vst1_u64_x2): Likewise.
18602 (vst1_f64_x2): Likewise.
18603 (vst1_s8_x2): Likewise.
18604 (vst1_p8_x2): Likewise.
18605 (vst1_s16_x2): Likewise.
18606 (vst1_p16_x2): Likewise.
18607 (vst1_s32_x2): Likewise.
18608 (vst1_u8_x2): Likewise.
18609 (vst1_u16_x2): Likewise.
18610 (vst1_u32_x2): Likewise.
18611 (vst1_f16_x2): Likewise.
18612 (vst1_f32_x2): Likewise.
18613 (vst1_p64_x2): Likewise.
18614 (vst1q_s8_x2): Likewise.
18615 (vst1q_p8_x2): Likewise.
18616 (vst1q_s16_x2): Likewise.
18617 (vst1q_p16_x2): Likewise.
18618 (vst1q_s32_x2): Likewise.
18619 (vst1q_s64_x2): Likewise.
18620 (vst1q_u8_x2): Likewise.
18621 (vst1q_u16_x2): Likewise.
18622 (vst1q_u32_x2): Likewise.
18623 (vst1q_u64_x2): Likewise.
18624 (vst1q_f16_x2): Likewise.
18625 (vst1q_f32_x2): Likewise.
18626 (vst1q_f64_x2): Likewise.
18627 (vst1q_p64_x2): Likewise.
18628
18629 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18630
18631 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
18632 __builtin_memcpy instead of constructing
18633 __builtin_aarch64_simd_ci one vector at a time.
18634 (vst1_u64_x3): Likewise.
18635 (vst1_f64_x3): Likewise.
18636 (vst1_s8_x3): Likewise.
18637 (vst1_p8_x3): Likewise.
18638 (vst1_s16_x3): Likewise.
18639 (vst1_p16_x3): Likewise.
18640 (vst1_s32_x3): Likewise.
18641 (vst1_u8_x3): Likewise.
18642 (vst1_u16_x3): Likewise.
18643 (vst1_u32_x3): Likewise.
18644 (vst1_f16_x3): Likewise.
18645 (vst1_f32_x3): Likewise.
18646 (vst1_p64_x3): Likewise.
18647 (vst1q_s8_x3): Likewise.
18648 (vst1q_p8_x3): Likewise.
18649 (vst1q_s16_x3): Likewise.
18650 (vst1q_p16_x3): Likewise.
18651 (vst1q_s32_x3): Likewise.
18652 (vst1q_s64_x3): Likewise.
18653 (vst1q_u8_x3): Likewise.
18654 (vst1q_u16_x3): Likewise.
18655 (vst1q_u32_x3): Likewise.
18656 (vst1q_u64_x3): Likewise.
18657 (vst1q_f16_x3): Likewise.
18658 (vst1q_f32_x3): Likewise.
18659 (vst1q_f64_x3): Likewise.
18660 (vst1q_p64_x3): Likewise.
18661
18662 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
18663
18664 PR target/101504
18665 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
18666 hard register when LRA is in progress.
18667
18668 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18669
18670 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
18671 __builtin_memcpy instead of using a union.
18672 (vst1q_s8_x4): Likewise.
18673 (vst1_s16_x4): Likewise.
18674 (vst1q_s16_x4): Likewise.
18675 (vst1_s32_x4): Likewise.
18676 (vst1q_s32_x4): Likewise.
18677 (vst1_u8_x4): Likewise.
18678 (vst1q_u8_x4): Likewise.
18679 (vst1_u16_x4): Likewise.
18680 (vst1q_u16_x4): Likewise.
18681 (vst1_u32_x4): Likewise.
18682 (vst1q_u32_x4): Likewise.
18683 (vst1_f16_x4): Likewise.
18684 (vst1q_f16_x4): Likewise.
18685 (vst1_f32_x4): Likewise.
18686 (vst1q_f32_x4): Likewise.
18687 (vst1_p8_x4): Likewise.
18688 (vst1q_p8_x4): Likewise.
18689 (vst1_p16_x4): Likewise.
18690 (vst1q_p16_x4): Likewise.
18691 (vst1_s64_x4): Likewise.
18692 (vst1_u64_x4): Likewise.
18693 (vst1_p64_x4): Likewise.
18694 (vst1q_s64_x4): Likewise.
18695 (vst1q_u64_x4): Likewise.
18696 (vst1q_p64_x4): Likewise.
18697 (vst1_f64_x4): Likewise.
18698 (vst1q_f64_x4): Likewise.
18699
18700 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
18701
18702 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
18703 instead of constructing __builtin_aarch64_simd_oi one vector
18704 at a time.
18705 (vst2_u64): Likewise.
18706 (vst2_f64): Likewise.
18707 (vst2_s8): Likewise.
18708 (vst2_p8): Likewise.
18709 (vst2_s16): Likewise.
18710 (vst2_p16): Likewise.
18711 (vst2_s32): Likewise.
18712 (vst2_u8): Likewise.
18713 (vst2_u16): Likewise.
18714 (vst2_u32): Likewise.
18715 (vst2_f16): Likewise.
18716 (vst2_f32): Likewise.
18717 (vst2_p64): Likewise.
18718 (vst2q_s8): Likewise.
18719 (vst2q_p8): Likewise.
18720 (vst2q_s16): Likewise.
18721 (vst2q_p16): Likewise.
18722 (vst2q_s32): Likewise.
18723 (vst2q_s64): Likewise.
18724 (vst2q_u8): Likewise.
18725 (vst2q_u16): Likewise.
18726 (vst2q_u32): Likewise.
18727 (vst2q_u64): Likewise.
18728 (vst2q_f16): Likewise.
18729 (vst2q_f32): Likewise.
18730 (vst2q_f64): Likewise.
18731 (vst2q_p64): Likewise.
18732
18733 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18734
18735 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
18736 instead of constructing __builtin_aarch64_simd_ci one vector
18737 at a time.
18738 (vst3_u64): Likewise.
18739 (vst3_f64): Likewise.
18740 (vst3_s8): Likewise.
18741 (vst3_p8): Likewise.
18742 (vst3_s16): Likewise.
18743 (vst3_p16): Likewise.
18744 (vst3_s32): Likewise.
18745 (vst3_u8): Likewise.
18746 (vst3_u16): Likewise.
18747 (vst3_u32): Likewise.
18748 (vst3_f16): Likewise.
18749 (vst3_f32): Likewise.
18750 (vst3_p64): Likewise.
18751 (vst3q_s8): Likewise.
18752 (vst3q_p8): Likewise.
18753 (vst3q_s16): Likewise.
18754 (vst3q_p16): Likewise.
18755 (vst3q_s32): Likewise.
18756 (vst3q_s64): Likewise.
18757 (vst3q_u8): Likewise.
18758 (vst3q_u16): Likewise.
18759 (vst3q_u32): Likewise.
18760 (vst3q_u64): Likewise.
18761 (vst3q_f16): Likewise.
18762 (vst3q_f32): Likewise.
18763 (vst3q_f64): Likewise.
18764 (vst3q_p64): Likewise.
18765
18766 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18767
18768 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
18769 instead of constructing __builtin_aarch64_simd_xi one vector
18770 at a time.
18771 (vst4_u64): Likewise.
18772 (vst4_f64): Likewise.
18773 (vst4_s8): Likewise.
18774 (vst4_p8): Likewise.
18775 (vst4_s16): Likewise.
18776 (vst4_p16): Likewise.
18777 (vst4_s32): Likewise.
18778 (vst4_u8): Likewise.
18779 (vst4_u16): Likewise.
18780 (vst4_u32): Likewise.
18781 (vst4_f16): Likewise.
18782 (vst4_f32): Likewise.
18783 (vst4_p64): Likewise.
18784 (vst4q_s8): Likewise.
18785 (vst4q_p8): Likewise.
18786 (vst4q_s16): Likewise.
18787 (vst4q_p16): Likewise.
18788 (vst4q_s32): Likewise.
18789 (vst4q_s64): Likewise.
18790 (vst4q_u8): Likewise.
18791 (vst4q_u16): Likewise.
18792 (vst4q_u32): Likewise.
18793 (vst4q_u64): Likewise.
18794 (vst4q_f16): Likewise.
18795 (vst4q_f32): Likewise.
18796 (vst4q_f64): Likewise.
18797 (vst4q_p64): Likewise.
18798
18799 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18800
18801 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
18802 instead of constructing __builtin_aarch64_simd_oi one vector
18803 at a time.
18804 (vtbx4_u8): Likewise.
18805 (vtbx4_p8): Likewise.
18806
18807 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18808
18809 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
18810 instead of constructing __builtin_aarch64_simd_oi one vector
18811 at a time.
18812 (vtbl3_u8): Likewise.
18813 (vtbl3_p8): Likewise.
18814 (vtbl4_s8): Likewise.
18815 (vtbl4_u8): Likewise.
18816 (vtbl4_p8): Likewise.
18817
18818 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18819
18820 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
18821 instead of constructing __builtin_aarch64_simd_oi one vector
18822 at a time.
18823 (vqtbx2_u8): Likewise.
18824 (vqtbx2_p8): Likewise.
18825 (vqtbx2q_s8): Likewise.
18826 (vqtbx2q_u8): Likewise.
18827 (vqtbx2q_p8): Likewise.
18828 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
18829 __builtin_aarch64_simd_ci one vector at a time.
18830 (vqtbx3_u8): Likewise.
18831 (vqtbx3_p8): Likewise.
18832 (vqtbx3q_s8): Likewise.
18833 (vqtbx3q_u8): Likewise.
18834 (vqtbx3q_p8): Likewise.
18835 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
18836 __builtin_aarch64_simd_xi one vector at a time.
18837 (vqtbx4_u8): Likewise.
18838 (vqtbx4_p8): Likewise.
18839 (vqtbx4q_s8): Likewise.
18840 (vqtbx4q_u8): Likewise.
18841 (vqtbx4q_p8): Likewise.
18842
18843 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18844
18845 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
18846 instead of constructing __builtin_aarch64_simd_oi one vector
18847 at a time.
18848 (vqtbl2_u8): Likewise.
18849 (vqtbl2_p8): Likewise.
18850 (vqtbl2q_s8): Likewise.
18851 (vqtbl2q_u8): Likewise.
18852 (vqtbl2q_p8): Likewise.
18853 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
18854 __builtin_aarch64_simd_ci one vector at a time.
18855 (vqtbl3_u8): Likewise.
18856 (vqtbl3_p8): Likewise.
18857 (vqtbl3q_s8): Likewise.
18858 (vqtbl3q_u8): Likewise.
18859 (vqtbl3q_p8): Likewise.
18860 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
18861 __builtin_aarch64_simd_xi one vector at a time.
18862 (vqtbl4_u8): Likewise.
18863 (vqtbl4_p8): Likewise.
18864 (vqtbl4q_s8): Likewise.
18865 (vqtbl4q_u8): Likewise.
18866 (vqtbl4q_p8): Likewise.
18867
18868 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
18869
18870 PR target/100952
18871 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
18872
18873 2021-07-22 Andrew Pinski <apinski@marvell.com>
18874
18875 PR tree-optimization/10153
18876 * tree-tailcall.c (create_tailcall_accumulator):
18877 Don't call fold_convert as the type should be correct already.
18878 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
18879 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
18880
18881 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
18882
18883 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
18884 varying_p check for null/non-null check.
18885
18886 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18887
18888 PR tree-optimization/101511
18889 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
18890 is in ssa2's equiv set, and don't trap if so.
18891
18892 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18893
18894 PR tree-optimization/101497
18895 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
18896 for undefined.
18897
18898 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18899
18900 PR tree-optimization/101496
18901 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
18902 first, then vrp_visit_cond_Stmt.
18903
18904 2021-07-22 liuhongt <hongtao.liu@intel.com>
18905
18906 * config/i386/i386-expand.c
18907 (ix86_broadcast_from_integer_constant): Rename to ..
18908 (ix86_broadcast_from_constant): .. this, and extend it to
18909 handle float mode.
18910 (ix86_expand_vector_move): Extend to float mode.
18911 * config/i386/i386-features.c
18912 (replace_constant_pool_with_broadcast): Remove.
18913 (remove_partial_avx_dependency_gate): Ditto.
18914 (constant_pool_broadcast): Ditto.
18915 (class pass_constant_pool_broadcast): Ditto.
18916 (make_pass_constant_pool_broadcast): Ditto.
18917 (remove_partial_avx_dependency): Adjust gate.
18918 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
18919 * config/i386/i386-protos.h
18920 (make_pass_constant_pool_broadcast): Remove.
18921
18922 2021-07-22 liuhongt <hongtao.liu@intel.com>
18923
18924 * config/i386/constraints.md (Wb): New constraint.
18925 (Ww): Ditto.
18926 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
18927 shift.
18928 (*ashlqi3_1): Ditto.
18929 (*<insn><mode>3_1): Split to ..
18930 (*ashr<mode>3_1): this, ...
18931 (*lshr<mode>3_1): and this, also extend this pattern to avx512
18932 mask registers.
18933 (*<insn><mode>3_1): Split to ..
18934 (*ashr<mode>3_1): this, ...
18935 (*lshrqi3_1): and this, also extend this pattern to avx512
18936 mask registers.
18937 (*lshrhi3_1): And this, also extend this pattern to avx512
18938 mask registers.
18939 * config/i386/sse.md (k<code><mode>): New define_split after
18940 it to convert generic shift pattern to mask shift ones.
18941
18942 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
18943 Joseph Myers <joseph@codesourcery.com>
18944 Cesar Philippidis <cesar@codesourcery.com>
18945
18946 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
18947 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
18948 Handle it.
18949 * tree-pretty-print.c (dump_omp_clause): Likewise.
18950 * omp-general.c (oacc_verify_routine_clauses): Likewise.
18951 * gimplify.c (gimplify_scan_omp_clauses)
18952 (gimplify_adjust_omp_clauses): Likewise.
18953 * tree-nested.c (convert_nonlocal_omp_clauses)
18954 (convert_local_omp_clauses): Likewise.
18955 * omp-low.c (scan_sharing_clauses): Likewise.
18956 * omp-offload.c (execute_oacc_device_lower): Update.
18957
18958 2021-07-21 Martin Sebor <msebor@redhat.com>
18959
18960 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
18961
18962 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18963
18964 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
18965 Implement.
18966
18967 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18968
18969 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
18970 callback function.
18971 (write_fntype_init): New stub function.
18972 (write_init_bif_table): Likewise.
18973 (write_init_ovld_table): New function.
18974 (write_init_file): Implement.
18975
18976 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18977
18978 * config/rs6000/rs6000-gen-builtins.c
18979 (write_autogenerated_header): New function.
18980 (write_decls): Likewise.
18981 (write_extern_fntype): New callback function.
18982 (write_header_file): Implement.
18983
18984 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18985
18986 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
18987 Implement.
18988
18989 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18990
18991 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
18992 function.
18993 (complete_base_type): Likewise.
18994 (construct_fntype_id): Likewise.
18995 (parse_bif_entry): Call contruct_fntype_id.
18996 (parse_ovld_entry): Likewise.
18997
18998 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18999
19000 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
19001 (MAXOVLDSTANZAS): New macro.
19002 (ovld_stanzas): New variable.
19003 (curr_ovld_stanza): Likewise.
19004 (MAXOVLDS): New macro.
19005 (ovlddata): New struct.
19006 (ovlds): New variable.
19007 (curr_ovld): Likewise.
19008 (max_ovld_args): Likewise.
19009 (parse_ovld_entry): New function.
19010 (parse_ovld_stanza): Likewise.
19011 (parse_ovld): Implement.
19012
19013 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
19014
19015 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
19016 Implement.
19017
19018 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
19019
19020 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
19021 (parse_prototype): Implement.
19022
19023 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
19024
19025 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
19026 (curr_bif_stanza): New variable.
19027 (stanza_entry): New struct.
19028 (stanza_map): New initialized variable.
19029 (enable_string): Likewise.
19030 (fnkinds): New enum.
19031 (typelist): New struct.
19032 (attrinfo): Likewise.
19033 (MAXRESTROPNDS): New macro.
19034 (prototype): New struct.
19035 (MAXBIFS): New macro.
19036 (bifdata): New struct.
19037 (bifs): New variable.
19038 (curr_bif): Likewise.
19039 (bif_order): Likewise.
19040 (bif_index): Likewise.
19041 (fatal): New function.
19042 (stanza_name_to_stanza): Likewise.
19043 (parse_bif_attrs): New stub function.
19044 (parse_prototype): Likewise.
19045 (parse_bif_entry): New function.
19046 (parse_bif_stanza): Likewise.
19047 (parse_bif): Implement.
19048 (set_bif_order): New function.
19049 (create_bif_order): Implement.
19050
19051 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
19052
19053 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
19054 (num_bifs): New variable.
19055 (num_ovld_stanzas): Likewise.
19056 (num_ovlds): Likewise.
19057 (parse_codes): New enum.
19058 (bif_rbt): New variable.
19059 (ovld_rbt): Likewise.
19060 (fntype_rbt): Likewise.
19061 (bifo_rbt): Likewise.
19062 (parse_bif): New stub function.
19063 (create_bif_order): Likewise.
19064 (parse_ovld): Likewise.
19065 (write_header_file): Likewise.
19066 (write_init_file): Likewise.
19067 (write_defines_file): Likewise.
19068 (delete_output_files): New function.
19069 (main): Likewise.
19070
19071 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
19072
19073 PR target/101549
19074 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
19075 from CRC32 _builtin functions.
19076
19077 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
19078
19079 * coverage.c (build_gcov_info_var_registration): Mark the object placed
19080 in the linker set as referenced so that it does not get optimized away.
19081
19082 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
19083
19084 Revert:
19085 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
19086
19087 * config.gcc (riscv*-*-*): Detect which python is available.
19088
19089 2021-07-21 Jakub Jelinek <jakub@redhat.com>
19090
19091 PR middle-end/101535
19092 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
19093 contexts in which decl isn't privatized and for ORT_TARGET return
19094 false if decl is mapped.
19095
19096 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
19097
19098 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
19099 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
19100 has been successfully unrolled.
19101
19102 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
19103
19104 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
19105 exit condition if no tail loop is needed, and if the original exit
19106 condition should therefore be kept as-is.
19107 (tree_transform_and_unroll_loop): Handle that case here too.
19108
19109 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
19110
19111 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
19112 by reference.
19113 (free_data_refs): Likewise.
19114 * tree-data-ref.h (free_dependence_relations): Likewise.
19115 (free_data_refs): Likewise.
19116 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
19117 members.
19118 (struct component): Likewise.
19119 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
19120 (pcom_worker::~pcom_worker): Likewise.
19121 (pcom_worker::release_chain): Adjust as auto_vec changes.
19122 (pcom_worker::loop): Rename to ...
19123 (pcom_worker::m_loop): ... this.
19124 (pcom_worker::datarefs): Rename to ...
19125 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
19126 (pcom_worker::dependences): Rename to ...
19127 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
19128 (pcom_worker::chains): Rename to ...
19129 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
19130 (pcom_worker::looparound_phis): Rename to ...
19131 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
19132 vec.
19133 (pcom_worker::cache): Rename to ...
19134 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
19135 (pcom_worker::release_chain): Adjust for auto_vec changes.
19136 (pcom_worker::release_chains): Adjust for auto_vec and renaming
19137 changes.
19138 (release_component): Remove.
19139 (release_components): Adjust for release_component removal.
19140 (component_of): Adjust to use vec.
19141 (merge_comps): Likewise.
19142 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
19143 (pcom_worker::determine_offset): Likewise.
19144 (class comp_ptrs): Remove.
19145 (pcom_worker::split_data_refs_to_components): Adjust for renaming
19146 changes, for comp_ptrs removal with auto_vec.
19147 (pcom_worker::suitable_component_p): Adjust for renaming changes.
19148 (pcom_worker::filter_suitable_components): Adjust for release_component
19149 removal.
19150 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
19151 (pcom_worker::find_looparound_phi): Likewise.
19152 (pcom_worker::add_looparound_copies): Likewise.
19153 (pcom_worker::determine_roots_comp): Likewise.
19154 (pcom_worker::single_nonlooparound_use): Likewise.
19155 (pcom_worker::execute_pred_commoning_chain): Likewise.
19156 (pcom_worker::execute_pred_commoning): Likewise.
19157 (pcom_worker::try_combine_chains): Likewise.
19158 (pcom_worker::prepare_initializers_chain): Likewise.
19159 (pcom_worker::prepare_initializers): Likewise.
19160 (pcom_worker::prepare_finalizers_chain): Likewise.
19161 (pcom_worker::prepare_finalizers): Likewise.
19162 (pcom_worker::tree_predictive_commoning_loop): Likewise.
19163
19164 2021-07-20 Martin Sebor <msebor@redhat.com>
19165
19166 PR middle-end/101397
19167 * builtins.c (gimple_call_return_array): Add argument. Correct
19168 offsets for memchr, mempcpy, stpcpy, and stpncpy.
19169 (compute_objsize_r): Adjust offset computation for argument returning
19170 built-ins.
19171
19172 2021-07-20 Martin Sebor <msebor@redhat.com>
19173
19174 PR middle-end/101300
19175 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
19176
19177 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
19178
19179 * function.c (assign_parm_setup_block): Use adjust_address instead
19180 of change_address to preserve MEM_EXPR and friends.
19181
19182 2021-07-20 Martin Sebor <msebor@redhat.com>
19183
19184 * cfgloop.h (single_likely_exit): Adjust by-value argument to
19185 by-const-reference.
19186 * cfgloopanal.c (single_likely_exit): Same.
19187 * cgraph.h (struct cgraph_node): Same.
19188 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
19189 * genautomata.c (merge_states): Same.
19190 * genextract.c (VEC_char_to_string): Same.
19191 * genmatch.c (dt_node::gen_kids_1): Same.
19192 (walk_captures): Adjust by-value argument to by-reference.
19193 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
19194 to by-const-reference.
19195 * gimple.c (gimple_build_call_vec): Same.
19196 (gimple_build_call_internal_vec): Same.
19197 (gimple_build_switch): Same.
19198 (sort_case_labels): Same.
19199 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
19200 by-reference.
19201 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
19202 by-const-reference.
19203 (gimple_build_call_internal_vec): Same.
19204 (gimple_build_switch): Same.
19205 (sort_case_labels): Same.
19206 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
19207 by-reference.
19208 * haifa-sched.c (calc_priorities): Adjust by-value argument to
19209 by-const-reference.
19210 (sched_init_luids): Same.
19211 (haifa_init_h_i_d): Same.
19212 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
19213 (adjust_callers_for_value_intersection): Adjust by-value argument to
19214 by-reference.
19215 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
19216 by-const-reference.
19217 (find_more_contexts_for_caller_subset): Same.
19218 (find_aggregate_values_for_callers_subset): Same.
19219 (copy_useful_known_contexts): Same.
19220 * ipa-fnsummary.c (remap_edge_summaries): Same.
19221 (remap_freqcounting_predicate): Same.
19222 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
19223 by-reference.
19224 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
19225 to by-const-reference.
19226 * ipa-predicate.h (predicate::remap_after_inlining): Same.
19227 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
19228 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
19229 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
19230 * read-rtl.c (add_overload_instance): Same.
19231 * rtl.h (native_decode_rtx): Same.
19232 (native_decode_vector_rtx): Same.
19233 * sched-int.h (sched_init_luids): Same.
19234 (haifa_init_h_i_d): Same.
19235 * simplify-rtx.c (native_decode_vector_rtx): Same.
19236 (native_decode_rtx): Same.
19237 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
19238 (shrink_wrap_one_built_in_call_with_conds): Same.
19239 (shrink_wrap_conditional_dead_built_in_calls): Same.
19240 * tree-data-ref.c (create_runtime_alias_checks): Same.
19241 (compute_all_dependences): Same.
19242 * tree-data-ref.h (compute_all_dependences): Same.
19243 (create_runtime_alias_checks): Same.
19244 (index_in_loop_nest): Same.
19245 * tree-if-conv.c (mask_exists): Same.
19246 * tree-loop-distribution.c (class loop_distribution): Same.
19247 (loop_distribution::create_rdg_vertices): Same.
19248 (dump_rdg_partitions): Same.
19249 (debug_rdg_partitions): Same.
19250 (partition_contains_all_rw): Same.
19251 (loop_distribution::distribute_loop): Same.
19252 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
19253 (oacc_entry_exit_single_gang): Same.
19254 * tree-ssa-loop-im.c (hoist_memory_references): Same.
19255 (loop_suitable_for_sm): Same.
19256 * tree-ssa-loop-niter.c (bound_index): Same.
19257 * tree-ssa-reassoc.c (update_ops): Same.
19258 (swap_ops_for_binary_stmt): Same.
19259 (rewrite_expr_tree): Same.
19260 (rewrite_expr_tree_parallel): Same.
19261 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
19262 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
19263 * tree-ssa-structalias.c (process_all_all_constraints): Same.
19264 (make_constraints_to): Same.
19265 (handle_lhs_call): Same.
19266 (find_func_aliases_for_builtin_call): Same.
19267 (sort_fieldstack): Same.
19268 (check_for_overlaps): Same.
19269 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
19270 (vect_create_cond_for_unequal_addrs): Same.
19271 (vect_create_cond_for_lower_bounds): Same.
19272 (vect_create_cond_for_alias_checks): Same.
19273 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
19274 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
19275 (vect_make_slp_decision): Same.
19276 (vect_slp_bbs): Same.
19277 (duplicate_and_interleave): Same.
19278 (vect_transform_slp_perm_load): Same.
19279 (vect_schedule_slp): Same.
19280 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
19281 (vect_schedule_slp): Same.
19282 (duplicate_and_interleave): Same.
19283 * tree.c (build_vector_from_ctor): Same.
19284 (build_vector): Same.
19285 (check_vector_cst): Same.
19286 (check_vector_cst_duplicate): Same.
19287 (check_vector_cst_fill): Same.
19288 (check_vector_cst_stepped): Same.
19289 * tree.h (build_vector_from_ctor): Same.
19290
19291 2021-07-20 Jakub Jelinek <jakub@redhat.com>
19292
19293 PR target/101384
19294 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
19295 type from bool to int.
19296 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
19297 EASY_VECTOR_MSB case if either step or copies is not 1.
19298 (vspltis_shifted): Fix comment typo.
19299 (easy_altivec_constant): Change return type from bool to int, instead
19300 of returning true return byte size of the element mode that should be
19301 used to synthetize the constant.
19302 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
19303 that vspltis_shifted is 0, handle the case where easy_altivec_constant
19304 assumes using different vector mode from CONST_VECTOR's mode.
19305 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
19306 easy_altivec_constant to determine mode in which -1 >> -1 should be
19307 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
19308
19309 2021-07-20 Richard Biener <rguenther@suse.de>
19310
19311 PR debug/101473
19312 * dwarf2out.h (dwarf_file_data): Add key member.
19313 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
19314 (dwarf_file_hasher::hash): Hash key.
19315 (lookup_filename): Remap the filename and store it in the
19316 filename member of dwarf_file_data when creating a new
19317 dwarf_file_data.
19318 (file_name_acquire): Do not remap the filename again.
19319 (maybe_emit_file): Likewise.
19320
19321 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
19322
19323 * config/aarch64/aarch64-simd-builtins.def: Use two variant
19324 generators for all TBL/TBX intrinsics and rename to
19325 consistent forms: qtbl[1234] or qtbx[1234].
19326 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
19327 Rename to...
19328 (aarch64_qtbl1<mode>): This.
19329 (aarch64_tbx1<mode>): Rename to...
19330 (aarch64_qtbx1<mode>): This.
19331 (aarch64_tbl2v16qi): Delete.
19332 (aarch64_tbl3<mode>): Rename to...
19333 (aarch64_qtbl2<mode>): This.
19334 (aarch64_tbx4<mode>): Rename to...
19335 (aarch64_qtbx2<mode>): This.
19336 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
19337 renamed qtbl1 and qtbl2 RTL patterns.
19338 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
19339 RTL pattern.
19340 (vqtbl1_s8): Likewise.
19341 (vqtbl1_u8): Likewise.
19342 (vqtbl1q_p8): Likewise.
19343 (vqtbl1q_s8): Likewise.
19344 (vqtbl1q_u8): Likewise.
19345 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
19346 (vqtbx1_u8): Likewise.
19347 (vqtbx1_p8): Likewise.
19348 (vqtbx1q_s8): Likewise.
19349 (vqtbx1q_u8): Likewise.
19350 (vqtbx1q_p8): Likewise.
19351 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
19352 (vtbl1_u8): Likewise.
19353 (vtbl1_p8): Likewise.
19354 (vtbl2_s8): Likewise
19355 (vtbl2_u8): Likewise.
19356 (vtbl2_p8): Likewise.
19357 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
19358 (vtbl3_u8): Likewise.
19359 (vtbl3_p8): Likewise.
19360 (vtbl4_s8): Likewise.
19361 (vtbl4_u8): Likewise.
19362 (vtbl4_p8): Likewise.
19363 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
19364 (vtbx2_u8): Likewise.
19365 (vtbx2_p8): Likewise.
19366 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
19367 (vqtbl2_u8): Likewise.
19368 (vqtbl2_p8): Likewise.
19369 (vqtbl2q_s8): Likewise.
19370 (vqtbl2q_u8): Likewise.
19371 (vqtbl2q_p8): Likewise.
19372 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
19373 (vqtbx2_u8): Likewise.
19374 (vqtbx2_p8): Likewise.
19375 (vqtbx2q_s8): Likewise.
19376 (vqtbx2q_u8): Likewise.
19377 (vqtbx2q_p8): Likewise.
19378 (vtbx4_s8): Likewise.
19379 (vtbx4_u8): Likewise.
19380 (vtbx4_p8): Likewise.
19381
19382 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
19383
19384 PR target/100182
19385 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
19386 Remove.
19387 (define_peephole2 atomic_loaddi_fpu): Ditto.
19388
19389 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
19390
19391 * config.gcc (riscv*-*-*): Detect which python is available.
19392
19393 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
19394
19395 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
19396 (smul<mode>3_highpart): ... this.
19397 (mulhu_<mode>): Rename to...
19398 (umul<mode>3_highpart): ... this.
19399 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
19400 MULHU_V2DI, MULHU_V4SI): Adjust.
19401
19402 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
19403
19404 PR tree-optimization/100696
19405 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
19406 * internal-fn.def (IFN_MULH): New internal function.
19407 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
19408 recog normal multiply highpart as IFN_MULH.
19409 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
19410 function CFN_MULH.
19411
19412 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
19413
19414 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
19415 (BTF_DEBUGGING_INFO): Likewise.
19416 * doc/tm.texi.in: Document the new macros.
19417 * doc/tm.texi: Regenerated.
19418 * toplev.c: Guard initialization of debug hooks.
19419
19420 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
19421
19422 * flags.h (ctf_debuginfo_p): New function declaration.
19423 * opts.c (ctf_debuginfo_p): New function definition.
19424
19425 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
19426
19427 PR target/100208
19428 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
19429 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
19430 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
19431 * config/gcn/gcn-valu.md: Add a warning comment.
19432 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
19433 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
19434 * config/gcn/gcn.md: Add a warning comment.
19435 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
19436 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
19437 SRAM-ECC flag.
19438 (EF_AMDGPU_XNACK): New.
19439 (EF_AMDGPU_SRAM_ECC): New.
19440 (elf_flags): New.
19441 (copy_early_debug_info): Use elf_flags.
19442 (main): Handle -mxnack and -msram-ecc options.
19443 * doc/invoke.texi: Document -mxnack and -msram-ecc.
19444
19445 2021-07-19 Andrew Pinski <apinski@marvell.com>
19446
19447 PR target/101205
19448 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
19449 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
19450
19451 2021-07-19 Richard Biener <rguenther@suse.de>
19452
19453 PR tree-optimization/101505
19454 * tree-vect-patterns.c (vect_determine_precisions): Walk
19455 PHIs also for loop vectorization.
19456
19457 2021-07-19 Richard Biener <rguenther@suse.de>
19458
19459 * gimple.h (gimple_expr_type): Remove.
19460 * doc/gimple.texi: Remove gimple_expr_type documentation.
19461
19462 2021-07-19 Richard Biener <rguenther@suse.de>
19463
19464 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
19465 (ao_ref_init_from_vn_reference): Likewise.
19466 (fully_constant_reference): Likewise.
19467 (vn_reference_lookup_call): Do not set vr->type to random
19468 values.
19469 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
19470 without a value.
19471 * tree-vect-generic.c (expand_vector_piecewise): Pass in
19472 whether we expanded parallel.
19473 (expand_vector_parallel): Adjust.
19474 (expand_vector_addition): Likewise.
19475 (expand_vector_comparison): Likewise.
19476 (expand_vector_operation): Likewise.
19477 (expand_vector_scalar_condition): Likewise.
19478 (expand_vector_conversion): Likewise.
19479
19480 2021-07-19 Richard Biener <rguenther@suse.de>
19481
19482 * tree-vrp.c (register_edge_assert_for_2): Use the
19483 type from the LHS.
19484 (vrp_folder::fold_predicate_in): Likewise.
19485 * vr-values.c (gimple_assign_nonzero_p): Likewise.
19486 (vr_values::extract_range_from_comparison): Likewise.
19487 (vr_values::extract_range_from_ubsan_builtin): Use the
19488 type of the first operand.
19489 (vr_values::extract_range_basic): Push down type
19490 computation, use the appropriate LHS.
19491 (vr_values::extract_range_from_assignment): Use the
19492 type of the LHS.
19493
19494 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
19495
19496 PR target/101492
19497 * common/config/i386/i386-common.c (ix86_handle_option): For
19498 -mgeneral-regs-only, enable the GPR only instructions which are
19499 enabled implicitly by SSE ISAs unless they have been disabled
19500 explicitly.
19501
19502 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
19503
19504 PR target/101495
19505 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
19506 ix86_avx_u128_mode_needed.
19507 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
19508 returns AVX register.
19509
19510 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
19511
19512 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
19513 (handle_const_call): Liekise
19514 (handle_pure_call): Liekise
19515
19516 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
19517
19518 PR tree-optimization/96542
19519 * range-op.cc (range_operator::wi_fold_in_parts): New.
19520 (range_operator::fold_range): Call wi_fold_in_parts.
19521 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
19522 * range-op.h (wi_fold_in_parts): Add prototype.
19523
19524 2021-07-16 David Malcolm <dmalcolm@redhat.com>
19525
19526 * doc/analyzer.texi: Add __analyzer_dump_state.
19527
19528 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19529
19530 * config/rs6000/rbtree.c: New file.
19531 * config/rs6000/rbtree.h: New file.
19532
19533 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19534
19535 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
19536 (typeinfo): Add restr field.
19537 (match_bracketed_pair): New function.
19538 (match_const_restriction): Implement.
19539
19540 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19541
19542 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
19543
19544 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19545
19546 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
19547 (basetype): Likewise.
19548 (typeinfo): Likewise.
19549 (handle_pointer): New function.
19550 (match_basetype): New stub function.
19551 (match_const_restriction): Likewise.
19552 (match_type): New function.
19553
19554 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19555
19556 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
19557 function.
19558 (advance_line): Likewise.
19559 (safe_inc_pos): Likewise.
19560 (match_identifier): Likewise.
19561 (match_integer): Likewise.
19562 (match_to_right_bracket): Likewise.
19563
19564 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19565
19566 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
19567 (ovld_file): Likewise.
19568 (header_file): Likewise.
19569 (init_file): Likewise.
19570 (defines_file): Likewise.
19571 (pgm_path): Likewise.
19572 (bif_path): Likewise.
19573 (ovld_path): Likewise.
19574 (header_path): Likewise.
19575 (init_path): Likewise.
19576 (defines_path): Likewise.
19577 (LINELEN): New macro.
19578 (linebuf): New variable.
19579 (line): Likewise.
19580 (pos): Likewise.
19581 (diag): Likewise.
19582 (bif_diag): New function.
19583 (ovld_diag): Likewise.
19584
19585 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19586
19587 * config/rs6000/rs6000-builtin-new.def: New.
19588 * config/rs6000/rs6000-overload.def: New.
19589
19590 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19591
19592 * config/rs6000/rs6000-gen-builtins.c: New.
19593
19594 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
19595
19596 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
19597 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
19598 * gengtype-state.c (state_writer::write_state_file_list): Add a
19599 parameter to the fileslist expression for the number of build
19600 headers to scan.
19601 (read_state_files_list): Detect build headers and strip the
19602 initial "./" or ".\" from their names.
19603 * gengtype.c (build_headers): New global variable.
19604 (num_build_headers): Likewise.
19605 (open_base_files): Emit #include for each build header.
19606 (main): Detect and count build headers.
19607 * gengtype.h (build_headers): New extern variable.
19608 (num_build_headers): Likewise.
19609
19610 2021-07-16 Richard Biener <rguenther@suse.de>
19611
19612 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
19613 the type of the LHS.
19614 (find_bswap_or_nop_1): Likewise.
19615 (find_bswap_or_nop): Likewise.
19616 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
19617 prototype.
19618 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
19619 Remove unused parameters, pass in the scalar type. Fix
19620 internal store function handling.
19621 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
19622 (vect_get_vector_types_for_stmt): Move down check for
19623 existing vector stmt after we've determined a scalar type.
19624 Pass down the used scalar type to vect_get_smallest_scalar_type.
19625 * tree-vect-generic.c (expand_vector_condition): Use
19626 the type of the LHS.
19627 (expand_vector_scalar_condition): Likewise.
19628 (expand_vector_operations_1): Likewise.
19629 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
19630 (vect_recog_dot_prod_pattern): Likewise.
19631 (vect_recog_sad_pattern): Likewise.
19632 (vect_recog_widen_op_pattern): Likewise.
19633 (vect_recog_widen_sum_pattern): Likewise.
19634 (vect_recog_mixed_size_cond_pattern): Likewise.
19635
19636 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
19637
19638 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
19639 (dump_eaf_flags): Dump EAF_NOT_RETURNED
19640 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
19641 and EAF_NOT_RETURNED.
19642 (modref_summary::useful_p): Likewise.
19643 (modref_summary_lto::useful_p): Likewise.
19644 (struct) modref_summary_lto: Use eaf_fleags_t.
19645 (deref_flags): Handle EAF_NOT_RETURNED.
19646 (struct escape_point): Use min_flags.
19647 (modref_lattice::init): Add EAF_NOT_RETURNED.
19648 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
19649 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
19650 handle call flags.
19651 (analyze_parms): Also analyze const functions; update conition on
19652 flags usefulness.
19653 (modref_write): Update streaming.
19654 (read_section): Update streaming.
19655 (remap_arg_flags): Use eaf_flags_t.
19656 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
19657 * ipa-modref.h: (eaf_flags_t): New typedef.
19658 (struct modref_summary): Use eaf_flags_t.
19659 * tree-core.h (EAF_NOT_RETURNED): New constant.
19660
19661 2021-07-16 Richard Biener <rguenther@suse.de>
19662
19663 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
19664 the type of the LHS.
19665 (gimple_assign_nonnegative_warnv_p): Likewise.
19666 (gimple_call_nonnegative_warnv_p): Likewise. Return false
19667 if the call has no LHS.
19668 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
19669 * tree-eh.c (stmt_could_throw_1_p): Likewise.
19670 * tree-inline.c (insert_init_stmt): Likewise.
19671 * tree-ssa-loop-niter.c (get_val_for): Likewise.
19672 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
19673 the def.
19674 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
19675 gassign *. Use the type of the lhs.
19676 (vn_nary_op_lookup_stmt): Adjust.
19677 (vn_nary_op_insert_stmt): Likewise.
19678
19679 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
19680
19681 * config/s390/predicates.md (bras_sym_operand): Accept all
19682 functions in 64-bit mode, use UNSPEC_PLT31.
19683 (larl_operand): Use UNSPEC_PLT31.
19684 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
19685 (legitimize_pic_address): Likewise.
19686 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
19687 use UNSPEC_PLT31.
19688 (s390_delegitimize_address): Use UNSPEC_PLT31.
19689 (s390_output_addr_const_extra): Likewise.
19690 (print_operand): Add @PLT to TLS calls, handle %K.
19691 (s390_function_profiler): Mark __fentry__/_mcount as function,
19692 use %K, use UNSPEC_PLT31.
19693 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
19694 (s390_emit_call): Use UNSPEC_PLT31.
19695 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
19696 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
19697 (*movdi_64): Use %K.
19698 (reload_base_64): Likewise.
19699 (*sibcall_brc): Likewise.
19700 (*sibcall_brcl): Likewise.
19701 (*sibcall_value_brc): Likewise.
19702 (*sibcall_value_brcl): Likewise.
19703 (*bras): Likewise.
19704 (*brasl): Likewise.
19705 (*bras_r): Likewise.
19706 (*brasl_r): Likewise.
19707 (*bras_tls): Likewise.
19708 (*brasl_tls): Likewise.
19709 (main_base_64): Likewise.
19710 (reload_base_64): Likewise.
19711 (@split_stack_call<mode>): Likewise.
19712
19713 2021-07-16 Richard Biener <rguenther@suse.de>
19714
19715 PR tree-optimization/101467
19716 * tree-vect-stmts.c (vect_gen_while): Properly guard
19717 make_temp_ssa_name usage.
19718
19719 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
19720
19721 * config.gcc: Don't use forked print-sysroot-suffix.sh and
19722 t-sysroot-suffix for C-SKY.
19723 * config/csky/print-sysroot-suffix.sh: Delete.
19724 * config/csky/t-csky-linux: Delete.
19725 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
19726 instead of CSKY_MULTILIB_DIRNAMES.
19727
19728 2021-07-16 Richard Biener <rguenther@suse.de>
19729
19730 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
19731 conversion issues with the partial reduction of the reused
19732 vector accumulator.
19733
19734 2021-07-16 Richard Biener <rguenther@suse.de>
19735
19736 * config/i386/i386-options.c (ix86_option_override_internal): Set
19737 param_vect_partial_vector_usage to zero if not set.
19738
19739 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
19740
19741 PR target/101346
19742 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
19743 (VALID_INT_MODE_P): Add SDmode and DDmode.
19744 Add TDmode for TARGET_64BIT.
19745 (VALID_DFP_MODE_P): Remove.
19746 * config/i386/i386.c (ix86_hard_regno_mode_ok):
19747 Do not use VALID_DFP_MODE_P.
19748
19749 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
19750
19751 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
19752 gimple_range_type.
19753 (fold_using_range::fold_stmt): Ditto.
19754 (fold_using_range::range_of_range_op): Ditto.
19755 (fold_using_range::range_of_phi): Ditto.
19756 (fold_using_range::range_of_call): Ditto.
19757 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
19758 (fold_using_range::range_of_builtin_call): Ditto.
19759 (fold_using_range::range_of_cond_expr): Ditto.
19760 * gimple-range-fold.h (gimple_range_type): New.
19761
19762 2021-07-15 Martin Sebor <msebor@redhat.com>
19763
19764 PR middle-end/97027
19765 * tree-ssa-strlen.c (handle_assign): New function.
19766 (maybe_warn_overflow): Add argument.
19767 (nonzero_bytes_for_type): New function.
19768 (count_nonzero_bytes): Handle more tree types. Call
19769 nonzero_bytes_for_tye.
19770 (count_nonzero_bytes): Handle types.
19771 (handle_store): Handle stores from function calls.
19772 (strlen_check_and_optimize_call): Move code to handle_assign. Call
19773 it for assignments from function calls.
19774
19775 2021-07-15 David Malcolm <dmalcolm@redhat.com>
19776
19777 PR analyzer/95006
19778 PR analyzer/94713
19779 PR analyzer/94714
19780 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
19781
19782 2021-07-15 David Malcolm <dmalcolm@redhat.com>
19783
19784 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
19785
19786 2021-07-15 Martin Sebor <msebor@redhat.com>
19787
19788 PR c/101289
19789 PR c/97548
19790 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
19791 (operand_compare::verify_hash_value): Same.
19792 * tree-core.h (OEP_DECL_NAME): New.
19793
19794 2021-07-15 Martin Jambor <mjambor@suse.cz>
19795
19796 * profile-count.h (profile_count::value): Change the return type to
19797 uint64_t.
19798 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
19799 statement.
19800 * tree-cfg.c (dump_function_to_file): Likewise.
19801
19802 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
19803
19804 PR target/101129
19805 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
19806 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
19807 not swappable.
19808
19809 2021-07-15 Richard Biener <rguenther@suse.de>
19810
19811 * tree-vectorizer.h (vect_gen_while): Match up with
19812 vect_gen_while_not.
19813 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
19814 of vect_gen_while_not.
19815 (vect_gen_while_not): Adjust.
19816 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
19817
19818 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
19819
19820 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
19821 (ranger_cache::range_of_def): Call adjust_range.
19822 (ranger_cache::entry_range): Same.
19823 * gimple-range-cache.h (non_null_ref::adjust_range): New.
19824 * gimple-range.cc (gimple_ranger::range_of_expr): Call
19825 adjust_range.
19826 (gimple_ranger::range_on_entry): Same.
19827
19828 2021-07-15 Tamar Christina <tamar.christina@arm.com>
19829
19830 Revert:
19831 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19832
19833 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
19834
19835 2021-07-15 Tamar Christina <tamar.christina@arm.com>
19836
19837 Revert:
19838 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19839
19840 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
19841 (sdot_prod, udot_prod): ...These.
19842 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
19843 (aarch64_<sur>dot<vsi2qi>): Rename to...
19844 (<sur>dot_prod<vsi2qi>): ...This.
19845 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
19846 Update builtins.
19847
19848 2021-07-15 Jakub Jelinek <jakub@redhat.com>
19849
19850 PR middle-end/101437
19851 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
19852 types even if they have non-BLKmode TYPE_MODE.
19853
19854 2021-07-15 Richard Biener <rguenther@suse.de>
19855
19856 PR driver/101383
19857 * gcc.c (process_command): Process -gtoggle like process_options
19858 would after parsing options.
19859
19860 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19861
19862 * cfgexpand.c (expand_asm_loc): Adjust.
19863 (expand_asm_stmt): Likewise.
19864 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
19865 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
19866 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
19867 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
19868 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
19869 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
19870 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
19871 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
19872 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
19873 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
19874 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
19875 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
19876 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
19877 * doc/tm.texi: Regenerate.
19878 * target.def: Add location argument to md_asm_adjust.
19879
19880 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19881
19882 * tree-diagnostic.c (diagnostic_report_current_function): Use the
19883 diagnostic's location, not input_location.
19884
19885 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19886
19887 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
19888 diagnostics.
19889 (expand_asm_stmt): Likewise.
19890
19891 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
19892
19893 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
19894 addressed memory rtx, if any.
19895 (rs6000_split_multireg_move): Fix code formatting.
19896 Handle MMA build built-ins with operands in adjacent memory locations.
19897
19898 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
19899
19900 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
19901 in the file.
19902
19903 2021-07-14 Jason Merrill <jason@redhat.com>
19904
19905 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
19906
19907 2021-07-14 Jason Merrill <jason@redhat.com>
19908
19909 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
19910 C++.
19911
19912 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19913
19914 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
19915 Remove erroneous line.
19916
19917 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
19918
19919 * params.opt (param_evrp_mode): Change default.
19920
19921 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19922
19923 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
19924 (sdot_prod, udot_prod): ...These.
19925 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
19926 (aarch64_<sur>dot<vsi2qi>): Rename to...
19927 (<sur>dot_prod<vsi2qi>): ...This.
19928 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
19929 Update builtins.
19930
19931 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19932
19933 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
19934
19935 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19936
19937 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
19938
19939 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19940
19941 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
19942
19943 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19944
19945 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
19946 (usdot_prod<vsi2qi>): ... This.
19947 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
19948 (usdot_prod): ...This.
19949 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
19950 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
19951 Rename to...
19952 (@<sur>dot_prod<vsi2qi>): ...This.
19953 * config/aarch64/aarch64-sve-builtins-base.cc
19954 (svusdot_impl::expand): Use it.
19955
19956 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19957
19958 * optabs.def (usdot_prod_optab): New.
19959 * doc/md.texi: Document it and clarify other dot prod optabs.
19960 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
19961 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
19962 * optabs.c (expand_widen_pattern_expr): Likewise.
19963 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
19964 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
19965 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
19966 optab subtype.
19967 (vect_widened_op_tree): Optionally ignore
19968 mismatch types.
19969 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
19970
19971 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
19972
19973 PR target/101395
19974 * config/i386/driver-i386.c (host_detect_local_cpu): Check
19975 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
19976 Enable UINTR only for 64-bit codegen.
19977 * config/i386/i386-options.c
19978 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
19979 in 64-bit mode.
19980 * config/i386/i386.h (ARCH_ARG): New.
19981 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
19982 "[arch|tune] 64" for 64-bit codegen.
19983
19984 2021-07-14 Richard Biener <rguenther@suse.de>
19985
19986 PR tree-optimization/101445
19987 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
19988 of the IV in the correct direction for negative stride
19989 accesses.
19990
19991 2021-07-14 Jakub Jelinek <jakub@redhat.com>
19992
19993 PR go/101407
19994 * godump.c (godump_str_hash): New type.
19995 (godump_container::pot_dummy_types): Use string_hash instead of
19996 ptr_hash in the hash_set.
19997
19998 2021-07-14 Richard Biener <rguenther@suse.de>
19999
20000 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
20001 vector types where the old vector type has a multiple of
20002 the new vector type elements.
20003 (vect_create_partial_epilog): New function, split out from...
20004 (vect_create_epilog_for_reduction): ... here.
20005 (vect_transform_cycle_phi): Reduce the re-used accumulator
20006 to the new vector type.
20007
20008 2021-07-14 Alexandre Oliva <oliva@adacore.com>
20009
20010 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
20011 non-'t'-sized arg check.
20012
20013 2021-07-14 Alexandre Oliva <oliva@adacore.com>
20014
20015 * tree-cfg.c (cleanup_dead_labels_eh): Update
20016 post_landing_pad label upon change of landing pad block's
20017 primary label.
20018 (cleanup_dead_labels): Check that a removed label is not that
20019 of a landing pad.
20020
20021 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
20022
20023 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
20024 simplification.
20025 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
20026 Add Neon to general purpose register case for zero-extend
20027 pattern.
20028 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
20029 case to prevent some cases opting to go through memory.
20030 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
20031 * rtl.c (rtvec_series_p): Define predicate to determine
20032 whether a vector contains a linear series of integers.
20033 * rtl.h (rtvec_series_p): Define.
20034 * rtlanal.c (vec_series_lowpart_p): Define predicate to
20035 determine if a vector selection is equivalent to the low part
20036 of the vector.
20037 * rtlanal.h (vec_series_lowpart_p): Define.
20038 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
20039 Add vec_select -> subreg simplification.
20040
20041 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
20042
20043 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
20044 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
20045 _mm_test_mix_ones_zeros): New.
20046
20047 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
20048 Richard Biener <rguenther@suse.de>
20049
20050 * gimple.c (gimple_could_trap_p_1): Make S argument a
20051 "const gimple*". Preserve constness in call to
20052 gimple_asm_volatile_p.
20053 (gimple_could_trap_p): Make S argument a "const gimple*".
20054 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
20055 Update function prototypes.
20056
20057 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20058
20059 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
20060 (_loop_vec_info::main_loop_edge): New field.
20061 (_loop_vec_info::skip_main_loop_edge): Likewise.
20062 (_loop_vec_info::skip_this_loop_edge): Likewise.
20063 (_loop_vec_info::reusable_accumulators): Likewise.
20064 (_stmt_vec_info::reduc_scalar_results): Likewise.
20065 (_stmt_vec_info::reused_accumulator): Likewise.
20066 (vect_get_main_loop_result): Declare.
20067 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
20068 reduc_scalar_inputs.
20069 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
20070 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
20071 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
20072 skip_main_loop_edge and skip_this_loop_edge fields.
20073 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
20074 (vect_emit_reduction_init_stmts): New function.
20075 (get_initial_def_for_reduction): Use it.
20076 (get_initial_defs_for_reduction): Likewise. Change the vinfo
20077 parameter to a loop_vec_info.
20078 (vect_create_epilog_for_reduction): Store the scalar results
20079 in the reduc_info. If an epilogue loop is reusing an accumulator
20080 from the main loop, and if the epilogue loop can also be skipped,
20081 try to place the reduction code in the join block. Record
20082 accumulators that could potentially be reused by epilogue loops.
20083 (vect_transform_cycle_phi): When vectorizing epilogue loops,
20084 try to reuse accumulators from the main loop. Record the initial
20085 value in reduc_info for non-SLP reductions too.
20086
20087 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20088
20089 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
20090 adjustment handling. Take the neutral value as an argument,
20091 in place of the code argument.
20092 (vect_transform_cycle_phi): Update accordingly. Handle the
20093 initial values of cond reductions separately from code reductions.
20094 Choose the adjustment here rather than in
20095 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
20096
20097 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20098
20099 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
20100 (neutral_op_for_reduction): ...this, providing a more general
20101 interface.
20102 (vect_create_epilog_for_reduction): Update accordingly.
20103 (vectorizable_reduction): Likewise.
20104 (vect_transform_cycle_phi): Likewise.
20105
20106 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20107
20108 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
20109 reduc_info instead of the original stmt_vec_info.
20110 (vect_transform_cycle_phi): Update accordingly.
20111
20112 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20113
20114 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
20115 reduc_info as an additional parameter.
20116 (vect_transform_cycle_phi): Update accordingly.
20117
20118 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20119
20120 * tree-vectorizer.h: Include tree-ssa-operands.h.
20121 (vect_phi_initial_value): New function.
20122 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
20123 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
20124 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
20125 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
20126
20127 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20128
20129 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
20130 the phi results to vectype after creating them. Remove later
20131 conversion code that thus becomes redundant.
20132
20133 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20134
20135 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
20136 the new_phis vector with a reduc_inputs vector. Combine handling
20137 of reduction chains and ncopies > 1.
20138
20139 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20140
20141 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
20142 scalar_results to group_size elements after reducing down from
20143 N*group_size elements. Construct an array_slice of the live-out
20144 stmts and assert that there is one stmt per scalar result.
20145
20146 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20147
20148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20149 nested_in_vect_loop and use double_reduc everywhere. Remove dead
20150 assignment to "loop".
20151
20152 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
20153
20154 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
20155 vector types first. For scalar types, consider both the preferred
20156 vector mode and the alternative vector modes.
20157 * optabs-query.c (can_vec_mask_load_store_p): Use the same
20158 structure as above, in particular using related_vector_mode
20159 for modes provided by autovectorize_vector_modes.
20160
20161 2021-07-13 Jakub Jelinek <jakub@redhat.com>
20162 Richard Biener <rguenther@suse.de>
20163
20164 PR tree-optimization/101419
20165 * tree-pass.h (PROP_objsz): Define.
20166 (make_pass_early_object_sizes): Declare.
20167 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
20168 there to pass_early_object_sizes, drop parameter.
20169 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
20170 drop parameter, move pass_post_ipa_warn right after that.
20171 * tree-object-size.c (pass_object_sizes::execute): Rename to...
20172 (object_sizes_execute): ... this. Add insert_min_max_p argument.
20173 (pass_data_object_sizes): Move after object_sizes_execute.
20174 (pass_object_sizes): Likewise. In execute method call
20175 object_sizes_execute, drop set_pass_param method and insert_min_max_p
20176 non-static data member and its initializer in the ctor.
20177 (pass_data_early_object_sizes, pass_early_object_sizes,
20178 make_pass_early_object_sizes): New.
20179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
20180 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
20181
20182 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
20183
20184 PR target/101275
20185 * config/riscv/constraints.md ("S"): Update description and remove
20186 @internal.
20187 * doc/md.texi (Machine Constraints): Document the 'S' constraints
20188 for RISC-V.
20189
20190 2021-07-13 Richard Biener <rguenther@suse.de>
20191
20192 Revert:
20193 2021-07-12 Richard Biener <rguenther@suse.de>
20194
20195 * tree-vect-slp.c (vect_slp_region): Show the number of
20196 SLP graph entries in the optimization message.
20197
20198 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
20199
20200 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
20201 value to to long.
20202 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
20203 return type to long.
20204 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
20205 type to long.
20206
20207 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
20208
20209 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
20210 Query relation between the 2 operands and use it.
20211
20212 2021-07-12 Sergei Trofimovich <siarheit@google.com>
20213
20214 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
20215
20216 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
20217
20218 PR target/101424
20219 * config/i386/predicates.md (vec_setm_sse41_operand):
20220 Rename from vec_setm_operand.
20221 (vec_setm_avx2_operand): New predicate.
20222 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
20223 Use vec_setm_sse41_operand as operand 2 predicate.
20224 (vec_set<V_256_512:mode): New expander.
20225 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
20226 as operand 2 predicate.
20227
20228 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
20229
20230 PR tree-optimization/101335
20231 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
20232
20233 2021-07-12 Andrew Pinski <apinski@marvell.com>
20234
20235 * tree-ssa-phiopt.c (match_simplify_replacement): Move
20236 insert of the sequence before the movement of the
20237 statement. Check if to see if the statement is used
20238 outside of the original phi to see if we should move it.
20239
20240 2021-07-12 Richard Biener <rguenther@suse.de>
20241
20242 * dump-context.h (debug_dump_context::debug_dump_context):
20243 Add FILE * parameter defaulted to stderr.
20244 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
20245 * tree-vect-slp.c (dot_slp_tree): New functions.
20246
20247 2021-07-12 Richard Biener <rguenther@suse.de>
20248
20249 PR tree-optimization/101373
20250 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
20251 references when the BB may not return.
20252 (compute_avail): Pass in the function we're working on and
20253 replace cfun references with it. Externally throwing
20254 const calls also possibly terminate the function.
20255 (pass_pre::execute): Pass down the function we're working on.
20256 * gcse.c (compute_hash_table_work): Externally throwing
20257 const/pure calls also need record_last_mem_set_info.
20258 * postreload-gcse.c (record_opr_changes): Looping or externally
20259 throwing const/pure calls also need record_last_mem_set_info.
20260
20261 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
20262
20263 * recog.c (memory_address_addr_space_p): Change the type to bool.
20264 Return true/false instead of 1/0.
20265 (offsettable_memref_p): Ditto.
20266 (offsettable_nonstrict_memref_p): Ditto.
20267 (offsettable_address_addr_space_p): Ditto.
20268 Change the type of addressp indirect function to bool.
20269 * recog.h (memory_address_addr_space_p): Change the type to bool.
20270 (strict_memory_address_addr_space_p): Ditto.
20271 (offsettable_memref_p): Ditto.
20272 (offsettable_nonstrict_memref_p): Ditto.
20273 (offsettable_address_addr_space_p): Ditto.
20274 * reload.c (maybe_memory_address_addr_space_p): Ditto.
20275 (strict_memory_address_addr_space_p): Change the type to bool.
20276 Return true/false instead of 1/0.
20277 (maybe_memory_address_addr_space_p): Change the type to bool.
20278
20279 2021-07-12 Richard Biener <rguenther@suse.de>
20280
20281 * tree-vect-slp.c (vect_slp_region): Show the number of
20282 SLP graph entries in the optimization message.
20283
20284 2021-07-12 Richard Biener <rguenther@suse.de>
20285
20286 PR tree-optimization/101394
20287 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
20288 copies from abnormals for a full redundancy.
20289
20290 2021-07-12 Richard Biener <rguenther@suse.de>
20291
20292 PR middle-end/101423
20293 * gimple.c (gimple_could_trap_p_1): Internal function calls
20294 do not trap.
20295 * tree-eh.c (tree_could_trap_p): Likewise.
20296
20297 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
20298
20299 PR target/66791
20300 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
20301 __a * __b.
20302 (vmulq_n_u32): Likewise.
20303 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
20304 (vmulq_n_f32): Likewise.
20305 (vmul_n_f16): Likewise.
20306 (vmulq_n_f16): Likewise.
20307
20308 2021-07-12 Martin Liska <mliska@suse.cz>
20309
20310 PR sanitizer/101425
20311 * gcc.c (check_offload_target_name): Call
20312 candidates_list_and_hint only if we have a candidate.
20313
20314 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
20315
20316 PR target/98435
20317 * config/arm/neon.md (vec_init): Move to ...
20318 * config/arm/vec-common.md (vec_init): ... here.
20319 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
20320
20321 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
20322
20323 PR tree-optimization/101403
20324 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
20325 signedness of the shift is not the same as the signedness of
20326 the type extension.
20327
20328 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
20329 Uroš Bizjak <ubizjak@gmail.com>
20330
20331 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
20332 divmod of a constant numerator with new define_insn_and_split.
20333
20334 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
20335
20336 PR target/100152
20337 * config/i386/i386-expand.c (ix86_expand_call): If a call is
20338 to a non-local-binding, or local but to a public symbol, then
20339 assume that it might be indirected via the lazy symbol binder.
20340 Mark R10 and R10 as clobbered in that case.
20341
20342 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
20343
20344 PR target/101377
20345 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
20346 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
20347 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
20348
20349 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
20350
20351 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
20352 log2 range of operands[3] to [1,31].
20353 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
20354
20355 2021-07-09 Sergei Trofimovich <siarheit@google.com>
20356
20357 * doc/md.texi: Don't split @smallexample in multiple @groups.
20358
20359 2021-07-09 Sergei Trofimovich <siarheit@google.com>
20360
20361 * doc/md.texi: Add missing 'see' word.
20362
20363 2021-07-09 Andrew Pinski <apinski@marvell.com>
20364
20365 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
20366 to take sequence and gimple_match_op. Accept the case where
20367 op is a SSA_NAME and one statement in the sequence.
20368 Also allow constants.
20369 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
20370 Update call to phiopt_early_allow. Discard the sequence if not
20371 used.
20372
20373 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
20374
20375 PR target/100760
20376 PR target/100761
20377 PR target/100762
20378 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
20379 instead of ISA_HAS_MSA.
20380 (mips_expand_vec_unpack): Likewise.
20381 (mips_expand_vector_init): Likewise.
20382
20383 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
20384
20385 * config/rs6000/vsx.md (mods_<mode>): Rename to...
20386 (mod<mode>3): ... this.
20387 (modu_<mode>): Rename to...
20388 (umod<mode>3): ... this.
20389 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
20390 MODU_V4SI): Adjust.
20391
20392 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
20393
20394 * config/h8300/shiftrotate.md (variable shifts): Expose condition
20395 code handling for the test before the loop.
20396
20397 2021-07-08 Martin Jambor <mjambor@suse.cz>
20398
20399 PR ipa/101066
20400 * ipa-sra.c (class isra_call_summary): New member
20401 m_before_any_store, initialize it in the constructor.
20402 (isra_call_summary::dump): Dump the new field.
20403 (ipa_sra_call_summaries::duplicate): Copy it.
20404 (process_scan_results): Set it.
20405 (isra_write_edge_summary): Stream it.
20406 (isra_read_edge_summary): Likewise.
20407 (param_splitting_across_edge): Only override
20408 safe_to_import_accesses if m_before_any_store is set.
20409
20410 2021-07-08 Martin Sebor <msebor@redhat.com>
20411
20412 PR bootstrap/101374
20413 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
20414 Use Object Size Type 0 instead of 1.
20415
20416 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
20417
20418 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
20419 if condition.
20420
20421 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
20422
20423 * match.pd: Simplify an extend-operate-truncate sequence involving
20424 a POLY_INT_CST.
20425
20426 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
20427 Richard Biener <rguenther@suse.de>
20428
20429 PR tree-optimization/40210
20430 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
20431 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
20432 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
20433
20434 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
20435
20436 PR target/100637
20437 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
20438 Handle V4QI mode.
20439 * config/i386/mmx.md (V_32): New mode iterator.
20440 (mov<V_32:mode>): Use V_32 mode iterator.
20441 (*mov<V_32:mode>_internal): Ditto.
20442 (*push<V_32:mode>2_rex64): Ditto.
20443 (*push<V_32:mode>2): Ditto.
20444 (movmisalign<V_32:mode>): Ditto.
20445 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
20446 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
20447 (vec_unpacks_lo_v4qi): New expander.
20448 (vec_unpacks_hi_v4qi): Ditto.
20449 (vec_unpacku_lo_v4qi): Ditto.
20450 (vec_unpacku_hi_v4qi): Ditto.
20451 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
20452 (VALID_INT_MODE_P): Ditto.
20453
20454 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
20455
20456 PR target/100809
20457 * config/rs6000/rs6000.md (udivti3): New insn.
20458 (divti3): New insn.
20459 (umodti3): New insn.
20460 (modti3): New insn.
20461
20462 2021-07-07 Martin Sebor <msebor@redhat.com>
20463
20464 PR tree-optimization/100137
20465 PR tree-optimization/99121
20466 PR tree-optimization/97027
20467 * builtins.c (access_ref::access_ref): Also set offmax.
20468 (access_ref::offset_in_range): Define new function.
20469 (access_ref::add_offset): Set offmax.
20470 (access_ref::inform_access): Handle access_none.
20471 (handle_mem_ref): Clear ostype.
20472 (compute_objsize_r): Handle ASSERT_EXPR.
20473 * builtins.h (struct access_ref): Add offmax member.
20474 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
20475 compute_objsize() and simplify.
20476
20477 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
20478
20479 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
20480 and VSX_BUILTIN_STXVP.
20481
20482 2021-07-07 Martin Sebor <msebor@redhat.com>
20483
20484 PR target/101363
20485 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
20486 a stray %K from error_at() missed in r12-2088.
20487
20488 2021-07-07 Richard Biener <rguenther@suse.de>
20489
20490 PR tree-optimization/99728
20491 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
20492 aggregate copies.
20493 (mem_refs_may_alias_p): Add assert we handled aggregate
20494 copies elsewhere.
20495 (sm_seq_valid_bb): Give up when running into aggregate copies.
20496 (ref_indep_loop_p): Handle aggregate copies as never
20497 being invariant themselves but allow other refs to be
20498 disambiguated against them.
20499 (can_sm_ref_p): Do not try to apply store-motion to aggregate
20500 copies.
20501
20502 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
20503
20504 PR debug/101283
20505 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
20506 number of bits.
20507
20508 2021-07-06 Martin Sebor <msebor@redhat.com>
20509
20510 * gimple-pretty-print.c (percent_G_format): Remove.
20511 * tree-diagnostic.c (default_tree_printer): Remove calls.
20512 * tree-pretty-print.c (percent_K_format): Remove.
20513 * tree-pretty-print.h (percent_K_format): Remove.
20514
20515 2021-07-06 Martin Sebor <msebor@redhat.com>
20516
20517 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
20518 Remove %K and use error_at.
20519 (aarch64_expand_fcmla_builtin): Same.
20520 (aarch64_expand_builtin_tme): Same.
20521 (aarch64_expand_builtin_memtag): Same.
20522 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
20523 (arm_expand_builtin): Same.
20524 * config/arm/arm.c (bounds_check): Same.
20525
20526 2021-07-06 Martin Sebor <msebor@redhat.com>
20527
20528 * builtins.c (warn_string_no_nul): Remove %G.
20529 (maybe_warn_for_bound): Same.
20530 (warn_for_access): Same.
20531 (check_access): Same.
20532 (check_strncat_sizes): Same.
20533 (expand_builtin_strncat): Same.
20534 (expand_builtin_strncmp): Same.
20535 (expand_builtin): Same.
20536 (expand_builtin_object_size): Same.
20537 (warn_dealloc_offset): Same.
20538 (maybe_emit_free_warning): Same.
20539 * calls.c (maybe_warn_alloc_args_overflow): Same.
20540 (maybe_warn_nonstring_arg): Same.
20541 (maybe_warn_rdwr_sizes): Same.
20542 * expr.c (expand_expr_real_1): Remove %K.
20543 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
20544 (gimple_fold_builtin_strncat): Same.
20545 * gimple-ssa-sprintf.c (format_directive): Same.
20546 (handle_printf_call): Same.
20547 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
20548 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
20549 (maybe_diag_access_bounds): Same. Call gimple_location.
20550 (check_bounds_or_overlap): Same.
20551 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
20552 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
20553 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
20554 (maybe_diag_stxncpy_trunc): Same.
20555 (handle_builtin_stxncpy_strncat): Same.
20556 (maybe_warn_pointless_strcmp): Same.
20557 * tree-ssa-uninit.c (maybe_warn_operand): Same.
20558
20559 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
20560
20561 PR target/97194
20562 * config/i386/predicates.md (vec_setm_operand): Enable
20563 register_operand for TARGET_SSE4_1.
20564 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
20565 as operand 2 predicate. Call ix86_expand_vector_set_var
20566 for non-constant index operand.
20567 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
20568 Call ix86_expand_vector_set_var for non-constant index operand.
20569
20570 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
20571
20572 * config/h8300/jumpcall.md (*branch): When possible, generate
20573 the comparison in CCZN mode.
20574 * config/h8300/predicates.md (simple_memory_operand): Reject all
20575 auto-increment addressing modes.
20576
20577 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
20578
20579 PR bootstrap/100246
20580 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
20581 this type.
20582
20583 2021-07-06 Richard Biener <rguenther@suse.de>
20584
20585 * doc/md.texi (vec_fmaddsub<mode>4): Document.
20586 (vec_fmsubadd<mode>4): Likewise.
20587 * optabs.def (vec_fmaddsub$a4): Add.
20588 (vec_fmsubadd$a4): Likewise.
20589 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
20590 (IFN_VEC_FMSUBADD): Likewise.
20591 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
20592 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
20593 (addsub_pattern::build): Likewise.
20594 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
20595 and CFN_VEC_FMSUBADD are not transparent for permutes.
20596 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
20597 (vec_fmsubadd<mode>4): Likewise.
20598
20599 2021-07-06 Richard Biener <rguenther@suse.de>
20600
20601 * doc/invoke.texi (fmove-loop-stores): Document.
20602 * common.opt (fmove-loop-stores): New option.
20603 * opts.c (default_options_table): Enable -fmove-loop-stores
20604 at -O1 but not -Og.
20605 * tree-ssa-loop-im.c (pass_lim::execute): Pass
20606 flag_move_loop_stores instead of true to
20607 loop_invariant_motion_in_fun.
20608
20609 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
20610
20611 * doc/install.texi: Document --with-dsymutil.
20612
20613 2021-07-06 Andrew Pinski <apinski@marvell.com>
20614
20615 PR tree-optimization/101256
20616 * dbgcnt.def (phiopt_edge_range): New counter.
20617 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
20618 Check to make sure the new name is defined in the same
20619 bb as the conditional before duplicating range info.
20620 Also add debug counter.
20621
20622 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
20623
20624 PR rtl-optimization/100328
20625 * config/i386/i386-options.c (ix86_option_override_internal):
20626 Set param_ira_consider_dup_in_all_alts to 0.
20627
20628 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
20629
20630 PR rtl-optimization/100328
20631 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
20632 parameter.
20633 * ira.c (ira_get_dup_out_num): Adjust as parameter
20634 param_ira_consider_dup_in_all_alts.
20635 * params.opt (ira-consider-dup-in-all-alts): New.
20636 * ira-conflicts.c (process_regs_for_copy): Add one parameter
20637 single_input_op_has_cstr_p.
20638 (get_freq_for_shuffle_copy): New function.
20639 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
20640 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
20641
20642 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
20643
20644 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
20645 generate condition code aware RTL directly.
20646
20647 2021-07-05 Andrew Pinski <apinski@marvell.com>
20648
20649 PR tree-optimization/101039
20650 * match.pd (A CMP 0 ? A : -A): New patterns.
20651 * tree-ssa-phiopt.c (abs_replacement): Delete function.
20652 (tree_ssa_phiopt_worker): Don't call abs_replacement.
20653 Update comment about abs_replacement.
20654
20655 2021-07-05 Andrew Pinski <apinski@marvell.com>
20656
20657 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
20658 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
20659
20660 2021-07-05 Andrew Pinski <apinski@marvell.com>
20661
20662 * tree-ssa-phiopt.c (match_simplify_replacement):
20663 Add early_p argument. Call gimple_simplify_phiopt
20664 instead of gimple_simplify.
20665 (tree_ssa_phiopt_worker): Update call to
20666 match_simplify_replacement and allow unconditionally.
20667 (phiopt_early_allow): New function.
20668 (gimple_simplify_phiopt): New function.
20669
20670 2021-07-05 Andrew Pinski <apinski@marvell.com>
20671
20672 PR middle-end/101237
20673 * fold-const.c (negate_expr_p): Remove call to element_mode
20674 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
20675 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
20676 (fold_negate_expr_1): Likewise.
20677 (const_unop): Likewise.
20678 (fold_cond_expr_with_comparison): Likewise.
20679 (fold_binary_loc): Likewise.
20680 (fold_ternary_loc): Likewise.
20681 (tree_call_nonnegative_warnv_p): Likewise.
20682 * match.pd (-(A + B) -> (-B) - A): Likewise.
20683
20684 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
20685
20686 * configure.ac: Handle --with-dsymutil in the same way as we
20687 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
20688 Extract the type and version for the dsymutil configured or
20689 found by the default searches.
20690 * config.in: Regenerated.
20691 * configure: Regenerated.
20692 * collect2.c (do_dsymutil): Handle locating dsymutil in the
20693 same way as for the assembler and linker.
20694 * config/darwin.h (DSYMUTIL): Delete.
20695 * gcc.c: Report a configured dsymutil correctly.
20696 * exec-tool.in: Allow for dsymutil.
20697
20698 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
20699
20700 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
20701 Handle V4QI and V2HI modes.
20702 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
20703 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
20704 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
20705 Handle 4-byte dual operands with TARGET_XOP and single operands
20706 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
20707 mmx_pshufbv4qi3 for TARGET_SSSE3.
20708 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
20709 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
20710 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
20711 (expand_vec_perm_even_odd_1): Handle V4QI mode.
20712 (expand_vec_perm_broadcast_1): Handle V4QI mode.
20713 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
20714 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
20715 (mmx_pshufbv4qi3): Ditto.
20716 (*mmx_pblendw32): Ditto.
20717 (*mmx_pblendw64): Rename from *mmx_pblendw.
20718 (mmx_punpckhbw_low): New insn_and_split pattern.
20719 (mmx_punpcklbw_low): Ditto.
20720
20721 2021-07-05 Richard Biener <rguenther@suse.de>
20722
20723 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
20724 set LOOP_C_INFINITE on the vectorized loop.
20725
20726 2021-07-05 Richard Biener <rguenther@suse.de>
20727
20728 PR middle-end/101291
20729 * cfgloopmanip.c (loop_version): Set the loop copy of the
20730 versioned loop to the new loop.
20731
20732 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
20733
20734 PR target/100269
20735 * config.gcc: Ensure that Darwin biarch definitions are
20736 added before i386.h.
20737 * config/i386/darwin.h (TARGET_64BIT): Remove.
20738 (PR80556_WORKAROUND): New.
20739 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
20740 (DARWIN_SUBARCH_SPEC): New.
20741 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
20742 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
20743 (REAL_LIBGCC_SPEC): Remove.
20744 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
20745 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
20746 (REAL_LIBGCC_SPEC): Remove.
20747
20748 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
20749
20750 PR middle-end/101294
20751 * expr.c (store_constructor): Don't use vec_duplicate on vector.
20752
20753 2021-07-02 Martin Sebor <msebor@redhat.com>
20754
20755 PR middle-end/98871
20756 PR middle-end/98512
20757 * diagnostic.c (get_any_inlining_info): New.
20758 (update_effective_level_from_pragmas): Handle inlining context.
20759 (diagnostic_enabled): Same.
20760 (diagnostic_report_diagnostic): Same.
20761 * diagnostic.h (struct diagnostic_info): Add ctor.
20762 (struct diagnostic_context): Add new member.
20763 * tree-diagnostic.c (set_inlining_locations): New.
20764 (tree_diagnostics_defaults): Set new callback pointer.
20765
20766 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
20767
20768 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
20769 New macros.
20770 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
20771 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
20772 lxvp and stxvp built-ins.
20773 (mma_init_builtins): Handle lxvp and stxvp built-ins.
20774 (builtin_function_type): Likewise.
20775 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
20776
20777 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20778
20779 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
20780 additional argument for the code.
20781 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
20782 argument for the code. Just return if the ZN bits are useful or
20783 not rather than the old style CC_* enums.
20784 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
20785 more generic shiftqi patterns.
20786 (shifthi_noscratch, shiftsi_noscratch): Similarly.
20787 (shiftqi_noscratch_set_flags): New pattern.
20788 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
20789
20790 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
20791
20792 PR tree-optimization/101223
20793 * range-op.cc (build_lt): Add -1 for signed values.
20794 (built_gt): Subtract -1 for signed values.
20795
20796 2021-07-02 David Faust <david.faust@oracle.com>
20797
20798 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
20799 (btf_asm_type): Likewise.
20800
20801 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20802
20803 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
20804 an array of rtx rather than a pointer to rtx. Add code argument.
20805 (compute_a_shift_length): Similarly.
20806 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
20807 shift itself isn't an operand. Create dummy operand[0] to carry
20808 a mode and pass a suitable rtx code to compute_a_shift_length.
20809 (get_shift_alg): Adjust operand number of clobber in output templates.
20810 (output_a_shift): Make first argument an array of rtx rather than
20811 a pointer to rtx. Add code argument for the type of shift.
20812 Adjust now that the shift itself is no longer an operand.
20813 (compute_a_shift_length): Similarly.
20814 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
20815 iterator rather than nshift_operator.
20816 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
20817 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
20818 and compute_a_shift_length.
20819 (shiftqi_noscratch_clobber_flags): Likewise.
20820 (shifthi_noscratch_clobber_flags): Likewise.
20821 (shiftsi_noscratch_clobber_flags): Likewise.
20822
20823 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
20824
20825 PR debug/101283
20826 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
20827 dsymutil for BTF/CTF.
20828
20829 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
20830
20831 PR debug/101283
20832 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
20833 segment to include BTF.
20834 (BTF_INFO_SECTION_NAME): New.
20835
20836 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20837
20838 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
20839 (small_data_operand, memreg_operand, small_insn_p): Likewise.
20840 * config/m32r/m32r.c (call_operand): Adjust return type.
20841 (small_data_operand, memreg_operand): Likewise.
20842
20843 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20844
20845 * config/frv/frv-protos.h (integer_register_operand): Adjust return
20846 type.
20847 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
20848 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
20849 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
20850 (move_source_operand, move_destination_operand): Likewise.
20851 (condexec_source_operand, condexec_dest_operand): Likewise.
20852 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
20853 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
20854 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
20855 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
20856 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
20857 (even_fpr_operand, odd_fpr_operand): Likewise.
20858 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
20859 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
20860 (uint4_operand, uint1_operand, int_2word_operand): Likewise
20861 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
20862 (relational_operator, float_relational_operator): Likewise.
20863 (ccr_eqne_operator, minmax_operator): Likewise.
20864 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
20865 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
20866 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
20867 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
20868 (quad_acc_operand, accg_operand): Likewise.
20869
20870 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20871
20872 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
20873 return type to a bool.
20874 (nonimmediate_nonstack_operand): Likewise.
20875 (xstormy16_splittable_below100_operand): Likewise.
20876 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
20877 return type.
20878 (xstormy16_splittable_below100_operand): Likewise.
20879
20880 2021-07-02 Richard Biener <rguenther@suse.de>
20881
20882 PR tree-optimization/101293
20883 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
20884 with combined offsets.
20885 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
20886 combined with the rest of the offset.
20887
20888 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
20889
20890 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
20891 PIC encodings for PE-COFF targets.
20892
20893 2021-07-02 Jakub Jelinek <jakub@redhat.com>
20894
20895 PR target/101286
20896 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
20897 Return nullptr for TImode inner mode.
20898
20899 2021-07-02 Richard Biener <rguenther@suse.de>
20900
20901 PR tree-optimization/101280
20902 PR tree-optimization/101173
20903 * gimple-loop-interchange.cc
20904 (tree_loop_interchange::valid_data_dependences): Properly
20905 guard all dependence checks with DDR_REVERSED_P or its
20906 inverse.
20907
20908 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
20909
20910 * config/i386/i386-expand.c (ix86_expand_builtin):
20911 Add branch to clear odata when ZF is set for asedecenc_expand
20912 and wideaesdecenc_expand.
20913
20914 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
20915
20916 * config/i386/gcc-auto-profile: regenerate
20917
20918 2021-07-02 liuhongt <hongtao.liu@intel.com>
20919
20920 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
20921 (trunc<mode><pmov_dst_4_lower>2): this.
20922
20923 2021-07-01 David Malcolm <dmalcolm@redhat.com>
20924
20925 * diagnostic.h (diagnostic_context::m_file_cache): New field.
20926 * input.c (class fcache): Rename to...
20927 (class file_cache_slot): ...this, making most members private and
20928 prefixing fields with "m_".
20929 (file_cache_slot::get_file_path): New accessor.
20930 (file_cache_slot::get_use_count): New accessor.
20931 (file_cache_slot::missing_trailing_newline_p): New accessor.
20932 (file_cache_slot::inc_use_count): New.
20933 (fcache_buffer_size): Move to...
20934 (file_cache_slot::buffer_size): ...here.
20935 (fcache_line_record_size): Move to...
20936 (file_cache_slot::line_record_size): ...here.
20937 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
20938 (fcache_tab_size): Move to file_cache::num_file_slots.
20939 (diagnostic_file_cache_init): Update for move of fcache_tab
20940 to global_dc->m_file_cache.
20941 (diagnostic_file_cache_fini): Likewise.
20942 (lookup_file_in_cache_tab): Convert to...
20943 (file_cache::lookup_file): ...this.
20944 (diagnostics_file_cache_forcibly_evict_file): Update for move of
20945 fcache_tab to global_dc->m_file_cache, moving most of
20946 implementation to...
20947 (file_cache::forcibly_evict_file): ...this new function and...
20948 (file_cache_slot::evict): ...this new function.
20949 (evicted_cache_tab_entry): Convert to...
20950 (file_cache::evicted_cache_tab_entry): ...this.
20951 (add_file_to_cache_tab): Convert to...
20952 (file_cache::add_file): ...this, moving bulk of implementation
20953 to...
20954 (file_cache_slot::create): ..this new function.
20955 (file_cache::file_cache): New.
20956 (file_cache::~file_cache): New.
20957 (lookup_or_add_file_to_cache_tab): Convert to...
20958 (file_cache::lookup_or_add_file): ..this new function.
20959 (fcache::fcache): Rename to...
20960 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
20961 to fields.
20962 (fcache::~fcache): Rename to...
20963 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
20964 to fields.
20965 (needs_read): Convert to...
20966 (file_cache_slot::needs_read_p): ...this.
20967 (needs_grow): Convert to...
20968 (file_cache_slot::needs_grow_p): ...this.
20969 (maybe_grow): Convert to...
20970 (file_cache_slot::maybe_grow): ...this.
20971 (read_data): Convert to...
20972 (file_cache_slot::read_data): ...this.
20973 (maybe_read_data): Convert to...
20974 (file_cache_slot::maybe_read_data): ...this.
20975 (get_next_line): Convert to...
20976 (file_cache_slot::get_next_line): ...this.
20977 (goto_next_line): Convert to...
20978 (file_cache_slot::goto_next_line): ...this.
20979 (read_line_num): Convert to...
20980 (file_cache_slot::read_line_num): ...this.
20981 (location_get_source_line): Update for moving of globals to
20982 global_dc->m_file_cache.
20983 (location_missing_trailing_newline): Likewise.
20984 * input.h (class file_cache_slot): New forward decl.
20985 (class file_cache): New.
20986
20987 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
20988
20989 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
20990 128-bit floating point conditional move support.
20991 (have_compare_and_set_mask): Add IEEE 128-bit floating point
20992 types.
20993 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
20994 (mov<mode>cc_p10, IEEE128 iterator): New insn.
20995 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
20996 (fpmask<mode>, IEEE128 iterator): New insn.
20997 (xxsel<mode>, IEEE128 iterator): New insn.
20998
20999 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
21000
21001 PR debug/101283
21002 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
21003
21004 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
21005
21006 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
21007 Make it global.
21008 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
21009 New prototype.
21010 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
21011 (vec_duplicate<mode>): New expander.
21012
21013 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
21014
21015 PR target/100865
21016 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
21017 New prototype.
21018 (ix86_byte_broadcast): New function.
21019 (ix86_convert_const_wide_int_to_broadcast): Likewise.
21020 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
21021 size is 16 bytes or bigger.
21022 (ix86_broadcast_from_integer_constant): New function.
21023 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
21024 to broadcast if mode size is 16 bytes or bigger.
21025 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
21026 prototype.
21027 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
21028
21029 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
21030
21031 * config/i386/predicates.md (ix86_endbr_immediate_operand):
21032 Return true/false instead of 1/0.
21033 (movq_parallel): Ditto.
21034
21035 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
21036
21037 * recog.c (general_operand): Return true/false instead of 1/0.
21038 (register_operand): Ditto.
21039 (immediate_operand): Ditto.
21040 (const_int_operand): Ditto.
21041 (const_scalar_int_operand): Ditto.
21042 (const_double_operand): Ditto.
21043 (push_operand): Ditto.
21044 (pop_operand): Ditto.
21045 (memory_operand): Ditto.
21046 (indirect_operand): Ditto.
21047
21048 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
21049
21050 * genpreds.c (write_predicate_subfunction):
21051 Change the type of written subfunction to bool.
21052 (write_one_predicate_function):
21053 Change the type of written function to bool.
21054 (write_tm_preds_h): Ditto.
21055 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
21056 * recog.c (general_operand): Change the type to bool.
21057 (address_operand): Ditto.
21058 (register_operand): Ditto.
21059 (pmode_register_operand): Ditto.
21060 (scratch_operand): Ditto.
21061 (immediate_operand): Ditto.
21062 (const_int_operand): Ditto.
21063 (const_scalar_int_operand): Ditto.
21064 (const_double_operand): Ditto.
21065 (nonimmediate_operand): Ditto.
21066 (nonmemory_operand): Ditto.
21067 (push_operand): Ditto.
21068 (pop_operand): Ditto.
21069 (memory_operand): Ditto.
21070 (indirect_operand): Ditto.
21071 (ordered_comparison_operator): Ditto.
21072 (comparison_operator): Ditto.
21073 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
21074 Change the type of indirect predicate function to bool.
21075 * config/rs6000/rs6000.c (easy_vector_constant):
21076 Change the type to bool.
21077 * config/mips/mips-protos.h (m16_based_address_p):
21078 Change the type of operand 3 to bool.
21079
21080 2021-07-01 Richard Biener <rguenther@suse.de>
21081
21082 PR tree-optimization/101280
21083 PR tree-optimization/101173
21084 * gimple-loop-interchange.cc
21085 (tree_loop_interchange::valid_data_dependences): Revert
21086 previous change and instead correctly handle DDR_REVERSED_P
21087 dependence.
21088
21089 2021-07-01 Richard Biener <rguenther@suse.de>
21090
21091 PR tree-optimization/101278
21092 * tree-ssa-dse.c (dse_classify_store): First check for
21093 uses, then ignore stmt for chaining purposes.
21094
21095 2021-07-01 Richard Biener <rguenther@suse.de>
21096
21097 PR tree-optimization/100778
21098 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
21099 vectorized ops ahead of their scalar BB.
21100
21101 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
21102
21103 PR target/101044
21104 * config/i386/i386.md (*nabs<dwi>2_doubleword):
21105 New insn_and_split pattern.
21106 (*nabs<dwi>2_1): Ditto.
21107 * config/i386/i386-features.c
21108 (general_scalar_chain::compute_convert_gain):
21109 Handle (NEG (ABS (...))) RTX. Rewrite src code
21110 scanner as switch statement.
21111 (general_scalar_chain::convert_insn):
21112 Handle (NEG (ABS (...))) RTX.
21113 (general_scalar_to_vector_candidate_p):
21114 Detect (NEG (ABS (...))) RTX. Reorder case statements
21115 for (AND (NOT (...) ...)) fallthrough.
21116
21117 2021-07-01 Richard Biener <rguenther@suse.de>
21118
21119 PR tree-optimization/101178
21120 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
21121 (slpg::perm_in): Add.
21122 (slpg::get_perm_in): Remove.
21123 (slpg::get_perm_materialized): Add.
21124 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
21125 during permute propagation and materialization.
21126
21127 2021-07-01 Jakub Jelinek <jakub@redhat.com>
21128
21129 PR debug/101266
21130 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
21131
21132 2021-07-01 Jakub Jelinek <jakub@redhat.com>
21133
21134 PR middle-end/94366
21135 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
21136 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
21137 use boolean_type_node instead of integer_type_node as NE_EXPR type.
21138 (lower_reduction_clauses): Likewise.
21139
21140 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
21141
21142 * config/gcn/gcn.c: Include dwarf2.h.
21143 (gcn_addr_space_debug): New function.
21144 (TARGET_ADDR_SPACE_DEBUG): New hook.
21145
21146 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
21147
21148 * common/config/gcn/gcn-common.c
21149 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
21150 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
21151 when emitting CFI.
21152 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
21153 (gcn_frame_pointer_rqd): New function.
21154 (TARGET_FRAME_POINTER_REQUIRED): New hook.
21155
21156 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
21157
21158 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
21159 prologue register saves.
21160 (gcn_debug_unwind_info): Use UI_DWARF2.
21161 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
21162 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
21163 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
21164 (DWARF_LINK_REGISTER): New define.
21165 (FIRST_PSEUDO_REGISTER): Increment.
21166 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
21167 (CALL_USED_REGISTERS): Likewise.
21168 (REGISTER_NAMES): Likewise.
21169
21170 2021-06-30 Richard Biener <rguenther@suse.de>
21171
21172 PR tree-optimization/101267
21173 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
21174 API and use SLP compatible interface of vect_is_simple_use.
21175 Reject not vectorized SLP defs for callers that do not support
21176 that.
21177 (vect_check_store_rhs): Handle masked stores and pass down
21178 the appropriate operator index.
21179 (vectorizable_call): Adjust.
21180 (vectorizable_store): Likewise.
21181 (vectorizable_load): Likewise. Handle SLP pecularity of
21182 masked loads.
21183 (vect_is_simple_use): Remove special-casing of masked stores.
21184
21185 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
21186
21187 * common.opt (foffload): Remove help as Driver only.
21188 * gcc.c (display_help): Add -foffload.
21189
21190 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
21191
21192 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
21193 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
21194 a candidate list; better inform no offload target is configured
21195 and fix hint extraction when passed target is not '\0' at [len].
21196 * common.opt (foffload): Add tailing '.'.
21197 (foffload-options): Likewise; fix flag name in the help string.
21198
21199 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
21200
21201 PR target/66791
21202 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
21203 (vcage_f32): Gate comparison on __FAST_MATH__.
21204 (vcageq_f32): Likewise.
21205 (vcale_f32): Likewise.
21206 (vcaleq_f32): Likewise.
21207 (vcagt_f32): Likewise.
21208 (vcagtq_f32): Likewise.
21209 (vcalt_f32): Likewise.
21210 (vcaltq_f32): Likewise.
21211 (vcage_f16): Likewise.
21212 (vcageq_f16): Likewise.
21213 (vcale_f16): Likewise.
21214 (vcaleq_f16): Likewise.
21215 (vcagt_f16): Likewise.
21216 (vcagtq_f16): Likewise.
21217 (vcalt_f16): Likewise.
21218 (vcaltq_f16): Likewise.
21219
21220 2021-06-30 Richard Biener <rguenther@suse.de>
21221
21222 PR tree-optimization/101264
21223 * tree-vect-slp.c (vect_optimize_slp): Propagate the
21224 computed perm_in to all "any" permute successors
21225 we cannot de-duplicate immediately.
21226
21227 2021-06-30 liuhongt <hongtao.liu@intel.com>
21228
21229 PR target/101248
21230 * config/i386/sse.md
21231 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
21232 Refined to ..
21233 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
21234 this.
21235 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
21236 * config/i386/subst.md (maskz_scalar): New define_subst.
21237 (maskz_scalar_name): New subst_attr.
21238 (maskz_scalar_op5): Ditto.
21239 (round_saeonly_maskz_scalar_op5): Ditto.
21240 (round_saeonly_maskz_scalar_operand5): Ditto.
21241
21242 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
21243
21244 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
21245 Increase code CSECT alignment to at least 32 bytes.
21246 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
21247 alignment designation.
21248
21249 2021-06-29 Sergei Trofimovich <siarheit@google.com>
21250
21251 * doc/generic.texi: Fix s/net yet/not yet/ typo.
21252
21253 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
21254
21255 PR tree-optimization/101254
21256 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
21257 wrapping/non-wrapping when setting the result range.
21258
21259 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
21260
21261 * value-query.cc (gimple_range_global): Allow phis.
21262
21263 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
21264
21265 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
21266 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
21267 statement for location context.
21268 (check_for_binary_op_overflow): Ditto.
21269 (simplify_using_ranges::get_vr_for_comparison): Ditto.
21270 (simplify_using_ranges::compare_name_with_value): Ditto.
21271 (simplify_using_ranges::compare_names): Ditto.
21272 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
21273 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
21274 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
21275 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
21276 (simplify_using_ranges::two_valued_val_range_p): Ditto.
21277 (simplify_using_ranges::simplify): Ditto.
21278 * vr-values.h: Adjust prototypes.
21279
21280 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
21281
21282 PR target/95046
21283 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
21284
21285 2021-06-29 Julian Brown <julian@codesourcery.com>
21286
21287 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
21288 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
21289 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
21290 otherwise.
21291 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
21292 (MAX_FIXED_MODE_SIZE): Change to 128.
21293
21294 2021-06-29 Julian Brown <julian@codesourcery.com>
21295
21296 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
21297 (s_mnemonic): Add clrsb.
21298 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
21299 (clrsb<mode>2): Add expander for SImode/DImode.
21300
21301 2021-06-29 Julian Brown <julian@codesourcery.com>
21302
21303 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
21304 muldi3): Add patterns.
21305
21306 2021-06-29 Julian Brown <julian@codesourcery.com>
21307
21308 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
21309 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
21310
21311 2021-06-29 Julian Brown <julian@codesourcery.com>
21312
21313 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
21314
21315 2021-06-29 Joseph Myers <joseph@codesourcery.com>
21316
21317 * btfout.c, ctfout.c: Include "memmodel.h".
21318
21319 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
21320
21321 * gcc.c (check_offload_target_name): Cast len argument to
21322 %q.*s to 'int'; avoid -Wstringop-truncation warning.
21323
21324 2021-06-29 Richard Biener <rguenther@suse.de>
21325
21326 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
21327 to "any" permute nodes and relax "any" permute proapgation
21328 during iterative backward propagation.
21329
21330 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
21331
21332 PR other/67300
21333 * common.opt (-foffload=): Update description.
21334 (-foffload-options=): New.
21335 * doc/invoke.texi (C Language Options): Document
21336 -foffload and -foffload-options.
21337 * gcc.c (check_offload_target_name): New, split off from
21338 handle_foffload_option.
21339 (check_foffload_target_names): New.
21340 (handle_foffload_option): Handle -foffload=default.
21341 (driver_handle_option): Update for -foffload-options.
21342 * lto-opts.c (lto_write_options): Use -foffload-options
21343 instead of -foffload.
21344 * lto-wrapper.c (merge_and_complain, append_offload_options):
21345 Likewise.
21346 * opts.c (common_handle_option): Likewise.
21347
21348 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
21349
21350 * doc/invoke.texi (C Language Options): Sort options
21351 alphabetically in optlist and also the description itself.
21352 Remove leftover -fallow-single-precision from and add missing
21353 -fgnu-tm to the optlist.
21354
21355 2021-06-29 Richard Biener <rguenther@suse.de>
21356
21357 * tree-vect-slp.c (slpg_vertex::visited): Remove.
21358 (vect_slp_perms_eq): Handle -1 permutes.
21359 (vect_optimize_slp): Rewrite permute propagation.
21360
21361 2021-06-29 Jakub Jelinek <jakub@redhat.com>
21362
21363 PR c++/101210
21364 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
21365 perform the optimization in GENERIC when sanitizing and x has a
21366 reference type.
21367
21368 2021-06-29 Richard Biener <rguenther@suse.de>
21369
21370 PR tree-optimization/101242
21371 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
21372 PHIs with not represented initial values as leafs.
21373
21374 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
21375
21376 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
21377 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
21378 "register" keyword.
21379 (pdp11_initial_elimination_offset) Remove unused variable.
21380 (pdp11_cmp_length) Ditto.
21381 (pdp11_insn_cost): Ditto, and fix signedness warning.
21382
21383 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
21384
21385 * btfout.c: Include tm_p.h.
21386 * ctfout.c: Same.
21387
21388 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
21389
21390 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
21391 frame related.
21392 (bpf_expand_epilogue): Likewise.
21393 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
21394 Do not define DBX_DEBUGGING_INFO.
21395
21396 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
21397
21398 * doc/invoke.texi: Document the CTF and BTF debug info options.
21399
21400 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
21401 David Faust <david.faust@oracle.com>
21402 Jose E. Marchesi <jose.marchesi@oracle.com>
21403 Weimin Pan <weimin.pan@oracle.com>
21404
21405 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
21406 GTFILES. Add new object files.
21407 * common.opt: Add CTF and BTF debug info options.
21408 * btfout.c: New file.
21409 * ctfc.c: Likewise.
21410 * ctfc.h: Likewise.
21411 * ctfout.c: Likewise.
21412 * dwarf2ctf.c: Likewise.
21413 * dwarf2ctf.h: Likewise.
21414 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
21415 BTF_DEBUG.
21416 * dwarf2out.c (dwarf2out_source_line): Likewise.
21417 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
21418 be generated.
21419 (debug_format_do_cu): New function.
21420 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
21421 them if requested.
21422 Include dwarf2ctf.c.
21423 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
21424 formats.
21425 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
21426 (CTF_DEBUG): New bitmask.
21427 (BTF_DEBUG): Likewise.
21428 (enum ctf_debug_info_levels): New enum.
21429 * gengtype.c (open_base_files): Handle ctfc.h.
21430 (main): Handle uint32_t type.
21431 * flags.h (btf_debuginfo_p): New definition.
21432 (dwarf_based_debuginfo_p): Likewise.
21433 * opts.c (debug_type_names): Add entries for CTF and BTF.
21434 (btf_debuginfo_p): New function.
21435 (dwarf_based_debuginfo_p): Likewise.
21436 (common_handle_option): Handle -gctfN and -gbtf options.
21437 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
21438 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
21439 frontend is not C.
21440
21441 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
21442
21443 * dwarf2out.c (AT_class): Function is no longer static.
21444 (AT_int): Likewise.
21445 (AT_unsigned): Likewise.
21446 (AT_loc): Likewise.
21447 (get_AT): Likewise.
21448 (get_AT_string): Likewise.
21449 (get_AT_flag): Likewise.
21450 (get_AT_unsigned): Likewise.
21451 (get_AT_ref): Likewise.
21452 (new_die_raw): Likewise.
21453 (lookup_decl_die): Likewise.
21454 (base_type_die): Likewise.
21455 (add_name_attribute): Likewise.
21456 (add_AT_int): Likewise.
21457 (add_AT_unsigned): Likewise.
21458 (add_AT_loc): Likewise.
21459 (dw_get_die_tag): New function.
21460 (dw_get_die_child): Likewise.
21461 (dw_get_die_sib): Likewise.
21462 (struct dwarf_file_data): Move from here to dwarf2out.h
21463 (struct dw_attr_struct): Likewise.
21464 * dwarf2out.h: Analogous changes.
21465
21466 2021-06-28 Martin Jambor <mjambor@suse.cz>
21467
21468 PR ipa/93385
21469 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
21470 members m_dead_stmts and m_dead_ssas.
21471 * ipa-param-manipulation.c
21472 (ipa_param_body_adjustments::mark_dead_statements): New function.
21473 (ipa_param_body_adjustments::common_initialization): Call it on
21474 all removed but not split parameters.
21475 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
21476 new mwmbers.
21477 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
21478 are dead.
21479 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
21480 dead debug statements.
21481 (copy_phis_for_bb): Do not copy dead PHI nodes.
21482
21483 2021-06-28 Martin Jambor <mjambor@suse.cz>
21484
21485 PR ipa/93385
21486 * symtab-clones.h (clone_info): Removed member param_adjustments.
21487 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
21488 deal with pass-through splits now.
21489 (ipa_param_performed_split): Removed.
21490 (ipa_param_adjustments::modify_call): Adjusted parameters.
21491 (class ipa_param_body_adjustments): Adjusted parameters of
21492 register_replacement, modify_gimple_stmt and modify_call_stmt.
21493 (ipa_verify_edge_has_no_modifications): Declare.
21494 (ipa_edge_modifications_finalize): Declare.
21495 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
21496 performed_splits processing, pas only edge to padjs->modify_call,
21497 check that call arguments were not modified if they should not have
21498 been.
21499 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
21500 splits.
21501 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
21502 (ipa_edge_modification_info): Likewise.
21503 (ipa_edge_modification_sum): Likewise.
21504 (ipa_edge_modifications): New edge summary.
21505 (ipa_verify_edge_has_no_modifications): New function.
21506 (transitive_split_p): Removed.
21507 (transitive_split_map): Likewise.
21508 (init_transitive_splits): Likewise.
21509 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
21510 summary instead of performed_splits.
21511 (ipa_param_body_adjustments::register_replacement): Drop dummy
21512 parameter, set base_index of the created ipa_param_body_replacement.
21513 (phi_arg_will_live_p): New function.
21514 (ipa_param_body_adjustments::common_initialization): Do not create
21515 IPA_SRA dummy decls.
21516 (simple_tree_swap_info): Removed.
21517 (remap_split_decl_to_dummy): Likewise.
21518 (record_argument_state_1): New function.
21519 (record_argument_state): Likewise.
21520 (ipa_param_body_adjustments::modify_call_stmt): New parameter
21521 orig_stmt. Do not work with dummy decls, save necessary info about
21522 changes to ipa_edge_modifications.
21523 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
21524 orig_stmt, pass it to modify_call_stmt.
21525 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
21526 modify_gimple_stmt.
21527 (ipa_edge_modifications_finalize): New function.
21528 * tree-inline.c (remap_gimple_stmt): Pass original statement to
21529 modify_gimple_stmt.
21530 (copy_phis_for_bb): Do not copy dead PHI nodes.
21531 (expand_call_inline): Do not remap performed_splits.
21532 (update_clone_info): Likewise.
21533 * toplev.c: Include ipa-param-manipulation.h.
21534 (toplev::finalize): Call ipa_edge_modifications_finalize.
21535
21536 2021-06-28 Andrew Pinski <apinski@marvell.com>
21537
21538 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
21539 info if we're the only things setting the target PHI.
21540 (value_replacement): Don't duplicate range here.
21541 (minmax_replacement): Likewise.
21542
21543 2021-06-28 Richard Biener <rguenther@suse.de>
21544
21545 PR tree-optimization/101229
21546 * gimple-walk.c (gimple_walk_op): Handle PHIs.
21547
21548 2021-06-28 Martin Liska <mliska@suse.cz>
21549
21550 * config/v850/v850.c (construct_dispose_instruction): Allocate
21551 a bigger buffer.
21552 (construct_prepare_instruction): Likewise.
21553
21554 2021-06-28 Martin Liska <mliska@suse.cz>
21555
21556 * config/v850/v850.c (v850_option_override): Build default
21557 target node.
21558 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
21559 ignored for inlining.
21560 (TARGET_CAN_INLINE_P): New.
21561
21562 2021-06-28 Richard Biener <rguenther@suse.de>
21563
21564 PR tree-optimization/101207
21565 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
21566 permute eliding for load permutations properly.
21567
21568 2021-06-28 Richard Biener <rguenther@suse.de>
21569
21570 PR tree-optimization/101173
21571 * gimple-loop-interchange.cc
21572 (tree_loop_interchange::valid_data_dependences): Disallow outer
21573 loop dependence distance of zero.
21574
21575 2021-06-28 liuhongt <hongtao.liu@intel.com>
21576
21577 PR target/100648
21578 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
21579 define_insn_and_split.
21580 (*avx_cmp<mode>3_ltint): Ditto.
21581 (*avx2_pcmp<mode>3_3): Ditto.
21582 (*avx2_pcmp<mode>3_4): Ditto.
21583 (*avx2_pcmp<mode>3_5): Ditto.
21584
21585 2021-06-28 liuhongt <hongtao.liu@intel.com>
21586
21587 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
21588 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
21589 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
21590 IX86_BUILTIN_PBLENDVB128): Replace icode with
21591 CODE_FOR_nothing.
21592 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
21593 builtins.
21594 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
21595 New pre_reload splitter.
21596
21597 2021-06-27 Andrew Pinski <apinski@marvell.com>
21598
21599 PR middle-end/101230
21600 * fold-const.c (fold_ternary_loc): Check
21601 the return value of invert_tree_comparison.
21602
21603 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
21604
21605 * config.gcc: Add SPDX License Identifier.
21606 (powerpc-ibm-aix789): Default to aix73.h.
21607 (powerpc-ibm-aix7.2.*.*): New stanza.
21608 * config/rs6000/aix72.h: Add SPDX License Identifier.
21609 * config/rs6000/aix73.h: New file.
21610
21611 2021-06-26 Jason Merrill <jason@redhat.com>
21612
21613 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
21614
21615 2021-06-26 Andrew Pinski <apinski@marvell.com>
21616
21617 * genmatch.c (lower_cond): Copy for_subst_vec
21618 for the simplify also.
21619 (lower): Swap the order for lower_for and lower_cond.
21620
21621 2021-06-26 Andrew Pinski <apinski@marvell.com>
21622
21623 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
21624 flow senatitive info on the moved ssa set.
21625
21626 2021-06-26 Andrew Pinski <apinski@marvell.com>
21627
21628 * fold-const.c (fold_cond_expr_with_comparison):
21629 Exand arg0 into comp_code, arg00, and arg01.
21630 (fold_ternary_loc): Use invert_tree_comparison
21631 instead of fold_invert_truthvalue for the case
21632 where we have A CMP B ? C : A.
21633
21634 2021-06-25 Martin Sebor <msebor@redhat.com>
21635
21636 PR middle-end/101216
21637 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
21638
21639 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
21640
21641 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
21642
21643 2021-06-25 Richard Biener <rguenther@suse.de>
21644
21645 PR tree-optimization/101202
21646 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
21647 failed nodes.
21648
21649 2021-06-25 Richard Biener <rguenther@suse.de>
21650
21651 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
21652 STMT_VINFO_REDUC_DEF from the original representative.
21653
21654 2021-06-25 Martin Sebor <msebor@redhat.com>
21655
21656 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
21657 gimple_no_warning_p and gimple_set_no_warning with
21658 warning_suppressed_p, and suppress_warning.
21659 (c_strlen): Same.
21660 (maybe_warn_for_bound): Same.
21661 (warn_for_access): Same.
21662 (check_access): Same.
21663 (expand_builtin_strncmp): Same.
21664 (fold_builtin_varargs): Same.
21665 * calls.c (maybe_warn_nonstring_arg): Same.
21666 (maybe_warn_rdwr_sizes): Same.
21667 * cfgexpand.c (expand_call_stmt): Same.
21668 * cgraphunit.c (check_global_declaration): Same.
21669 * fold-const.c (fold_undefer_overflow_warnings): Same.
21670 (fold_truth_not_expr): Same.
21671 (fold_unary_loc): Same.
21672 (fold_checksum_tree): Same.
21673 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
21674 (array_bounds_checker::check_mem_ref): Same.
21675 (array_bounds_checker::check_addr_expr): Same.
21676 (array_bounds_checker::check_array_bounds): Same.
21677 * gimple-expr.c (copy_var_decl): Same.
21678 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
21679 (gimple_fold_builtin_strncat): Same.
21680 (gimple_fold_builtin_stxcpy_chk): Same.
21681 (gimple_fold_builtin_stpcpy): Same.
21682 (gimple_fold_builtin_sprintf): Same.
21683 (fold_stmt_1): Same.
21684 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
21685 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21686 * gimple-ssa-sprintf.c (handle_printf_call): Same.
21687 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
21688 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
21689 * gimple-ssa-warn-restrict.h: Adjust declarations.
21690 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
21691 gimple_no_warning_p and gimple_set_no_warning with
21692 warning_suppressed_p, and suppress_warning.
21693 (check_call): Same.
21694 (check_bounds_or_overlap): Same.
21695 * gimple.c (gimple_build_call_from_tree): Same.
21696 * gimplify.c (gimplify_return_expr): Same.
21697 (gimplify_cond_expr): Same.
21698 (gimplify_modify_expr_complex_part): Same.
21699 (gimplify_modify_expr): Same.
21700 (gimple_push_cleanup): Same.
21701 (gimplify_expr): Same.
21702 * omp-expand.c (expand_omp_for_generic): Same.
21703 (expand_omp_taskloop_for_outer): Same.
21704 * omp-low.c (lower_rec_input_clauses): Same.
21705 (lower_lastprivate_clauses): Same.
21706 (lower_send_clauses): Same.
21707 (lower_omp_target): Same.
21708 * tree-cfg.c (pass_warn_function_return::execute): Same.
21709 * tree-complex.c (create_one_component_var): Same.
21710 * tree-inline.c (remap_gimple_op_r): Same.
21711 (copy_tree_body_r): Same.
21712 (declare_return_variable): Same.
21713 (expand_call_inline): Same.
21714 * tree-nested.c (lookup_field_for_decl): Same.
21715 * tree-sra.c (create_access_replacement): Same.
21716 (generate_subtree_copies): Same.
21717 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
21718 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
21719 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
21720 * tree-ssa-loop-im.c (execute_sm): Same.
21721 * tree-ssa-phiopt.c (cond_store_replacement): Same.
21722 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
21723 (handle_builtin_strcpy): Same.
21724 (maybe_diag_stxncpy_trunc): Same.
21725 (handle_builtin_stxncpy_strncat): Same.
21726 (handle_builtin_strcat): Same.
21727 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
21728 (set_no_uninit_warning): Same.
21729 (uninit_undefined_value_p): Same.
21730 (warn_uninit): Same.
21731 (maybe_warn_operand): Same.
21732 * tree-vrp.c (compare_values_warnv): Same.
21733 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
21734 (test_for_singularity): Same.
21735 * gimple.h (warning_suppressed_p): New function.
21736 (suppress_warning): Same.
21737 (copy_no_warning): Same.
21738 (gimple_set_block): Call gimple_set_location.
21739 (gimple_set_location): Call copy_warning.
21740
21741 2021-06-25 Martin Sebor <msebor@redhat.com>
21742
21743 * tree.h (warning_suppressed_at, copy_warning,
21744 warning_suppressed_p, suppress_warning): New functions.
21745
21746 2021-06-25 Martin Sebor <msebor@redhat.com>
21747
21748 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
21749 * gengtype.c (open_base_files): Add diagnostic-spec.h.
21750 * diagnostic-spec.c: New file.
21751 * diagnostic-spec.h: New file.
21752 * tree.h (no_warning, all_warnings, suppress_warning_at): New
21753 declarations.
21754 * warning-control.cc: New file.
21755
21756 2021-06-25 liuhongt <hongtao.liu@intel.com>
21757
21758 PR target/101185
21759 * config/i386/i386.c (x86_order_regs_for_local_alloc):
21760 Revert r12-1669.
21761
21762 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
21763
21764 PR tree-optimization/101189
21765 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
21766 LHS range of condition to postfold routine.
21767 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
21768 FALSE edge if the LHS range supports it being taken.
21769 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
21770
21771 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
21772
21773 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
21774 (relation_oracle::find_relation_block): Check correct bitmap.
21775 (relation_oracle::dump): Do not dump NULL blocks.
21776
21777 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
21778
21779 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
21780 range_on_edge instead of manually calculating.
21781
21782 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
21783
21784 * range-op.cc: Fix comment.
21785
21786 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
21787
21788 PR target/89021
21789 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
21790 Handle V8QI and V4HI modes.
21791 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
21792 New insn pattern.
21793 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
21794 (mmxpackmode): New mode attribute.
21795 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
21796 (mmxunpackmode): New mode attribute.
21797 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
21798 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
21799 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
21800 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
21801 * config/i386/i386.md (extsuffix): Move from ...
21802 * config/i386/sse.md: ... here.
21803
21804 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
21805
21806 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
21807 (dwarf2out_finish): ...instead of here.
21808
21809 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
21810
21811 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
21812 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
21813 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
21814 * configure: Regenerate.
21815
21816 2021-06-24 Richard Biener <rguenther@suse.de>
21817
21818 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
21819 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
21820 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
21821
21822 2021-06-24 Richard Biener <rguenther@suse.de>
21823
21824 * config/i386/sse.md (avx_addsubv4df3): Rename to
21825 vec_addsubv4df3.
21826 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
21827 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
21828 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
21829 * config/i386/i386-builtin.def: Adjust.
21830 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
21831 * optabs.def (vec_addsub_optab): New optab.
21832 * tree-vect-slp-patterns.c (class addsub_pattern): New.
21833 (slp_patterns): Add addsub_pattern.
21834 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
21835 across CFN_VEC_ADDSUB.
21836 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
21837 m_ops optional.
21838 * doc/md.texi (vec_addsub<mode>3): Document.
21839
21840 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21841
21842 PR middle-end/101170
21843 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
21844 where regno + subreg_regno_offset wraps around use 0 as starting
21845 regno.
21846
21847 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21848
21849 PR middle-end/101172
21850 * stor-layout.c (finish_bitfield_representative): If nextf has
21851 error_mark_node type, set repr type to error_mark_node too.
21852
21853 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
21854
21855 * config/s390/s390.c (s390_function_profiler): Ignore labelno
21856 parameter.
21857 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
21858
21859 2021-06-24 Richard Biener <rguenther@suse.de>
21860
21861 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
21862 across operations that have different semantics on different
21863 lanes.
21864
21865 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21866
21867 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
21868 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
21869 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
21870 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
21871 OMP_TARGET user outer_ctx instead of ctx for placeholders and
21872 initializer/combiner gimplification.
21873 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
21874 on target constructs.
21875 (lower_rec_input_clauses): Likewise.
21876 (lower_omp_target): Likewise.
21877 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
21878 on target if in_reduction is present.
21879
21880 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
21881
21882 * tree-predcom.c (class pcom_worker): New class.
21883 (release_chain): Renamed to...
21884 (pcom_worker::release_chain): ...this.
21885 (release_chains): Renamed to...
21886 (pcom_worker::release_chains): ...this.
21887 (aff_combination_dr_offset): Renamed to...
21888 (pcom_worker::aff_combination_dr_offset): ...this.
21889 (determine_offset): Renamed to...
21890 (pcom_worker::determine_offset): ...this.
21891 (class comp_ptrs): New class.
21892 (split_data_refs_to_components): Renamed to...
21893 (pcom_worker::split_data_refs_to_components): ...this,
21894 and update with class comp_ptrs.
21895 (suitable_component_p): Renamed to...
21896 (pcom_worker::suitable_component_p): ...this.
21897 (filter_suitable_components): Renamed to...
21898 (pcom_worker::filter_suitable_components): ...this.
21899 (valid_initializer_p): Renamed to...
21900 (pcom_worker::valid_initializer_p): ...this.
21901 (find_looparound_phi): Renamed to...
21902 (pcom_worker::find_looparound_phi): ...this.
21903 (add_looparound_copies): Renamed to...
21904 (pcom_worker::add_looparound_copies): ...this.
21905 (determine_roots_comp): Renamed to...
21906 (pcom_worker::determine_roots_comp): ...this.
21907 (determine_roots): Renamed to...
21908 (pcom_worker::determine_roots): ...this.
21909 (single_nonlooparound_use): Renamed to...
21910 (pcom_worker::single_nonlooparound_use): ...this.
21911 (remove_stmt): Renamed to...
21912 (pcom_worker::remove_stmt): ...this.
21913 (execute_pred_commoning_chain): Renamed to...
21914 (pcom_worker::execute_pred_commoning_chain): ...this.
21915 (execute_pred_commoning): Renamed to...
21916 (pcom_worker::execute_pred_commoning): ...this.
21917 (struct epcc_data): New member worker.
21918 (execute_pred_commoning_cbck): Call execute_pred_commoning
21919 with pcom_worker pointer.
21920 (find_use_stmt): Renamed to...
21921 (pcom_worker::find_use_stmt): ...this.
21922 (find_associative_operation_root): Renamed to...
21923 (pcom_worker::find_associative_operation_root): ...this.
21924 (find_common_use_stmt): Renamed to...
21925 (pcom_worker::find_common_use_stmt): ...this.
21926 (combinable_refs_p): Renamed to...
21927 (pcom_worker::combinable_refs_p): ...this.
21928 (reassociate_to_the_same_stmt): Renamed to...
21929 (pcom_worker::reassociate_to_the_same_stmt): ...this.
21930 (stmt_combining_refs): Renamed to...
21931 (pcom_worker::stmt_combining_refs): ...this.
21932 (combine_chains): Renamed to...
21933 (pcom_worker::combine_chains): ...this.
21934 (try_combine_chains): Renamed to...
21935 (pcom_worker::try_combine_chains): ...this.
21936 (prepare_initializers_chain): Renamed to...
21937 (pcom_worker::prepare_initializers_chain): ...this.
21938 (prepare_initializers): Renamed to...
21939 (pcom_worker::prepare_initializers): ...this.
21940 (prepare_finalizers_chain): Renamed to...
21941 (pcom_worker::prepare_finalizers_chain): ...this.
21942 (prepare_finalizers): Renamed to...
21943 (pcom_worker::prepare_finalizers): ...this.
21944 (tree_predictive_commoning_loop): Renamed to...
21945 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
21946 some calls and remove some cleanup code.
21947 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
21948 (static variable looparound_phis): Remove.
21949 (static variable name_expansions): Remove.
21950
21951 2021-06-24 Richard Biener <rguenther@suse.de>
21952
21953 * tree-vect-slp.c (slpg_vertex): New struct.
21954 (vect_slp_build_vertices): Adjust.
21955 (vect_optimize_slp): Likewise. Maintain an outgoing permute
21956 and a materialized one.
21957
21958 2021-06-24 Richard Biener <rguenther@suse.de>
21959
21960 PR tree-optimization/101105
21961 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21962 Only ignore steps when they are equal or scalar order is preserved.
21963
21964 2021-06-24 liuhongt <hongtao.liu@intel.com>
21965
21966 PR target/98434
21967 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
21968 Adjust comments for ix86_expand_vecop_qihi2.
21969 (ix86_expand_vecmul_qihi): Renamed to ..
21970 (ix86_expand_vecop_qihi2): Adjust function prototype to
21971 support shift operation, add static to definition.
21972 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
21973 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
21974 ix86_expand_vec_shift_qihi_constant.
21975 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
21976 (ix86_expand_vec_shift_qihi_constant): Deleted.
21977 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
21978 iterator.
21979 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
21980 condition TARGET_64BIT.
21981 (mul<mode>3): Ditto.
21982 (<insn><mode>3): Ditto.
21983 (vlshr<mode>3): Extend to support avx512 vlshr.
21984 (v<insn><mode>3): New expander for
21985 vashr/vlshr/vashl.
21986 (v<insn>v8qi3): Ditto.
21987 (vashrv8hi3<mask_name>): Renamed to ..
21988 (vashr<mode>3): And extend to support V16QImode for avx512.
21989 (vashrv16qi3): Deleted.
21990 (vashrv2di3<mask_name>): Extend expander to support avx512
21991 instruction.
21992
21993 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
21994
21995 * doc/lto.texi (Design Overview): Update that slim objects are
21996 the default.
21997
21998 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
21999
22000 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
22001 of OTHER_POWER10_MASKS so it will not be enabled by default.
22002
22003 2021-06-23 Richard Biener <rguenther@suse.de>
22004 Martin Jambor <mjambor@suse.cz>
22005
22006 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
22007 param replacement unconditionally. Adjust comment.
22008
22009 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
22010
22011 * Makefile.in (OBJS): Add gimple-range-fold.o
22012 * gimple-range-fold.cc: New.
22013 * gimple-range-fold.h: New.
22014 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
22015 (gimple_range_calc_op2): Ditto.
22016 * gimple-range-gori.h: Move prototypes to here.
22017 * gimple-range.cc: Adjust include files.
22018 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
22019 (fur_source::get_operand): Ditto.
22020 (fur_source::get_phi_operand): Ditto.
22021 (fur_source::query_relation): Ditto.
22022 (fur_source::register_relation): Ditto.
22023 (class fur_edge): Ditto.
22024 (fur_edge::fur_edge): Ditto.
22025 (fur_edge::get_operand): Ditto.
22026 (fur_edge::get_phi_operand): Ditto.
22027 (fur_stmt::fur_stmt): Ditto.
22028 (fur_stmt::get_operand): Ditto.
22029 (fur_stmt::get_phi_operand): Ditto.
22030 (fur_stmt::query_relation): Ditto.
22031 (class fur_depend): Relocate to gimple-range-fold.h.
22032 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
22033 (fur_depend::register_relation): Ditto.
22034 (fur_depend::register_relation): Ditto.
22035 (class fur_list): Ditto.
22036 (fur_list::fur_list): Ditto.
22037 (fur_list::get_operand): Ditto.
22038 (fur_list::get_phi_operand): Ditto.
22039 (fold_range): Ditto.
22040 (adjust_pointer_diff_expr): Ditto.
22041 (gimple_range_adjustment): Ditto.
22042 (gimple_range_base_of_assignment): Ditto.
22043 (gimple_range_operand1): Ditto.
22044 (gimple_range_operand2): Ditto.
22045 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
22046 (gimple_range_calc_op2): Ditto.
22047 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
22048 (fold_using_range::range_of_range_op): Ditto.
22049 (fold_using_range::range_of_address): Ditto.
22050 (fold_using_range::range_of_phi): Ditto.
22051 (fold_using_range::range_of_call): Ditto.
22052 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
22053 (fold_using_range::range_of_builtin_call): Ditto.
22054 (fold_using_range::range_of_cond_expr): Ditto.
22055 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
22056 (fold_using_range::relation_fold_and_or): Ditto.
22057 (fold_using_range::postfold_gcond_edges): Ditto.
22058 * gimple-range.h: Add gimple-range-fold.h to include files. Change
22059 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
22060 (gimple_range_handler): Relocate to gimple-range-fold.h.
22061 (gimple_range_ssa_p): Ditto.
22062 (range_compatible_p): Ditto.
22063 (class fur_source): Ditto.
22064 (class fur_stmt): Ditto.
22065 (class fold_using_range): Ditto.
22066 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
22067 (gimple_range_calc_op2): Ditto.
22068
22069 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
22070
22071 PR tree-optimization/101148
22072 PR tree-optimization/101014
22073 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
22074 (ranger_cache::~ranger_cache): Adjust.
22075 (ranger_cache::block_range): Check if propagation disallowed.
22076 (ranger_cache::propagate_cache): Disallow propagation if new value
22077 can't be stored properly.
22078 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
22079
22080 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
22081
22082 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
22083 (sbr_vector::set_bb_range): Return true.
22084 (class sbr_sparse_bitmap): Adjust.
22085 (sbr_sparse_bitmap::set_bb_range): Return value.
22086 (block_range_cache::set_bb_range): Return value.
22087 (ranger_cache::propagate_cache): Use return value to print msg.
22088 * gimple-range-cache.h (class block_range_cache): Adjust.
22089
22090 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
22091
22092 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
22093
22094 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
22095
22096 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
22097 so this pattern can be used for test/compare removal. Pass
22098 current insn to compute_logical_op_length and output_logical_op.
22099 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
22100 (h8300_and_costs): Add argument to compute_logical_op_length.
22101 (output_logical_op): Add new argument. Use it to determine if the
22102 condition codes are used and adjust the output accordingly.
22103 (compute_logical_op_length): Add new argument and update length
22104 computations when condition codes are used.
22105 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
22106 prototype.
22107 (output_logical_op): Likewise.
22108
22109 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
22110
22111 PR target/89021
22112 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
22113 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
22114 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
22115 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
22116 * config/i386/sse.md (unspec): ... here.
22117
22118 2021-06-23 Martin Liska <mliska@suse.cz>
22119
22120 PR target/98636
22121 * optc-save-gen.awk: Put back arm_fp16_format to
22122 checked_options.
22123
22124 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
22125
22126 PR target/101175
22127 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
22128 (bsr): Ditto.
22129 (*bsrhi): Remove.
22130 (clz<mode>2): Update RTX pattern for additions.
22131
22132 2021-06-23 Jakub Jelinek <jakub@redhat.com>
22133
22134 PR middle-end/101167
22135 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
22136 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
22137
22138 2021-06-22 Sergei Trofimovich <siarheit@google.com>
22139
22140 * doc/rtl.texi: drop unbalanced parenthesis.
22141
22142 2021-06-22 Richard Biener <rguenther@suse.de>
22143
22144 PR middle-end/101156
22145 * gimplify.c (gimplify_expr): Remove premature incorrect
22146 optimization.
22147
22148 2021-06-22 Jakub Jelinek <jakub@redhat.com>
22149
22150 PR tree-optimization/101159
22151 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
22152 comment typos.
22153
22154 2021-06-22 Jakub Jelinek <jakub@redhat.com>
22155
22156 PR middle-end/101160
22157 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
22158 clear crtl->return_rtx instead of keeping it referencing a pseudo.
22159
22160 2021-06-22 Jakub Jelinek <jakub@redhat.com>
22161 Andrew Pinski <apinski@marvell.com>
22162
22163 PR tree-optimization/101162
22164 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
22165 types.
22166
22167 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22168
22169 * range-op.cc (range_relational_tests): New.
22170 (range_op_tests): Call range_relational_tests.
22171
22172 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22173
22174 * range-op.cc (operator_cast::lhs_op1_relation): New.
22175 (operator_identity::lhs_op1_relation): Mew.
22176
22177 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22178
22179 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
22180
22181 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22182
22183 * range-op.cc (operator_plus::lhs_op1_relation): New.
22184 (operator_plus::lhs_op2_relation): New.
22185
22186 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22187
22188 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
22189 relation_oracle if dominators exist.
22190 (ranger_cache::~ranger_cache): Dispose of oracle.
22191 (ranger_cache::dump_bb): Dump oracle.
22192 * gimple-range.cc (fur_source::fur_source): New.
22193 (fur_source::get_operand): Use mmeber query.
22194 (fur_source::get_phi_operand): Use member_query.
22195 (fur_source::query_relation): New.
22196 (fur_source::register_dependency): Delete.
22197 (fur_source::register_relation): New.
22198 (fur_edge::fur_edge): Adjust.
22199 (fur_edge::get_phi_operand): Fix comment.
22200 (fur_edge::query): Delete.
22201 (fur_stmt::fur_stmt): Adjust.
22202 (fur_stmt::query): Delete.
22203 (fur_depend::fur_depend): Adjust.
22204 (fur_depend::register_relation): New.
22205 (fur_depend::register_relation): New.
22206 (fur_list::fur_list): Adjust.
22207 (fur_list::get_operand): Use member query.
22208 (fold_using_range::range_of_range_op): Process and query relations.
22209 (fold_using_range::range_of_address): Adjust dependency call.
22210 (fold_using_range::range_of_phi): Ditto.
22211 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
22212 (fold_using_range::relation_fold_and_or): New.
22213 (fold_using_range::postfold_gcond_edges): New.
22214 * gimple-range.h (class gimple_ranger): Adjust.
22215 (class fur_source): Adjust members.
22216 (class fur_stmt): Ditto.
22217 (class fold_using_range): Ditto.
22218
22219 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22220
22221 * range-op.cc (range_operator::wi_fold): Apply relation effect.
22222 (range_operator::fold_range): Adjust and apply relation effect.
22223 (*::fold_range): Add relation parameters.
22224 (*::op1_range): Ditto.
22225 (*::op2_range): Ditto.
22226 (range_operator::lhs_op1_relation): New.
22227 (range_operator::lhs_op2_relation): New.
22228 (range_operator::op1_op2_relation): New.
22229 (range_operator::op1_op2_relation_effect): New.
22230 (relop_early_resolve): New.
22231 (operator_equal::op1_op2_relation): New.
22232 (operator_equal::fold_range): Call relop_early_resolve.
22233 (operator_not_equal::op1_op2_relation): New.
22234 (operator_not_equal::fold_range): Call relop_early_resolve.
22235 (operator_lt::op1_op2_relation): New.
22236 (operator_lt::fold_range): Call relop_early_resolve.
22237 (operator_le::op1_op2_relation): New.
22238 (operator_le::fold_range): Call relop_early_resolve.
22239 (operator_gt::op1_op2_relation): New.
22240 (operator_gt::fold_range): Call relop_early_resolve.
22241 (operator_ge::op1_op2_relation): New.
22242 (operator_ge::fold_range): Call relop_early_resolve.
22243 * range-op.h (class range_operator): Adjust parameters and methods.
22244
22245 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
22246
22247 * Makefile.in (OBJS): Add value-relation.o.
22248 * gimple-range.h: Adjust include files.
22249 * tree-data-ref.c: Adjust include file order.
22250 * value-query.cc (range_query::get_value_range): Default to no oracle.
22251 (range_query::query_relation): New.
22252 (range_query::query_relation): New.
22253 * value-query.h (class range_query): Adjust.
22254 * value-relation.cc: New.
22255 * value-relation.h: New.
22256
22257 2021-06-22 Richard Biener <rguenther@suse.de>
22258
22259 PR tree-optimization/101151
22260 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
22261 region check.
22262
22263 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
22264
22265 * config/riscv/riscv.c (thead_c906_tune_info): New.
22266 (riscv_tune_info_table): Use new tune.
22267
22268 2021-06-22 Richard Biener <rguenther@suse.de>
22269
22270 PR tree-optimization/101158
22271 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
22272 checking after checking for matching operation.
22273
22274 2021-06-22 Richard Biener <rguenther@suse.de>
22275
22276 PR tree-optimization/101159
22277 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
22278 missing NULL vectype check.
22279
22280 2021-06-22 Richard Biener <rguenther@suse.de>
22281
22282 PR tree-optimization/101154
22283 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
22284
22285 2021-06-22 Jakub Jelinek <jakub@redhat.com>
22286
22287 PR target/11877
22288 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
22289 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
22290 * config/i386/i386.c (ix86_expand_prologue): Clear it.
22291 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
22292 Remove "" from match_operand. Emit new insns using emit_move_insn and
22293 set ix86_last_zero_store_uid to INSN_UID of the last store.
22294 Add peephole2s for 1/2/4 stores of const0_rtx following previous
22295 successful peep2s.
22296
22297 2021-06-22 Martin Liska <mliska@suse.cz>
22298
22299 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
22300 was changed.
22301
22302 2021-06-22 Martin Liska <mliska@suse.cz>
22303
22304 * gcov-io.h: Remove padding entries.
22305
22306 2021-06-22 liuhongt <hongtao.liu@intel.com>
22307
22308 PR tree-optimization/97770
22309 * tree-vect-patterns.c (vect_recog_popcount_pattern):
22310 New.
22311 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
22312
22313 2021-06-22 liuhongt <hongtao.liu@intel.com>
22314
22315 PR target/100267
22316 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
22317 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
22318 (expand<mode>_mask): this ..
22319 (*expand<mode>_mask): New pre_reload splitter to transform
22320 v{,p}expand* to vmov* when mask is zero, all ones, or has all
22321 ones in it's lower part, otherwise still generate
22322 v{,p}expand*.
22323
22324 2021-06-22 liuhongt <hongtao.liu@intel.com>
22325
22326 PR target/100310
22327 * config/i386/i386-expand.c
22328 (ix86_expand_special_args_builtin): Keep constm1_operand only
22329 if it satisfies insn's operand predicate.
22330
22331 2021-06-21 Jason Merrill <jason@redhat.com>
22332
22333 PR target/88529
22334 * df-scan.c (df_ref_record): Check that regno < endregno.
22335 * function.c (assign_parms, expand_function_end): Do nothing with a
22336 TYPE_EMPTY_P result.
22337
22338 2021-06-21 Richard Biener <rguenther@suse.de>
22339
22340 PR tree-optimization/101120
22341 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
22342 built increment.
22343 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
22344 DR chain DCE capability.
22345 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
22346 * tree-vect-stmts.c (vectorizable_load): Remove unused
22347 loads in the DR chain for SLP.
22348
22349 2021-06-21 Jakub Jelinek <jakub@redhat.com>
22350
22351 PR inline-asm/100785
22352 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
22353 output or input operands were already error_mark_node.
22354 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
22355 remove all inputs, outputs and clobbers from the asm and
22356 set template to "".
22357
22358 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
22359
22360 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
22361 (vceq_s16): Likewise.
22362 (vceq_s32): Likewise.
22363 (vceq_u8): Likewise.
22364 (vceq_u16): Likewise.
22365 (vceq_u32): Likewise.
22366 (vceq_p8): Likewise.
22367 (vceqq_s8): Likewise.
22368 (vceqq_s16): Likewise.
22369 (vceqq_s32): Likewise.
22370 (vceqq_u8): Likewise.
22371 (vceqq_u16): Likewise.
22372 (vceqq_u32): Likewise.
22373 (vceqq_p8): Likewise.
22374 (vceq_f32): Gate __a == __b on __FAST_MATH__.
22375 (vceqq_f32): Likewise.
22376 (vceq_f16): Likewise.
22377 (vceqq_f16): Likewise.
22378
22379 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
22380
22381 PR target/97906
22382 * config/arm/iterators.md (NEON_VACMP): Remove.
22383 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
22384 iterator.
22385 (neon_vca<cmp_op><mode>_insn): Likewise.
22386 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
22387 NEON_VACMP.
22388
22389 2021-06-21 Richard Biener <rguenther@suse.de>
22390
22391 PR tree-optimization/101121
22392 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
22393 when we just lack a stmt with the desired op when doing permutation.
22394 (vect_build_slp_tree): When caching a failed SLP build attempt
22395 assert that at least one lane is marked as not matching.
22396
22397 2021-06-21 liuhongt <hongtao.liu@intel.com>
22398
22399 PR target/101142
22400 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
22401 register alternative.
22402 (*and<mode>_1): Ditto.
22403 (*andqi_1): Ditto.
22404 (*andn<mode>_1): Ditto.
22405 (*<code><mode>_1): Ditto.
22406 (*<code>qi_1): Ditto.
22407 (*one_cmpl<mode>2_1): Ditto.
22408 (*one_cmplsi2_1_zext): Ditto.
22409 (*one_cmplqi2_1): Ditto.
22410 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
22411 the order of mask registers to be before general registers.
22412
22413 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
22414
22415 PR target/11877
22416 * config/i386/i386.md: New define_peephole2s to shrink writing
22417 1, 2 or 4 consecutive zeros to memory when optimizing for size.
22418
22419 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
22420
22421 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
22422 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
22423 more efficient code when the source can be trivially simplified.
22424
22425 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
22426
22427 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
22428 a range if global is not available.
22429 (ranger_cache::entry_range): Fallback to range_of_def.
22430 * gimple-range-cache.h (range_of_def): Adjust prototype.
22431
22432 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
22433
22434 PR tree-optimization/101014
22435 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
22436 value list.
22437 (ranger_cache::~ranger_cache): Ditto.
22438 (ranger_cache::enable_new_values): Delete.
22439 (ranger_cache::push_poor_value): Delete.
22440 (ranger_cache::range_of_def): Remove poor value processing.
22441 (ranger_cache::entry_range): Ditto.
22442 (ranger_cache::fill_block_cache): Ditto.
22443 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
22444 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
22445 * gimple-range.h (class gimple_ranger): Adjust.
22446
22447 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22448
22449 PR target/100856
22450 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
22451 derived from arm_canon_arch.
22452 (arm_canon_arch_option): Call it.
22453 (arm_canon_arch_multilib_option): New function.
22454 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
22455 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
22456 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
22457 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
22458 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
22459 * config/arm/arm.opt (mlibarch): New option.
22460 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
22461 of march on RHS with mlibarch.
22462
22463 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
22464
22465 * config.in: Regenerate.
22466 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
22467 functions.
22468 * configure: Regenerate.
22469 * configure.ac: Fix for global_load assembler functions.
22470
22471 2021-06-18 Richard Biener <rguenther@suse.de>
22472
22473 PR tree-optimization/101112
22474 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
22475 to lookup a pattern stmt def.
22476
22477 2021-06-18 Jakub Jelinek <jakub@redhat.com>
22478
22479 PR middle-end/101062
22480 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
22481 representatives in QUAL_UNION_TYPE.
22482
22483 2021-06-18 Andrew Pinski <apinski@marvell.com>
22484
22485 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
22486 Add counting of how many times it is done.
22487 (factor_out_conditional_conversion): Likewise.
22488 (match_simplify_replacement): Likewise.
22489 (value_replacement): Likewise.
22490 (spaceship_replacement): Likewise.
22491 (cond_store_replacement): Likewise.
22492 (cond_if_else_store_replacement_1): Likewise.
22493 (hoist_adjacent_loads): Likewise.
22494
22495 2021-06-18 Andrew Pinski <apinski@marvell.com>
22496
22497 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
22498 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
22499 (verify_gimple_assign_binary): Reject point and offset types on
22500 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
22501 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
22502 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
22503
22504 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
22505
22506 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
22507 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
22508 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
22509 New insns.
22510
22511 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
22512
22513 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
22514 earlyclobber to alts 0/1.
22515 (gen_addadd): Add earlyclobber to alts 0/1.
22516 * config/rs6000/fusion.md: Regenerate file.
22517
22518 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22519
22520 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
22521
22522 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
22523
22524 * gimple-range-cache.cc: Comment cleanups.
22525 * gimple-range-gori.cc: Comment cleanups.
22526 * gimple-range.cc: Comment/spacing cleanups
22527 * value-range.h: Comment cleanups.
22528
22529 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
22530
22531 PR target/100704
22532 * calls.c (expand_call): Replace PUSH_ARGS with
22533 targetm.calls.push_argument (0).
22534 (emit_library_call_value_1): Likewise.
22535 * defaults.h (PUSH_ARGS): Removed.
22536 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
22537 targetm.calls.push_argument (0).
22538 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
22539 (emit_push_insn): Pass the number bytes to push to
22540 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
22541 * hooks.c (hook_bool_uint_true): New.
22542 * hooks.h (hook_bool_uint_true): Likewise.
22543 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
22544 targetm.calls.push_argument (0).
22545 * target.def (push_argument): Add a targetm.calls hook.
22546 * targhooks.c (default_push_argument): New.
22547 * targhooks.h (default_push_argument): Likewise.
22548 * config/bpf/bpf.h (PUSH_ARGS): Removed.
22549 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
22550 * config/cr16/cr16.h (PUSH_ARGS): Removed.
22551 * config/i386/i386.c (ix86_push_argument): New.
22552 (TARGET_PUSH_ARGUMENT): Likewise.
22553 * config/i386/i386.h (PUSH_ARGS): Removed.
22554 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
22555 * config/m32c/m32c.h (PUSH_ARGS): Removed.
22556 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
22557 * config/pru/pru.h (PUSH_ARGS): Likewise.
22558 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
22559 TARGET_PUSH_ARGUMENT hook.
22560 * doc/tm.texi: Regenerated.
22561
22562 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
22563
22564 PR target/97194
22565 * config/i386/i386-expand.c (expand_vector_set_var):
22566 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
22567 ix86_expand_vector_init_duplicate.
22568 (ix86_expand_vector_init_duplicate): Emit insv_1 for
22569 QImode for !TARGET_PARTIAL_REG_STALL.
22570 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
22571 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
22572 as operand 2 predicate. Call ix86_expand_vector_set_var
22573 for non-constant index operand.
22574 (vec_setv2si): Ditto.
22575 (vec_setv4hi): Ditto.
22576 (vec_setv8qi): ditto.
22577
22578 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
22579
22580 PR tree-optimization/100790
22581 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
22582 code.
22583
22584 2021-06-17 Martin Liska <mliska@suse.cz>
22585
22586 * doc/invoke.texi: Use consistently -O1 instead of -O.
22587
22588 2021-06-17 Martin Liska <mliska@suse.cz>
22589
22590 * gcov-io.h: Update documentation entry about string format.
22591
22592 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
22593
22594 PR target/100871
22595 * config/s390/vecintrin.h (vec_doublee): Fix to use
22596 __builtin_s390_vflls.
22597 (vec_floate): Fix to use __builtin_s390_vflrd.
22598
22599 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22600
22601 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
22602 * dominance.h (get_dominated_to_depth): Likewise.
22603 (get_all_dominated_blocks): Likewise.
22604 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
22605 * gcse.c (hoist_code): Likewise.
22606 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
22607 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
22608 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
22609 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
22610
22611 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22612
22613 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
22614 * dominance.h (get_dominated_by_region): Likewise.
22615 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
22616 (gimple_duplicate_sese_tail): Likewise.
22617 (move_sese_region_to_fn): Likewise.
22618
22619 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22620
22621 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
22622 * dominance.h (get_dominated_by): Likewise.
22623 * auto-profile.c (afdo_find_equiv_class): Adjust.
22624 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
22625 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
22626 * tree-cfg.c (test_linear_chain): Likewise.
22627 (test_diamond): Likewise.
22628
22629 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22630
22631 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
22632 * cfgloopanal.c (get_loop_hot_path): Likewise.
22633 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
22634
22635 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22636
22637 * cgraph.c (cgraph_node::collect_callers): Return
22638 auto_vec<cgraph_edge *>.
22639 * cgraph.h (cgraph_node::collect_callers): Likewise.
22640 * ipa-cp.c (create_specialized_node): Adjust.
22641 (decide_about_value): Likewise.
22642 (decide_whether_version_node): Likewise.
22643 * ipa-sra.c (process_isra_node_results): Likewise.
22644
22645 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
22646
22647 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
22648 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
22649 constructor.
22650 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
22651 assignment.
22652
22653 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
22654
22655 * gimple-range.cc (debug_seed_ranger): New.
22656 (dump_ranger): New.
22657 (debug_ranger): New.
22658
22659 2021-06-17 Richard Biener <rguenther@suse.de>
22660
22661 PR tree-optimization/54400
22662 * tree-vectorizer.h (enum slp_instance_kind): Add
22663 slp_inst_kind_bb_reduc.
22664 (reduction_fn_for_scalar_code): Declare.
22665 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
22666 Check SLP_INSTANCE_KIND instead of looking at the
22667 representative.
22668 (vect_slp_analyze_instance_alignment): Likewise.
22669 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
22670 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
22671 chain linearization from vect_build_slp_tree_2 and generalize
22672 for the use of BB reduction vectorization.
22673 (vect_build_slp_tree_2): Adjust accordingly.
22674 (vect_optimize_slp): Elide permutes at the root of BB reduction
22675 instances.
22676 (vectorizable_bb_reduc_epilogue): New function.
22677 (vect_slp_prune_covered_roots): Likewise.
22678 (vect_slp_analyze_operations): Use them.
22679 (vect_slp_check_for_constructors): Recognize associatable
22680 chains for BB reduction vectorization.
22681 (vectorize_slp_instance_root_stmt): Generate code for the
22682 BB reduction epilogue.
22683
22684 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
22685
22686 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
22687 may_recompute_p.
22688 (gori_compute::may_recompute_p): New.
22689 (gori_compute::outgoing_edge_range_p): Perform recomputations.
22690 * gimple-range-gori.h (class gori_compute): Add prototype.
22691
22692 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
22693
22694 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
22695 true when a range can be calculated.
22696 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
22697
22698 2021-06-16 Martin Sebor <msebor@redhat.com>
22699
22700 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
22701 Correct documented defaults.
22702
22703 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
22704
22705 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
22706 m_new_value_p directly.
22707
22708 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
22709
22710 PR target/89021
22711 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
22712 Handle 64bit modes for TARGET_SSE4_1.
22713 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
22714 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
22715 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
22716 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
22717 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
22718 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
22719
22720 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
22721
22722 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
22723 Change to an expander that emits the correct instruction
22724 depending on endianness.
22725 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
22726 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
22727
22728 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
22729
22730 * config/aarch64/aarch64-simd-builtins.def: Split generator
22731 for aarch64_<su>qmovn builtins into scalar and vector
22732 variants.
22733 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
22734 Define.
22735 (aarch64_<su>qmovn<mode>_insn_be): Define.
22736 (aarch64_<su>qmovn<mode>): Split into scalar and vector
22737 variants. Change vector variant to an expander that emits the
22738 correct instruction depending on endianness.
22739
22740 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
22741
22742 * config/aarch64/aarch64-simd-builtins.def: Split generator
22743 for aarch64_sqmovun builtins into scalar and vector variants.
22744 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
22745 Split into scalar and vector variants. Change vector variant
22746 to an expander that emits the correct instruction depending
22747 on endianness.
22748 (aarch64_sqmovun<mode>_insn_le): Define.
22749 (aarch64_sqmovun<mode>_insn_be): Define.
22750
22751 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
22752
22753 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
22754 Define - modeling zero-high-half semantics.
22755 (aarch64_xtn<mode>): Change to an expander that emits the
22756 appropriate instruction depending on endianness.
22757 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
22758 semantics.
22759 (aarch64_xtn2<mode>_le): Rename to...
22760 (aarch64_xtn2<mode>_insn_le): This.
22761 (aarch64_xtn2<mode>_be): Rename to...
22762 (aarch64_xtn2<mode>_insn_be): This.
22763 (vec_pack_trunc_<mode>): Emit truncation instruction instead
22764 of aarch64_xtn.
22765 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
22766 attribute iterator.
22767
22768 2021-06-16 Martin Jambor <mjambor@suse.cz>
22769
22770 PR tree-optimization/100453
22771 * tree-sra.c (create_access): Disqualify any const candidates
22772 which are written to.
22773 (sra_modify_expr): Do not store sub-replacements back to a const base.
22774 (handle_unscalarized_data_in_subtree): Likewise.
22775 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
22776 instead of constant_decl_p.
22777
22778 2021-06-16 Jakub Jelinek <jakub@redhat.com>
22779
22780 PR middle-end/101062
22781 * stor-layout.c (finish_bitfield_representative): For fields in unions
22782 assume nextf is always NULL.
22783 (finish_bitfield_layout): Compute bit field representatives also in
22784 unions, but handle it as if each bitfield was the only field in the
22785 aggregate.
22786
22787 2021-06-16 Richard Biener <rguenther@suse.de>
22788
22789 PR tree-optimization/101088
22790 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
22791 supported refs on edges. Do not assert same ref but
22792 different kind stores are unsuported but mark them so.
22793 (hoist_memory_references): Only look for supported refs
22794 on exits.
22795
22796 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
22797
22798 PR rtl-optimization/46235
22799 * config/i386/i386.md: New define_split for bt followed by cmov.
22800 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
22801 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
22802 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
22803 by setnc with zero extension.
22804
22805 2021-06-16 Richard Biener <rguenther@suse.de>
22806
22807 PR tree-optimization/101083
22808 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
22809 vectype as argument.
22810 (vect_build_slp_tree_2): Adjust.
22811
22812 2021-06-15 Martin Sebor <msebor@redhat.com>
22813
22814 PR middle-end/100876
22815 * builtins.c: (gimple_call_return_array): Account for size_t
22816 mangling as either unsigned int or unsigned long
22817
22818 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
22819
22820 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
22821 up before eliminating comparisons.
22822
22823 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
22824
22825 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
22826 nonzero|X is nonzero.
22827 (range_op_bitwise_and_tests): Add tests for above.
22828
22829 2021-06-15 Carl Love <cel@us.ibm.com>
22830
22831 PR target/101022
22832 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
22833 enum definition.
22834 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
22835 definitions.
22836
22837 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
22838
22839 PR fortran/92568
22840 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
22841 (struct gimplify_omp_ctx): Extend defaultmap array by one.
22842 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
22843 (omp_notice_variable): Update type classification for Fortran.
22844 (gimplify_scan_omp_clauses): Update calls for new argument; handle
22845 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
22846 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
22847 * langhooks.c (lhd_omp_scalar_p): Likewise.
22848 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
22849 (LANG_HOOKS_DECLS): Add them.
22850 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
22851 omp_scalar_p pointer type to include the new bool argument.
22852
22853 2021-06-15 David Malcolm <dmalcolm@redhat.com>
22854
22855 * doc/analyzer.texi
22856 (Special Functions for Debugging the Analyzer): Add
22857 __analyzer_dump_capacity.
22858
22859 2021-06-15 Jakub Jelinek <jakub@redhat.com>
22860
22861 PR target/101046
22862 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
22863 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
22864
22865 2021-06-15 Richard Biener <rguenther@suse.de>
22866
22867 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
22868 check to identify loop latches.
22869 * cfgloop.c (verify_loop_structure): Likewise.
22870 * loop-init.c (apply_loop_flags): Allow marked irreducible
22871 regions even with multiple latches.
22872 * predict.c (rebuild_frequencies): Simplify.
22873
22874 2021-06-15 Richard Biener <rguenther@suse.de>
22875
22876 * tree-ssa-threadupdate.c
22877 (jump_thread_path_registry::mark_threaded_blocks): Assert we
22878 have marked irreducible regions.
22879
22880 2021-06-14 Martin Sebor <msebor@redhat.com>
22881
22882 PR c++/100876
22883 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
22884 Handle calls to placement new.
22885 (ndecl_dealloc_argno): Avoid placement delete.
22886
22887 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
22888
22889 PR target/100777
22890 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
22891 create_tmp_reg_or_ssa_name().
22892
22893 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
22894
22895 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
22896 (ranger_cache::enable_new_values): Set to specified value and
22897 return the old value.
22898 (ranger_cache::disable_new_values): Delete.
22899 (ranger_cache::fill_block_cache): Disable non 1st order derived
22900 poor values.
22901 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
22902 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
22903
22904 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
22905
22906 PR target/101058
22907 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
22908 Return true early when testing with V2HImode.
22909 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
22910
22911 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
22912
22913 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
22914 (mve_vec_unpack<US>_hi_<mode>): New pattern.
22915 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
22916 (mve_vmovntq_<supf><mode>): Prefix with '@'.
22917 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
22918 vec-common.md.
22919 (vec_unpack<US>_lo_<mode>): Likewise.
22920 (vec_pack_trunc_<mode>): Rename to
22921 neon_quad_vec_pack_trunc_<mode>.
22922 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
22923 pattern.
22924 (vec_unpack<US>_lo_<mode>): New.
22925 (vec_pack_trunc_<mode>): New.
22926
22927 2021-06-14 Richard Biener <rguenther@suse.de>
22928
22929 PR tree-optimization/100934
22930 * tree-ssa-dom.c (pass_dominator::execute): Properly
22931 mark irreducible regions.
22932
22933 2021-06-14 Martin Liska <mliska@suse.cz>
22934
22935 * doc/invoke.texi: Put r{...} on the same line as @item.
22936
22937 2021-06-14 Martin Liska <mliska@suse.cz>
22938
22939 * doc/invoke.texi: Add missing newline.
22940
22941 2021-06-14 Martin Liska <mliska@suse.cz>
22942
22943 * doc/invoke.texi: Remove '+' charasters.
22944
22945 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
22946
22947 * config.gcc (arc): Add support for with_cpu option.
22948 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
22949
22950 2021-06-14 Richard Biener <rguenther@suse.de>
22951
22952 PR tree-optimization/101031
22953 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
22954 instead of size when accounting for a possibly string
22955 terminating nul.
22956
22957 2021-06-14 Martin Liska <mliska@suse.cz>
22958
22959 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
22960
22961 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
22962
22963 * value-query.cc (gimple_range_global): Call get_range_global
22964 if called after inlining.
22965
22966 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
22967
22968 PR target/101021
22969 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
22970 Emit constant permutation insn directly from here.
22971
22972 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
22973
22974 * attribs.c (find_attribute_namespace): Iterate over vec<> with
22975 range based for.
22976 * auto-profile.c (afdo_find_equiv_class): Likewise.
22977 * gcc.c (do_specs_vec): Likewise.
22978 (do_spec_1): Likewise.
22979 (driver::set_up_specs): Likewise.
22980 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
22981 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
22982 (imm_store_chain_info::try_coalesce_bswap): Likewise.
22983 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
22984 (get_location_for_stmts): Likewise.
22985 * graphite-poly.c (print_iteration_domains): Likewise.
22986 (free_poly_bb): Likewise.
22987 (remove_gbbs_in_scop): Likewise.
22988 (free_scop): Likewise.
22989 (dump_gbb_cases): Likewise.
22990 (dump_gbb_conditions): Likewise.
22991 (print_pdrs): Likewise.
22992 (print_scop): Likewise.
22993 * ifcvt.c (cond_move_process_if_block): Likewise.
22994 * lower-subreg.c (decompose_multiword_subregs): Likewise.
22995 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
22996 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
22997 * sel-sched-dump.c (dump_insn_vector): Likewise.
22998 * store-motion.c (store_ops_ok): Likewise.
22999 (store_killed_in_insn): Likewise.
23000 * timevar.c (timer::named_items::print): Likewise.
23001 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
23002 (cleanup_tree_cfg_noloop): Likewise.
23003 * tree-data-ref.c (dump_data_references): Likewise.
23004 (print_dir_vectors): Likewise.
23005 (print_dist_vectors): Likewise.
23006 (dump_data_dependence_relations): Likewise.
23007 (dump_dist_dir_vectors): Likewise.
23008 (dump_ddrs): Likewise.
23009 (create_runtime_alias_checks): Likewise.
23010 (free_subscripts): Likewise.
23011 (save_dist_v): Likewise.
23012 (save_dir_v): Likewise.
23013 (invariant_access_functions): Likewise.
23014 (same_access_functions): Likewise.
23015 (access_functions_are_affine_or_constant_p): Likewise.
23016 (find_data_references_in_stmt): Likewise.
23017 (graphite_find_data_references_in_stmt): Likewise.
23018 (free_dependence_relations): Likewise.
23019 (free_data_refs): Likewise.
23020 * tree-inline.c (copy_debug_stmts): Likewise.
23021 * tree-into-ssa.c (dump_currdefs): Likewise.
23022 (rewrite_update_phi_arguments): Likewise.
23023 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
23024 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
23025 Likewise.
23026 (vect_slp_analyze_node_dependences): Likewise.
23027 (vect_slp_analyze_instance_dependence): Likewise.
23028 (vect_record_base_alignments): Likewise.
23029 (vect_get_peeling_costs_all_drs): Likewise.
23030 (vect_peeling_supportable): Likewise.
23031 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
23032 (vec_info::free_stmt_vec_infos): Likewise.
23033
23034 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
23035
23036 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
23037 (andqi3_1<cczn>): Removed.
23038 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
23039 (H8/SX bit logicals): Split out from other patterns.
23040 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
23041 mulqihi3_const_clobber_flags.
23042 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
23043
23044 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
23045
23046 PR target/101023
23047 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
23048 to true if red zone is used.
23049 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
23050 ix86_red_zone_used.
23051 * config/i386/i386.h (machine_function): Add red_zone_used.
23052 (ix86_red_zone_size): Removed.
23053 (ix86_red_zone_used): New.
23054 * config/i386/i386.md (peephole2 patterns): Replace
23055 ix86_red_zone_size with ix86_red_zone_used.
23056
23057 2021-06-12 Jason Merrill <jason@redhat.com>
23058
23059 * doc/extend.texi (unused variable attribute): Applies to
23060 structure fields as well.
23061
23062 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
23063
23064 * auto-profile.c (read_profile): fix a typo in an error string
23065
23066 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
23067
23068 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
23069 default argument.
23070 * tree-pretty-print.c (dump_omp_clauses): Update.
23071 (dump_generic_node) <OMP_CLAUSE>: Use it.
23072
23073 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23074
23075 PR target/101016
23076 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
23077 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
23078 the polymorphic variants matching code.
23079 (__arm_vld1q_z): Likewise.
23080 (__arm_vld2q): Likewise.
23081 (__arm_vld4q): Likewise.
23082 (__arm_vldrbq_gather_offset): Likewise.
23083 (__arm_vldrbq_gather_offset_z): Likewise.
23084
23085 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
23086
23087 PR tree-optimization/96392
23088 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
23089
23090 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
23091
23092 PR tree-optimization/96392
23093 * fold-const.c (fold_real_zero_addition_p): Take both arguments
23094 of the addition or subtraction, not just the zero. Use this
23095 other argument in tests for signaling NaNs and signed zeros.
23096 (tree_expr_maybe_real_minus_zero_p): New predicate.
23097 * fold-const.h (fold_real_zero_addition_p): Update prototype.
23098 (tree_expr_maybe_real_minus_zero_p): New function prototype.
23099 * match.pd: Update calls to fold_real_zero_addition_p.
23100 Replace HONOR_NANS with tree_expr_maybe_nan_p.
23101 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
23102 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
23103 * tree-ssa-reassoc.c (eliminate_using_constants): Update
23104 call to fold_real_zero_addition_p.
23105
23106 2021-06-11 Richard Biener <rguenther@suse.de>
23107
23108 PR tree-optimization/101025
23109 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
23110 all refs that require dependence checking.
23111
23112 2021-06-11 Richard Biener <rguenther@suse.de>
23113
23114 PR tree-optimization/101028
23115 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
23116 reassoc discovery fails fatally, mark appropriate lanes
23117 in matches[] so.
23118
23119 2021-06-11 Richard Biener <rguenther@suse.de>
23120
23121 PR tree-optimization/101026
23122 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
23123 have a representative for the associated chain nodes.
23124
23125 2021-06-11 Jakub Jelinek <jakub@redhat.com>
23126
23127 PR rtl-optimization/101008
23128 * simplify-rtx.c (relational_result): New function.
23129 (simplify_logical_relational_operation,
23130 simplify_relational_operation): Use it.
23131
23132 2021-06-11 Jakub Jelinek <jakub@redhat.com>
23133
23134 PR target/101007
23135 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
23136
23137 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
23138
23139 PR target/101021
23140 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
23141 false if the permutation can be implemented with constant
23142 permutation instruction in wider mode.
23143 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
23144 Handle V8QImode and V4HImode.
23145
23146 2021-06-11 Martin Liska <mliska@suse.cz>
23147
23148 PR gcov-profile/100788
23149 * common.opt: Add new option.
23150 * coverage.c (coverage_begin_function): Emit warning instead on
23151 the internal compiler error.
23152 * doc/invoke.texi: Document the option.
23153 * toplev.c (process_options): Enable it by default.
23154
23155 2021-06-11 Richard Biener <rguenther@suse.de>
23156
23157 PR middle-end/101009
23158 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
23159 to set *init_b to true when we encounter a constant equal
23160 index pair.
23161 (compute_affine_dependence): Also dump the actual DR_REF.
23162
23163 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
23164
23165 PR tree-optimization/100984
23166 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
23167 replacements table.
23168 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
23169
23170 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
23171
23172 * config/rs6000/rs6000.md
23173 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
23174 define_insn_and_split.
23175
23176 2021-06-11 Richard Biener <rguenther@suse.de>
23177
23178 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
23179 to sort operands of the associative chain.
23180
23181 2021-06-11 Richard Biener <rguenther@suse.de>
23182
23183 * system.h (gcc_stablesort_r): Declare.
23184 * sort.cc (gcc_sort_r): Support stable sort.
23185 (gcc_stablesort_r): Define.
23186 * vec.h (vec<>::stablesort): Add.
23187
23188 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
23189
23190 PR target/89021
23191 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
23192 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
23193 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
23194 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
23195 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
23196 (expand_vec_perm_interleave2): Handle 64bit modes.
23197 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
23198 (expand_vec_perm_even_odd_1): Ditto.
23199 (ix86_vectorize_vec_perm_const): Ditto.
23200 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
23201 * config/i386/sse.md: ... here.
23202 * config/i386/mmx.md (*vec_interleave_lowv2sf):
23203 New insn_and_split pattern.
23204 (*vec_interleave_highv2sf): Ditto.
23205 (mmx_pshufbv8qi3): New insn pattern.
23206 (*mmx_pblendw): Ditto.
23207
23208 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
23209
23210 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
23211 (build_acc): Likewise.
23212 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
23213 source operands in little-endian mode.
23214 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
23215 (mma_init_builtins): Likewise.
23216 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
23217 ordering for the MMA assemble and build source operands.
23218 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
23219 Document.
23220 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
23221 documentation.
23222
23223 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
23224
23225 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
23226 REG_P.
23227 * config/h8300/extensions.md: Replace _clobber_flags patterns
23228 with <cczn>.
23229
23230 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
23231
23232 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
23233 (vcond_mask_<mode><tointvec>): this.
23234
23235 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
23236 Thomas Schwinge <thomas@codesourcery.com>
23237
23238 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
23239 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
23240 * gimple.h (enum gf_mask): Split
23241 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
23242 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
23243 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
23244 (is_gimple_omp_oacc): Update.
23245 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
23246 * gimplify.c (gimplify_omp_target_update): Likewise.
23247 * omp-expand.c (expand_omp_target, build_omp_regions_1)
23248 (omp_make_gimple_edges): Likewise.
23249 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
23250 Likewise.
23251
23252 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
23253
23254 * value-query.cc (value_query::value_on_edge): Rename name to
23255 expr.
23256 (range_query::range_on_edge): Same.
23257 (range_query::value_of_expr): Same.
23258 (range_query::value_on_edge): Same.
23259 * value-query.h (class value_query): Same.
23260 (class range_query): Same.
23261
23262 2021-06-10 Richard Biener <rguenther@suse.de>
23263
23264 PR tree-optimization/101003
23265 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
23266 use the pattern stmt defs when linearizing a chain.
23267
23268 2021-06-10 Jakub Jelinek <jakub@redhat.com>
23269
23270 PR debug/100852
23271 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
23272 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
23273
23274 2021-06-10 Clement Chigot <clement.chigot@atos.net>
23275
23276 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
23277 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
23278
23279 2021-06-09 Andrew Pinski <apinski@marvell.com>
23280
23281 PR tree-optimization/100925
23282 * match.pd (a ? CST1 : CST2): Limit transformations
23283 that would produce a negative to integeral types only.
23284 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
23285
23286 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
23287
23288 Revert:
23289 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
23290
23291 * doc/tm.texi: Correctly update.
23292
23293 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
23294
23295 * doc/tm.texi: Correctly update.
23296
23297 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
23298
23299 PR other/100735
23300 * doc/tm.texi.in (Trampolines): Add a missing blank line.
23301
23302 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
23303
23304 PR other/100735
23305 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
23306 and -ftrampolines work only with Ada.
23307 * doc/tm.texi.in (Trampolines): Likewise.
23308 * doc/tm.texi: Regenerated.
23309
23310 2021-06-09 Carl Love <cel@us.ibm.com>
23311
23312 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
23313 Add define for new builtins.
23314 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
23315 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
23316 overloaded builtin definitions.
23317 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
23318 VSIGNEXTSD2Q): Add builtin expansions.
23319 (SIGNEXT): Add P10 overload definition.
23320 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
23321 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
23322 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
23323 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
23324 vsignextend_si_v2di)[VIlong]: Add define_expand.
23325 Make define_insn vsx_sign_extend_si_v2di visible.
23326 * doc/extend.texi: Add documentation for the vec_signexti,
23327 vec_signextll builtins and vec_signextq.
23328
23329 2021-06-09 Carl Love <cel@us.ibm.com>
23330
23331 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
23332 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
23333 __floattikf_sw, __floatuntikf_sw respectively.
23334 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
23335 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
23336 define_insn for mode IEEE 128.
23337
23338 2021-06-09 Carl Love <cel@us.ibm.com>
23339
23340 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
23341 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
23342 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
23343 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
23344 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
23345 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
23346 uses of VSX_TI to VEC_TI.
23347
23348 2021-06-09 Carl Love <cel@us.ibm.com>
23349
23350 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
23351
23352 2021-06-09 Carl Love <cel@us.ibm.com>
23353
23354 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
23355 builtins.
23356 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
23357 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
23358 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
23359 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
23360 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
23361 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
23362 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
23363 define_insn.
23364 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
23365 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
23366 altivec_vrlqnm): New define_expands.
23367 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
23368 VCMPGTUT_P): Add macro expansions.
23369 (BU_P10V_AV_P): Add builtin predicate definition.
23370 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
23371 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
23372 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
23373 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
23374 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
23375 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
23376 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
23377 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
23378 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
23379 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
23380 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
23381 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
23382 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
23383 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
23384 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
23385 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
23386 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
23387 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
23388 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
23389 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
23390 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
23391 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
23392 P10V_BUILTIN_MODU_V1TI):
23393 New overloaded definitions.
23394 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
23395 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
23396 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
23397 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
23398 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
23399 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
23400 New assignments.
23401 (altivec_init_builtins): New E_V1TImode case statement.
23402 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
23403 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
23404 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
23405 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
23406 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
23407 E_V1TImode]: New case statements.
23408 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
23409 value RS6000_BTI_bool_V1TI.
23410 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
23411 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
23412 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
23413 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
23414 vlshrv1ti3, vashrv1ti3): New define_expands.
23415 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
23416 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
23417 UNSPEC_VSX_MODUQ): New unspecs.
23418 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
23419 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
23420 define_insns.
23421 (vcmpnet): New define_expand.
23422 * doc/extend.texi: Add documentation for the new builtins vec_rl,
23423 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
23424 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
23425 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
23426 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
23427 vec_any_ge, vec_any_le.
23428
23429 2021-06-09 Carl Love <cel@us.ibm.com>
23430
23431 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
23432 bug in argument generation.
23433
23434 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
23435
23436 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
23437 (VCLZQ): Remove.
23438 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
23439 remove <supf> iterator.
23440 (mve_vclzq_u<mode>): New.
23441 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
23442 (neon_vclz<mode): Move to ...
23443 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
23444 * config/arm/vec-common.md: ... here. Add support for MVE.
23445
23446 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
23447
23448 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
23449 (@mve_vrhaddq_<supf><mode): Likewise.
23450 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
23451 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
23452 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
23453
23454 2021-06-09 imba-tjd <109224573@qq.com>
23455
23456 * doc/invoke.texi: Fix typo.
23457
23458 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
23459
23460 PR middle-end/53267
23461 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
23462 Support evaluation of fmod/fmodf/fmodl at compile-time.
23463
23464 2021-06-09 Richard Biener <rguenther@suse.de>
23465
23466 PR tree-optimization/100981
23467 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
23468 gimple_get_lhs to also handle calls.
23469 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
23470 reduction info.
23471
23472 2021-06-09 Richard Biener <rguenther@suse.de>
23473
23474 PR tree-optimization/97832
23475 * tree-vectorizer.h (_slp_tree::failed): New.
23476 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
23477 failed member.
23478 (_slp_tree::~_slp_tree): Free failed.
23479 (vect_build_slp_tree): Retain failed nodes and record
23480 matches in them, copying that back out when running
23481 into a cached fail. Dump start and end of discovery.
23482 (dt_sort_cmp): New.
23483 (vect_build_slp_tree_2): Handle associatable chains
23484 together doing more aggressive operand swapping.
23485
23486 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
23487
23488 PR target/100896
23489 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
23490 GNU targets.
23491 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
23492 Linux and GNU targets.
23493
23494 2021-06-09 Richard Biener <rguenther@suse.de>
23495
23496 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
23497 from the stmt.
23498
23499 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
23500
23501 * config/arc/arc.md (loop_end): Change it to
23502 define_insn_and_split.
23503
23504 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
23505
23506 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
23507 (machi): New pattern.
23508 (umaddhisi4): Use VMAC2HU instruction.
23509 (umachi): New pattern.
23510
23511 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
23512
23513 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
23514 * config/arc/arc.c (arc_split_move_p): New function.
23515 (arc_split_move): Clean up.
23516 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
23517 (movdf_insn): Likewise.
23518 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
23519
23520 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
23521
23522 PR target/100936
23523 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
23524 argument to "raw". Do not emit segment overrides when "raw" is true.
23525
23526 2021-06-09 Martin Liska <mliska@suse.cz>
23527
23528 * doc/gcov.texi: Create a proper JSON files.
23529 * doc/invoke.texi: Remove dots in order to make it a valid
23530 JSON object.
23531
23532 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
23533
23534 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
23535 (insn_is_load_p): Use pattern_is_rotate64.
23536 (insn_is_swap_p): Likewise.
23537 (quad_aligned_load_p): Likewise.
23538 (const_load_sequence_p): Likewise.
23539 (replace_swapped_aligned_load): Likewise.
23540 (recombine_lvx_pattern): Likewise.
23541 (recombine_stvx_pattern): Likewise.
23542
23543 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
23544
23545 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
23546 fur_stmt source record.
23547 * gimple-range.cc (fur_source::get_operand): Generic range query.
23548 (fur_source::get_phi_operand): New.
23549 (fur_source::register_dependency): New.
23550 (fur_source::query): New.
23551 (class fur_edge): New. Edge source for operands.
23552 (fur_edge::fur_edge): New.
23553 (fur_edge::get_operand): New.
23554 (fur_edge::get_phi_operand): New.
23555 (fur_edge::query): New.
23556 (fur_stmt::fur_stmt): New.
23557 (fur_stmt::get_operand): New.
23558 (fur_stmt::get_phi_operand): New.
23559 (fur_stmt::query): New.
23560 (class fur_depend): New. Statement source and process dependencies.
23561 (fur_depend::fur_depend): New.
23562 (fur_depend::register_dependency): New.
23563 (class fur_list): New. List source for operands.
23564 (fur_list::fur_list): New.
23565 (fur_list::get_operand): New.
23566 (fur_list::get_phi_operand): New.
23567 (fold_range): New. Instantiate appropriate fur_source class and fold.
23568 (fold_using_range::range_of_range_op): Use new API.
23569 (fold_using_range::range_of_address): Ditto.
23570 (fold_using_range::range_of_phi): Ditto.
23571 (imple_ranger::fold_range_internal): Use fur_depend class.
23572 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
23573 * gimple-range.h (class fur_source): Now a base class.
23574 (class fur_stmt): New.
23575 (fold_range): New prototypes.
23576 (fur_source::fur_source): Delete.
23577
23578 2021-06-08 Andrew Pinski <apinski@marvell.com>
23579
23580 PR tree-optimization/25290
23581 * tree-ssa-phiopt.c (xor_replacement): Delete.
23582 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
23583 (match_simplify_replacement): Allow one cheap preparation
23584 statement that can be moved to before the if.
23585
23586 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
23587
23588 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
23589 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
23590
23591 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
23592
23593 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
23594 Create length attribute on define_insn_and_split. Only split for cases which we
23595 know will use AND.
23596 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
23597 fix length computation.
23598 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
23599
23600 2021-06-08 Richard Biener <rguenther@suse.de>
23601
23602 PR tree-optimization/100923
23603 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
23604 the operand vector to be valueized.
23605 (valueize_refs): Likewise.
23606 (valueize_shared_reference_ops_from_ref): Adjust.
23607 (valueize_shared_reference_ops_from_call): Likewise.
23608 (vn_reference_lookup_3): Likewise.
23609 (vn_reference_lookup_pieces): Likewise. Re-valueize
23610 with honoring availability when we are about to create
23611 the ao_ref and valueized before.
23612 (vn_reference_lookup): Likewise.
23613 (vn_reference_insert_pieces): Adjust.
23614
23615 2021-06-08 Richard Biener <rguenther@suse.de>
23616
23617 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
23618 (_slp_instance::root_stmts): ... a vector.
23619 (SLP_INSTANCE_ROOT_STMT): Rename to ...
23620 (SLP_INSTANCE_ROOT_STMTS): ... this.
23621 (slp_root::root): Change to...
23622 (slp_root::roots): ... a vector.
23623 (slp_root::slp_root): Adjust.
23624 * tree-vect-slp.c (_slp_instance::location): Adjust.
23625 (vect_free_slp_instance): Release the root stmt vector.
23626 (vect_build_slp_instance): Adjust.
23627 (vect_analyze_slp): Likewise.
23628 (_bb_vec_info::~_bb_vec_info): Likewise.
23629 (vect_slp_analyze_operations): Likewise.
23630 (vect_bb_vectorization_profitable_p): Likewise. Adjust
23631 costs for the root stmt.
23632 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
23633 as root stmts.
23634 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
23635 as pure_slp.
23636 (vectorize_slp_instance_root_stmt): Adjust.
23637 (vect_schedule_slp): Likewise.
23638
23639 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
23640
23641 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
23642 (ssa_equiv_stack::ssa_equiv_stack): New.
23643 (ssa_equiv_stack::~ssa_equiv_stack): New.
23644 (ssa_equiv_stack::enter): New.
23645 (ssa_equiv_stack::leave): New.
23646 (ssa_equiv_stack::push_replacement): New.
23647 (ssa_equiv_stack::get_replacement): New.
23648 (is_pointer_ssa): New.
23649 (class pointer_equiv_analyzer): New.
23650 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
23651 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
23652 (pointer_equiv_analyzer::set_global_equiv): New.
23653 (pointer_equiv_analyzer::set_cond_equiv): New.
23654 (pointer_equiv_analyzer::get_equiv): New.
23655 (pointer_equiv_analyzer::enter): New.
23656 (pointer_equiv_analyzer::leave): New.
23657 (pointer_equiv_analyzer::get_equiv_expr): New.
23658 (pta_valueize): New.
23659 (pointer_equiv_analyzer::visit_stmt): New.
23660 (pointer_equiv_analyzer::visit_edge): New.
23661 (hybrid_folder::value_of_expr): Call PTA.
23662 (hybrid_folder::value_on_edge): Same.
23663 (hybrid_folder::pre_fold_bb): New.
23664 (hybrid_folder::post_fold_bb): New.
23665 (hybrid_folder::pre_fold_stmt): New.
23666 (rvrp_folder::pre_fold_bb): New.
23667 (rvrp_folder::post_fold_bb): New.
23668 (rvrp_folder::pre_fold_stmt): New.
23669 (rvrp_folder::value_of_expr): Call PTA.
23670 (rvrp_folder::value_on_edge): Same.
23671
23672 2021-06-08 Jakub Jelinek <jakub@redhat.com>
23673
23674 PR c++/100957
23675 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
23676 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
23677
23678 2021-06-08 Richard Biener <rguenther@suse.de>
23679
23680 PR middle-end/100951
23681 * tree-vect-generic.c (expand_vector_piecewise): Build a
23682 VECTOR_CST if all elements are constant.
23683 (expand_vector_condition): Likewise.
23684 (lower_vec_perm): Likewise.
23685 (expand_vector_conversion): Likewise.
23686
23687 2021-06-08 Martin Liska <mliska@suse.cz>
23688
23689 * doc/invoke.texi: Document new param evrp-sparse-threshold.
23690
23691 2021-06-08 Martin Liska <mliska@suse.cz>
23692
23693 * genautomata.c (create_automata): Fix typo.
23694
23695 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
23696
23697 PR tree-optimization/100794
23698 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
23699 allow_unroll_p and only allow unrolling when it's true.
23700 (tree_predictive_commoning): Add parameter allow_unroll_p and
23701 adjust for it.
23702 (run_tree_predictive_commoning): Likewise.
23703 (pass_predcom::gate): Check flag_tree_loop_vectorize and
23704 global_options_set.x_flag_predictive_commoning.
23705 (pass_predcom::execute): Adjust for allow_unroll_p.
23706
23707 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
23708
23709 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
23710 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
23711 lambda function cleanup, remove scev_reset call, and adjust return
23712 value.
23713 (tree_predictive_commoning): Adjust for different changed values,
23714 only set flag TODO_update_ssa_only_virtuals if changed.
23715 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
23716 from todo_flags_finish.
23717
23718 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
23719
23720 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
23721 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
23722 (sbr_sparse_bitmap::bitmap_set_quad): New.
23723 (sbr_sparse_bitmap::bitmap_get_quad): New.
23724 (sbr_sparse_bitmap::set_bb_range): New.
23725 (sbr_sparse_bitmap::get_bb_range): New.
23726 (sbr_sparse_bitmap::bb_range_p): New.
23727 (block_range_cache::block_range_cache): initialize bitmap obstack.
23728 (block_range_cache::~block_range_cache): Destruct obstack.
23729 (block_range_cache::set_bb_range): Decide when to utilze the
23730 sparse on entry cache.
23731 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
23732 * params.opt (-param=evrp-sparse-threshold): New.
23733
23734 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
23735
23736 * bitmap.c (bitmap_set_aligned_chunk): New.
23737 (bitmap_get_aligned_chunk): New.
23738 (test_aligned_chunk): New.
23739 (bitmap_c_tests): Call test_aligned_chunk.
23740 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
23741
23742 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
23743
23744 PR target/100637
23745 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
23746 Handle V4QI mode.
23747 (ix86_expand_vector_init_one_nonzero): Ditto.
23748 (ix86_expand_vector_init_one_var): Ditto.
23749 (ix86_expand_vector_init_general): Ditto.
23750 * config/i386/mmx.md (vec_initv4qiqi): New expander.
23751
23752 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
23753
23754 * config/h8300/movepush.md: Change most _clobber_flags
23755 patterns to instead use <cczn> subst.
23756 (movsi_cczn): New pattern with usable CC cases split out.
23757 (movsi_h8sx_cczn): Likewise.
23758
23759 2021-06-07 Martin Liska <mliska@suse.cz>
23760
23761 * common/common-target.def: Split long lines and replace them
23762 with '\n\'.
23763 * target.def: Likewise.
23764 * doc/tm.texi: Re-generated.
23765
23766 2021-06-07 Jakub Jelinek <jakub@redhat.com>
23767
23768 PR target/100887
23769 * fold-const.c (fold_read_from_vector): Return NULL if trying to
23770 read from a CONSTRUCTOR with vector type elements.
23771
23772 2021-06-07 Jakub Jelinek <jakub@redhat.com>
23773
23774 PR middle-end/100898
23775 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
23776 should copy any arguments. Don't call gimple_call_num_args
23777 on id->call_stmt or call_stmt more than once.
23778
23779 2021-06-07 liuhongt <hongtao.liu@intel.com>
23780
23781 PR target/100885
23782 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
23783 constraints.
23784 (<insn>v4siv4di2): Delete constraints for define_expand.
23785
23786 2021-06-07 liuhongt <hongtao.liu@intel.com>
23787
23788 PR target/82735
23789 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
23790 assignment of cfun->machine->has_explicit_vzeroupper.
23791 * config/i386/i386-features.c
23792 (ix86_add_reg_usage_to_vzerouppers): Delete.
23793 (ix86_add_reg_usage_to_vzeroupper): Ditto.
23794 (rest_of_handle_insert_vzeroupper): Remove
23795 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
23796 of the function.
23797 (gate): Remove cfun->machine->has_explicit_vzeroupper.
23798 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
23799 Declared.
23800 * config/i386/i386.c (ix86_insn_callee_abi): New function.
23801 (ix86_initialize_callee_abi): Ditto.
23802 (ix86_expand_avx_vzeroupper): Ditto.
23803 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
23804 ABI.
23805 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
23806 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
23807 directly.
23808 * config/i386/i386.h (struct GTY(()) machine_function): Delete
23809 has_explicit_vzeroupper.
23810 * config/i386/i386.md (enum unspec): New member
23811 UNSPEC_CALLEE_ABI.
23812 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
23813 define_constants for insn callee abi index.
23814 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
23815 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
23816 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
23817 (*avx_vzeroupper): Rename to ..
23818 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
23819 call_insn which has a special vzeroupper ABI.
23820 (*avx_vzeroupper_1): Deleted.
23821
23822 2021-06-07 liuhongt <hongtao.liu@intel.com>
23823
23824 PR target/82735
23825 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
23826 it won't use stack pointer reg.
23827 * final.c (leaf_function_p): When call_insn is a fake call, it
23828 won't affect caller as a leaf function.
23829 * reg-stack.c (callee_clobbers_any_stack_reg): New.
23830 (subst_stack_regs): When call_insn doesn't clobber any stack
23831 reg, don't clear the arguments.
23832 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
23833 a insn.
23834 * shrink-wrap.c (requires_stack_frame_p): No need for stack
23835 frame for a fake call.
23836 * rtl.h (FAKE_CALL_P): New macro.
23837
23838 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
23839
23840 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
23841 to...
23842 (sparc_order_regs_for_local_alloc): ...this.
23843 (sparc_leaf_reg_remap): Declare.
23844 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
23845 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
23846 * config/sparc/sparc.c (leaf_reg_remap): Delete.
23847 (order_regs_for_local_alloc): Rename to...
23848 (sparc_order_regs_for_local_alloc): ...this.
23849 (sparc_leaf_reg_remap): New function.
23850 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
23851
23852 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
23853
23854 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
23855 Use assemble_name to output BSS section name.
23856
23857 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
23858
23859 * config/i386/constraints.md (Bs):
23860 Remove boolean operators from match_test RTX.
23861 (Bw): Ditto.
23862 (L): Ditto.
23863 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
23864 (Wz): Ditto.
23865
23866 2021-06-06 Martin Liska <mliska@suse.cz>
23867
23868 * doc/extend.texi: Add missing @headitem.
23869 * doc/invoke.texi: Likewise.
23870 * doc/objc.texi: Likewise.
23871
23872 2021-06-06 Martin Liska <mliska@suse.cz>
23873
23874 * genhooks.c (emit_findices): Remove unused function.
23875 (emit_documentation): Do not call emit_findices
23876 and do not search for @Fcode directives.
23877
23878 2021-06-06 Martin Liska <mliska@suse.cz>
23879
23880 * doc/invoke.texi: Remove extra character.
23881
23882 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23883
23884 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
23885
23886 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23887
23888 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
23889 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
23890 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
23891 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
23892
23893 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23894
23895 * config/or1k/or1k.md (*movdi): Fix empty split condition.
23896
23897 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23898
23899 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
23900 split condition.
23901
23902 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23903
23904 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
23905 *zero_extendsidi2): Fix empty split condition.
23906
23907 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
23908
23909 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
23910 patterns.
23911 * config/h8300/bitfield.md: Likewise.
23912 * config/h8300/combiner.md: Likewise.
23913 * config/h8300/divmod.md: Likewise.
23914 * config/h8300/extensions.md: Likewise.
23915 * config/h8300/jumpcall.md: Likewise.
23916 * config/h8300/movepush.md: Likewise.
23917 * config/h8300/multiply.md: Likewise.
23918 * config/h8300/other.md: Likewise.
23919 * config/h8300/shiftrotate.md: Likewise.
23920 * config/h8300/logical.md: Likewise. Fix split pattern to use
23921 code iterator that somehow slipped through.
23922
23923 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
23924
23925 PR middle-end/100905
23926 * tree-nested.c (convert_nonlocal_omp_clauses,
23927 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
23928
23929 2021-06-04 Martin Sebor <msebor@redhat.com>
23930
23931 PR middle-end/100732
23932 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
23933 with either source or destination argument of invalid type.
23934 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
23935 calls with arguments of invalid type.
23936
23937 2021-06-04 Martin Sebor <msebor@redhat.com>
23938
23939 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
23940 order.
23941 (attr_access::vla_bounds): Also handle VLA bounds.
23942
23943 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
23944
23945 * config/i386/predicates.md (GOT_memory_operand):
23946 Implement using match_code RTXes.
23947 (GOT32_symbol_operand): Ditto.
23948
23949 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
23950
23951 PR target/100637
23952 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
23953 Handle V2HI mode.
23954 (ix86_expand_vector_init_general): Ditto.
23955 Use SImode instead of word_mode for logic operations
23956 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
23957 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
23958 implemented by expand_vec_perm_1.
23959 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
23960 should be implemented using standard shuffle patterns.
23961 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
23962 V2HI modes to modes, implementable with shuffle for one operand.
23963 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
23964 (*pshufw_1): New insn pattern.
23965 (*vec_dupv2hi): Ditto.
23966 (vec_initv2hihi): New expander.
23967
23968 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
23969
23970 * config/arm/vfp.md (no_literal_pool_df_immediate,
23971 no_literal_pool_sf_immediate): Fix empty split condition.
23972
23973 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
23974
23975 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
23976 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
23977 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
23978 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
23979 *<sse4_1_avx2>_pblendvb_lt): Likewise.
23980
23981 2021-06-04 Jakub Jelinek <jakub@redhat.com>
23982
23983 PR target/100887
23984 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
23985 concatenation from half-sized modes with TImode elements.
23986
23987 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
23988
23989 * config/arc/arc.c (arc_override_options): Disable millicode
23990 thunks when RF16 is on.
23991
23992 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
23993
23994 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
23995
23996 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
23997
23998 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
23999 Replace PROMOTE_MODE marco with its content.
24000
24001 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
24002
24003 * config/cris/cris.md (*addi_reload): Fix empty split condition.
24004
24005 2021-06-03 Jim Wilson <jimw@sifive.com>
24006
24007 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
24008 turn it on for all riscv targets.
24009
24010 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
24011
24012 PR target/100637
24013 * config/i386/i386-expand.c (ix86_expand_vector_set):
24014 Handle V2HI and V4QI modes.
24015 (ix86_expand_vector_extract): Ditto.
24016 * config/i386/mmx.md (*pinsrw): New insn pattern.
24017 (*pinsrb): Ditto.
24018 (*pextrw): Ditto.
24019 (*pextrw_zext): Ditto.
24020 (*pextrb): Ditto.
24021 (*pextrb_zext): Ditto.
24022 (vec_setv2hi): New expander.
24023 (vec_extractv2hihi): Ditto.
24024 (vec_setv4qi): Ditto.
24025 (vec_extractv4qiqi): Ditto.
24026 (vec_setv8qi): Enable only for TARGET_SSE4_1.
24027 (vec_extractv8qiqi): Ditto.
24028
24029 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24030
24031 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
24032 order to subf instruction.
24033 * config/rs6000/fusion.md: Regenerate.
24034
24035 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
24036
24037 * calls.c (get_size_range): Use range_of_expr instead of
24038 determine_value_range.
24039 * tree-affine.c (expr_to_aff_combination): Same.
24040 * tree-data-ref.c (split_constant_offset): Same.
24041 * tree-vrp.c (determine_value_range_1): Remove.
24042 (determine_value_range): Remove.
24043 * tree-vrp.h (determine_value_range): Remove.
24044
24045 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
24046
24047 * function-tests.c (test_ranges): Call gimple_range_tests.
24048 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
24049 to get_tree_range.
24050 * gimple-range.cc (fur_source::get_operand): Do not call
24051 get_tree_range or gimple_range_global.
24052 get_tree_range.
24053 (get_tree_range): Move to value-query.cc.
24054 Call get_arith_expr_range.
24055 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
24056 Include gimple-range-tests.cc.
24057 * gimple-range.h (fold_range): Add argument.
24058 (get_tree_range): Remove.
24059 * selftest.h (gimple_range_tests): New.
24060 * value-query.cc (global_range_query::range_of_expr): Add
24061 stmt argument.
24062 (range_query::get_tree_range): Move from gimple-range.cc.
24063 * value-query.h (class range_query): Add get_tree_range and
24064 get_arith_expr_range. Make fur_source a friend.
24065 * vr-values.c (vr_values::range_of_expr): Pass stmt to
24066 get_tree_range.
24067 * gimple-range-tests.cc: New file.
24068
24069 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
24070
24071 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
24072 update_global_range.
24073 * value-query.cc (update_global_range): New.
24074 * value-query.h (update_global_range): New.
24075
24076 2021-06-03 David Malcolm <dmalcolm@redhat.com>
24077
24078 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
24079 printing the same location twice if there are fix-it hints,
24080 multiple locations, or a label.
24081
24082 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
24083
24084 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
24085 thresholds to narrow the upper bound on epilogue iterations.
24086
24087 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
24088
24089 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
24090 (mve_vabsq_s<mode>): Likewise.
24091 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
24092 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
24093 * config/arm/vec-common.md (neg<mode>2): Rename to
24094 <absneg_str><mode>2.
24095
24096 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
24097
24098 * common/config/arc/arc-common.c (arc_option_optimization_table):
24099 Remove malign-call.
24100 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
24101 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
24102 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
24103 * config/arc/arc.md (abssi2_mixed): Remove pattern.
24104 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
24105 (malign-call): Likewise.
24106 (mmixed-code): Likewise.
24107 * doc/invoke.texi (ARC): Update doc.
24108
24109 2021-06-03 Martin Liska <mliska@suse.cz>
24110
24111 * common.opt: Use proper Enum values.
24112 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
24113 (parse_sanitizer_options): Handle only sanitizer_opts.
24114 (common_handle_option): Just assign value.
24115
24116 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
24117
24118 PR ipa/99122
24119 * tree-inline.c (inline_forbidden_p): Remove test on return type.
24120
24121 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
24122
24123 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
24124 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
24125 (type_byte_size): Inline into...
24126 (add_byte_size_attribute): ...this and call add_scalar_info.
24127
24128 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
24129
24130 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
24131 (typed_binop_from_tree): New function.
24132 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
24133 turn a divide by a power of 2 into a shift.
24134 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
24135 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
24136 typed divide by calling typed_binop_from_tree.
24137
24138 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
24139
24140 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
24141 (is_handled_procedure_type): Likewise.
24142 (struct loc_descr_context): Add strict_signedness field.
24143 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
24144 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
24145 (resolve_args_picking): Minor tweak.
24146 (function_to_dwarf_procedure): Initialize strict_signedness field.
24147 (type_byte_size): Likewise.
24148 (field_byte_offset): Likewise.
24149 (gen_descr_array_type_die): Likewise.
24150 (gen_variant_part): Likewise.
24151 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
24152 to true when a context is present before evaluating the arguments.
24153 <COND_EXPR>: Do not generate a useless comparison with zero.
24154 When dereferencing an address, if strict_signedness is true and the
24155 type is small and signed, use DW_OP_deref_type to do the dereference
24156 and then DW_OP_convert to convert back to the generic type.
24157
24158 2021-06-03 Jakub Jelinek <jakub@redhat.com>
24159
24160 PR c++/100859
24161 * tree-inline.c (copy_tree_body_r): Handle iterators on
24162 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
24163
24164 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
24165
24166 * config/arc/arc.md (*bbit_di): Remove.
24167
24168 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
24169
24170 PR rtl-optimization/100264
24171 * ree.c (get_sub_rtx): Ignore SET expressions without register
24172 destinations and remove assertion, as it is not valid anymore
24173 with this new behaviour.
24174 (merge_def_and_ext): Eliminate destination check for register
24175 as such SET expressions can't occur anymore.
24176 (combine_reaching_defs): Likewise.
24177
24178 2021-06-02 Jakub Jelinek <jakub@redhat.com>
24179
24180 PR target/100841
24181 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
24182 -Wtype-limits warnings.
24183 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
24184 in operands to avoid -Wsign-compare warnings.
24185
24186 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
24187
24188 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
24189 gen_frame_store.
24190
24191 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
24192
24193 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
24194
24195 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
24196
24197 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
24198 constraint.
24199 * config/s390/subst.md(cconly_subst): Use a single constraint
24200 in (match_scratch).
24201
24202 2021-06-02 Martin Liska <mliska@suse.cz>
24203
24204 * ipa-icf.h: Use auto_vec for memory_access_types.
24205
24206 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
24207
24208 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
24209 argument from prototype.
24210 (output_logical_op): Add rtx_code argument.
24211 (compute_logical_op_length): Likewise.
24212 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
24213 to compute_a_shift_length.
24214 (output_logical_op); New argument with the rtx code rather than
24215 extracting it from an operand. Handle QImode too.
24216 (compute_logical_op_length): Similary.
24217 (compute_a_shift_length): Drop unused argument.
24218 * config/h8300/h8300.md (logicals): New code iterator.
24219 * config/h8300/logical.md (<code><mode>3 expander): Combine
24220 the "and" expander with the "ior"/"xor" expander.
24221 (bclr<mode>msx): Combine the QI/HI mode patterns.
24222 (<logical><mode>3 insns): Use code iterator rather than match_operator.
24223 Handle QImode as well. Update call to output_logical_op and
24224 compute_logical_op_length to pass in rtx_code
24225 Fix split condition on all define_insn_and_split patterns.
24226 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
24227 the flags and setting ZN via existing define_subst.
24228 * config/h8300/shiftrotate.md: Drop unused argument from
24229 calls to compute_a_shift_length.
24230 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
24231
24232 2021-06-01 Andrew Pinski <apinski@marvell.com>
24233
24234 PR tree-optimization/25290
24235 * tree-ssa-phiopt.c (match_simplify_replacement):
24236 New function.
24237 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
24238 (two_value_replacement): Change the comment about
24239 conditional_replacement.
24240 (conditional_replacement): Delete.
24241
24242 2021-06-01 Andrew Pinski <apinski@marvell.com>
24243
24244 PR tree-optimization/95481
24245 * tree-tailcall.c (find_tail_calls): Handle empty typed
24246 return decls.
24247
24248 2021-06-01 Andrew Pinski <apinski@marvell.com>
24249
24250 * gimplify.c (zero_sized_field_decl): Delete
24251 (zero_sized_type): Delete
24252 (gimplify_init_ctor_eval): Use is_empty_type instead
24253 of zero_sized_field_decl.
24254 (gimplify_modify_expr): Use is_empty_type instead of
24255 zero_sized_type.
24256
24257 2021-06-01 Jason Merrill <jason@redhat.com>
24258
24259 PR c++/91859
24260 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
24261
24262 2021-06-01 Jason Merrill <jason@redhat.com>
24263
24264 PR c++/94492
24265 * diagnostic.h (warning_enabled_at): Declare.
24266 * diagnostic.c (diagnostic_enabled): Factor out from...
24267 (diagnostic_report_diagnostic): ...here.
24268 (warning_enabled_at): New.
24269
24270 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
24271
24272 * gimple-ssa-evrp.c: Enable exporting of global ranges.
24273
24274 2021-06-01 Martin Liska <mliska@suse.cz>
24275
24276 PR other/100826
24277 * doc/invoke.texi: Mention that -fgcse-after-reload
24278 is enabled with -O3.
24279
24280 2021-06-01 liuhongt <hongtao.liu@intel.com>
24281
24282 PR tree-optimization/98365
24283 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
24284 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
24285 (convert_scalar_cond_reduction): Ditto.
24286 (predicate_scalar_phi): Ditto.
24287
24288 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
24289
24290 PR tree-optimization/100781
24291 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
24292 value calculation by default.
24293 (ranger_cache::enable_new_values): New.
24294 (ranger_cache::disable_new_values): New.
24295 (ranger_cache::push_poor_value): Check if new values are allowed.
24296 * gimple-range-cache.h (class ranger_cache): New member/methods.
24297 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
24298 statement, and disable/renable new value calculation.
24299
24300 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
24301
24302 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
24303 (ranger_cache::range_of_def): New.
24304 (ranger_cache::entry_range): New.
24305 (ranger_cache::exit_range): New.
24306 (ranger_cache::range_of_expr): Adjust.
24307 (ranger_cache::range_on_edge): Adjust.
24308 (ranger_cache::propagate_cache): Call exit_range directly.
24309 * gimple-range-cache.h (class ranger_cache): Adjust.
24310
24311 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
24312
24313 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
24314 gori_compute being a member rather than base class.
24315 dervied call to member call.
24316 (ranger_cache::dump): No longer dump gori_map.
24317 (ranger_cache::dump_bb): New.
24318 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
24319 being a member rather than base class.
24320 (ranger_cache::set_global_range): Ditto.
24321 (ranger_cache::ssa_range_in_bb): Ditto.
24322 (ranger_cache::range_of_expr): New.
24323 (ranger_cache::range_on_edge): New.
24324 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
24325 (ranger_cache::propagate_cache): Adjust debugging output.
24326 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
24327 output changes.
24328 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
24329 member, and inherit from range_query instead.
24330 (ranger_cache::dump_bb): New. split from dump.
24331 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
24332 (gori_compute::expr_range_at_stmt): Delete.
24333 (gori_compute::compute_name_range_op): Delete.
24334 (gori_compute::compute_operand_range_switch): Add fur_source.
24335 (gori_compute::compute_operand_range): Add fur_source param, inline
24336 old compute_name_range_op and optimize_logical_operands.
24337 (struct tf_range): Delete.
24338 (gori_compute::logical_combine): Adjust
24339 (gori_compute::optimize_logical_operands): Delete.
24340 (gori_compute::compute_logical_operands_in_chain): Delete.
24341 (gori_compute::compute_logical_operands): Adjust.
24342 (gori_compute::compute_operand1_range): Adjust to fur_source.
24343 (gori_compute::compute_operand2_range): Ditto.
24344 (gori_compute::compute_operand1_and_operand2_range): Ditto.
24345 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
24346 and adjust to fur_source.
24347 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
24348 range_query and fur_source.
24349 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
24350 from the ranger_cache..
24351 (gimple_ranger::fold_range_internal): Adjust to base class change of
24352 ranger_cache.
24353 (gimple_ranger::dump_bb): Adjust dump.
24354 * gimple-range.h (gimple_ranger):export gori computes object.
24355
24356 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
24357
24358 PR tree-optimization/100774
24359 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
24360 Constant values are also not stale.
24361 (ranger_cache::set_global_range): Range invariant values should also
24362 have the correct timestamp.
24363
24364 2021-05-31 Martin Liska <mliska@suse.cz>
24365
24366 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
24367 Unpack FUNCTION_DECL_DECL_TYPE.
24368 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
24369 Stream FUNCTION_DECL_DECL_TYPE instead of
24370 DECL_IS_OPERATOR_NEW_P.
24371 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
24372 macro.
24373 (DECL_IS_OPERATOR_NEW_P): Likewise.
24374 (DECL_IS_OPERATOR_DELETE_P): Likewise.
24375 (DECL_LAMBDA_FUNCTION_P): Likewise.
24376
24377 2021-05-31 Richard Biener <rguenther@suse.de>
24378
24379 PR c++/88601
24380 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
24381 * internal-fn.def (SHUFFLEVECTOR): New.
24382 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
24383 * doc/extend.texi: Document __builtin_shufflevector.
24384
24385 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
24386
24387 PR target/99842
24388 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
24389 indexed form addresses.
24390
24391 2021-05-29 Jeff Law <jlaw@tachyum.com>
24392
24393 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
24394 parameter. Call callers fixed.
24395 (push): Likewise.
24396 (output_plussi): Add FALLTHRU markers.
24397 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
24398
24399 2021-05-29 Jakub Jelinek <jakub@redhat.com>
24400
24401 PR middle-end/99928
24402 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
24403 combined with parallel, make sure to add shared clause to
24404 parallel for explicit linear clause.
24405
24406 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
24407
24408 PR tree-optimization/100787
24409 * gimple-ssa-evrp.c: Disable exporting of global ranges.
24410
24411 2021-05-28 Jason Merrill <jason@redhat.com>
24412
24413 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
24414 operator--, operator*, operator==, and operator!=.
24415 (class tsi_range): New.
24416
24417 2021-05-28 Richard Biener <rguenther@suse.de>
24418
24419 PR tree-optimization/100778
24420 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
24421 trapping ops in different BBs.
24422
24423 2021-05-28 Richard Biener <rguenther@suse.de>
24424
24425 PR ipa/100791
24426 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
24427 copy fntype from original call.
24428
24429 2021-05-28 Martin Liska <mliska@suse.cz>
24430
24431 PR gcov-profile/100751
24432 * doc/gcov.texi: Revert partially a hunk that was wrong.
24433
24434 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
24435
24436 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
24437 Defined.
24438 (HAVE_sync_compare_and_swaphi): Likewise.
24439 (HAVE_sync_compare_and_swapsi): Likewise.
24440
24441 2021-05-28 Jakub Jelinek <jakub@redhat.com>
24442
24443 PR middle-end/99928
24444 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
24445
24446 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
24447
24448 * gimplify.c (gimplify_omp_affinity): New.
24449 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
24450 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
24451 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
24452 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
24453 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
24454
24455 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
24456 Richard Biener <rguenther@suse.de>
24457
24458 * match.pd <popcount & / + pattern matching>:
24459 When generating popcount directly fails, try doing it in two halves.
24460
24461 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24462
24463 * Makefile.in (generated_files): Add gimple-match.c and
24464 generic-match.c
24465
24466 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
24467
24468 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
24469
24470 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
24471
24472 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
24473
24474 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
24475
24476 PR tree-optimization/99398
24477 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
24478 where the fed operands are CTOR/CST and propagated through
24479 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
24480 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
24481 function.
24482 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
24483 declare.
24484
24485 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
24486
24487 * config/i386/mmx.md (addv2sf3): Do not call
24488 ix86_fixup_binary_operands_no_copy.
24489 (subv2sf3): Ditto.
24490 (mulv2sf3): Ditto.
24491 (<smaxmin:code>v2sf3): Ditto.
24492 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
24493 (<plusminus:insn><VI_32:mode>3): Remove expander.
24494 (<plusminus:insn><VI_32:mode>3): Rename from
24495 "*<plusminus:insn><VI_32:mode>3".
24496 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
24497 (mulv2hi3): Remove expander.
24498 (mulv2hi3): Rename from *mulv2hi3.
24499 (<s>mulv2hi3_highpart): Remove expander.
24500 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
24501 (<smaxmin:code><MMXMODE14:mode>3): Rename from
24502 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
24503 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
24504 (SMAXMIN_MMXMODEI): Remove mode iterator.
24505 (<smaxmin:code>v4hi3): New expander.
24506 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
24507 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
24508 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
24509 (SMAXMIN_VI_32): Remove mode iterator.
24510 (<umaxmin:code><MMXMODE24:mode>3): Rename from
24511 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
24512 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
24513 (UMAXMIN_MMXMODEI): Remove mode iterator.
24514 (<umaxmin:code>v8qi3): New expander.
24515 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
24516 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
24517 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
24518 (UMAXMIN_VI_32): Remove mode iterator.
24519 (<any_shift:insn>v2hi3): Remove expander.
24520 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
24521 (<any_logic:code><MMXMODEI:mode>3): Do not call
24522 ix86_fixup_binary_operands_no_copy.
24523 (<any_logic:code><VI_32:mode>3): Remove expander.
24524 (<any_logic:code><VI_32:mode>3): Rename from
24525 "*<any_logic:code><VI_32:mode>3".
24526 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
24527 * config/i386/sse.md (div<VF2:mode>3): Do not call
24528 ix86_fixup_binary_operands_no_copy.
24529 (div<VF1:mode>3): Ditto.
24530 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
24531 (smulhrsv4hi3): Ditto.
24532 (smulhrsv2hi3): Ditto.
24533
24534 2021-05-27 Martin Sebor <msebor@redhat.com>
24535
24536 * ggc.h (gt_ggc_mx): Add overloads for all integers.
24537 (gt_pch_nx): Same.
24538 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
24539 integers.
24540 (hash_map::operator==): New function.
24541
24542 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
24543
24544 PR target/100637
24545 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24546 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
24547 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
24548 (*xop_maskcmp<VI_32:mode>3): Ditto.
24549 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
24550 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
24551
24552 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
24553
24554 PR target/100767
24555 * config/arm/arm.c (arm_configure_build_target): Remove parameter
24556 opts_set, directly check opts parameters for being non-null.
24557 (arm_option_restore): Update call to arm_configure_build_target.
24558 (arm_option_override): Likewise.
24559 (arm_can_inline_p): Likewise.
24560 (arm_valid_target_attribute_tree): Likewise.
24561 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
24562 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
24563 prototype.
24564
24565 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
24566
24567 * vr-values.c (simplify_conversion_using_ranges): Use
24568 get_range_query instead of get_global_range_query.
24569
24570 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
24571
24572 * gimple-range.cc (get_range_global): Move to value-query.cc.
24573 (gimple_range_global): Same.
24574 (get_global_range_query): Same.
24575 (global_range_query::range_of_expr): Same.
24576 * gimple-range.h (class global_range_query): Move to
24577 value-query.h.
24578 (gimple_range_global): Same.
24579 * tree-ssanames.c (get_range_info): Move to value-query.cc.
24580 (get_ptr_nonnull): Same.
24581 * tree-ssanames.h (get_range_info): Remove.
24582 (get_ptr_nonnull): Remove.
24583 * value-query.cc (get_ssa_name_range_info): Move from
24584 tree-ssanames.c.
24585 (get_ssa_name_ptr_info_nonnull): Same.
24586 (get_range_global): Move from gimple-range.cc.
24587 (gimple_range_global): Same.
24588 (get_global_range_query): Same.
24589 (global_range_query::range_of_expr): Same.
24590 * value-query.h (class global_range_query): Move from
24591 gimple-range.h.
24592 (gimple_range_global): Same.
24593
24594 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
24595
24596 PR target/100637
24597 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
24598 (uavgv2hi3_ceil): Ditto.
24599
24600 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
24601
24602 PR c/100653
24603 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
24604
24605 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
24606
24607 * tree-ssanames.c (get_range_info): Merge both copies of
24608 get_range_info into one that works with irange.
24609 * tree-ssanames.h (get_range_info): Remove version that works on
24610 wide_ints.
24611
24612 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
24613
24614 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
24615 (expand_builtin_strnlen): Same.
24616 (determine_block_size): Same.
24617 * fold-const.c (expr_not_equal_to): Same.
24618 * gimple-fold.c (size_must_be_zero_p): Same.
24619 * gimple-match-head.c: Include gimple-range.h.
24620 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
24621 * gimple-ssa-warn-restrict.c
24622 (builtin_memref::extend_offset_range): Same.
24623 * graphite-sese-to-poly.c (add_param_constraints): Same.
24624 * internal-fn.c (get_min_precision): Same.
24625 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
24626 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
24627 * match.pd: Same.
24628 * tree-data-ref.c (split_constant_offset): Same.
24629 (dr_step_indicator): Same.
24630 * tree-dfa.c (get_ref_base_and_extent): Same.
24631 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
24632 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
24633 (determine_value_range): Same.
24634 (record_nonwrapping_iv): Same.
24635 (infer_loop_bounds_from_signedness): Same.
24636 (scev_var_range_cant_overflow): Same.
24637 * tree-ssa-phiopt.c (two_value_replacement): Same.
24638 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
24639 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
24640 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
24641 (get_range): Same.
24642 (dump_strlen_info): Same.
24643 (set_strlen_range): Same.
24644 (maybe_diag_stxncpy_trunc): Same.
24645 (get_len_or_size): Same.
24646 (handle_integral_assign): Same.
24647 * tree-ssa-structalias.c (find_what_p_points_to): Same.
24648 * tree-ssa-uninit.c (find_var_cmp_const): Same.
24649 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
24650 * tree-vect-patterns.c (vect_get_range_info): Same.
24651 (vect_recog_divmod_pattern): Same.
24652 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
24653 (register_edge_assert_for_2): Same.
24654 (determine_value_range_1): Same.
24655 * tree.c (get_range_pos_neg): Same.
24656 * vr-values.c (vr_values::get_lattice_entry): Same.
24657 (vr_values::update_value_range): Same.
24658 (simplify_conversion_using_ranges): Same.
24659
24660 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
24661
24662 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
24663 get_range_query instead of query argument.
24664 (pass_walloca::execute): Enable and disable global ranger.
24665
24666 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
24667
24668 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
24669 enable_ranger.
24670 (rvrp_folder::~rvrp_folder): Call disable_ranger.
24671 (hybrid_folder::hybrid_folder): Call enable_ranger.
24672 (hybrid_folder::~hybrid_folder): Call disable_ranger.
24673
24674 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
24675
24676 * function.c (allocate_struct_function): Set cfun->x_range_query.
24677 * function.h (struct function): Declare x_range_query.
24678 (get_range_query): New.
24679 (get_global_range_query): New.
24680 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
24681 Remove call to safe_grow_cleared.
24682 * gimple-range.cc (get_range_global): New.
24683 (gimple_range_global): Move from gimple-range.h.
24684 (get_global_range_query): New.
24685 (global_range_query::range_of_expr): New.
24686 (enable_ranger): New.
24687 (disable_ranger): New.
24688 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
24689 (class global_range_query): New.
24690 (enable_ranger): New.
24691 (disable_ranger): New.
24692 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
24693 dump_all_value_ranges to dump.
24694 * tree-vrp.c (vrp_prop::finalize): Same.
24695 * value-query.cc (range_query::dump): New.
24696 * value-query.h (range_query::dump): New.
24697 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
24698 (vr_values::dump): ...this.
24699 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
24700 dump and make virtual.
24701
24702 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
24703
24704 * config/i386/i386.c (ix86_autovectorize_vector_modes):
24705 Add V4QImode and V16QImode for TARGET_SSE2.
24706 * doc/sourcebuild.texi (Vector-specific attributes):
24707 Add vect64 and vect32 description.
24708
24709 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
24710
24711 * gimple-range-gori.cc (range_def_chain::register_dependency):
24712 Resize m_def_chain when needed.
24713
24714 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
24715
24716 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
24717 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
24718 * config/arm/vec-common.md: .. here. Add support for MVE.
24719
24720 2021-05-26 Jakub Jelinek <jakub@redhat.com>
24721
24722 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
24723 register keywords.
24724 * config/microblaze/microblaze.c (microblaze_legitimize_address,
24725 call_internal1,
24726 microblaze_option_override, print_operand): Likewise.
24727 * config/microblaze/microblaze.md (call_internal_plt,
24728 call_value_intern_plt, call_value_intern): Likewise.
24729 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
24730 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
24731 call_value_multiple_internal1): Likewise.
24732 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
24733
24734 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24735
24736 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
24737 arc_ccfsm_advance, symbolic_reference_mentioned_p,
24738 arc_raw_symbolic_reference_mentioned_p): Remove register
24739 keyword.
24740
24741 2021-05-26 Jakub Jelinek <jakub@redhat.com>
24742
24743 PR libgomp/100573
24744 * omp-low.c: Include omp-offload.h.
24745 (create_omp_child_function): If current_function_decl has
24746 "omp declare target" attribute and is_gimple_omp_offloaded,
24747 remove that attribute from the copy of attribute list and
24748 add "omp target entrypoint" attribute instead.
24749 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
24750 variables for offloading if in omp_maybe_offloaded_ctx.
24751 * omp-offload.c (pass_omp_target_link::execute): Nullify second
24752 argument to GOMP_target_data_ext in offloaded code.
24753
24754 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24755
24756 * config/csky/csky.c (csky_can_change_mode_class): Delete.
24757 For csky, HF/SF mode use the low bits of VREGS.
24758
24759 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
24760
24761 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
24762 DECL which is a reference for OMP.
24763
24764 2021-05-26 Martin Liska <mliska@suse.cz>
24765
24766 PR gcov-profile/100751
24767 * doc/gcov.texi: Document that __gcov_dump can be called just
24768 once and that __gcov_reset resets run-time counters.
24769
24770 2021-05-26 Martin Liska <mliska@suse.cz>
24771
24772 * doc/install.texi: Port relevant part from install-old.texi
24773 and re-generate list of CPUs and systems.
24774
24775 2021-05-26 Martin Liska <mliska@suse.cz>
24776
24777 * Makefile.in: Remove it.
24778 * doc/include/fdl.texi: Update next/previous chapters.
24779 * doc/install.texi: Likewise.
24780 * doc/install-old.texi: Removed.
24781
24782 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24783
24784 * config/csky/csky.c (ck810_legitimate_index_p): Support
24785 "base + index" with DF mode.
24786 * config/csky/constraints.md ("Y"): New constraint for memory operands
24787 without index register.
24788 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
24789 when mov between memory and general registers, and lower their priority.
24790 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
24791
24792 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24793
24794 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
24795
24796 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24797
24798 * config/csky/csky.md (untyped_call): Emit clobber for return
24799 registers to mark them used.
24800
24801 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24802
24803 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
24804
24805 2021-05-26 Andrew Pinski <apinski@marvell.com>
24806
24807 * match.pd (x < 0 ? ~y : y): New patterns.
24808
24809 2021-05-26 Andrew Pinski <apinski@marvell.com>
24810
24811 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
24812 A?POW2:0 and A?0:POW2.
24813
24814 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24815
24816 * gimple-range-gori.cc (class logical_stmt_cache): Delete
24817 (logical_stmt_cache::logical_stmt_cache ): Delete.
24818 (logical_stmt_cache::~logical_stmt_cache): Delete.
24819 (logical_stmt_cache::cache_entry::dump): Delete.
24820 (logical_stmt_cache::get_range): Delete.
24821 (logical_stmt_cache::cached_name ): Delete.
24822 (logical_stmt_cache::same_cached_name): Delete.
24823 (logical_stmt_cache::cacheable_p): Delete.
24824 (logical_stmt_cache::slot_diagnostics ): Delete.
24825 (logical_stmt_cache::dump): Delete.
24826 (gori_compute_cache::gori_compute_cache): Delete.
24827 (gori_compute_cache::~gori_compute_cache): Delete.
24828 (gori_compute_cache::compute_operand_range): Delete.
24829 (gori_compute_cache::cache_stmt): Delete.
24830 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
24831 virtual.
24832 (class gori_compute_cache): Delete.
24833
24834 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24835
24836 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
24837 intead of m_cache.
24838 (fold_using_range::range_of_address): Adjust.
24839 (fold_using_range::range_of_phi): Adjust.
24840 * gimple-range.h (class fur_source): Adjust.
24841 (fur_source::fur_source): Adjust.
24842
24843 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24844
24845 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
24846 from expr_range_in_bb and adjust.
24847 (gori_compute::compute_name_range_op): Adjust.
24848 (gori_compute::optimize_logical_operands): Adjust.
24849 (gori_compute::compute_logical_operands_in_chain): Adjust.
24850 (gori_compute::compute_operand1_range): Adjust.
24851 (gori_compute::compute_operand2_range): Adjust.
24852 (ori_compute_cache::cache_stmt): Adjust.
24853 * gimple-range-gori.h (gori_compute): Rename prototype.
24854
24855 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24856
24857 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
24858 checked only after range_of_stmt, not range_on_entry.
24859 (gimple_ranger::range_on_entry): Check for non-null in any
24860 predecessor block, if it is not already non-null.
24861 (gimple_ranger::range_on_exit): DOnt check for non-null after
24862 range on entry call.
24863 (gimple_ranger::dump_bb): New. Split from dump.
24864 (gimple_ranger::dump): Adjust.
24865 * gimple-range.h (class gimple_ranger): Adjust.
24866
24867 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24868
24869 * gimple-range-cache.cc (struct range_timestamp): Delete.
24870 (class temporal_cache): Adjust.
24871 (temporal_cache::get_timestamp): Delete.
24872 (temporal_cache::set_dependency): Delete.
24873 (temporal_cache::temporal_value): Adjust.
24874 (temporal_cache::current_p): Take dependencies as params.
24875 (temporal_cache::set_timestamp): Adjust.
24876 (temporal_cache::set_always_current): Adjust.
24877 (ranger_cache::get_non_stale_global_range): Adjust.
24878 (ranger_cache::register_dependency): Delete.
24879 * gimple-range-cache.h (class range_cache): Adjust.
24880
24881 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24882
24883 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
24884 bitmap obstack.
24885 (range_def_chain::~range_def_chain): Dispose of obstack rather than
24886 each individual bitmap.
24887 (range_def_chain::set_import): New.
24888 (range_def_chain::get_imports): New.
24889 (range_def_chain::chain_import_p): New.
24890 (range_def_chain::register_dependency): Rename from build_def_chain
24891 and set imports.
24892 (range_def_chain::def_chain_in_bitmap_p): New.
24893 (range_def_chain::add_def_chain_to_bitmap): New.
24894 (range_def_chain::has_def_chain): Just check first depenedence.
24895 (range_def_chain::get_def_chain): Process imports, use generic
24896 register_dependency routine.
24897 (range_def_chain::dump): New.
24898 (gori_map::gori_map): Allocate import list.
24899 (gori_map::~gori_map): Release imports.
24900 (gori_map::exports): Check for past allocated block size.
24901 (gori_map::imports): New.
24902 (gori_map::def_chain_in_export_p): Delete.
24903 (gori_map::is_import_p): New.
24904 (gori_map::maybe_add_gori): Handle imports.
24905 (gori_map::dump): Adjust output, add imports.
24906 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
24907 (gori_export_iterator::gori_export_iterator): New.
24908 (gori_export_iterator::next): New.
24909 (gori_export_iterator::get_name): New.
24910 * gimple-range-gori.h (range_def_chain): Add imports and direct
24911 dependecies via struct rdc.
24912 (range_def_chain::depend1): New.
24913 (range_def_chain::depend2): New.
24914 (class gori_map): Adjust.
24915 (FOR_EACH_GORI_IMPORT_NAME): New.
24916 (FOR_EACH_GORI_EXPORT_NAME): New.
24917 (class gori_export_iterator): New.
24918
24919 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24920
24921 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
24922 export cache filling to here.
24923 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
24924
24925 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24926
24927 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
24928 (gori_map): Move to gimple-range-gori.h.
24929 (gori_compute::gori_compute): Adjust.
24930 (gori_compute::~gori_compute): Delete.
24931 (gori_compute::compute_operand_range_switch): Adjust.
24932 (gori_compute::compute_operand_range): Adjust.
24933 (gori_compute::compute_logical_operands): Adjust.
24934 (gori_compute::has_edge_range_p ): Adjust.
24935 (gori_compute::set_range_invariant): Delete.
24936 (gori_compute::dump): Adjust.
24937 (gori_compute::outgoing_edge_range_p): Adjust.
24938 * gimple-range-gori.h (class range_def_chain): Relocate here.
24939 (class gori_map): Relocate here.
24940 (class gori_compute): Inherit from gori_map, and adjust.
24941
24942 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
24943
24944 * value-range.cc (range_tests_legacy): Use
24945 build_nonstandard_integer_type instead of int and short.
24946
24947 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
24948
24949 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
24950 when really creating an initialization statement for it.
24951
24952 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
24953
24954 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
24955
24956 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
24957
24958 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
24959
24960 2021-05-25 Martin Liska <mliska@suse.cz>
24961
24962 PR tree-optimization/92860
24963 PR target/99592
24964 * optc-save-gen.awk: Remove exceptions.
24965
24966 2021-05-25 Martin Liska <mliska@suse.cz>
24967
24968 * asan.h (sanitize_coverage_p): New function.
24969 * doc/extend.texi: Document it.
24970 * fold-const.c (fold_range_test): Use sanitize_flags_p
24971 instead of flag_sanitize_coverage.
24972 (fold_truth_andor): Likewise.
24973 * sancov.c: Likewise.
24974 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
24975 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
24976 -fsanitize-coverage when inlining.
24977
24978 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
24979
24980 * config/csky/csky-modes.def : Fix copyright.
24981
24982 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
24983
24984 * config/csky/csky-modes.def : Amend copyright.
24985 * config/csky/csky_insn_fpuv2.md : Likewise.
24986 * config/csky/csky_insn_fpuv3.md : Likewise.
24987
24988 2021-05-25 Richard Biener <rguenther@suse.de>
24989
24990 PR middle-end/100727
24991 * calls.c (initialize_argument_information): Explicitely test
24992 for WITH_SIZE_EXPR.
24993 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
24994
24995 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
24996
24997 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
24998 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
24999 the signle definition. The signle definition may not work well
25000 at simplify_subreg_regno().
25001 (HARD_FRAME_POINTER_REGNUM): New.
25002 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
25003 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
25004 csky_initial_elimination_offset, csky_expand_prologue,
25005 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
25006
25007 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
25008
25009 * config/csky/csky.c (csky_option_override):
25010 Init csky_arch_isa_features[] in advance, so TARGET_DSP
25011 and TARGET_DIV can be set well.
25012
25013 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
25014
25015 * config/csky/constraints.md ("l", "h"): Delete.
25016 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
25017 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
25018 * config/csky/csky.c (regno_reg_classm,
25019 csky_secondary_reload, csky_register_move_cost):
25020 Use HILO_REGS instead of LO_REGS and HI_REGS.
25021
25022 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
25023
25024 * config/csky/constraints.md ("W"): New constriant for mem operand
25025 with base reg, index register.
25026 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
25027 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
25028 constraint.
25029 ("Dv"): New constraint for const double value that can be used at
25030 fmovi instruction.
25031 * config/csky/csky-modes.def (HFmode): New mode.
25032 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
25033 to "csky_valid_mem_constraint_operand" and support new constraint
25034 "W".
25035 (csky_get_movedouble_length): New.
25036 (fpuv3_output_move): New.
25037 (fpuv3_const_double): New.
25038 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
25039 (decompose_csky_address): Refine.
25040 (csky_print_operand): New "CONST_DOUBLE" operand.
25041 (csky_output_move): Support fpv3 instructions.
25042 (csky_get_movedouble_length): New.
25043 (fpuv3_output_move): New.
25044 (fpuv3_const_double): New.
25045 (csky_emit_compare): Cover float comparsion.
25046 (csky_emit_compare_float): Refine.
25047 (csky_vaild_fpuv2_mem_operand): Rename to
25048 "csky_valid_mem_constraint_operand" and support new constraint "W".
25049 (ck860_rtx_costs): New.
25050 (csky_rtx_costs): Add the cost calculation of CK860.
25051 (regno_reg_class): New vregs for fpuv3.
25052 (csky_dbx_regno): Likewise.
25053 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
25054 (csky_conditional_register_usage): Suporrot fpuv3.
25055 (csky_dwarf_register_span): Suporrot fpuv3.
25056 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
25057 (ck810_legitimate_index_p): Support fp16.
25058 * config/csky/csky.h (TARGET_TLS): ADD CK860.
25059 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
25060 (TARGET_SINGLE_FPU): Support fpuv3.
25061 (TARGET_SUPPORT_FPV3): New.
25062 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
25063 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
25064 REG_CLASS_CONTENTS): Support fpuv3.
25065 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
25066 (csky_movsf_fpv2): Likewise.
25067 (ck801_movsf): Likewise.
25068 (csky_movsf): Likewise.
25069 (movdf): Likewise.
25070 (csky_movdf_fpv2): Likewise.
25071 (ck801_movdf): Likewise.
25072 (csky_movdf): Likewise.
25073 (movsicc): Refine. Use "comparison_operatior" instead of
25074 "ordered_comparison_operatior".
25075 (addsicc): Likewise.
25076 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
25077 (call_value_internal_vh): New.
25078 * config/csky/csky_cores.def (CK860): New arch and cpu.
25079 (fpv3_hf): New.
25080 (fpv3_hsf): New.
25081 (fpv3_sdf): New.
25082 (fpv3): New.
25083 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
25084 into emit-patterns and match-patterns, remain the emit-patterns here,
25085 and move the match-patterns to csky_insn_fpuv2.md or
25086 csky_insn_fpuv3.md.
25087 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
25088 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
25089 isntructions.
25090 * config/csky/csky_isa.def (fcr): New.
25091 (fpv3_hi): New.
25092 (fpv3_hf): New.
25093 (fpv3_sf): New.
25094 (fpv3_df): New.
25095 (CK860): New definition for ck860.
25096 * config/csky/csky_tables.opt (ck860): New processors ck860,
25097 ck860f. And new arch ck860.
25098 (fpv3_hf): New.
25099 (fpv3_hsf): New.
25100 (fpv3_hdf): New.
25101 (fpv3): New.
25102 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
25103 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
25104 * config/csky/t-csky-elf: Support 860.
25105 * config/csky/t-csky-linux: Likewise.
25106 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
25107
25108 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
25109
25110 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
25111 add generation of logical-add and add-logical fusion pairs.
25112 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
25113 and powerpc mask.
25114 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
25115 logical-add and add-logical fusion by default.
25116 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
25117 -mpower10-fusion-add-logical options.
25118 * config/rs6000/fusion.md: Regenerate file.
25119
25120 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
25121
25122 * value-range.cc (irange::legacy_equal_p): Check type when
25123 comparing VR_VARYING types.
25124 (range_tests_legacy): Test comparing VARYING ranges of different
25125 sizes.
25126
25127 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
25128
25129 * config/aarch64/aarch64.c (neoversen1_tunings):
25130 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
25131
25132 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
25133
25134 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
25135 extern weak symbols. Limit symbol offsets for non-GOT symbols with
25136 PIC/PIE.
25137
25138 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
25139
25140 * config/arm/neon.md (vec_load_lanesxi<mode>)
25141 (vec_store_lanexoi<mode>): Move ...
25142 * config/arm/vec-common.md: here.
25143
25144 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
25145
25146 * config/arm/neon.md (vec_load_lanesoi<mode>)
25147 (vec_store_lanesoi<mode>): Move ...
25148 * config/arm/vec-common.md: here.
25149
25150 2021-05-24 liuhongt <hongtao.liu@intel.com>
25151
25152 PR target/100660
25153 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
25154 stmt with GIMPLE_NOP when lhs doesn't exist.
25155
25156 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
25157
25158 PR target/100722
25159 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
25160 New instruction pattern.
25161 (*push<VI_32:mode>2): Ditto.
25162 (push splitter for SSE registers): New splitter.
25163
25164 2021-05-23 Andrew Pinski <apinski@marvell.com>
25165
25166 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
25167
25168 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
25169
25170 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
25171 * config/rs6000/fusion.md: Regenerate file.
25172
25173 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
25174
25175 * config/rs6000/genfusion.pl (gen_addadd): New function.
25176 * config/rs6000/fusion.md: Regenerate file.
25177 * config/rs6000/rs6000-cpus.def: Add
25178 OPTION_MASK_P10_FUSION_2ADD to masks.
25179 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25180 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
25181 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
25182
25183 2021-05-21 Jakub Jelinek <jakub@redhat.com>
25184
25185 PR middle-end/99928
25186 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
25187 * gimplify.c (enum gimplify_omp_var_data): Fix up
25188 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
25189 (omp_lastprivate_for_combined_outer_constructs): If combined target
25190 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
25191 GOVD_MAP | GOVD_SEEN.
25192 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
25193 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
25194 (gimplify_adjust_omp_clauses): For firstprivate clauses with
25195 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
25196 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
25197 let it be replaced by implicit map clause.
25198
25199 2021-05-21 Jakub Jelinek <jakub@redhat.com>
25200
25201 PR middle-end/99928
25202 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
25203 function.
25204 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
25205 (gimplify_omp_for): Likewise.
25206
25207 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25208
25209 PR middle-end/90115
25210 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
25211 'external' in blocks.
25212
25213 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25214
25215 PR middle-end/90115
25216 * flag-types.h (enum openacc_privatization): New.
25217 * params.opt (-param=openacc-privatization): New.
25218 * doc/invoke.texi (openacc-privatization): Document it.
25219 * omp-general.h (get_openacc_privatization_dump_flags): New
25220 function.
25221 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
25222 * omp-offload.c (execute_oacc_device_lower)
25223 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
25224 * target.def (goacc.adjust_private_decl): Add 'location_t'
25225 parameter.
25226 * doc/tm.texi: Regenerate.
25227 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
25228 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
25229 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
25230 Likewise. Preserve it for...
25231 (nvptx_goacc_expand_var_decl): ... use here.
25232
25233 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25234
25235 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
25236 DejaGnu selector.
25237
25238 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25239
25240 PR middle-end/90115
25241 * omp-low.c (oacc_privatization_candidate_p): New function.
25242 (oacc_privatization_scan_clause_chain)
25243 (oacc_privatization_scan_decl_chain): Use it. Also
25244 'gcc_checking_assert' that we're not seeing duplicates.
25245
25246 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25247
25248 PR middle-end/90115
25249 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
25250 work to be done.
25251
25252 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25253
25254 PR middle-end/90115
25255 * omp-offload.c (execute_oacc_device_lower): Explain.
25256
25257 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25258
25259 PR middle-end/90115
25260 * omp-offload.c (execute_oacc_device_lower)
25261 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
25262 case, too.
25263 * internal-fn.c (expand_UNIQUE): Don't expect
25264 'IFN_UNIQUE_OACC_PRIVATE'.
25265
25266 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25267
25268 PR middle-end/90115
25269 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
25270
25271 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
25272
25273 PR middle-end/90115
25274 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
25275 (nvptx_goacc_expand_var_decl): Tighten.
25276
25277 2021-05-21 Julian Brown <julian@codesourcery.com>
25278 Chung-Lin Tang <cltang@codesourcery.com>
25279 Thomas Schwinge <thomas@codesourcery.com>
25280
25281 PR middle-end/90115
25282 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
25283 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
25284 * doc/tm.texi: Regenerate.
25285 * expr.c (expand_expr_real_1): Expand decls using the
25286 expand_var_decl OpenACC hook if defined.
25287 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
25288 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
25289 * omp-low.c (omp_context): Add oacc_privatization_candidates
25290 field.
25291 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
25292 before fork.
25293 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
25294 private marker's gimple call arguments, and pass it to
25295 lower_oacc_reductions.
25296 (oacc_privatization_scan_clause_chain)
25297 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
25298 New functions.
25299 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
25300 * omp-offload.c (convert.h): Include.
25301 (oacc_loop_xform_head_tail): Treat private-variable markers like
25302 fork/join when transforming head/tail sequences.
25303 (struct var_decl_rewrite_info): Add struct.
25304 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
25305 (execute_oacc_device_lower): Support rewriting gang-private
25306 variables using target hook, and fix up addr_expr and var_decl
25307 nodes afterwards.
25308 * target.def (adjust_private_decl, expand_var_decl): New hooks.
25309 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
25310 Rename to...
25311 (gcn_goacc_adjust_private_decl): ...this.
25312 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
25313 Rename to...
25314 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
25315 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
25316 definition using gcn_goacc_adjust_gangprivate_decl...
25317 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
25318 gcn_goacc_adjust_private_decl.
25319 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
25320 (gang_private_shared_size): New global variable.
25321 (gang_private_shared_align): Likewise.
25322 (gang_private_shared_sym): Likewise.
25323 (gang_private_shared_hmap): Likewise.
25324 (nvptx_option_override): Initialize these.
25325 (nvptx_file_end): Output gang_private_shared_sym.
25326 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
25327 New functions.
25328 (nvptx_set_current_function): Clear gang_private_shared_hmap.
25329 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
25330 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
25331
25332 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
25333
25334 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
25335
25336 2021-05-21 Richard Biener <rguenther@suse.de>
25337 H.J. Lu <hjl.tools@gmail.com>
25338
25339 PR middle-end/90773
25340 * expr.c (expand_constructor): Elide expand_constructor if
25341 move by pieces is preferred.
25342
25343 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25344
25345 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
25346 Take a flag and mode value as arguments.
25347 (aarch64_modifies_global_state_p): Likewise.
25348 (aarch64_reads_global_state_p): Likewise.
25349 (aarch64_could_trap_p): Likewise.
25350 (aarch64_get_attributes): Likewise.
25351 (aarch64_init_simd_builtins): Adjust callsite of above.
25352 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
25353 function attributes to apply to builtins.
25354 (aarch64_init_crc32_builtins): Likewise.
25355 (aarch64_init_builtin_rsqrt): Likewise.
25356
25357 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
25358
25359 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
25360 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
25361 (gen_2logical): Use new fusion types.
25362 * config/rs6000/fusion.md: Regenerate.
25363
25364 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
25365
25366 PR target/100637
25367 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
25368 Handle V4QI and V2HI modes.
25369 (ix86_expand_sse_movcc): Ditto.
25370 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
25371 New instruction pattern.
25372 (*eq<VI_32:mode>3): Ditto.
25373 (*gt<VI_32:mode>3): Ditto.
25374 (*xop_pcmov_<VI_32:mode>): Ditto.
25375 (mmx_pblendvb32): Ditto.
25376 (mmx_pblendvb64): Rename from mmx_pblendvb.
25377 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
25378 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
25379 (vcond<VI_32:mode><VI_32:mode>): Ditto.
25380 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
25381 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
25382
25383 2021-05-21 Jakub Jelinek <jakub@redhat.com>
25384
25385 PR tree-optimization/94589
25386 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
25387 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
25388 not the same as cmp3) treat <= the same as < and >= the same as >.
25389 Don't require that cond2_phi_edge is true edge, instead take
25390 false/true edges into account based on cmp1/cmp2 comparison kinds.
25391
25392 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
25393
25394 PR target/100637
25395 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
25396 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
25397 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
25398 using SMAXMIN_MMXMODEI mode iterator.
25399 (*<smaxmin:code>v4qi3): New insn pattern.
25400 (*<smaxmin:code>v2hi3): Ditto.
25401 (SMAXMIN_VI_32): New mode iterator.
25402 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
25403 (UMAXMIN_MMXMODEI): New mode iterator.
25404 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
25405 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
25406 using UMAXMIN_MMXMODEI mode iterator.
25407 (*<umaxmin:code>v4qi3): New insn pattern.
25408 (*<umaxmin:code>v2hi3): Ditto.
25409 (UMAXMIN_VI_32): New mode iterator.
25410 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
25411 (abs<VI_32:mode>2): New insn pattern.
25412 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
25413 * config/i386/sse.md: ... here.
25414
25415 2021-05-20 Clement Chigot <clement.chigot@atos.net>
25416 David Edelsohn <dje.gcc@gmail.com>
25417
25418 * collect2.c (scan_prog_file): Issue non-fatal warning for
25419 non-COFF files.
25420
25421 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
25422
25423 * doc/invoke.texi (-Wno-c++11-extensions)
25424 (-Wno-c++14-extensions, -Wno-c++17-extensions)
25425 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
25426 new options.
25427
25428 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
25429
25430 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
25431 * config/darwin.c (darwin_override_options): Likewise.
25432 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
25433 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
25434 (DWARF2_FRAME_REG_OUT): Likewise.
25435 * config/mips/mips.c (mips_output_filename): Likewise.
25436 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
25437 Likewise.
25438 (rs6000_dbx_register_number): Likewise.
25439 * dbxout.c: Include flags.h.
25440 * dwarf2cfi.c (cfi_label_required_p): Likewise.
25441 (dwarf2out_do_frame): Likewise.
25442 * except.c: Include flags.h.
25443 * final.c (dwarf2_debug_info_emitted_p): Likewise.
25444 (final_scan_insn_1): Likewise.
25445 * flags.h (dwarf_debuginfo_p): New function declaration.
25446 * opts.c (dwarf_debuginfo_p): New function definition.
25447 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
25448 * toplev.c (process_options): Likewise.
25449
25450 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
25451
25452 * common.opt: Change type to support bitmasks.
25453 * flag-types.h (enum debug_info_type): Rename enumerator constants.
25454 (NO_DEBUG): New bitmask.
25455 (DBX_DEBUG): Likewise.
25456 (DWARF2_DEBUG): Likewise.
25457 (XCOFF_DEBUG): Likewise.
25458 (VMS_DEBUG): Likewise.
25459 (VMS_AND_DWARF2_DEBUG): Likewise.
25460 * flags.h (debug_set_to_format): New function declaration.
25461 (debug_set_count): Likewise.
25462 (debug_set_names): Likewise.
25463 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
25464 (debug_set_to_format): New function definition.
25465 (debug_set_count): Likewise.
25466 (debug_set_names): Likewise.
25467 (set_debug_level): Update access to debug_type_names.
25468 * toplev.c: Likewise.
25469
25470 2021-05-20 Martin Sebor <msebor@redhat.com>
25471
25472 PR middle-end/100684
25473 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
25474
25475 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
25476
25477 PR target/100701
25478 * config/i386/i386.md (isa): Remove x64_bmi.
25479 (enabled): Remove x64_bmi.
25480 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
25481 Remove general register alternative.
25482 (*andnot<VI_32:mode>3): Ditto.
25483 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
25484 (*<any_logic:code><VI_32:mode>3): Ditto.
25485
25486 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
25487
25488 * config/arm/arm.c: Include head files tree-vectorizer.h and
25489 cfgloop.h.
25490
25491 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
25492
25493 PR target/100637
25494 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
25495 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
25496 (<s>mulv4hi3_highpart): New expander.
25497 (*<s>mulv2hi3_highpart): New insn pattern.
25498 (<s>mulv2hi3_higpart): New expander.
25499 (*<any_shift:insn>v2hi3): New insn pattern.
25500 (<any_shift:insn>v2hi3): New expander.
25501 * config/i386/sse.md (smulhrsv2hi3): New expander.
25502 (*smulhrsv2hi3): New insn pattern.
25503
25504 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
25505
25506 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
25507 parameter.
25508 * params.opt (vect-inner-loop-cost-factor): New.
25509 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
25510 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
25511 tree-vectorizer.h and its required ones.
25512 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
25513 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
25514 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
25515 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
25516 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
25517 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
25518 Likewise.
25519 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
25520 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
25521 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
25522
25523 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
25524 Torbjörn Svensson <torbjorn.svensson@st.com>
25525
25526 PR c/42579
25527 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
25528
25529 2021-05-20 Jakub Jelinek <jakub@redhat.com>
25530
25531 PR middle-end/99928
25532 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
25533 explicit linear clause when combined with target, make it map(tofrom:)
25534 instead of no clause or firstprivate.
25535
25536 2021-05-20 Jakub Jelinek <jakub@redhat.com>
25537
25538 PR tree-optimization/94589
25539 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
25540 of integral conversions.
25541
25542 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
25543
25544 * gimple-range.cc (fur_source::get_operand): New.
25545 (gimple_range_fold): Delete.
25546 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
25547 (fold_using_range::range_of_range_op): Move from gimple_ranger.
25548 (fold_using_range::range_of_address): Ditto.
25549 (fold_using_range::range_of_phi): Ditto.
25550 (fold_using_range::range_of_call): Ditto.
25551 (fold_using_range::range_of_builtin_ubsan_call): Move from
25552 range_of_builtin_ubsan_call.
25553 (fold_using_range::range_of_builtin_call): Move from
25554 range_of_builtin_call.
25555 (gimple_ranger::range_of_builtin_call): Delete.
25556 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
25557 (gimple_ranger::fold_range_internal): New.
25558 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
25559 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
25560 gimple_ranger. Improve ranges of SSA_NAMES when possible.
25561 * gimple-range.h (gimple_ranger): Remove various range_of routines.
25562 (class fur_source): New.
25563 (class fold_using_range): New.
25564 (fur_source::fur_source): New.
25565 (fold_range): New.
25566 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
25567 instead of range_of_builtin_call.
25568
25569 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
25570
25571 * doc/cpp.texi (Common Predefined Macros): Update documentation
25572 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
25573
25574 2021-05-19 Alex Coplan <alex.coplan@arm.com>
25575
25576 PR target/100333
25577 * config/arm/arm.md (nonsecure_call_internal): Always ensure
25578 callee's address is in a register.
25579
25580 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
25581
25582 * common/config/riscv/riscv-common.c
25583 (riscv_subset_list::parsing_subset_version): Properly parse the letter
25584 'p' in '-march'.
25585 (riscv_subset_list::parse_std_ext,
25586 riscv_subset_list::parse_multiletter_ext): To handle errors generated
25587 in riscv_subset_list::parsing_subset_version.
25588
25589 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
25590
25591 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
25592 type attribute in patterns generating XTN(2).
25593
25594 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
25595
25596 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
25597 Remove as duplicate of...
25598 (aarch64_xtn<mode>): This.
25599 (aarch64_xtn2<mode>_le): Move position in file.
25600 (aarch64_xtn2<mode>_be): Move position in file.
25601 (aarch64_xtn2<mode>): Move position in file.
25602 (vec_pack_trunc_<mode>): Define as an expander.
25603
25604 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
25605
25606 * config/aarch64/aarch64-simd-builtins.def: Split builtin
25607 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
25608 separate scalar and vector generators.
25609 * config/aarch64/aarch64-simd.md
25610 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
25611 split into...
25612 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
25613 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
25614 * config/aarch64/iterators.md: Define SD_HSDI iterator.
25615
25616 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
25617
25618 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
25619 of UNSPEC_SQXTUN2.
25620 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
25621
25622 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
25623
25624 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
25625 Implement as an expand emitting a big/little endian
25626 instruction pattern.
25627 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
25628 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
25629
25630 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
25631
25632 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
25633 Implement as an expand emitting a big/little endian
25634 instruction pattern.
25635 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
25636 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
25637 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
25638 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
25639
25640 2021-05-19 Richard Biener <rguenther@suse.de>
25641
25642 PR middle-end/100672
25643 * fold-const.c (fold_negate_expr_1): Use element_precision.
25644 (negate_expr_p): Likewise.
25645
25646 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
25647
25648 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
25649 (pred_load): New int attribute.
25650 * config/aarch64/aarch64-sve.md
25651 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
25652 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
25653 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
25654 code_for_aarch64_load.
25655
25656 2021-05-19 Richard Biener <rguenther@suse.de>
25657
25658 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
25659 sure TARGET_MEM_REF bases are expanded as memory.
25660 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
25661 Do not mark TARGET_MEM_REF bases addressable.
25662 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
25663 TARGET_MEM_REF bases as never rewritable.
25664 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
25665 walk TARGET_MEM_REF bases as address-takens.
25666 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
25667
25668 2021-05-19 Richard Biener <rguenther@suse.de>
25669
25670 * builtins.c (get_object_alignment_1): Strip outer
25671 WITH_SIZE_EXPR.
25672 * tree-dfa.c (get_ref_base_and_extent): Handle outer
25673 WITH_SIZE_EXPR for size processing and process the
25674 containing ref.
25675 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
25676 outer WITH_SIZE_EXPR.
25677 (ao_ref_base_alias_ptr_type): Likewise.
25678 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
25679 and handle that accordingly, stripping it for the
25680 core alias workers.
25681 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
25682 looking through it instead of returning NULL.
25683
25684 2021-05-19 Jakub Jelinek <jakub@redhat.com>
25685
25686 PR middle-end/100576
25687 * builtins.c (check_read_access): Convert bound to size_type_node if
25688 non-NULL.
25689
25690 2021-05-19 Richard Biener <rguenther@suse.de>
25691
25692 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
25693 (verify_types_in_gimple_reference): ... here. Sanitize.
25694 (verify_gimple_call): Verify references in LHS and arguments.
25695 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
25696
25697 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
25698
25699 * config/i386/i386.h (VALID_INT_MODE_P):
25700 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
25701 * config/i386/i386.md (isa): Add x64_bmi.
25702 (enabled): Handle x64_bmi.
25703 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
25704 Add alternative using 64bit general registers.
25705 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
25706
25707 2021-05-19 Jakub Jelinek <jakub@redhat.com>
25708
25709 PR middle-end/99928
25710 * tree.h (OMP_MASTER_COMBINED): Define.
25711 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
25712 handling for outer combined/composite constructs to a loop.
25713 Handle lastprivate on combined target.
25714 (gimplify_expr): Formatting fix.
25715
25716 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
25717
25718 * passes.def: Add sink_code pass before store_merging.
25719 * tree-ssa-sink.c (pass_sink_code:clone): New.
25720
25721 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
25722
25723 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
25724 rs6000_special_adjust_field_align_p.
25725 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
25726 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
25727 Remove ABI warning.
25728 (rs6000_function_arg): Likewise.
25729 * config/rs6000/rs6000-protos.h
25730 (rs6000_special_adjust_field_align_p): Remove prototype.
25731 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
25732 Remove.
25733 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
25734 rs6000_special_adjust_field_align_p.
25735
25736 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
25737
25738 PR target/100637
25739 * config/i386/i386.h (VALID_SSE2_REG_MODE):
25740 Add V4QI and V2HI modes.
25741 (VALID_INT_MODE_P): Ditto.
25742 * config/i386/mmx.md (VI_32): New mode iterator.
25743 (mmxvecsize): Handle V4QI and V2HI.
25744 (Yv_Yw): Ditto.
25745 (mov<VI_32:mode>): New expander.
25746 (*mov<mode>_internal): New insn pattern.
25747 (movmisalign<VI_32:mode>): New expander.
25748 (neg<VI_32:mode>): New expander.
25749 (<plusminus:insn><VI_32:mode>3): New expander.
25750 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
25751 (mulv2hi3): New expander.
25752 (*mulv2hi3): New insn pattern.
25753 (one_cmpl<VI_32:mode>2): New expander.
25754 (*andnot<VI_32:mode>3): New insn pattern.
25755 (<any_logic:code><VI_32:mode>3): New expander.
25756 (*<any_logic:code><VI_32:mode>3): New insn pattern.
25757
25758 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
25759
25760 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
25761 Fix a mode mismatch with operand 1.
25762
25763 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
25764
25765 PR target/100626
25766 * config/i386/i386-expand.c (split_double_mode): Return
25767 temporary register when simplify_gen_subreg fails with
25768 the high half od the paradoxical subreg.
25769
25770 2021-05-18 Richard Biener <rguenther@suse.de>
25771
25772 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
25773 and honor it when expanding.
25774 (expand_used_vars_for_block): Pass through forced_stack_var.
25775 (expand_used_vars): Likewise.
25776 (discover_nonconstant_array_refs_r): Set bits in
25777 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
25778 (avoid_type_punning_on_regs): Likewise.
25779 (discover_nonconstant_array_refs): Likewise.
25780 (pass_expand::execute): Create and pass down forced_stack_var
25781 bitmap. For parameters and returns temporarily set
25782 TREE_ADDRESSABLE when expand_function_start.
25783
25784 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
25785
25786 * doc/sourcebuild.texi: Document 'dg-note'.
25787
25788 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
25789
25790 PR other/100598
25791 * configure: Regenerate.
25792 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
25793
25794 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
25795
25796 * gimple.h (is_gimple_omp_oacc): Tighten.
25797 * omp-low.c (check_omp_nesting_restrictions): Adjust.
25798
25799 2021-05-18 Richard Biener <rguenther@suse.de>
25800
25801 * tree-ssa-operands.c (mark_address_taken): Simplify.
25802
25803 2021-05-18 Martin Liska <mliska@suse.cz>
25804
25805 * config/gcn/mkoffload.c (STR): Redefine.
25806 * config/i386/intelmic-mkoffload.c (STR): Likewise.
25807 * config/nvptx/mkoffload.c (STR): Likewise.
25808
25809 2021-05-18 Martin Liska <mliska@suse.cz>
25810
25811 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
25812 Use startswith function instead of strncmp.
25813 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
25814 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
25815 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
25816 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
25817 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
25818 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
25819 * config/arm/arm.c (arm_file_start): Likewise.
25820 (arm_valid_target_attribute_rec): Likewise.
25821 (thumb1_md_asm_adjust): Likewise.
25822 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
25823 * config/avr/avr.c (STR_PREFIX_P): Likewise.
25824 (avr_set_current_function): Likewise.
25825 (avr_handle_addr_attribute): Likewise.
25826 (avr_asm_output_aligned_decl_common): Likewise.
25827 (avr_asm_named_section): Likewise.
25828 (avr_section_type_flags): Likewise.
25829 (avr_asm_select_section): Likewise.
25830 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
25831 (c6x_section_type_flags): Likewise.
25832 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
25833 (darwin_objc_declare_unresolved_class_reference): Likewise.
25834 (darwin_objc_declare_class_definition): Likewise.
25835 * config/darwin.c (indirect_data): Likewise.
25836 (darwin_encode_section_info): Likewise.
25837 (darwin_objc2_section): Likewise.
25838 (darwin_objc1_section): Likewise.
25839 (machopic_select_section): Likewise.
25840 (darwin_globalize_label): Likewise.
25841 (darwin_label_is_anonymous_local_objc_name): Likewise.
25842 (darwin_asm_named_section): Likewise.
25843 (darwin_asm_output_dwarf_offset): Likewise.
25844 * config/frv/frv.c (frv_string_begins_with): Likewise.
25845 (frv_in_small_data_p): Likewise.
25846 * config/gcn/mkoffload.c (STR): Likewise.
25847 (main): Likewise.
25848 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
25849 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
25850 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
25851 (ix86_md_asm_adjust): Likewise.
25852 * config/i386/intelmic-mkoffload.c (STR): Likewise.
25853 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
25854 (i386_pe_file_end): Likewise.
25855 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
25856 (ia64_section_type_flags): Likewise.
25857 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
25858 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
25859 (mips16_stub_function_p): Likewise.
25860 (mips_function_rodata_section): Likewise.
25861 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
25862 (msp430_function_section): Likewise.
25863 (msp430_section_type_flags): Likewise.
25864 (msp430_expand_helper): Likewise.
25865 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
25866 (nios2_valid_target_attribute_rec): Likewise.
25867 * config/nvptx/mkoffload.c (process): Likewise.
25868 (STR): Likewise.
25869 * config/pa/som.h: Likewise.
25870 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
25871 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
25872 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
25873 (rs6000_inner_target_options): Likewise.
25874 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
25875 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
25876 * config/vax/vax.c (vax_output_int_move): Likewise.
25877 * config/vms/vms-ld.c (startswith): Likewise.
25878 (process_args): Likewise.
25879 (main): Likewise.
25880 * config/vms/vms.c: Likewise.
25881
25882 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25883
25884 PR rtl-optimization/100590
25885 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
25886 they are NONJUMP_INSN_P.
25887
25888 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25889
25890 PR c++/100580
25891 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
25892 DECL_ASSEMBLER_NAME on the fn_decl.
25893
25894 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25895
25896 PR tree-optimization/94589
25897 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
25898 phi result used in (res & ~1) == 0 comparison as res >= 0 as
25899 res == 2 would be UB with -ffinite-math-only.
25900
25901 2021-05-18 Martin Liska <mliska@suse.cz>
25902
25903 * Makefile.in: genversion.o should depend on DATESTAMP.
25904
25905 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
25906
25907 * config/arc/simdext.md (negv2si2): Remove round bracket.
25908
25909 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
25910
25911 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
25912 _Bool as macro expanding to _Bool.
25913
25914 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
25915
25916 PR c++/100281
25917 * tree.c (build_reference_type_for_mode)
25918 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
25919 is VOIDmode.
25920 (build_reference_type, build_pointer_type): Invoke
25921 build_*_type_for_mode with VOIDmode.
25922
25923 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
25924
25925 PR tree-optimization/100512
25926 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
25927 and non-zero pointer ranges as invariant.
25928 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
25929 processing from here.
25930
25931 2021-05-17 Tom de Vries <tdevries@suse.de>
25932
25933 PR target/100497
25934 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
25935 * config/nvptx/nvptx.c (nvptx_output_barrier)
25936 (nvptx_output_atomic_insn): New function.
25937 (nvptx_print_operand): Add support for 'B'.
25938 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
25939 insns.
25940
25941 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
25942
25943 PR tree-optimization/100349
25944 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
25945 NULL.
25946
25947 2021-05-17 Tamar Christina <tamar.christina@arm.com>
25948
25949 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
25950 (host_detect_local_cpu): Use it.
25951
25952 2021-05-17 Martin Liska <mliska@suse.cz>
25953
25954 * doc/invoke.texi: Add 2 missing dots.
25955
25956 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
25957
25958 PR bootstrap/100552
25959 * configure.ac: Replace pattern substitution with call to sed.
25960 * configure: Regenerate.
25961
25962 2021-05-17 Richard Biener <rguenther@suse.de>
25963
25964 PR middle-end/100582
25965 * tree.c (array_at_struct_end_p): Get to the base of the
25966 reference before looking for the underlying decl.
25967
25968 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
25969
25970 * genoutput.c (validate_insn_alternatives) Make "wrong number of
25971 alternatives" message more specific, and remove assumption on where
25972 the problem is.
25973
25974 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
25975
25976 * config/arm/iterators.md (V16): New iterator.
25977 (VH_cvtto): New iterator.
25978 (v_cmp_result): Added V4HF and V8HF support.
25979 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
25980 (vcond<mode><mode>): Likewise.
25981 (vcond_mask_<mode><v_cmp_result>): Likewise.
25982 (vcond<VH_cvtto><mode>): New expander.
25983
25984 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
25985
25986 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
25987 prototype.
25988 * config/arm/arm.c (arm_expand_vector_compare): Add support for
25989 MVE.
25990 (arm_expand_vcond): Likewise.
25991 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
25992 VCMPEQQ_N_S, VCMPNEQ_N_S.
25993 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
25994 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
25995 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
25996 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
25997 (@mve_vpselq_<supf><mode>): Likewise.
25998 (@mve_vpselq_f<mode>"): Likewise.
25999 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
26000 and move to vec-common.md.
26001 (vec_cmpu<mode><mode>): Likewise.
26002 (vcond<mode><mode>): Likewise.
26003 (vcond<V_cvtto><mode>): Likewise.
26004 (vcondu<mode><v_cmp_result>): Likewise.
26005 (vcond_mask_<mode><v_cmp_result>): Likewise.
26006 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
26007 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
26008 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
26009 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
26010 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
26011 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
26012 from neon.md.
26013 (vec_cmpu<mode><mode>): Likewise.
26014 (vcond<mode><mode>): Likewise.
26015 (vcond<V_cvtto><mode>): Likewise.
26016 (vcondu<mode><v_cmp_result>): Likewise.
26017 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
26018 condition.
26019
26020 2021-05-17 liuhongt <hongtao.liu@intel.com>
26021
26022 PR target/100549
26023 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
26024 gsi_insert_seq_before instead.
26025
26026 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
26027
26028 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
26029 (arm_sat_ok): ...this.
26030
26031 2021-05-17 Martin Liska <mliska@suse.cz>
26032
26033 * lto-wrapper.c (merge_flto_options): Factor out a new function.
26034 (merge_and_complain): Use it.
26035 (run_gcc): Merge also linker command line -flto=foo argument
26036 with IL files.
26037
26038 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
26039
26040 * config/arm/arm.h (CPP_SPEC): Remove error message about
26041 -mlittle-endian/-mbig-endian conflict.
26042
26043 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
26044
26045 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26046 __ROP_PROTECT__ if -mrop-protect is selected.
26047
26048 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
26049
26050 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
26051 rop_hash_save_offset and rop_hash_size.
26052 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
26053 rop_hash_size and rop_hash_save_offset.
26054 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
26055 (rs6000_emit_prologue): Emit hashst[p] in prologue.
26056 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
26057 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
26058 UNSPEC_HASHCHK.
26059 (hashst): New define_insn.
26060 (hashchk): Likewise.
26061
26062 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
26063
26064 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26065 Disable shrink wrap when inserting ROP-protect instructions.
26066 * config/rs6000/rs6000.opt (mrop-protect): New option.
26067 (mprivileged): Likewise.
26068 * doc/invoke.texi: Document mrop-protect and mprivileged.
26069
26070 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
26071
26072 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
26073 "Remove CC0".
26074
26075 2021-05-15 Martin Jambor <mjambor@suse.cz>
26076
26077 Revert:
26078 2021-05-13 Martin Jambor <mjambor@suse.cz>
26079
26080 PR tree-optimization/100453
26081 * tree-sra.c (sra_modify_assign): All const base accesses do not
26082 need refreshing, not just those from decl_pool.
26083 (sra_modify_assign): Do not refresh into a const base decl.
26084
26085 2021-05-15 Jakub Jelinek <jakub@redhat.com>
26086
26087 PR rtl-optimization/100342
26088 * regcprop.c (copy_value): When copying a source reg in a wider
26089 mode than it has recorded for the value, adjust recorded destination
26090 mode too or punt if !REG_CAN_CHANGE_MODE_P.
26091
26092 2021-05-14 Jason Merrill <jason@redhat.com>
26093
26094 * intl.h: Add comments.
26095
26096 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26097
26098 * config/aarch64/aarch64-simd.md
26099 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
26100 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
26101 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
26102 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
26103 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
26104 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
26105 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
26106 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
26107 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
26108
26109 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26110
26111 PR target/66791
26112 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
26113 boolean logic equivalent.
26114 (vtst_s16): Likewise.
26115 (vtst_s32): Likewise.
26116 (vtst_u8): Likewise.
26117 (vtst_u16): Likewise.
26118 (vtst_u32): Likewise.
26119 (vtst_p8): Likewise.
26120 (vtst_p16): Likewise.
26121 (vtstq_s8): Likewise.
26122 (vtstq_s16): Likewise.
26123 (vtstq_s32): Likewise.
26124 (vtstq_u8): Likewise.
26125 (vtstq_u16): Likewise.
26126 (vtstq_u32): Likewise.
26127 (vtstq_p8): Likewise.
26128 (vtstq_p16): Likewise.
26129 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
26130 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
26131
26132 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26133
26134 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
26135 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
26136 (aarch64_sqdmlsl2<mode>): Delete.
26137 (aarch64_sqdmlal2_lane<mode>): Merge this...
26138 (aarch64_sqdmlsl2_lane<mode>): ... And this...
26139 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
26140 (aarch64_sqdmlal2_laneq<mode>): Merge this...
26141 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
26142 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
26143 (aarch64_sqdmlal2_n<mode>): Merge this...
26144 (aarch64_sqdmlsl2_n<mode>): ... And this...
26145 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
26146
26147 2021-05-13 Martin Sebor <msebor@redhat.com>
26148
26149 PR middle-end/100574
26150 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
26151 all null arguments.
26152
26153 2021-05-13 Martin Sebor <msebor@redhat.com>
26154
26155 PR tree-optimization/93100
26156 PR middle-end/98583
26157 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
26158 don't modify referenced objects.
26159
26160 2021-05-13 Martin Jambor <mjambor@suse.cz>
26161
26162 PR tree-optimization/100453
26163 * tree-sra.c (sra_modify_assign): All const base accesses do not
26164 need refreshing, not just those from decl_pool.
26165 (sra_modify_assign): Do not refresh into a const base decl.
26166
26167 2021-05-13 Martin Liska <mliska@suse.cz>
26168
26169 * tree-ssa-dom.c: Remove m_simplifier.
26170
26171 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
26172
26173 PR target/100563
26174 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
26175 canonicalize DImode inequality comparisons against the
26176 maximum integral value.
26177
26178 2021-05-13 Jakub Jelinek <jakub@redhat.com>
26179
26180 PR tree-optimization/98856
26181 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
26182 Expect V2DI and V4DI arithmetic right shifts to be emulated.
26183 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
26184 caller.
26185 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
26186 expand_vec_perm_2perm_pblendv): New functions.
26187 (ix86_expand_vec_perm_const_1): Use them.
26188 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
26189 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
26190 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
26191 (ashrv4di3): New define_expand.
26192 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
26193 and !TARGET_AVX512VL expansion.
26194
26195 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
26196
26197 PR target/100581
26198 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
26199 sizes < 16 to a register when constructing vpcmov pattern.
26200 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
26201
26202 2021-05-13 Martin Liska <mliska@suse.cz>
26203
26204 * gcov-io.c (gcov_write_block): Remove.
26205 (gcov_write_words): Likewise.
26206 (gcov_read_words): Re-implement using gcov_read_bytes.
26207 (gcov_allocate): Remove.
26208 (GCOV_BLOCK_SIZE): Likewise.
26209 (struct gcov_var): Remove most of the fields.
26210 (gcov_position): Implement with ftell.
26211 (gcov_rewrite): Remove setting of start and offset fields.
26212 (from_file): Re-format.
26213 (gcov_open): Remove setbuf call. It should not be needed.
26214 (gcov_close): Remove internal buffer handling.
26215 (gcov_magic): Use __builtin_bswap32.
26216 (gcov_write_counter): Use directly gcov_write_unsigned.
26217 (gcov_write_string): Use direct fwrite and do not round
26218 to 4 bytes.
26219 (gcov_seek): Use directly fseek.
26220 (gcov_write_tag): Use gcov_write_unsigned directly.
26221 (gcov_write_length): Likewise.
26222 (gcov_write_tag_length): Likewise.
26223 (gcov_read_bytes): Use directly fread.
26224 (gcov_read_unsigned): Use gcov_read_words.
26225 (gcov_read_counter): Likewise.
26226 (gcov_read_string): Use gcov_read_bytes.
26227 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
26228 that size is not in bytes, but words (4B).
26229 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
26230 (GCOV_TAG_ARCS_LENGTH): Likewise.
26231 (GCOV_TAG_ARCS_NUM): Likewise.
26232 (GCOV_TAG_COUNTER_LENGTH): Likewise.
26233 (GCOV_TAG_COUNTER_NUM): Likewise.
26234 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
26235
26236 2021-05-13 liuhongt <hongtao.liu@intel.com>
26237
26238 PR target/94680
26239 * config/i386/sse.md (ssedoublevecmode): Add attribute for
26240 V64QI/V32HI/V16SI/V4DI.
26241 (ssehalfvecmode): Add attribute for V2DI/V2DF.
26242 (*vec_concatv4si_0): Extend to VI124_128.
26243 (*vec_concat<mode>_0): New pre-reload splitter.
26244 * config/i386/predicates.md (movq_parallel): New predicate.
26245
26246 2021-05-13 Alexandre Oliva <oliva@adacore.com>
26247
26248 * targhooks.c (default_zero_call_used_regs): Retry using
26249 successfully-zeroed registers as sources.
26250
26251 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
26252
26253 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
26254
26255 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
26256
26257 PR c/100521
26258 * gimple-range.cc (range_of_builtin_call): Skip out on
26259 processing __builtin_clz when varying.
26260
26261 2021-05-12 Tom de Vries <tdevries@suse.de>
26262
26263 PR target/96005
26264 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
26265 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
26266 to ptx_version_option.
26267 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
26268 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
26269 (define_insn "nvptx_vote_ballot"): Use sync variant for
26270 TARGET_PTX_6_3.
26271 * config/nvptx/nvptx.opt (ptx_version): Add enum.
26272 (mptx): Add option.
26273 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
26274
26275 2021-05-12 Richard Biener <rguenther@suse.de>
26276
26277 PR tree-optimization/100566
26278 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
26279 allow_back for all edge queries.
26280
26281 2021-05-12 liuhongt <hongtao.liu@intel.com>
26282
26283 PR target/99908
26284 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
26285 splitters for pblendvb of NOT mask register.
26286
26287 2021-05-12 Richard Biener <rguenther@suse.de>
26288
26289 PR tree-optimization/100519
26290 * tree-ssa-reassoc.c (can_associate_p): Split into...
26291 (can_associate_op_p): ... this
26292 (can_associate_type_p): ... and this.
26293 (is_reassociable_op): Call can_associate_op_p.
26294 (break_up_subtract_bb): Call the appropriate predicates.
26295 (reassociate_bb): Likewise.
26296
26297 2021-05-12 Martin Liska <mliska@suse.cz>
26298
26299 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
26300 (run_gcc): Use -flto argument detection for merged
26301 fdecoded_options.
26302
26303 2021-05-12 Martin Liska <mliska@suse.cz>
26304
26305 * lto-wrapper.c (print_lto_docs_link): New function.
26306 (run_gcc): Print warning about missing job server detection
26307 after we know NR of partitions. Do the same for -flto{,=1}.
26308 * opts.c (get_option_html_page): Support -flto option.
26309
26310 2021-05-12 Martin Liska <mliska@suse.cz>
26311
26312 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
26313 return type.
26314 (append_option): Remove.
26315 (find_option): Rework to use the vector type.
26316 (remove_option): Remove.
26317 (merge_and_complain): Use vectors for cl_decoded_option data
26318 type arguments.
26319 (append_compiler_options): Likewise.
26320 (append_diag_options): Likewise.
26321 (append_linker_options): Likewise.
26322 (append_offload_options): Likewise.
26323 (compile_offload_image): Likewise.
26324 (compile_images_for_offload_targets): Likewise.
26325 (find_and_merge_options): Likewise.
26326 (run_gcc): Likewise.
26327
26328 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
26329
26330 PR debug/100515
26331 * dwarf2out.c (dwarf2out_finish): Set
26332 have_multiple_function_sections with multi-range text_section.
26333
26334 2021-05-12 Martin Liska <mliska@suse.cz>
26335
26336 PR bootstrap/100560
26337 * Makefile.in: Remove version.h from linker command line.
26338
26339 2021-05-12 Richard Biener <rguenther@suse.de>
26340
26341 PR middle-end/100547
26342 * rtl.h (rtvec_alloc): Make argument size_t.
26343 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
26344
26345 2021-05-12 Jakub Jelinek <jakub@redhat.com>
26346
26347 PR middle-end/100508
26348 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
26349 type, don't reuse DECL_RTL if it has different mode, instead force
26350 creation of a new DEBUG_EXPR.
26351
26352 2021-05-12 Jakub Jelinek <jakub@redhat.com>
26353 Marc Glisse <marc.glisse@inria.fr>
26354
26355 PR tree-optimization/94589
26356 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
26357 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
26358
26359 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
26360
26361 PR target/98218
26362 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
26363 * config/i386/mmx.md (MMXMODE124): New mode iterator.
26364 (V2FI): Ditto.
26365 (mmxintvecmode): New mode attribute.
26366 (mmxintvecmodelower): Ditto.
26367 (*mmx_maskcmpv2sf3_comm): New insn pattern.
26368 (*mmx_maskcmpv2sf3): Ditto.
26369 (vec_cmpv2sfv2si): New expander.
26370 (vcond<V2FI:mode>v2si): Ditto.
26371 (mmx_vlendvps): New insn pattern.
26372 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
26373 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
26374 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
26375
26376 2021-05-11 Martin Sebor <msebor@redhat.com>
26377
26378 PR middle-end/21433
26379 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
26380
26381 2021-05-11 Richard Biener <rguenther@suse.de>
26382
26383 * gimple-fold.c (gimple_fold_call): Do not call
26384 maybe_fold_reference on call arguments or the static chain.
26385 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
26386 inputs.
26387
26388 2021-05-11 Martin Liska <mliska@suse.cz>
26389
26390 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
26391 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
26392 (DEF_HSAIL_SAT_BUILTIN): Likewise.
26393 (DEF_HSAIL_INTR_BUILTIN): Likewise.
26394 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
26395 * doc/frontends.texi: Remove BRIG.
26396 * doc/install.texi: Likewise.
26397 * doc/invoke.texi: Likewise.
26398 * doc/standards.texi: Likewise.
26399 * brig-builtins.def: Removed.
26400 * brig/ChangeLog: Removed.
26401 * brig/Make-lang.in: Removed.
26402 * brig/brig-builtins.h: Removed.
26403 * brig/brig-c.h: Removed.
26404 * brig/brig-lang.c: Removed.
26405 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
26406 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
26407 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
26408 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
26409 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
26410 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
26411 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
26412 * brig/brigfrontend/brig-comment-handler.cc: Removed.
26413 * brig/brigfrontend/brig-control-handler.cc: Removed.
26414 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
26415 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
26416 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
26417 * brig/brigfrontend/brig-function-handler.cc: Removed.
26418 * brig/brigfrontend/brig-function.cc: Removed.
26419 * brig/brigfrontend/brig-function.h: Removed.
26420 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
26421 * brig/brigfrontend/brig-label-handler.cc: Removed.
26422 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
26423 * brig/brigfrontend/brig-machine.c: Removed.
26424 * brig/brigfrontend/brig-machine.h: Removed.
26425 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
26426 * brig/brigfrontend/brig-module-handler.cc: Removed.
26427 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
26428 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
26429 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
26430 * brig/brigfrontend/brig-to-generic.cc: Removed.
26431 * brig/brigfrontend/brig-to-generic.h: Removed.
26432 * brig/brigfrontend/brig-util.cc: Removed.
26433 * brig/brigfrontend/brig-util.h: Removed.
26434 * brig/brigfrontend/brig-variable-handler.cc: Removed.
26435 * brig/brigfrontend/hsa-brig-format.h: Removed.
26436 * brig/brigfrontend/phsa.h: Removed.
26437 * brig/brigspec.c: Removed.
26438 * brig/config-lang.in: Removed.
26439 * brig/gccbrig.texi: Removed.
26440 * brig/lang-specs.h: Removed.
26441 * brig/lang.opt: Removed.
26442
26443 2021-05-11 Richard Biener <rguenther@suse.de>
26444
26445 PR ipa/100513
26446 * ipa-param-manipulation.c
26447 (ipa_param_body_adjustments::modify_call_stmt): Avoid
26448 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
26449 via gimple_call_lhs_ptr.
26450
26451 2021-05-11 Alex Coplan <alex.coplan@arm.com>
26452
26453 PR target/99725
26454 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
26455 Avoid emitting CFA adjusts on the sp if we have the fp.
26456
26457 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
26458
26459 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
26460 (VMULD): New iterator.
26461 (VCOND): Handle V4HF and V8HF.
26462 (VCONQ): Fix entry for V2SF.
26463 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
26464 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
26465 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
26466 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
26467 Use a 128-bit vector mode for the indexed operand. Use stype for
26468 the scheduling type.
26469
26470 2021-05-11 Richard Biener <rguenther@suse.de>
26471
26472 * gimple-fold.c (maybe_fold_reference): Only return
26473 is_gimple_min_invariant values.
26474
26475 2021-05-11 Richard Biener <rguenther@suse.de>
26476
26477 PR middle-end/100509
26478 * gimple-fold.c (fold_gimple_assign): Only call
26479 get_symbol_constant_value on register type symbols.
26480
26481 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26482 Joe Ramsay <joe.ramsay@arm.com>
26483
26484 PR target/100419
26485 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
26486 (__arm_vcmpneq): Remove duplicate definition.
26487 (__arm_vstrwq_scatter_offset_p): Likewise.
26488 (__arm_vmaxq_x): Likewise.
26489 (__arm_vmlsdavaq): Likewise.
26490 (__arm_vmlsdavaxq): Likewise.
26491 (__arm_vmlsdavq_p): Likewise.
26492 (__arm_vmlsdavxq_p): Likewise.
26493 (__arm_vrmlaldavhaq): Likewise.
26494 (__arm_vstrbq_p): Likewise.
26495 (__arm_vstrbq_scatter_offset): Likewise.
26496 (__arm_vstrbq_scatter_offset_p): Likewise.
26497 (__arm_vstrdq_scatter_offset): Likewise.
26498 (__arm_vstrdq_scatter_offset_p): Likewise.
26499 (__arm_vstrdq_scatter_shifted_offset): Likewise.
26500 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
26501
26502 2021-05-11 Jakub Jelinek <jakub@redhat.com>
26503
26504 PR middle-end/100471
26505 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
26506 is 0, bypass the reduction loop including
26507 GOMP_taskgroup_reduction_unregister call.
26508
26509 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
26510
26511 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
26512 costing_for_scalar.
26513 (rs6000_density_test): Early return if costing_for_scalar is true.
26514 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
26515
26516 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
26517
26518 * doc/tm.texi: Regenerated.
26519 * target.def (init_cost): Add new parameter costing_for_scalar.
26520 * targhooks.c (default_init_cost): Adjust for new parameter.
26521 * targhooks.h (default_init_cost): Likewise.
26522 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
26523 (vect_compute_single_scalar_iteration_cost): Likewise.
26524 (vect_analyze_loop_2): Likewise.
26525 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
26526 (vect_bb_vectorization_profitable_p): Likewise.
26527 * tree-vectorizer.h (init_cost): Likewise.
26528 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
26529 * config/i386/i386.c (ix86_init_cost): Likewise.
26530 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
26531
26532 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
26533
26534 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
26535 vect_nonmem and moved into...
26536 (struct rs6000_cost_data): ...here.
26537 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
26538 (rs6000_add_stmt_cost): Likewise.
26539 (rs6000_finish_cost): Likewise.
26540
26541 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
26542
26543 * range-op.cc (get_bool_state): Adjust head comment.
26544 (operator_not_equal::op1_range): Fix comment.
26545 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
26546
26547 2021-05-10 Martin Sebor <msebor@redhat.com>
26548
26549 PR middle-end/100425
26550 PR middle-end/100510
26551 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
26552 (pass_walloca::xlimit_certain_p): ...to this.
26553 (pass_walloca::gate): Execute for any kind of handled warning.
26554 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
26555 warnings when xlimit_certain_p is set.
26556
26557 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
26558
26559 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
26560 Return ALTIVEC_REGS if that is best_class.
26561 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
26562
26563 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26564
26565 * config/arm/arm.h (CPP_SPEC): Remove error message about
26566 -mfloat-abi.
26567
26568 2021-05-10 Martin Jambor <mjambor@suse.cz>
26569
26570 * ipa-prop.h (IPA_NODE_REF): Removed.
26571 (IPA_NODE_REF_GET_CREATE): Likewise.
26572 (IPA_EDGE_REF): Likewise.
26573 (IPA_EDGE_REF_GET_CREATE): Likewise.
26574 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
26575 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
26576 use of ipa_node_params_sum.
26577 (ipcp_versionable_function_p): Likewise.
26578 (push_node_to_stack): Likewise.
26579 (pop_node_from_stack): Likewise.
26580 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
26581 direct use of ipa_node_params_sum.
26582 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
26583 ipa_node_params_sum.
26584 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
26585 ipa_edge_args_sum.
26586 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
26587 use of ipa_node_params_sum.
26588 (self_recursively_generated_p): Likewise.
26589 (propagate_scalar_across_jump_function): Likewise.
26590 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
26591 direct use of ipa_edge_args_sum, moved the lookup after the early
26592 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
26593 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
26594 direct uses of ipa_node_params_sum.
26595 (propagate_vr_across_jump_function): Likewise.
26596 (propagate_aggregate_lattice): Likewise.
26597 (propagate_aggs_across_jump_function): Likewise.
26598 (propagate_constants_across_call): Likewise, also replaced
26599 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
26600 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
26601 of ipa_node_params_sum.
26602 (estimate_local_effects): Likewise.
26603 (add_all_node_vals_to_toposort): Likewise.
26604 (propagate_constants_topo): Likewise.
26605 (ipcp_propagate_stage): Likewise.
26606 (ipcp_discover_new_direct_edges): Likewise.
26607 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
26608 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
26609 (get_info_about_necessary_edges): Likewise.
26610 (want_remove_some_param_p): Likewise.
26611 (create_specialized_node): Likewise.
26612 (self_recursive_pass_through_p): Likewise.
26613 (self_recursive_agg_pass_through_p): Likewise.
26614 (find_more_scalar_values_for_callers_subset): Likewise and also
26615 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
26616 case replacing two of those with a single query.
26617 (find_more_contexts_for_caller_subset): Likewise for the
26618 ipa_polymorphic_call_context overload.
26619 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
26620 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
26621 ipa_node_params_sum.
26622 (find_aggregate_values_for_callers_subset): Likewise, also reusing
26623 results of ipa_edge_args_sum->get.
26624 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
26625 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
26626 direct use of ipa_edge_args_sum.
26627 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
26628 summary query after the early exit and reused the result later.
26629 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
26630 ipa_node_params_sum.
26631 (decide_whether_version_node): Likewise. Removed re-querying for
26632 summaries after cloning.
26633 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
26634 ipa_node_params_sum.
26635 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
26636 some queries.
26637 (identify_dead_nodes): Likewise.
26638 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
26639 ipa_node_params_sum.
26640 (ipcp_store_vr_results): Likewise.
26641 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
26642 (ipa_fn_summary_t::duplicate): Likewise.
26643 (analyze_function_body): Likewise.
26644 (estimate_calls_size_and_time): Likewise.
26645 (ipa_cached_call_context::duplicate_from): Likewise.
26646 (ipa_call_context::equal_to): Likewise.
26647 (remap_edge_params): Likewise.
26648 (ipa_merge_fn_summary_after_inlining): Likewise.
26649 (inline_read_section): Likewise.
26650 * ipa-icf.c (sem_function::param_used_p): Likewise.
26651 * ipa-modref.c (compute_parm_map): Likewise.
26652 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
26653 ipa_edge_args_sum.
26654 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
26655 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
26656 ipa_edge_args_sum.
26657 * ipa-profile.c (check_argument_count): Likewise.
26658 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
26659 with a direct use of ipa_node_params_sum.
26660 (ipa_initialize_node_params): Likewise.
26661 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
26662 direct use of ipa_edge_args_sum and reused the query result.
26663 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
26664 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
26665 direct use of ipa_edge_args_sum.
26666 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
26667 ipa_node_params_sum and reused the result of the query.
26668 (ipa_analyze_node): Likewise.
26669 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
26670 of ipa_node_params_sum.
26671 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
26672 direct uses of ipa_edge_args_sum.
26673 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
26674 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
26675 direct use of ipa_edge_args_sum. Removed superficial re-querying the
26676 top edge summary.
26677 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
26678 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
26679 ipa_edge_args_sum.
26680 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
26681 direct use of ipa_edge_args_sum.
26682 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
26683 use of ipa_node_params_sum.
26684 (ipa_print_node_params): Likewise.
26685 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
26686 direct uses of ipa_edge_args_sum.
26687 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
26688 ipa_edge_args_sum.
26689 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
26690 ipa_node_params_sum.
26691 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
26692 scopes where it is used.
26693
26694 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
26695
26696 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
26697 <case E_V2SImode>: Force op_true to register.
26698
26699 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26700
26701 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
26702 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
26703 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
26704 patterns.
26705 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
26706 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
26707 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
26708 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
26709 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
26710 (mve_vcmpneq_n_f<mode>): Remove.
26711 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
26712 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
26713 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
26714
26715 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26716
26717 * config/arm/iterators.md (MVE_COMPARISONS): New.
26718 (mve_cmp_op): New.
26719 (mve_cmp_type): New.
26720 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
26721 mve_vcmp patterns.
26722 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
26723 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
26724 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
26725 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
26726 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
26727 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
26728 (mve_vcmpneq_n_<mode>): Remove.
26729
26730 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26731
26732 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
26733 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
26734 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
26735 names.
26736
26737 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26738
26739 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
26740 (vcmpneq_n_u): Likewise.
26741 (vcmpeqq_u,): Likewise.
26742 (vcmpeqq_n_u): Likewise.
26743 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
26744 VCMPEQQ_N_U and VCMPNEQ_N_U.
26745 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
26746 (mve_vcmpeqq_n): Likewise.
26747 (mve_vcmpeqq): Likewise.
26748 (mve_vcmpneq_n): Likewise.
26749
26750 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
26751
26752 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
26753 the 's' version of the builtin.
26754
26755 2021-05-10 Richard Biener <rguenther@suse.de>
26756
26757 PR tree-optimization/100492
26758 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26759 Find nothing when the loop contains an irreducible region.
26760
26761 2021-05-10 Richard Biener <rguenther@suse.de>
26762
26763 PR middle-end/100464
26764 PR c++/100468
26765 * gimple-fold.c (canonicalize_constructor_val): Do not set
26766 TREE_ADDRESSABLE.
26767
26768 2021-05-10 Richard Biener <rguenther@suse.de>
26769
26770 PR tree-optimization/100434
26771 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
26772 call LHS.
26773 (dse_optimize_stmt): Handle call LHS by dropping the
26774 LHS or the whole call if it doesn't have other
26775 side-effects.
26776 (pass_dse::execute): Adjust.
26777
26778 2021-05-10 Martin Liska <mliska@suse.cz>
26779
26780 * Makefile.in: Add missing genversion rule.
26781
26782 2021-05-10 Alex Coplan <alex.coplan@arm.com>
26783
26784 PR target/99960
26785 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
26786 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
26787
26788 2021-05-10 Martin Liska <mliska@suse.cz>
26789
26790 * builtins.c (is_builtin_name): Use startswith
26791 function instead of strncmp.
26792 * collect2.c (main): Likewise.
26793 (has_lto_section): Likewise.
26794 (scan_libraries): Likewise.
26795 * coverage.c (coverage_checksum_string): Likewise.
26796 (coverage_init): Likewise.
26797 * dwarf2out.c (is_cxx): Likewise.
26798 (gen_compile_unit_die): Likewise.
26799 * gcc-ar.c (main): Likewise.
26800 * gcc.c (init_spec): Likewise.
26801 (read_specs): Likewise.
26802 (execute): Likewise.
26803 (check_live_switch): Likewise.
26804 * genattrtab.c (write_attr_case): Likewise.
26805 (IS_ATTR_GROUP): Likewise.
26806 * gencfn-macros.c (main): Likewise.
26807 * gengtype.c (type_for_name): Likewise.
26808 (gen_rtx_next): Likewise.
26809 (get_file_langdir): Likewise.
26810 (write_local): Likewise.
26811 * genmatch.c (get_operator): Likewise.
26812 (get_operand_type): Likewise.
26813 (expr::gen_transform): Likewise.
26814 * genoutput.c (validate_optab_operands): Likewise.
26815 * incpath.c (add_sysroot_to_chain): Likewise.
26816 * langhooks.c (lang_GNU_C): Likewise.
26817 (lang_GNU_CXX): Likewise.
26818 (lang_GNU_Fortran): Likewise.
26819 (lang_GNU_OBJC): Likewise.
26820 * lto-wrapper.c (run_gcc): Likewise.
26821 * omp-general.c (omp_max_simt_vf): Likewise.
26822 * omp-low.c (omp_runtime_api_call): Likewise.
26823 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
26824 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
26825 * real.c (real_from_string): Likewise.
26826 * selftest.c (assert_str_startswith): Likewise.
26827 * timevar.c (timer::validate_phases): Likewise.
26828 * tree.c (get_file_function_name): Likewise.
26829 * ubsan.c (ubsan_use_new_style_p): Likewise.
26830 * varasm.c (default_function_rodata_section): Likewise.
26831 (incorporeal_function_p): Likewise.
26832 (default_section_type_flags): Likewise.
26833 * system.h (startswith): Define startswith.
26834
26835 2021-05-10 Martin Liska <mliska@suse.cz>
26836
26837 * bitmap.h (class auto_bitmap): Remove
26838 __cplusplus >= 201103.
26839 * config/aarch64/aarch64.c: Likewise.
26840 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
26841 Likewise.
26842 * sbitmap.h: Likewise.
26843
26844 2021-05-10 Martin Liska <mliska@suse.cz>
26845
26846 * Makefile.in: Rename gcov-iov to genversion and depend
26847 on version.h (instead of gcov-iov.h).
26848 * gcov-io.h: Include version.h instread of gcov-iov.h.
26849 * gengtype-state.c (read_state_version): Likewise.
26850 * gcov-iov.c: Moved to...
26851 * genversion.c: ...here.
26852 * lto-streamer.h (LTO_major_version): Define it with
26853 GCC_major_version.
26854 * version.c: Removed.
26855 * version.h: Removed.
26856
26857 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26858
26859 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
26860 * config/arc/simdext.md (VCT): Add predicates for iterator
26861 elements.
26862 (EMUVEC): Define.
26863 (voptab): Likewise.
26864 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
26865 (<voptab>v2si3): New patterns.
26866 (neg): Likewise.
26867 (reduc_plus_scal_v4hi): Likewise.
26868 (reduc_plus_scal_v2si): Likewise.
26869 (vec_duplicatev2si): Likewise.
26870 (vec_duplicatev4hi): Likewise.
26871
26872 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26873
26874 * config/arc/simdext.md: Format and cleanup file.
26875
26876 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26877
26878 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
26879 only when munaligned-access option is on.
26880 (movmisalign<mode>): Likewise.
26881
26882 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26883
26884 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
26885 from string.
26886 * config/arc/arc.c (arc_reorg): Remove underscore from string.
26887
26888 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26889
26890 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
26891 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
26892 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
26893 (norm_f): Likewise.
26894 (ffs): Likewise.
26895 (ffs_f): Likewise.
26896 (clzsi2): Use fls instruction when available.
26897 (arc_clzsi2): Likewise.
26898
26899 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26900
26901 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
26902
26903 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26904
26905 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
26906
26907 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26908
26909 PR middle-end/100467
26910 * toplev.c (compile_file): Call insn_locations_init before
26911 targetm.asm_out.code_end.
26912
26913 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26914
26915 Revert:
26916 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26917
26918 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
26919
26920 2021-05-07 Jakub Jelinek <jakub@redhat.com>
26921 Andrew Stubbs <amd@codesourcery.com>
26922
26923 PR target/100418
26924 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
26925 emit_move_insn operands.
26926
26927 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
26928
26929 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
26930 location for the outgoing edges of an empty block.
26931 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
26932 type by means of the get_array_descr_info langhook, if it is set and
26933 returns true. Remove obsolete code dealing with unnamed subtypes.
26934
26935 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26936
26937 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
26938 (sbr_vector): Renamed from ssa_block_cache.
26939 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
26940 (ssa_block_ranges::~ssa_block_ranges): Remove.
26941 (sbr_vector::set_bb_range): Use varying and undefined cached values.
26942 (ssa_block_ranges::set_bb_varying): Remove.
26943 (sbr_vector::get_bb_range): Adjust assert.
26944 (sbr_vector::bb_range_p): Adjust assert.
26945 (~block_range_cache): No freeing loop required.
26946 (block_range_cache::get_block_ranges): Remove.
26947 (block_range_cache::set_bb_range): Inline get_block_ranges.
26948 (block_range_cache::set_bb_varying): Remove.
26949 * gimple-range-cache.h (set_bb_varying): Remove prototype.
26950 * value-range.h (irange_allocator::get_memory): New.
26951
26952 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26953
26954 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
26955 dominator tree is available and requested.
26956 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
26957 (ranger_cache::fill_block_cache): Don't search dom tree here either.
26958 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
26959
26960 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26961
26962 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
26963 only PHI nodes better.
26964
26965 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26966
26967 * gimple-range-edge.h (gimple_outgoing_range): Rename from
26968 outgoing_range.
26969 (gcond_edge_range): Export prototype.
26970 * gimple-range-edge.cc (gcond_edge_range): New.
26971 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
26972 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
26973
26974 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26975
26976 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
26977 default range into a temp and allocate only what is needed.
26978
26979 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26980
26981 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
26982
26983 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26984
26985 * gimple-range.h (gimple_range_global): Pick up parameter initial
26986 values, and use-before defined locals are UNDEFINED.
26987
26988 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
26989
26990 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
26991 and vector fields.
26992 * tree.h (reverse_storage_order_for_component_p): Return false if
26993 the type is a pointer.
26994
26995 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26996
26997 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
26998
26999 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
27000
27001 PR target/98218
27002 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
27003 Handle V8QI, V4HI and V2SI modes.
27004 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
27005 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
27006 * config/i386/i386.md (unspec): ... here.
27007
27008 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
27009 Tom de Vries <tdevries@suse.de>
27010
27011 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
27012 a truth_value_p reduction variable is nonintegral.
27013
27014 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
27015
27016 PR target/100445
27017 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
27018 Return false for mode sizes < 16.
27019
27020 2021-05-07 Jakub Jelinek <jakub@redhat.com>
27021
27022 PR target/100445
27023 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
27024
27025 2021-05-06 Martin Jambor <mjambor@suse.cz>
27026
27027 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
27028 when there is no function summary.
27029 (ipa_sra_summarize_function): produce edge summaries even when
27030 bailing out early.
27031
27032 2021-05-06 Tom Tromey <tom@tromey.com>
27033
27034 * godump.c (string_hash_eq): Remove.
27035 (go_finish): Use htab_eq_string.
27036
27037 2021-05-06 Tom Tromey <tom@tromey.com>
27038
27039 * gengtype-state.c (read_state): Use htab_eq_string.
27040 (string_eq): Remove.
27041
27042 2021-05-06 Tom Tromey <tom@tromey.com>
27043
27044 * gensupport.c (htab_eq_string): Remove.
27045
27046 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
27047
27048 PR ipa/97937
27049 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
27050 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
27051 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
27052 set_ignored_loc callbacks.
27053 * debug.c (do_nothing_debug_hooks): Likewise.
27054 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27055 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
27056 (in_text_section_p, last_text_label, last_cold_label,
27057 switch_text_ranges, switch_cold_ranges): New data items.
27058 (dwarf2out_note_section_used): Remove.
27059 (dwarf2out_begin_prologue): Set fde->ignored_debug and
27060 in_text_section_p.
27061 (mark_ignored_debug_section): New helper function.
27062 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
27063 mark_ignored_debug_section.
27064 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
27065 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
27066 (size_of_aranges): Adjust formula for multi-part text ranges size.
27067 (output_aranges): Output multi-part text ranges.
27068 (dwarf2out_set_ignored_loc): New callback function.
27069 (dwarf2out_finish): Output multi-part text ranges.
27070 (dwarf2out_c_finalize): Clear new data items.
27071 * final.c (final_start_function_1): Call set_ignored_loc callback.
27072 (final_scan_insn_1): Likewise.
27073 * ggc-page.c (gt_ggc_mx): New helper function.
27074 * stringpool.c (gt_pch_nx): Likewise.
27075
27076 2021-05-06 Richard Biener <rguenther@suse.de>
27077
27078 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
27079 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
27080 (TV_TREE_INTO_SSA): New.
27081 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
27082 (rewrite_blocks): Likewise.
27083 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
27084
27085 2021-05-06 Jakub Jelinek <jakub@redhat.com>
27086
27087 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
27088 abs_replacement, xor_replacement,
27089 cond_removal_in_popcount_clz_ctz_pattern,
27090 replace_phi_edge_with_variable): Change type of phi argument from
27091 gimple * to gphi *.
27092
27093 2021-05-06 Richard Biener <rguenther@suse.de>
27094
27095 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
27096 Output an opt-info message.
27097 (do_split_loop_on_cond): Likewise.
27098 (tree_ssa_split_loops): Update SSA form here.
27099
27100 2021-05-06 Richard Biener <rguenther@suse.de>
27101
27102 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
27103 return variable removal.
27104
27105 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
27106
27107 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
27108 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
27109 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
27110 operand.
27111 * config/s390/s390.c (s390_const_operand_ok): Remove unused
27112 values.
27113
27114 2021-05-06 Jakub Jelinek <jakub@redhat.com>
27115
27116 PR tree-optimization/94589
27117 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
27118 spaceship_replacement.
27119 (cond_only_block_p, spaceship_replacement): New functions.
27120
27121 2021-05-06 Richard Biener <rguenther@suse.de>
27122
27123 PR ipa/100373
27124 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
27125 dealing with a debug use and only query existing addresses
27126 if so.
27127 (lower_emutls_1): Avoid splitting out addresses for debug
27128 stmts, reset the debug stmt when we fail to find existing
27129 lowered addresses.
27130 (lower_emutls_phi_arg): Set wi.stmt.
27131
27132 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
27133
27134 PR target/100266
27135 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
27136 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
27137 (stack_protect_test): Use cbranch helper.
27138
27139 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
27140
27141 PR target/100402
27142 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
27143 always return the establisher frame for __builtin_frame_address (0).
27144
27145 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
27146
27147 PR target/91400
27148 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
27149 (ix86_cpu_model_var): Likewise.
27150 (ix86_cpu_features2_type_node): Likewise.
27151 (ix86_cpu_features2_var): Likewise.
27152 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
27153 their types.
27154
27155 2021-05-05 Martin Sebor <msebor@redhat.com>
27156
27157 * passes.def (pass_warn_printf): Run after SSA.
27158
27159 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27160
27161 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
27162 * config/arm/predicates.md (minus_one_operand): New predicate.
27163
27164 2021-05-05 Jeff Law <jlaw@tachyum.com>
27165
27166 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
27167
27168 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
27169
27170 PR rtl-optimization/100263
27171 * postreload.c (move2add_valid_value_p): Ensure register can
27172 change mode.
27173
27174 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
27175
27176 PR rtl-optimization/100411
27177 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
27178 and beginning of function markers.
27179
27180 2021-05-05 Jeff Law <jlaw@tachyum.com>
27181
27182 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
27183 * config/cr16/cr16.c (notice_update_cc): Remove.
27184 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
27185
27186 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
27187
27188 PR target/98218
27189 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
27190 Handle V8QI, V4HI and V2SI modes.
27191 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
27192 (ix86_build_signbit_mask): Ditto.
27193 * config/i386/mmx.md (MMXMODE14): New mode iterator.
27194 (<smaxmin:code><MMXMODE14:mode>3): New expander.
27195 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
27196 (<umaxmin:code><MMXMODE24:mode>3): New expander.
27197 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
27198 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
27199 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
27200 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
27201 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
27202 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
27203
27204 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
27205
27206 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
27207 not expand the VALUE_EXPR of variables put in the non-local frame.
27208 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
27209 to be ignored for debug info, ensure its variable offsets are not.
27210
27211 2021-05-05 Richard Biener <rguenther@suse.de>
27212
27213 PR tree-optimization/79333
27214 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
27215 Fold stmt following SSA edges.
27216
27217 2021-05-05 Richard Biener <rguenther@suse.de>
27218
27219 PR middle-end/100394
27220 * calls.c (expand_call): Preserve possibly throwing calls.
27221 * cfgexpand.c (expand_call_stmt): When a call can throw signal
27222 RTL expansion there are side-effects.
27223 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
27224 mark all possibly throwing stmts necessary unless we can elide
27225 dead EH.
27226 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
27227 -fdelete-dead-exceptions.
27228 * tree.h (DECL_PURE_P): Add note about exceptions.
27229
27230 2021-05-05 Alexandre Oliva <oliva@adacore.com>
27231
27232 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
27233 unconditional.
27234
27235 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
27236
27237 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
27238 get_fnname_from_decl for name of thunk.
27239 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
27240 and ASM_OUTPUT_LABEL.
27241 (rs6000_xcoff_declare_function_name): Use assemble_name and
27242 ASM_OUTPUT_LABEL.
27243 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
27244 (rs6000_xcoff_encode_section_info): Don't add mapping class
27245 for aliases. Always add [DS] mapping class to primary
27246 FUNCTION_DECL.
27247 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
27248
27249 2021-05-04 Martin Sebor <msebor@redhat.com>
27250
27251 PR middle-end/100307
27252 * builtins.c (compute_objsize_r): Clear base0 for pointers.
27253
27254 2021-05-04 Jeff Law <jlaw@tachyum.com>
27255
27256 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
27257
27258 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27259
27260 * caller-save.c: Remove CC0.
27261 * cfgcleanup.c: Remove CC0.
27262 * cfgrtl.c: Remove CC0.
27263 * combine.c: Remove CC0.
27264 * compare-elim.c: Remove CC0.
27265 * conditions.h: Remove CC0.
27266 * config/h8300/h8300.h: Remove CC0.
27267 * config/h8300/h8300-protos.h: Remove CC0.
27268 * config/h8300/peepholes.md: Remove CC0.
27269 * config/i386/x86-tune-sched.c: Remove CC0.
27270 * config/m68k/m68k.c: Remove CC0.
27271 * config/rl78/rl78.c: Remove CC0.
27272 * config/sparc/sparc.c: Remove CC0.
27273 * config/xtensa/xtensa.c: Remove CC0.
27274 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
27275 RTL where that is used as a placeholder only.
27276 * cprop.c: Remove CC0.
27277 * cse.c: Remove CC0.
27278 * cselib.c: Remove CC0.
27279 * df-problems.c: Remove CC0.
27280 * df-scan.c: Remove CC0.
27281 * doc/md.texi: Remove CC0. Adjust an example.
27282 * doc/rtl.texi: Remove CC0. Adjust an example.
27283 * doc/tm.texi: Regenerate.
27284 * doc/tm.texi.in: Remove CC0.
27285 * emit-rtl.c: Remove CC0.
27286 * final.c: Remove CC0.
27287 * fwprop.c: Remove CC0.
27288 * gcse-common.c: Remove CC0.
27289 * gcse.c: Remove CC0.
27290 * genattrtab.c: Remove CC0.
27291 * genconfig.c: Remove CC0.
27292 * genemit.c: Remove CC0.
27293 * genextract.c: Remove CC0.
27294 * gengenrtl.c: Remove CC0.
27295 * genrecog.c: Remove CC0.
27296 * haifa-sched.c: Remove CC0.
27297 * ifcvt.c: Remove CC0.
27298 * ira-costs.c: Remove CC0.
27299 * ira.c: Remove CC0.
27300 * jump.c: Remove CC0.
27301 * loop-invariant.c: Remove CC0.
27302 * lra-constraints.c: Remove CC0.
27303 * lra-eliminations.c: Remove CC0.
27304 * optabs.c: Remove CC0.
27305 * postreload-gcse.c: Remove CC0.
27306 * postreload.c: Remove CC0.
27307 * print-rtl.c: Remove CC0.
27308 * read-rtl-function.c: Remove CC0.
27309 * reg-notes.def: Remove CC0.
27310 * reg-stack.c: Remove CC0.
27311 * reginfo.c: Remove CC0.
27312 * regrename.c: Remove CC0.
27313 * reload.c: Remove CC0.
27314 * reload1.c: Remove CC0.
27315 * reorg.c: Remove CC0.
27316 * resource.c: Remove CC0.
27317 * rtl.c: Remove CC0.
27318 * rtl.def: Remove CC0.
27319 * rtl.h: Remove CC0.
27320 * rtlanal.c: Remove CC0.
27321 * sched-deps.c: Remove CC0.
27322 * sched-rgn.c: Remove CC0.
27323 * shrink-wrap.c: Remove CC0.
27324 * simplify-rtx.c: Remove CC0.
27325 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
27326 CC_STATUS_MDEP, and CC_STATUS.
27327 * target.def: Remove CC0.
27328 * valtrack.c: Remove CC0.
27329 * var-tracking.c: Remove CC0.
27330
27331 2021-05-04 Richard Biener <rguenther@suse.de>
27332
27333 PR tree-optimization/100414
27334 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
27335 info here.
27336 (tree_ssa_phiopt_worker): But unconditionally here.
27337
27338 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
27339
27340 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
27341 && and || with floating-point and complex arguments.
27342
27343 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
27344
27345 * tree-inline.c (insert_debug_decl_map): Delete.
27346 (copy_debug_stmt): Minor tweak.
27347 (setup_one_parameter): Do not use a variable if the value is either
27348 a read-only DECL or a non-addressable local variable in the caller.
27349 In this case, insert the debug-only variable in the map manually.
27350 (expand_call_inline): Do not generate a CLOBBER for these values.
27351 * tree-inline.h (debug_map): Minor tweak.
27352
27353 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
27354
27355 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
27356 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
27357
27358 2021-05-04 Richard Biener <rguenther@suse.de>
27359
27360 PR tree-optimization/100329
27361 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
27362 asm goto defs.
27363 (insert_stmt_after): Assert we're not running into asm goto.
27364
27365 2021-05-04 Richard Biener <rguenther@suse.de>
27366
27367 PR tree-optimization/100398
27368 * tree-ssa-dse.c (pass_dse::execute): Preserve control
27369 altering stmts.
27370
27371 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27372
27373 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
27374
27375 2021-05-04 Alexandre Oliva <oliva@adacore.com>
27376
27377 * builtins.c (try_store_by_multiple_pieces): New.
27378 (expand_builtin_memset_args): Use it. If target_char_cast
27379 fails, proceed as for non-constant val. Pass len's ctz to...
27380 * expr.c (clear_storage_hints): ... this. Try store by
27381 multiple pieces after setmem.
27382 (clear_storage): Adjust.
27383 * expr.h (clear_storage_hints): Likewise.
27384 (try_store_by_multiple_pieces): Declare.
27385 * passes.def: Replace the last copy_prop with ccp.
27386
27387 2021-05-03 Tom de Vries <tdevries@suse.de>
27388
27389 PR target/100321
27390 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
27391 reduction.
27392
27393 2021-05-03 Richard Biener <rguenther@suse.de>
27394
27395 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
27396
27397 2021-05-03 Richard Biener <rguenther@suse.de>
27398
27399 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
27400 (dse_dom_walker): Remove.
27401 (dse_dom_walker::dse_optimize_stmt): Rename...
27402 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
27403 (dse_dom_walker::before_dom_children): Inline ...
27404 (pass_dse::execute): ... here. Perform a reverse program
27405 order walk.
27406
27407 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
27408
27409 PR bootstrap/99703
27410 * configure: Regenerated.
27411
27412 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
27413
27414 PR target/100217
27415 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
27416 (s390_md_asm_adjust): Handle hard registers.
27417
27418 2021-05-03 Jakub Jelinek <jakub@redhat.com>
27419
27420 PR tree-optimization/100382
27421 * tree-ssa-dse.c: Include tree-eh.h.
27422 (dse_dom_walker::before_dom_children): Don't remove stmts if
27423 stmt_unremovable_because_of_non_call_eh_p is true.
27424
27425 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
27426
27427 * varasm.c (compute_reloc_for_var): Split out from...
27428 (get_variable_section): Use it.
27429 * output.h (compute_reloc_for_var): Declare.
27430 * config/rs6000/rs6000-protos.h
27431 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
27432 unsigned int.
27433 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
27434 Don't append storage mapping class to symbol.
27435 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
27436 Don't convert TLS BSS to common.
27437 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
27438 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
27439 bss_initializer.
27440 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
27441 mapping class.
27442 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
27443 If align is 0 from TLS class, use the same rules as varasm.c
27444 If not common, switch to BSS section manually.
27445 If common, emit appropriate comm or lcomm directive.
27446 (rs6000_xcoff_encode_section_info): Add logic to append all
27447 storage mapping classes.
27448 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
27449 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
27450 rs6000_xcoff_asm_output_aligned_decl_common.
27451 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
27452 rs6000_xcoff_asm_output_aligned_decl_common.
27453 (ASM_OUTPUT_TLS_COMMON): Use
27454 rs6000_xcoff_asm_output_aligned_decl_common.
27455
27456 2021-05-02 Jakub Jelinek <jakub@redhat.com>
27457
27458 PR target/100375
27459 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
27460 as first argument of pseudo_node_t constructors.
27461
27462 2021-05-02 Jakub Jelinek <jakub@redhat.com>
27463
27464 PR target/100336
27465 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
27466
27467 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
27468
27469 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
27470 (gt_pch_nx (int_range<1> *&)): New.
27471 (gt_ggc_mx (int_range<1> *&)): New.
27472 * value-range.h (class irange): Add GTY support for
27473 the base class.
27474
27475 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
27476
27477 * doc/options.texi (Negative): Change either or to both and.
27478
27479 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
27480
27481 * config/aarch64/aarch64-simd-builtins.def: Add
27482 float_ml[as][q]_laneq builtin generator macros.
27483 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
27484 (aarch64_float_mla_laneq<mode>): Define.
27485 (aarch64_float_mls_laneq<mode>): Define.
27486 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
27487 instead of GCC vector extensions.
27488 (vmlaq_laneq_f32): Likewise.
27489 (vmls_laneq_f32): Likewise.
27490 (vmlsq_laneq_f32): Likewise.
27491
27492 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
27493
27494 * config/aarch64/aarch64-simd-builtins.def: Add
27495 float_ml[as]_lane builtin generator macros.
27496 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
27497 Rename to...
27498 (mul_lane<mode>3): This, and re-order arguments.
27499 (aarch64_float_mla_lane<mode>): Define.
27500 (aarch64_float_mls_lane<mode>): Define.
27501 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
27502 instead of GCC vector extensions.
27503 (vmlaq_lane_f32): Likewise.
27504 (vmls_lane_f32): Likewise.
27505 (vmlsq_lane_f32): Likewise.
27506
27507 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
27508
27509 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
27510 builtin generator macros.
27511 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
27512 Define.
27513 (aarch64_float_mls<mode>): Define.
27514 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
27515 instead of relying on GCC vector extensions.
27516 (vmla_f64): Likewise.
27517 (vmlaq_f32): Likewise.
27518 (vmlaq_f64): Likewise.
27519 (vmls_f32): Likewise.
27520 (vmls_f64): Likewise.
27521 (vmlsq_f32): Likewise.
27522 (vmlsq_f64): Likewise.
27523 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
27524
27525 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
27526
27527 * config/aarch64/aarch64-simd-builtins.def: Add
27528 float_ml[as]_n_builtin generator macros.
27529 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
27530 Rename to...
27531 (mul_n<mode>3): This, and re-order arguments.
27532 (aarch64_float_mla_n<mode>): Define.
27533 (aarch64_float_mls_n<mode>): Define.
27534 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
27535 instead of inline asm.
27536 (vmlaq_n_f32): Likewise.
27537 (vmls_n_f32): Likewise.
27538 (vmlsq_n_f32): Likewise.
27539
27540 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
27541
27542 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
27543 builtin generator macros.
27544 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
27545 (aarch64_pmull_hiv16qi_insn): Define.
27546 (aarch64_pmull_hiv16qi): Define.
27547 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
27548 instead of inline asm.
27549 (vmull_p8): Likewise.
27550
27551 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
27552
27553 * config/avr/avr.md: Adjust peepholes to match and
27554 generate parallels with clobber of REG_CC.
27555 (mov<mode>_insn): Rename to mov<mode>_insn_split.
27556 (*mov<mode>_insn): Rename to mov<mode>_insn.
27557
27558 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
27559
27560 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
27561 for VAR_DECLs if -fdata-sections enabled.
27562
27563 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
27564
27565 PR bootstrap/100327
27566 * config/rs6000/rs6000.c
27567 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
27568 (rs6000_libgcc_floating_mode_supported_p): New target hook.
27569
27570 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
27571
27572 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
27573 from here...
27574 (class back_threader_registry): ...to here...
27575 (class back_threader_profitability): ...and here...
27576 (thread_jumps::thread_through_all_blocks): Remove argument.
27577 (back_threader_registry::back_threader_registry): New.
27578 (back_threader_registry::~back_threader_registry): New.
27579 (back_threader_registry::thread_through_all_blocks): New.
27580 (thread_jumps::profitable_jump_thread_path): Move from here...
27581 (back_threader_profitability::profitable_path_p): ...to here.
27582 (thread_jumps::find_taken_edge): New.
27583 (thread_jumps::convert_and_register_current_path): Move...
27584 (back_threader_registry::register_path): ...to here.
27585 (thread_jumps::register_jump_thread_path_if_profitable): Move...
27586 (thread_jumps::maybe_register_path): ...to here.
27587 (thread_jumps::handle_phi): Call find_taken_edge and
27588 maybe_register_path.
27589 (thread_jumps::handle_assignment): Same.
27590 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
27591 tree argument to handle_phi and handle_assignment.
27592 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
27593 set of m_speed_p and m_max_threaded_paths.
27594 (pass_thread_jumps::execute): Remove second argument from
27595 find_jump_threads_backwards.
27596 (pass_early_thread_jumps::execute): Same.
27597
27598 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
27599
27600 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
27601 (class dom_opt_dom_walker): Initialize some class variables.
27602 (pass_dominator::execute): Pass evrp_range_analyzer and
27603 dom_jump_threader_simplifier to dom_opt_dom_walker.
27604 Adjust for some functions moving into classes.
27605 (simplify_stmt_for_jump_threading): Adjust and move to...
27606 (jump_threader_simplifier::simplify): ...here.
27607 (dom_opt_dom_walker::before_dom_children): Adjust for
27608 m_evrp_range_analyzer.
27609 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
27610 (test_for_singularity): Place in dom_opt_dom_walker class.
27611 (dom_opt_dom_walker::optimize_stmt): The argument
27612 evrp_range_analyzer is now a class field.
27613 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
27614 (thread_jumps::thread_through_all_blocks): New.
27615 (thread_jumps::convert_and_register_current_path): Use m_registry.
27616 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
27617 being in the threader class.
27618 (pass_early_thread_jumps::execute): Same.
27619 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
27620 (jump_threader::jump_threader): ...here.
27621 (threadedge_finalize_values): Move...
27622 (jump_threader::~jump_threader): ...here.
27623 (jump_threader::remove_jump_threads_including): New.
27624 (jump_threader::thread_through_all_blocks): New.
27625 (record_temporary_equivalences_from_phis): Move...
27626 (jump_threader::record_temporary_equivalences_from_phis): ...here.
27627 (record_temporary_equivalences_from_stmts_at_dest): Move...
27628 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
27629 Here...
27630 (simplify_control_stmt_condition_1): Move to jump_threader class.
27631 (simplify_control_stmt_condition): Move...
27632 (jump_threader::simplify_control_stmt_condition): ...here.
27633 (thread_around_empty_blocks): Move...
27634 (jump_threader::thread_around_empty_blocks): ...here.
27635 (thread_through_normal_block): Move...
27636 (jump_threader::thread_through_normal_block): ...here.
27637 (thread_across_edge): Move...
27638 (jump_threader::thread_across_edge): ...here.
27639 (thread_outgoing_edges): Move...
27640 (jump_threader::thread_outgoing_edges): ...here.
27641 * tree-ssa-threadedge.h: Move externally facing functings...
27642 (class jump_threader): ...here...
27643 (class jump_threader_simplifier): ...and here.
27644 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
27645 (jump_thread_path_allocator::jump_thread_path_allocator): New.
27646 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
27647 (jump_thread_path_allocator::allocate_thread_edge): New.
27648 (jump_thread_path_allocator::allocate_thread_path): New.
27649 (jump_thread_path_registry::jump_thread_path_registry): New.
27650 (jump_thread_path_registry::~jump_thread_path_registry): New.
27651 (jump_thread_path_registry::allocate_thread_edge): New.
27652 (jump_thread_path_registry::allocate_thread_path): New.
27653 (dump_jump_thread_path): Make extern.
27654 (debug (const vec<jump_thread_edge *> &path)): New.
27655 (struct removed_edges): Move to tree-ssa-threadupdate.h.
27656 (struct thread_stats_d): Remove.
27657 (remove_ctrl_stmt_and_useless_edges): Make static.
27658 (lookup_redirection_data): Move...
27659 (jump_thread_path_registry::lookup_redirection_data): ...here.
27660 (ssa_redirect_edges): Make static.
27661 (thread_block_1): Move...
27662 (jump_thread_path_registry::thread_block_1): ...here.
27663 (thread_block): Move...
27664 (jump_thread_path_registry::thread_block): ...here.
27665 (thread_through_loop_header): Move...
27666 (jump_thread_path_registry::thread_through_loop_header): ...here.
27667 (mark_threaded_blocks): Move...
27668 (jump_thread_path_registry::mark_threaded_blocks): ...here.
27669 (debug_path): Move...
27670 (jump_thread_path_registry::debug_path): ...here.
27671 (debug_all_paths): Move...
27672 (jump_thread_path_registry::dump): ..here.
27673 (rewire_first_differing_edge): Move...
27674 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
27675 (adjust_paths_after_duplication): Move...
27676 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
27677 (duplicate_thread_path): Move...
27678 (jump_thread_path_registry::duplicate_thread_path): ..here.
27679 (remove_jump_threads_including): Move...
27680 (jump_thread_path_registry::remove_jump_threads_including): ...here.
27681 (thread_through_all_blocks): Move to...
27682 (jump_thread_path_registry::thread_through_all_blocks): ...here.
27683 (delete_jump_thread_path): Remove.
27684 (register_jump_thread): Move...
27685 (jump_thread_path_registry::register_jump_thread): ...here.
27686 * tree-ssa-threadupdate.h: Move externally facing functions...
27687 (class jump_thread_path_allocator): ...here...
27688 (class jump_thread_path_registry): ...and here.
27689 (thread_through_all_blocks): Remove.
27690 (struct removed_edges): New.
27691 (register_jump_thread): Remove.
27692 (remove_jump_threads_including): Remove.
27693 (delete_jump_thread_path): Remove.
27694 (remove_ctrl_stmt_and_useless_edges): Remove.
27695 (free_dom_edge_info): New prototype.
27696 * tree-vrp.c: Remove x_vr_values hack.
27697 (class vrp_jump_threader_simplifier): New.
27698 (vrp_jump_threader_simplifier::simplify): New.
27699 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
27700 Remove m_dummy_cond.
27701 Instantiate m_simplifier and m_threader.
27702 (vrp_jump_threader::thread_through_all_blocks): New.
27703 (vrp_jump_threader::simplify_stmt): Remove.
27704 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
27705 Remove x_vr_values hack.
27706 (execute_vrp): Adjust for thread_through_all_blocks being in a
27707 class.
27708
27709 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
27710
27711 * genflags.c (gen_insn): Print failed expansion string.
27712
27713 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
27714
27715 * expr.c (alignment_for_piecewise_move): Call mode_for_size
27716 without limit to MAX_FIXED_MODE_SIZE.
27717
27718 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
27719
27720 PR middle-end/90773
27721 * builtins.c (builtin_memset_gen_str): Don't use return from
27722 simplify_gen_subreg.
27723
27724 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
27725
27726 PR target/98060
27727 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
27728 (*addsi3_carry_zext_0r): Ditto.
27729 (*sub<mode>3_carry_0): Ditto.
27730 (*subsi3_carry_zext_0r): Ditto.
27731 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
27732 New predicate.
27733 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
27734 Also consider ix86_carry_flag_unset_operator to calculate
27735 the cost of adc/sbb insn.
27736
27737 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
27738
27739 PR rtl-optimization/100225
27740 PR rtl-optimization/84878
27741 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
27742 where we have an instruction which touches (writes) any hard
27743 register from df->regular_block_artificial_uses set.
27744 Allow not-single-set instruction only right before basic block
27745 tail.
27746
27747 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
27748
27749 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
27750
27751 2021-04-30 LevyHsu <admin@levyhsu.com>
27752
27753 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
27754 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
27755 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
27756 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
27757
27758 2021-04-29 Alexandre Oliva <oliva@adacore.com>
27759
27760 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
27761
27762 2021-04-29 Alexandre Oliva <oliva@adacore.com>
27763
27764 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
27765 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
27766 * config/i386/i386.c: Adjust.
27767 * config/i386/i386.md: Adjust.
27768 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
27769 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27770 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27771 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27772 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27773 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27774 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27775 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27776 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27777 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
27778 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
27779
27780 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
27781
27782 * config/i386/i386-expand.c (ix86_expand_int_compare):
27783 Swap operands of GTU and LEU comparison to emit carry flag comparison.
27784 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
27785 predicate to allow more combine opportunities with memory operands.
27786 (*sub<mode>3_carry_0): Ditto.
27787
27788 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
27789
27790 PR rtl-optimization/100303
27791 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
27792 boolean that indicates whether the use will only be used in
27793 debug instructions. Treat it in the same way that existing
27794 cross-EBB debug references would be handled if so.
27795 (function_info::make_uses_available): Likewise.
27796 * rtl-ssa/functions.h (function_info::make_uses_available): Update
27797 prototype accordingly.
27798 (function_info::make_uses_available): Likewise.
27799 * fwprop.c (try_fwprop_subst): Update call accordingly.
27800
27801 2021-04-29 Jeff Law <jlaw@tachyum.com>
27802
27803 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
27804 of RTX_CODE guard.
27805
27806 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
27807 Richard Biener <rguenther@suse.de>
27808
27809 PR target/100312
27810 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
27811 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
27812 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
27813 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
27814 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
27815 to PURE_ARGS category.
27816 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27817 Handle PURE_ARGS category.
27818 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
27819
27820 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
27821
27822 * configure.ac: Check for the presence of sys/locking.h header and
27823 for whether _LK_LOCK is supported by _locking.
27824 * configure: Regenerate.
27825 * config.in: Likewise.
27826 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
27827 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
27828 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
27829
27830 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
27831
27832 * config/i386/predicates.md (fcmov_comparison_operator):
27833 Do not check for trivial FP comparison operator.
27834 <case GEU, case LTU>: Allow CCGZmode.
27835 <case GTU, case LEU>: Do not allow CCCmode.
27836 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
27837 (ix86_carry_flag_operator): Match only LTU and UNLT code.
27838 Do not check for trivial FP comparison operator. Allow CCGZmode.
27839
27840 2021-04-29 Tom de Vries <tdevries@suse.de>
27841
27842 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
27843 fd->loop.step by either step or orig_step.
27844
27845 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
27846
27847 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
27848 (load_got_register): Do the PIC dance here.
27849 (sparc_legitimize_tls_address): Simplify.
27850 (sparc_emit_probe_stack_range): Likewise.
27851 (sparc32_initialize_trampoline): Likewise.
27852 (sparc64_initialize_trampoline): Likewise.
27853 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
27854 (probe_stack_range<P:mode>): Likewise.
27855 (flush<P:mode>): Likewise.
27856 (tgd_hi22<P:mode>): Likewise.
27857 (tgd_lo10<P:mode>): Likewise.
27858 (tgd_add<P:mode>): Likewise.
27859 (tgd_call<P:mode>): Likewise.
27860 (tldm_hi22<P:mode>): Likewise.
27861 (tldm_lo10<P:mode>): Likewise.
27862 (tldm_add<P:mode>): Likewise.
27863 (tldm_call<P:mode>): Likewise.
27864 (tldo_hix22<P:mode>): Likewise.
27865 (tldo_lox10<P:mode>): Likewise.
27866 (tldo_add<P:mode>): Likewise.
27867 (tie_hi22<P:mode>): Likewise.
27868 (tie_lo10<P:mode>): Likewise.
27869 (tie_add<P:mode>): Likewise.
27870 (tle_hix22<P:mode>): Likewise.
27871 (tle_lox10<P:mode>): Likewise.
27872 (stack_protect_setsi): Rename to...
27873 (stack_protect_set32): ...this.
27874 (stack_protect_setdi): Rename to...
27875 (stack_protect_set64): ...this.
27876 (stack_protect_set): Adjust calls to above.
27877 (stack_protect_testsi): Rename to...
27878 (stack_protect_test32): ...this.
27879 (stack_protect_testdi): Rename to...
27880 (stack_protect_test64): ...this.
27881 (stack_protect_test): Adjust calls to above.
27882
27883 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
27884
27885 PR middle-end/90773
27886 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
27887 (builtin_strncpy_read_str): Likewise.
27888 (builtin_memset_read_str): Add an argument for the previous RTL
27889 information and generate the new RTL from the previous RTL info.
27890 (builtin_memset_gen_str): Likewise.
27891 * builtins.h (builtin_strncpy_read_str): Update the prototype.
27892 (builtin_memset_read_str): Likewise.
27893 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
27894 returns true, round up size and alignment to the widest integer
27895 mode for maximum size.
27896 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
27897 and pass it to m_constfn.
27898 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
27899 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
27900 initialize m_push. Initialize m_overlap_op_by_pieces with
27901 targetm.overlap_op_by_pieces_p ().
27902 (op_by_pieces_d::run): Pass the previous RTL information to
27903 pieces_addr::adjust and generate overlapping operations if
27904 m_overlap_op_by_pieces is true.
27905 (PUSHG_P): New.
27906 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
27907 change.
27908 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
27909 change.
27910 (can_store_by_pieces): Use by_pieces_constfn on constfun.
27911 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
27912 for op_by_pieces_d change.
27913 (clear_by_pieces_1): Add a dummy argument.
27914 (clear_by_pieces): Updated for op_by_pieces_d change.
27915 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
27916 (string_cst_read_str): Add a dummy argument.
27917 * expr.h (by_pieces_constfn): Add a dummy argument.
27918 (by_pieces_prev): New.
27919 * target.def (overlap_op_by_pieces_p): New target hook.
27920 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
27921 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
27922 * doc/tm.texi: Regenerated.
27923
27924 2021-04-29 Richard Biener <rguenther@suse.de>
27925
27926 PR tree-optimization/100253
27927 * tree-vect-stmts.c (vectorizable_load): Do not assume
27928 element alignment when DR_MISALIGNMENT is -1.
27929 (vectorizable_store): Likewise.
27930
27931 2021-04-29 Jakub Jelinek <jakub@redhat.com>
27932
27933 PR target/100302
27934 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
27935 absu_hwi instead of abs_hwi.
27936
27937 2021-04-29 Richard Biener <rguenther@suse.de>
27938
27939 PR middle-end/38474
27940 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
27941 forwarding when indirect forwarding through ESCAPED
27942 alread happens.
27943
27944 2021-04-29 Tom de Vries <tdevries@suse.de>
27945
27946 PR target/100232
27947 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
27948 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
27949 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
27950 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
27951
27952 2021-04-29 Richard Biener <rguenther@suse.de>
27953
27954 PR tree-optimization/99912
27955 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
27956 (dse_dom_walker::todo): Likewise.
27957 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
27958 caller.
27959 (dse_dom_walker::before_dom_children): Remove trivially
27960 dead SSA defs and schedule CFG cleanup if we removed all
27961 PHIs in a block.
27962 (pass_dse::execute): Get TODO as computed by the DOM walker
27963 and return it. Wipe dominator info earlier.
27964
27965 2021-04-29 Richard Biener <rguenther@suse.de>
27966
27967 PR ipa/100308
27968 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
27969 Track blocks to cleanup EH in new m_need_eh_cleanup.
27970 (ipcp_modif_dom_walker::cleanup_eh): New.
27971 (ipcp_transform_function): Release dominator info before
27972 doing EH cleanup.
27973
27974 2021-04-29 Martin Sebor <msebor@redhat.com>
27975
27976 PR middle-end/100250
27977 * attribs.c (attr_access::array_as_string): Avoid dereferencing
27978 a pointer when it's null.
27979
27980 2021-04-29 Martin Sebor <msebor@redhat.com>
27981
27982 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
27983 * ipa-free-lang-data.cc: New file.
27984 * tree.c: Move pass free_lang_data to file above.
27985 (build_array_type_1): Declare extern.
27986 * tree.h (build_array_type_1): Declare.
27987
27988 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27989
27990 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
27991 make consistent with updated RTL pattern.
27992 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
27993 Implement using ss_truncate and us_truncate rather than
27994 unspecs.
27995 * config/aarch64/iterators.md: Remove redundant unspecs and
27996 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
27997
27998 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27999
28000 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
28001 attributes consistent with those defined in arm_neon.h.
28002
28003 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28004
28005 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
28006 attributes consistent with those defined in arm_neon.h.
28007
28008 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28009
28010 * config/aarch64/aarch64-simd-builtins.def: Add
28011 float_trunc_rodd builtin generator macros.
28012 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
28013 Define.
28014 (aarch64_float_trunc_rodd_lo_v2sf): Define.
28015 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
28016 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
28017 (aarch64_float_trunc_rodd_hi_v4sf): Define.
28018 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
28019 instead of inline asm.
28020 (vcvtx_high_f32_f64): Likewise.
28021 (vcvtxd_f32_f64): Likewise.
28022 * config/aarch64/iterators.md: Add FCVTXN unspec.
28023
28024 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28025
28026 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
28027 generator macros.
28028 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
28029 Define.
28030 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
28031 instead of inline asm.
28032 (vqtbx1_u8): Likewise.
28033 (vqtbx1_p8): Likewise.
28034 (vqtbx1q_s8): Likewise.
28035 (vqtbx1q_u8): Likewise.
28036 (vqtbx1q_p8): Likewise.
28037 (vtbx2_s8): Likewise.
28038 (vtbx2_u8): Likewise.
28039 (vtbx2_p8): Likewise.
28040
28041 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28042
28043 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
28044 generator macros.
28045 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
28046 instead of inline asm.
28047 (vqtbl1_s8): Likewise.
28048 (vqtbl1_u8): Likewise.
28049 (vqtbl1q_p8): Likewise.
28050 (vqtbl1q_s8): Likewise.
28051 (vqtbl1q_u8): Likewise.
28052 (vtbl1_s8): Likewise.
28053 (vtbl1_u8): Likewise.
28054 (vtbl1_p8): Likewise.
28055 (vtbl2_s8): Likewise.
28056 (vtbl2_u8): Likewise.
28057 (vtbl2_p8): Likewise.
28058
28059 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28060
28061 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
28062 ssri_n buitin generator macro.
28063 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
28064 instead of inline asm.
28065 (vsri_n_p16): Likewise.
28066 (vsri_n_p64): Likewise.
28067 (vsriq_n_p8): Likewise.
28068 (vsriq_n_p16): Likewise.
28069 (vsriq_n_p64): Likewise.
28070
28071 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28072
28073 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
28074 iterator for polynomial ssli_n builtin generator macro.
28075 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
28076 instead of inline asm.
28077 (vsli_n_p16): Likewise.
28078 (vsliq_n_p8): Likewise.
28079 (vsliq_n_p16): Likewise.
28080 * config/aarch64/iterators.md: Define VALLP mode iterator.
28081
28082 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28083
28084 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
28085 iterator to generate [su]adalp RTL builtins.
28086 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
28087 [su]adalp RTL pattern.
28088 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
28089 instead of inline asm.
28090 (vpadal_u32): Likewise.
28091
28092 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28093
28094 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
28095 builtin generator macros.
28096 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
28097 Define.
28098 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
28099 instead of inline asm.
28100 (vpaddl_s16): Likewise.
28101 (vpaddl_s32): Likewise.
28102 (vpaddl_u8): Likewise.
28103 (vpaddl_u16): Likewise.
28104 (vpaddl_u32): Likewise.
28105 (vpaddlq_s8): Likewise.
28106 (vpaddlq_s16): Likewise.
28107 (vpaddlq_s32): Likewise.
28108 (vpaddlq_u8): Likewise.
28109 (vpaddlq_u16): Likewise.
28110 (vpaddlq_u32): Liwewise.
28111 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
28112 appropriate attributes.
28113
28114 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28115
28116 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
28117 for aarch64_addp<mode> builtin macro generator.
28118 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
28119 aarch64_addp<mode> RTL pattern.
28120 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
28121 instead of inline asm.
28122 (vpaddq_s16): Likewise.
28123 (vpaddq_s32): Likewise.
28124 (vpaddq_s64): Likewise.
28125 (vpaddq_u8): Likewise.
28126 (vpaddq_u16): Likewise.
28127 (vpaddq_u32): Likewise.
28128 (vpaddq_u64): Likewise.
28129
28130 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
28131
28132 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
28133 builtin generator macros.
28134 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
28135 Define.
28136 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
28137 instead of inline asm.
28138 (vqdmulh_n_s32): Likewise.
28139 (vqdmulhq_n_s16): Likewise.
28140 (vqdmulhq_n_s32): Likewise.
28141 (vqrdmulh_n_s16): Likewise.
28142 (vqrdmulh_n_s32): Likewise.
28143 (vqrdmulhq_n_s16): Likewise.
28144 (vqrdmulhq_n_s32): Likewise.
28145
28146 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
28147
28148 * doc/install.texi (--enable-offload-defaulted): Document.
28149
28150 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
28151
28152 * config/avr/avr-dimode.md: Turn existing patterns into
28153 define_insn_and_split style patterns where the splitter
28154 adds a clobber of the condition code register. Drop "cc"
28155 attribute. Add new patterns to match output of
28156 the splitters.
28157 * config/avr/avr-fixed.md: Likewise.
28158 * config/avr/avr.c (cc_reg_rtx): New.
28159 (avr_parallel_insn_from_insns): Adjust insn count
28160 for removal of set of cc0.
28161 (avr_is_casesi_sequence): Likewise.
28162 (avr_casei_sequence_check_operands): Likewise.
28163 (avr_optimize_casesi): Likewise. Also insert
28164 new insns after jump_insn.
28165 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
28166 for removal of set of cc0.
28167 (avr_init_expanders): Initialize cc_reg_rtx.
28168 (avr_regno_reg_class): Handle REG_CC.
28169 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
28170 (avr_notice_update_cc): Remove function.
28171 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
28172 (compare_condition): Adjust for PARALLEL with
28173 REG_CC clobber.
28174 (out_shift_with_cnt): Likewise.
28175 (ashlhi3_out): Likewise.
28176 (ashrhi3_out): Likewise.
28177 (lshrhi3_out): Likewise.
28178 (avr_class_max_nregs): Return single reg for REG_CC.
28179 (avr_compare_pattern): Check for REG_CC instead
28180 of cc0_rtx.
28181 (avr_reorg_remove_redundant_compare): Likewise.
28182 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
28183 (avr_hard_regno_nregs): Return single reg for REG_CC.
28184 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
28185 (avr_md_asm_adjust): Clobber REG_CC.
28186 (TARGET_HARD_REGNO_NREGS): Define.
28187 (TARGET_CLASS_MAX_NREGS): Define.
28188 (TARGET_MD_ASM_ADJUST): Define.
28189 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
28190 for REG_CC.
28191 (enum reg_class): Add CC_REG class.
28192 (NOTICE_UPDATE_CC): Remove.
28193 (CC_OVERFLOW_UNUSABLE): Remove.
28194 (CC_NO_CARRY): Remove.
28195 * config/avr/avr.md: Turn existing patterns into
28196 define_insn_and_split style patterns where the splitter
28197 adds a clobber of the condition code register. Drop "cc"
28198 attribute. Add new patterns to match output of
28199 the splitters.
28200 (sez): Remove unused pattern.
28201
28202 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
28203
28204 PR target/100311
28205 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
28206 used in HImode.
28207
28208 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
28209
28210 PR target/100305
28211 * config/aarch64/constraints.md (Utq): Require the address to
28212 be valid for both the element mode and for V2DImode.
28213
28214 2021-04-28 Jakub Jelinek <jakub@redhat.com>
28215 Tobias Burnus <tobias@codesourcery.com>
28216
28217 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
28218 * gcc.c (process_command): New variable.
28219 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
28220 set it if -foffload is defaulted.
28221 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
28222 (compile_offload_image): If OFFLOAD_DEFAULTED and
28223 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
28224 if corresponding mkoffload can't be found.
28225 (compile_images_for_offload_targets): Likewise. Free and clear
28226 offload_names if no valid offload is found.
28227 * config.in: Regenerate.
28228 * configure: Regenerate.
28229
28230 2021-04-28 Richard Biener <rguenther@suse.de>
28231
28232 PR tree-optimization/100292
28233 * tree-vect-generic.c (expand_vector_condition): Do not fold
28234 the comparisons.
28235
28236 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
28237
28238 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
28239 * config/rs6000/aix64.opt (m64): New.
28240 (m32): New.
28241
28242 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
28243
28244 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
28245 (index_term_p): Handle ASHIFT too.
28246
28247 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
28248
28249 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
28250 (sync_lock_test_and_set<mode>): Adjust accordingly.
28251 (sync_lock_release<mode>): Likewise.
28252
28253 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
28254
28255 * config/vax/vax-protos.h (adjacent_operands_p): Remove
28256 prototype.
28257 * config/vax/vax.c (adjacent_operands_p): Remove.
28258
28259 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
28260
28261 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
28262 through to the non-conditional execution case if getting the
28263 condition for conditional execution has failed.
28264
28265 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
28266
28267 PR middle-end/100284
28268 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
28269 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
28270 than asserting on it.
28271
28272 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
28273
28274 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
28275 with TARGET_AIX_OS.
28276
28277 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
28278
28279 PR target/94177
28280 * calls.c (precompute_register_parameters): Additionally test
28281 targetm.precompute_tls_p to pre-compute argument.
28282 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
28283 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
28284 * target.def (precompute_tls_p): New.
28285 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
28286 * doc/tm.texi: Regenerated.
28287
28288 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28289
28290 PR target/100200
28291 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
28292 back to HOST_WIDE_INT.
28293
28294 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28295
28296 PR target/100106
28297 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
28298 memory alignment for the outer mode.
28299
28300 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
28301
28302 PR middle-end/90773
28303 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
28304 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
28305
28306 2021-04-27 Alex Coplan <alex.coplan@arm.com>
28307
28308 PR target/99977
28309 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
28310 with negative immediates: ensure we expand cbranchsi4_scratch
28311 correctly and ensure we satisfy its constraints.
28312 * config/arm/sync.md
28313 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
28314 attempt to tie two output operands together with constraints;
28315 collapse two alternatives.
28316 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
28317 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
28318
28319 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28320
28321 PR target/100200
28322 * config/aarch64/predicates.md (aarch64_sub_immediate,
28323 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
28324 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
28325 * config/aarch64/aarch64.c (aarch64_print_operand,
28326 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
28327
28328 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28329
28330 PR tree-optimization/100239
28331 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
28332 permutations with all indices from the first zero element as vec_shl.
28333
28334 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28335
28336 PR rtl-optimization/100254
28337 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
28338 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
28339
28340 2021-04-27 Richard Biener <rguenther@suse.de>
28341
28342 PR tree-optimization/99912
28343 * passes.def: Add comment about new TODO_remove_unused_locals.
28344 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
28345 at start.
28346
28347 2021-04-27 Richard Biener <rguenther@suse.de>
28348
28349 PR tree-optimization/99912
28350 * passes.def (pass_all_optimizations): Add pass_dse before
28351 the first pass_dce, move the first pass_dse before the
28352 pass_dce following pass_pre.
28353
28354 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28355
28356 PR tree-optimization/95527
28357 * generic-match-head.c: Include tm.h.
28358 * gimple-match-head.c: Include tm.h.
28359 * match.pd (CLZ == INTEGER_CST): Don't use
28360 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
28361 if clz == CFN_CLZ. Add missing val declaration.
28362 (CTZ cmp CST): New simplifications.
28363
28364 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28365
28366 PR tree-optimization/96696
28367 * expr.c (expand_expr_divmod): New function.
28368 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
28369 divisions. Formatting fixes.
28370 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
28371 cheaper.
28372
28373 2021-04-27 Martin Jambor <mjambor@suse.cz>
28374
28375 PR ipa/99951
28376 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
28377 If removing a call statement LHS SSA name, release it.
28378
28379 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
28380
28381 PR target/100236
28382 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
28383 is valid before including it in the mask.
28384
28385 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
28386
28387 PR target/100270
28388 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
28389 SVE attributes.
28390
28391 2021-04-27 Richard Biener <rguenther@suse.de>
28392
28393 PR tree-optimization/100051
28394 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
28395 disambiguator based on access size vs. decl size.
28396
28397 2021-04-27 Richard Biener <rguenther@suse.de>
28398
28399 PR tree-optimization/100278
28400 * tree-ssa-pre.c (compute_avail): Give up when we cannot
28401 adjust TBAA beacuse of mismatching bases.
28402
28403 2021-04-27 Jakub Jelinek <jakub@redhat.com>
28404
28405 PR target/99405
28406 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
28407 For any_rotate define_insn_split and following splitters, use
28408 SWI iterator instead of SWI48.
28409
28410 2021-04-27 Richard Biener <rguenther@suse.de>
28411
28412 PR tree-optimization/99776
28413 * match.pd (bit_field_ref (ctor)): Relax element extract
28414 type compatibility checks.
28415
28416 2021-04-27 Cui,Lili <lili.cui@intel.com>
28417
28418 * common/config/i386/i386-common.c (processor_names):
28419 Sync processor_names with processor_type.
28420 * config/i386/i386-options.c (processor_cost_table):
28421 Sync processor_cost_table with processor_type.
28422
28423 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
28424
28425 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
28426 (irange::set): Call irange_set_1bit_anti_range for handling all
28427 1-bit ranges. Fall through on ~[MIN,MAX].
28428
28429 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
28430
28431 * value-range.cc (irange::legacy_num_pairs): Remove.
28432 (irange::invert): Change gcc_assert to gcc_checking_assert.
28433 * value-range.h (irange::num_pairs): Adjust for a cached
28434 num_pairs(). Also, rename all gcc_assert's to
28435 gcc_checking_assert's.
28436
28437 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
28438
28439 * value-range.cc (irange::operator=): Set m_kind.
28440 (irange::copy_to_legacy): Handle varying and undefined sources
28441 as a legacy copy since they can be easily copied.
28442 (irange::irange_set): Set m_kind.
28443 (irange::irange_set_anti_range): Same.
28444 (irange::set): Rename normalize_min_max to normalize_kind.
28445 (irange::verify_range): Adjust for multi-ranges having the
28446 m_kind field set.
28447 (irange::irange_union): Set m_kind.
28448 (irange::irange_intersect): Same.
28449 (irange::invert): Same.
28450 * value-range.h (irange::kind): Always return m_kind.
28451 (irange::varying_p): Rename to...
28452 (irange::varying_comptaible_p): ...this.
28453 (irange::undefined_p): Only look at m_kind.
28454 (irange::irange): Always set VR_UNDEFINED if applicable.
28455 (irange::set_undefined): Always set VR_UNDEFINED.
28456 (irange::set_varying): Always set m_kind to VR_VARYING.
28457 (irange::normalize_min_max): Rename to...
28458 (irange::normalize_kind): ...this.
28459
28460 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
28461
28462 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
28463 Adjust for constant_p including varying_p.
28464 * tree-vrp.c (vrp_prop::finalize): Same.
28465 (determine_value_range): Same.
28466 * vr-values.c (vr_values::range_of_expr): Same.
28467 * value-range.cc (irange::symbolic_p): Do not check varying_p.
28468 (irange::constant_p): Same.
28469
28470 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
28471
28472 * value-range.cc (irange::legacy_lower_bound): Replace
28473 !undefined_p check with num_ranges > 0.
28474 (irange::legacy_upper_bound): Same.
28475 * value-range.h (irange::type): Same.
28476 (irange::lower_bound): Same.
28477 (irange::upper_bound): Same.
28478
28479 2021-04-26 Richard Biener <rguenther@suse.de>
28480
28481 PR tree-optimization/99956
28482 * gimple-loop-interchange.cc (compute_access_stride):
28483 Try instantiating the access in a shallower loop nest
28484 if instantiating failed.
28485 (compute_access_strides): Pass adjustable loop_nest
28486 to compute_access_stride.
28487
28488 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
28489
28490 * doc/sourcebuild.texi (arm_cmse_hw): Document.
28491
28492 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28493
28494 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
28495
28496 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
28497 Nathan Sidwell <nathan@codesourcery.com>
28498 Tom de Vries <vries@codesourcery.com>
28499 Julian Brown <julian@codesourcery.com>
28500 Kwok Cheung Yeung <kcy@codesourcery.com>
28501
28502 * omp-offload.c (oacc_validate_dims): Implement
28503 '-Wopenacc-parallelism'.
28504 * doc/invoke.texi (-Wopenacc-parallelism): Document.
28505
28506 2021-04-26 Richard Biener <rguenther@suse.de>
28507
28508 * tree-cfg.h (gimplify_build1): Remove.
28509 (gimplify_build2): Likewise.
28510 (gimplify_build3): Likewise.
28511 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
28512 (gimplify_build2): Likewise.
28513 (gimplify_build3): Likewise.
28514 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
28515 Modernize.
28516 (gimplify_build2): Likewise.
28517 (gimplify_build3): Likewise.
28518 (tree_vec_extract): Use resimplify with following SSA edges.
28519 (expand_vector_parallel): Avoid passing NULL size/bitpos
28520 to tree_vec_extract.
28521 * expr.c (store_constructor): Deal with zero-element CTORs.
28522 * match.pd (bit_field_ref <vector CTOR>): Make sure to
28523 produce vector constants when possible.
28524
28525 2021-04-26 Richard Biener <rguenther@suse.de>
28526
28527 * tree-complex.c: Include gimple-fold.h.
28528 (expand_complex_addition): Use gimple_build.
28529 (expand_complex_multiplication_components): Likewise.
28530 (expand_complex_multiplication): Likewise.
28531 (expand_complex_div_straight): Likewise.
28532 (expand_complex_div_wide): Likewise.
28533 (expand_complex_division): Likewise.
28534 (expand_complex_conjugate): Likewise.
28535 (expand_complex_comparison): Likewise.
28536
28537 2021-04-26 Richard Biener <rguenther@suse.de>
28538
28539 * tree-ssa-phiopt.c (two_value_replacement): Remove use
28540 of legacy gimplify_buildN API.
28541
28542 2021-04-26 Richard Biener <rguenther@suse.de>
28543
28544 PR tree-optimization/99473
28545 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
28546 stores.
28547
28548 2021-04-26 Richard Biener <rguenther@suse.de>
28549
28550 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
28551 Use replace_call_with_value.
28552
28553 2021-04-26 Richard Biener <rguenther@suse.de>
28554
28555 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
28556 (update_gimple_call): Likewise.
28557 (update_call_from_tree): Likewise.
28558 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
28559 (valid_gimple_call_p): Likewise.
28560 (move_ssa_defining_stmt_for_defs): Likewise.
28561 (finish_update_gimple_call): Likewise.
28562 (update_gimple_call): Likewise.
28563 (update_call_from_tree): Likewise.
28564 (propagate_tree_value_into_stmt): Use replace_call_with_value.
28565 * gimple-fold.h (update_gimple_call): Declare.
28566 * gimple-fold.c (valid_gimple_rhs_p): Move here from
28567 tree-ssa-propagate.c.
28568 (update_gimple_call): Likewise.
28569 (valid_gimple_call_p): Likewise.
28570 (finish_update_gimple_call): Likewise, and simplify.
28571 (gimplify_and_update_call_from_tree): Implement
28572 update_call_from_tree functionality, avoid excessive
28573 push/pop_gimplify_context.
28574 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
28575 (gimple_fold_call): Likewise.
28576 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
28577 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
28578 (pass_fold_builtins::execute): Likewise.
28579 (optimize_stack_restore): Use replace_call_with_value.
28580 * tree-cfg.c (fold_loop_internal_call): Likewise.
28581 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
28582 only gimplify_and_update_call_from_tree.
28583 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
28584 (handle_builtin_strchr): Likewise.
28585 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
28586
28587 2021-04-26 Jakub Jelinek <jakub@redhat.com>
28588
28589 PR debug/100255
28590 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
28591 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
28592 register keywords.
28593
28594 2021-04-25 liuhongt <hongtao.liu@intel.com>
28595
28596 PR target/98911
28597 * config/i386/i386-builtin.def (BDESC): Change the icode of
28598 the following builtins to CODE_FOR_nothing.
28599 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
28600 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
28601 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
28602 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
28603 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
28604 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
28605 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
28606 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
28607 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
28608 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
28609 (sse2_eq<mode>3): Ditto.
28610 (sse4_1_eqv2di3): Ditto.
28611 (sse2_gt<mode>3): Rename to ..
28612 (*sse2_gt<mode>3): .. this.
28613
28614 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
28615
28616 Revert:
28617 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
28618
28619 PR target/100152
28620 * config/darwin.c (darwin_binds_local_p): Assume that any
28621 public symbol might be interposed for PIC code. Update function
28622 header comment to reflect current Darwin capability.
28623
28624 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
28625
28626 PR target/100152
28627 * config/darwin.c (darwin_binds_local_p): Assume that any
28628 public symbol might be interposed for PIC code. Update function
28629 header comment to reflect current Darwin capability.
28630
28631 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
28632
28633 * doc/sourcebuild.texi: Document no-opts and any-opts target
28634 selectors.
28635
28636 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
28637
28638 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
28639
28640 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
28641
28642 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
28643
28644 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
28645
28646 PR target/100041
28647 * config/i386/i386-options.c (ix86_option_override_internal):
28648 Error out when -m96bit-long-double is used with 64bit targets.
28649 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
28650
28651 2021-04-23 Martin Liska <mliska@suse.cz>
28652
28653 * lto-wrapper.c: Remove FIXME about usage of
28654 hardware_concurrency. The function is not on par with
28655 what we have now.
28656
28657 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
28658
28659 PR target/100182
28660 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
28661 Copy operand 3 to operand 4. Use sse_reg_operand
28662 as operand 3 predicate.
28663 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
28664 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
28665 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
28666 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
28667 Copy operand 1 to operand 0.
28668 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
28669 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
28670 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
28671
28672 2021-04-23 Alex Coplan <alex.coplan@arm.com>
28673
28674 PR rtl-optimization/100230
28675 * early-remat.c (early_remat::sort_candidates): Use delete[]
28676 instead of delete for array allocated with new[].
28677
28678 2021-04-23 Richard Biener <rguenther@suse.de>
28679
28680 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
28681 (capture_info::capture_info): Likewise.
28682 (capture_info::walk_match): Likewise.
28683 (expr::gen_transform): Likewise.
28684 (dt_simplify::gen_1): Likewise.
28685 * gimple-match-head.c (maybe_resimplify_conditional_op):
28686 Remove VEC_COND_EXPR special-casing.
28687 (gimple_simplify): Likewise.
28688 * gimple.c (gimple_could_trap_p_1): Adjust.
28689 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
28690 to participate in PRE.
28691
28692 2021-04-23 Richard Biener <rguenther@suse.de>
28693
28694 * cfganal.c (connect_infinite_loops_to_exit): First call
28695 add_noreturn_fake_exit_edges.
28696 * ipa-sra.c (process_scan_results): Do not call the now redundant
28697 add_noreturn_fake_exit_edges.
28698 * predict.c (tree_estimate_probability): Likewise.
28699 (rebuild_frequencies): Likewise.
28700 * store-motion.c (one_store_motion_pass): Likewise.
28701
28702 2021-04-23 Richard Biener <rguenther@suse.de>
28703
28704 PR tree-optimization/100222
28705 * predict.c (pass_profile::execute): Remove redundant call to
28706 mark_irreducible_loops.
28707 (report_predictor_hitrates): Likewise.
28708
28709 2021-04-23 Richard Biener <rguenther@suse.de>
28710
28711 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
28712 valid_gimple_rhs_p by instead gimplifying to one.
28713
28714 2021-04-23 Richard Biener <rguenther@suse.de>
28715
28716 PR tree-optimization/99971
28717 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
28718 Always use TBAA for loads.
28719
28720 2021-04-23 liuhongt <hongtao.liu@intel.com>
28721
28722 PR target/100093
28723 * config/i386/i386-options.c (ix86_option_override_internal):
28724 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
28725 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
28726 by target attribute.
28727
28728 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
28729
28730 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
28731 DWARF2_DEBUG.
28732 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
28733
28734 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
28735
28736 * config.gcc (powerpc-ibm-aix6.*): Remove.
28737 * config/rs6000/aix61.h: Delete.
28738
28739 2021-04-22 Martin Liska <mliska@suse.cz>
28740
28741 PR testsuite/100159
28742 PR testsuite/100192
28743 * builtins.c (expand_builtin): Fix typos and missing comments.
28744 * dwarf2out.c (gen_subprogram_die): Likewise.
28745 (gen_struct_or_union_type_die): Likewise.
28746
28747 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
28748
28749 PR target/100119
28750 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
28751 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
28752
28753 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
28754
28755 * config/i386/darwin.h (TARGET_64BIT): Remove definition
28756 based on TARGET_ISA_64BIT.
28757 (TARGET_64BIT_P): Remove definition based on
28758 TARGET_ISA_64BIT_P().
28759
28760 2021-04-21 Martin Liska <mliska@suse.cz>
28761
28762 Revert:
28763 2021-04-21 Martin Liska <mliska@suse.cz>
28764
28765 * lto-wrapper.c (cpuset_popcount): Remove.
28766 (init_num_threads): Remove and use hardware_concurrency.
28767
28768 2021-04-21 Martin Liska <mliska@suse.cz>
28769
28770 PR jit/98615
28771 * main.c (main): Call toplev::finalize in CHECKING_P mode.
28772 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
28773 when incremental LTO linking happens.
28774
28775 2021-04-21 Martin Liska <mliska@suse.cz>
28776
28777 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
28778 makeserver cannot be detected, then use -flto=N fallback.
28779
28780 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
28781
28782 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
28783 default to yes for aarch64-linux-gnu.
28784 * configure: Regenerate.
28785
28786 2021-04-21 Martin Liska <mliska@suse.cz>
28787
28788 * lto-wrapper.c (cpuset_popcount): Remove.
28789 (init_num_threads): Remove and use hardware_concurrency.
28790
28791 2021-04-21 Martin Liska <mliska@suse.cz>
28792
28793 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
28794 which remains to be '(... || 0)' and clang complains about it.
28795 * dwarf2out.c (AT_vms_delta): Declare conditionally.
28796 (add_AT_vms_delta): Likewise.
28797 * tree.c (fld_simplified_type): Use rather more common pattern
28798 for disabling of something (#if 0).
28799 (get_tree_code_name): Likewise.
28800 (verify_type_variant): Likewise.
28801
28802 2021-04-21 Martin Liska <mliska@suse.cz>
28803
28804 * config/i386/i386-expand.c (decide_alignment): Use newly named
28805 macro TARGET_CPU_P.
28806 * config/i386/i386.c (ix86_decompose_address): Likewise.
28807 (ix86_address_cost): Likewise.
28808 (ix86_lea_outperforms): Likewise.
28809 (ix86_avoid_lea_for_addr): Likewise.
28810 (ix86_add_stmt_cost): Likewise.
28811 * config/i386/i386.h (TARGET_*): Remove.
28812 (TARGET_CPU_P): New macro.
28813 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
28814 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
28815 (swap_top_of_ready_list): Likewise.
28816 (ix86_atom_sched_reorder): Likewise.
28817 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
28818 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
28819
28820 2021-04-21 Martin Liska <mliska@suse.cz>
28821
28822 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
28823 Define.
28824 (SET_TARGET_NO_SAHF): Likewise.
28825 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
28826 (SET_TARGET_PREFETCH_SSE): Likewise.
28827 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
28828 (SET_TARGET_NO_TUNE): Likewise.
28829 (TARGET_EXPLICIT_NO_80387_P): Likewise.
28830 (SET_TARGET_NO_80387): Likewise.
28831 (DEF_PTA): New.
28832 * config/i386/i386.h (TARGET_*): Remove.
28833 * opth-gen.awk: Generate new used macros.
28834
28835 2021-04-21 Martin Liska <mliska@suse.cz>
28836
28837 * config/i386/i386.h (PTA_*): Remove.
28838 (enum pta_flag): New.
28839 (DEF_PTA): Generate PTA_* values from i386-isa.def.
28840 * config/i386/i386-isa.def: New file.
28841
28842 2021-04-21 Alex Coplan <alex.coplan@arm.com>
28843
28844 PR target/99988
28845 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
28846 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
28847 jump table targets.
28848
28849 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
28850
28851 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
28852 x86_64-*-* targets.
28853 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
28854 New.
28855 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
28856 (ix86_handle_option): Handle -mmwait.
28857 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
28858 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
28859 __builtin_ia32_monitor and __builtin_ia32_mwait.
28860 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
28861 (ix86_valid_target_attribute_inner_p): Likewise.
28862 (ix86_option_override_internal): Enable mwait/monitor
28863 instructions for -msse3.
28864 * config/i386/i386.h (TARGET_MWAIT): New.
28865 (TARGET_MWAIT_P): Likewise.
28866 * config/i386/i386.opt: Add -mmwait.
28867 * config/i386/mwaitintrin.h: New file.
28868 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
28869 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
28870 TARGET_MWAIT.
28871 (@sse3_monitor_<mode>): Likewise.
28872 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
28873 * doc/extend.texi: Document mwait target attribute.
28874 * doc/invoke.texi: Document -mmwait.
28875
28876 2021-04-21 Martin Liska <mliska@suse.cz>
28877
28878 * config/i386/i386-options.c (DEF_ENUM): Remove it.
28879 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
28880 * config/i386/stringop.def (DEF_ENUM): Likewise.
28881
28882 2021-04-21 Martin Liska <mliska@suse.cz>
28883
28884 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
28885 of print_generic_expr.
28886
28887 2021-04-21 Jakub Jelinek <jakub@redhat.com>
28888
28889 PR rtl-optimization/100148
28890 * cprop.c (constprop_register): Use next_nondebug_insn instead of
28891 NEXT_INSN.
28892
28893 2021-04-21 Martin Liska <mliska@suse.cz>
28894
28895 PR ipa/98815
28896 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
28897 free_dominance_info calls.
28898
28899 2021-04-21 Richard Biener <rguenther@suse.de>
28900
28901 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
28902 parameter (and assume it to be false).
28903 (fold_gimple_assign): Adjust, remove all callers of
28904 maybe_fold_reference calling it with is_lhs true.
28905 (gimple_fold_call): Likewise.
28906 (fold_stmt_1): Likewise.
28907
28908 2021-04-21 Richard Biener <rguenther@suse.de>
28909
28910 * fold-const.c (pedantic_non_lvalue_loc): Remove.
28911 (fold_binary_loc): Adjust.
28912 (fold_ternary_loc): Likewise.
28913
28914 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
28915
28916 PR middle-end/100130
28917 * varasm.c (get_block_for_decl): Make sure that any use of the
28918 retain attribute matches the section's retain flag.
28919 (switch_to_section): Check for retain mismatches even when
28920 changing sections, but do not warn if the given decl is the
28921 section's named.decl.
28922 (output_object_block): Pass the first decl in the block (if any)
28923 to switch_to_section.
28924
28925 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
28926
28927 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28928 __CRC32__ for -mcrc32.
28929 * config/i386/i386-options.c (ix86_option_override_internal):
28930 Enable crc32 instruction for -msse4.2.
28931 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
28932 check.
28933 (sse4_2_crc32di): Likewise.
28934 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
28935 intrinsics.
28936
28937 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
28938
28939 PR target/100108
28940 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
28941 OPTION_MASK_ISEL.
28942
28943 2021-04-20 Martin Liska <mliska@suse.cz>
28944
28945 * doc/invoke.texi: Fix typo.
28946 * params.opt: Likewise.
28947
28948 2021-04-20 Martin Liska <mliska@suse.cz>
28949
28950 * doc/invoke.texi: Document new param.
28951
28952 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
28953
28954 PR tree-optimization/100081
28955 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
28956 rather than gori_compute_cache.
28957 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
28958 (range_def_chain::m_logical_depth): New member.
28959 (range_def_chain::range_def_chain): Initialize m_logical_depth.
28960 (range_def_chain::get_def_chain): Don't build defchains through more
28961 than LOGICAL_LIMIT logical expressions.
28962 * params.opt (param_ranger_logical_depth): New.
28963
28964 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
28965
28966 PR target/100067
28967 * config/arm/arm.c (arm_configure_build_target): Do not strip
28968 extended FPU/SIMD feature bits from the target ISA when -mfpu
28969 is specified (partial revert of r11-8168).
28970
28971 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
28972
28973 * params.opt (-param=openacc-kernels=): Add.
28974 * omp-oacc-kernels-decompose.cc
28975 (pass_omp_oacc_kernels_decompose::gate): Use it.
28976 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
28977 (--param): ... here, 'openacc-kernels'.
28978
28979 2021-04-19 Martin Liska <mliska@suse.cz>
28980
28981 PR c/100143
28982 * gengtype.c (finish_root_table): Align function arguments
28983 in between declaration and definition.
28984
28985 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
28986
28987 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
28988 frames larger than the SEH maximum frame size.
28989
28990 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28991
28992 PR rtl-optimization/99927
28993 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
28994 is dead, just drop it.
28995
28996 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
28997
28998 PR d/99914
28999 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
29000 * doc/tm.texi: Regenerate.
29001 * doc/tm.texi.in (D language and ABI): Add @hook for
29002 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
29003
29004 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
29005
29006 * config/darwin-d.c (darwin_d_handle_target_object_format): New
29007 function.
29008 (darwin_d_register_target_info): New function.
29009 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29010 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
29011 function.
29012 (dragonfly_d_register_target_info): New function.
29013 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29014 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
29015 function.
29016 (freebsd_d_register_target_info): New function.
29017 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29018 * config/glibc-d.c (glibc_d_handle_target_object_format): New
29019 function.
29020 (glibc_d_register_target_info): New function.
29021 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29022 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
29023 function.
29024 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
29025 as handler for objectFormat key.
29026 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
29027 function.
29028 (winnt_d_register_target_info): New function.
29029 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29030 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
29031 function.
29032 (netbsd_d_register_target_info): New function.
29033 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29034 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
29035 function.
29036 (openbsd_d_register_target_info): New function.
29037 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29038 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
29039 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
29040 handler for objectFormat key.
29041 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
29042 function.
29043 (rs6000_d_register_target_info): Add
29044 rs6000_d_handle_target_object_format as handler for objectFormat key.
29045 * config/sol2-d.c (solaris_d_handle_target_object_format): New
29046 function.
29047 (solaris_d_register_target_info): New function.
29048 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
29049
29050 2021-04-16 Jakub Jelinek <jakub@redhat.com>
29051
29052 PR target/91710
29053 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
29054 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
29055 alignment.
29056 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
29057 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
29058 the old and new alignment after applying MIN/MAX to it is different.
29059
29060 2021-04-16 Tamar Christina <tamar.christina@arm.com>
29061
29062 PR target/100048
29063 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
29064 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
29065 TRN optab.
29066 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
29067
29068 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
29069
29070 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
29071 this section and its subsections.
29072
29073 2021-04-16 Jakub Jelinek <jakub@redhat.com>
29074
29075 PR target/100075
29076 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
29077 define_insn patterns.
29078
29079 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
29080
29081 PR rtl-optimization/98689
29082 * reg-notes.def (UNTYPED_CALL): New note.
29083 * combine.c (distribute_notes): Handle it.
29084 * emit-rtl.c (try_split): Likewise.
29085 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
29086 that calls with the note implicitly set all return value registers.
29087 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
29088 to untyped_calls.
29089
29090 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
29091
29092 PR rtl-optimization/99596
29093 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
29094 register accesses for const calls. Assume that pure functions
29095 can only read from global registers. Ignore cases in which
29096 the stack pointer has been marked global.
29097
29098 2021-04-16 Jakub Jelinek <jakub@redhat.com>
29099
29100 PR target/99767
29101 * tree-vect-loop.c (vect_transform_loop): Don't remove just
29102 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
29103 them by their last argument.
29104
29105 2021-04-15 Martin Liska <mliska@suse.cz>
29106
29107 * doc/invoke.texi: Other params don't use it, remove it.
29108
29109 2021-04-15 Richard Biener <rguenther@suse.de>
29110
29111 * gimple-builder.h: Add deprecation note.
29112
29113 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
29114
29115 PR c++/98852
29116 * attribs.h (restrict_type_identity_attributes_to): Declare.
29117 * attribs.c (restrict_type_identity_attributes_to): New function.
29118
29119 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
29120
29121 PR c/98852
29122 * attribs.h (affects_type_identity_attributes): Declare.
29123 * attribs.c (remove_attributes_matching): New function.
29124 (affects_type_identity_attributes): Likewise.
29125
29126 2021-04-15 Jakub Jelinek <jakub@redhat.com>
29127
29128 PR target/100056
29129 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
29130 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
29131 ZERO_EXTEND, SIGN_EXTEND or AND.
29132
29133 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
29134
29135 PR rtl-optimization/99929
29136 * rtl.h (same_vector_encodings_p): New function.
29137 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
29138 * cselib.c (rtx_equal_for_cselib_1): Likewise.
29139 * jump.c (rtx_renumbered_equal_p): Likewise.
29140 * lra-constraints.c (operands_match_p): Likewise.
29141 * reload.c (operands_match_p): Likewise.
29142 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
29143
29144 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
29145
29146 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
29147 more information about variable-length CONST_VECTORs.
29148
29149 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
29150
29151 PR rtl-optimization/100066
29152 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
29153 ordered modes when choosing splitting mode for hard reg.
29154
29155 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
29156
29157 PR target/99246
29158 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
29159 New function.
29160 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
29161
29162 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
29163
29164 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
29165 for mask operand types.
29166 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
29167 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
29168 operand.
29169 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
29170 immediate operand.
29171 * config/s390/s390.c (s390_const_operand_ok): Check the new
29172 operand types and generate a list of valid values.
29173
29174 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
29175
29176 * doc/tm.texi: Regenerate.
29177 * doc/tm.texi.in (D language and ABI): Add @hook for
29178 TARGET_D_REGISTER_OS_TARGET_INFO.
29179
29180 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
29181
29182 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
29183 function.
29184 (aarch64_d_register_target_info): New function.
29185 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
29186 Declare.
29187 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
29188 Define.
29189 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
29190 (arm_d_register_target_info): New function.
29191 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
29192 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29193 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
29194 (ix86_d_register_target_info): New function.
29195 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
29196 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29197 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
29198 (mips_d_register_target_info): New function.
29199 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
29200 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29201 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
29202 (pa_d_register_target_info): New function.
29203 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
29204 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29205 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
29206 function.
29207 (riscv_d_register_target_info): New function.
29208 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
29209 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29210 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
29211 function.
29212 (rs6000_d_register_target_info): New function.
29213 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
29214 Declare.
29215 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29216 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
29217 (s390_d_register_target_info): New function.
29218 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
29219 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29220 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
29221 function.
29222 (sparc_d_register_target_info): New function.
29223 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
29224 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
29225 * doc/tm.texi: Regenerate.
29226 * doc/tm.texi.in (D language and ABI): Add @hook for
29227 TARGET_D_REGISTER_CPU_TARGET_INFO.
29228
29229 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
29230
29231 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
29232 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
29233 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
29234 * doc/tm.texi: Regenerate.
29235 * doc/tm.texi.in (D language and ABI): Add @hook for
29236 TARGET_D_HAS_STDCALL_CONVENTION.
29237
29238 2021-04-14 Richard Biener <rguenther@suse.de>
29239
29240 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
29241 VEC_COND_EXPRs have a gimple_val condition.
29242 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
29243 can no longer have a GENERIC condition.
29244
29245 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
29246
29247 PR target/100067
29248 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
29249 from the isa_delta when -mfpu has been used.
29250 (arm_options_perform_arch_sanity_checks): It's the architecture that
29251 lacks an FPU not the processor.
29252
29253 2021-04-13 Richard Biener <rguenther@suse.de>
29254
29255 PR tree-optimization/100053
29256 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
29257 not use optimistic dominance queries for backedges to validate
29258 predicated values.
29259 (dominated_by_p_w_unex): Add parameter to ignore executable
29260 state on backedges.
29261 (rpo_elim::eliminate_avail): Adjust.
29262
29263 2021-04-13 Jakub Jelinek <jakub@redhat.com>
29264
29265 PR target/100028
29266 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
29267 *aarch64_bfxilsi_extrdi): New define_insn patterns.
29268
29269 2021-04-13 Jakub Jelinek <jakub@redhat.com>
29270
29271 PR target/99648
29272 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
29273 outermode, return NULL if the result doesn't encode back to the
29274 original byte sequence.
29275 (simplify_gen_subreg): Don't create SUBREGs from constants to
29276 MODE_COMPOSITE_P outermode.
29277
29278 2021-04-12 Jakub Jelinek <jakub@redhat.com>
29279
29280 PR rtl-optimization/99905
29281 * combine.c (expand_compound_operation): If pos + len > modewidth,
29282 perform the right shift by pos in inner_mode and then convert to mode,
29283 instead of trying to simplify a shift of rtx with inner_mode by pos
29284 as if it was a shift in mode.
29285
29286 2021-04-12 Jakub Jelinek <jakub@redhat.com>
29287
29288 PR debug/99830
29289 * combine.c (simplify_and_const_int_1): Don't optimize varop
29290 away if it has side-effects.
29291
29292 2021-04-12 Martin Liska <mliska@suse.cz>
29293
29294 * doc/extend.texi: Escape @smallexample content.
29295
29296 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
29297
29298 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
29299 alternative in order to load a DFP zero.
29300
29301 2021-04-12 Martin Liska <mliska@suse.cz>
29302
29303 * doc/extend.texi: Be more precise in documentation
29304 of symver attribute.
29305
29306 2021-04-12 Martin Liska <mliska@suse.cz>
29307
29308 PR sanitizer/99877
29309 * gimplify.c (gimplify_expr): Right now, we unpoison all
29310 variables before a goto <dest>. We should not do it if we are
29311 in a omp context.
29312
29313 2021-04-12 Cui,Lili <lili.cui@intel.com>
29314
29315 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
29316 rocketlake.
29317 * common/config/i386/i386-common.c (processor_names): Add
29318 rocketlake.
29319 (processor_alias_table): Add rocketlake.
29320 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
29321 INTEL_COREI7_ROCKETLAKE.
29322 * config.gcc: Add -march=rocketlake.
29323 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29324 rocketlake.
29325 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
29326 (processor_cost_table): Add rocketlake cost.
29327 * config/i386/i386.h (ix86_size_cost) : Define
29328 TARGET_ROCKETLAKE.
29329 (processor_type) : Add PROCESSOR_ROCKETLAKE.
29330 (PTA_ROCKETLAKE): Ditto.
29331 * doc/extend.texi: Add rocketlake.
29332 * doc/invoke.texi: Add rocketlake.
29333
29334 2021-04-12 Cui,Lili <lili.cui@intel.com>
29335
29336 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
29337 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
29338 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
29339 * doc/invoke.texi: Change alderlake ISA list.
29340
29341 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
29342
29343 PR middle-end/98088
29344 * omp-expand.c (expand_oacc_collapse_init): Update condition in
29345 a gcc_assert.
29346
29347 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
29348
29349 PR target/99744
29350 * config/i386/serializeintrin.h (_serialize): Defined as macro.
29351
29352 2021-04-10 Jakub Jelinek <jakub@redhat.com>
29353
29354 PR lto/99849
29355 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
29356 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
29357
29358 2021-04-10 Jakub Jelinek <jakub@redhat.com>
29359
29360 PR middle-end/99989
29361 * gimple-ssa-warn-alloca.c
29362 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
29363 0 with integer precision unconditionally.
29364
29365 2021-04-10 Jakub Jelinek <jakub@redhat.com>
29366
29367 PR rtl-optimization/98601
29368 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
29369 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
29370 unaligned_mems handle VOIDmode like BLKmode.
29371
29372 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
29373
29374 PR lto/99857
29375 * tree.c (free_lang_data_in_decl): Do not release body of
29376 declare_variant_alt.
29377
29378 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
29379
29380 * config/aarch64/aarch64.c (aarch64_option_restore): If the
29381 architecture was specified explicitly and the tuning wasn't,
29382 tune for the architecture rather than the configured default CPU.
29383
29384 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
29385
29386 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
29387 as the temporary register.
29388
29389 2021-04-09 Martin Liska <mliska@suse.cz>
29390
29391 * doc/extend.texi: Move non-target attributes on the top level.
29392
29393 2021-04-09 Martin Liska <mliska@suse.cz>
29394
29395 * doc/invoke.texi: Document minimum and maximum value of the
29396 argument for both supported compression algorithms.
29397
29398 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
29399
29400 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
29401 TLS BSS before TLS data.
29402 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
29403
29404 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
29405
29406 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
29407
29408 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
29409
29410 * match.pd: Extend vec_cond folds to handle shifts.
29411
29412 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
29413
29414 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
29415 peephole.
29416
29417 2021-04-08 Alex Coplan <alex.coplan@arm.com>
29418
29419 PR target/99647
29420 * config/arm/iterators.md (MVE_vecs): New.
29421 (V_elem): Also handle V2DF.
29422 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
29423 (*mve_vdup<mode>): ... this. Remove second alternative since
29424 vec_duplicate of const_int is not canonical RTL, and we don't
29425 want to match symbol_refs.
29426 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
29427
29428 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
29429
29430 * fold-const.c (fold_single_bit_test): Fix typo.
29431 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
29432 instead.
29433
29434 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
29435
29436 PR tree-optimization/97513
29437 * tree-vect-slp.c (vect_add_slp_permutation): New function,
29438 split out from...
29439 (vectorizable_slp_permutation): ...here. Detect cases in which
29440 all VEC_PERM_EXPRs are guaranteed to have the same stepped
29441 permute vector and only generate one permute vector for that case.
29442 Extend that case to handle variable-length vectors.
29443
29444 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
29445
29446 PR tree-optimization/99873
29447 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
29448 (vect_build_slp_instance): Don't split store groups that could
29449 use IFN_STORE_LANES.
29450
29451 2021-04-07 Jakub Jelinek <jakub@redhat.com>
29452
29453 PR target/99872
29454 * varasm.c (output_constant_pool_contents): Don't strip name encoding
29455 from XSTR (desc->sym, 0) or from label before passing those to
29456 ASM_OUTPUT_DEF.
29457
29458 2021-04-07 Richard Biener <rguenther@suse.de>
29459
29460 PR tree-optimization/99954
29461 * tree-loop-distribution.c: Include tree-affine.h.
29462 (generate_memcpy_builtin): Try using tree-affine to prove
29463 non-overlap.
29464 (loop_distribution::classify_builtin_ldst): Always classify
29465 as PKIND_MEMMOVE.
29466
29467 2021-04-07 Richard Biener <rguenther@suse.de>
29468
29469 PR tree-optimization/99947
29470 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
29471 steps vector to avoid pushing elements from the reallocated
29472 vector.
29473
29474 2021-04-07 Richard Biener <rguenther@suse.de>
29475
29476 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
29477 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
29478 printing...
29479 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
29480 function.
29481 (debug_vn_reference_ops): New.
29482
29483 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
29484
29485 PR tree-optimization/98736
29486 * tree-loop-distribution.c
29487 * (loop_distribution::bb_top_order_init):
29488 Compute RPO with programing order preserved by calling function
29489 rev_post_order_and_mark_dfs_back_seme.
29490
29491 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
29492
29493 PR target/99781
29494 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
29495 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
29496 functions.
29497 (process_bb_lives): Don't update biggest mode of hard reg for
29498 implicit in multi-register group. Use the new functions for
29499 updating dead_set and unused_set by register notes.
29500
29501 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
29502
29503 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
29504 instead of *.
29505
29506 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
29507
29508 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
29509 (skylake_memset): Likewise.
29510 (skylake_cost): Change CLEAR_RATIO to 17.
29511 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
29512 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
29513 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
29514
29515 2021-04-06 Richard Biener <rguenther@suse.de>
29516
29517 PR tree-optimization/99880
29518 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
29519 set vectorized defs of relevant PHIs.
29520
29521 2021-04-06 Richard Biener <rguenther@suse.de>
29522
29523 PR tree-optimization/99924
29524 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
29525 nodes w/o scalar stmts as visited.
29526
29527 2021-04-06 Alex Coplan <alex.coplan@arm.com>
29528
29529 PR target/99748
29530 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
29531 PCS for [su]fix_optab.
29532
29533 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
29534
29535 * config/darwin.c (machopic_legitimize_pic_address): Check
29536 that the current pic register is one of the hard reg set
29537 before setting liveness.
29538
29539 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
29540
29541 * config/darwin.c (machopic_legitimize_pic_address): Fix
29542 whitespace, remove unused code.
29543
29544 2021-04-03 Jakub Jelinek <jakub@redhat.com>
29545
29546 PR tree-optimization/99882
29547 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
29548 pointer type.
29549
29550 2021-04-03 Jakub Jelinek <jakub@redhat.com>
29551
29552 PR rtl-optimization/99863
29553 * dse.c (replace_read): Drop regs_live argument. Instead of
29554 regs_live, use store_insn->fixed_regs_live if non-NULL,
29555 otherwise punt if insns sequence clobbers or sets any hard
29556 registers.
29557
29558 2021-04-03 Jakub Jelinek <jakub@redhat.com>
29559
29560 PR testsuite/98125
29561 * targhooks.h (default_print_patchable_function_entry_1): Declare.
29562 * targhooks.c (default_print_patchable_function_entry_1): New function,
29563 copied from default_print_patchable_function_entry with an added flags
29564 argument.
29565 (default_print_patchable_function_entry): Rewritten into a small
29566 wrapper around default_print_patchable_function_entry_1.
29567 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
29568 Redefine.
29569 (rs6000_print_patchable_function_entry): New function.
29570
29571 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
29572
29573 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
29574
29575 2021-04-01 Jason Merrill <jason@redhat.com>
29576
29577 PR c++/98481
29578 * common.opt: Document v15 and v16.
29579
29580 2021-04-01 Richard Biener <rguenther@suse.de>
29581
29582 PR tree-optimization/99863
29583 * gimplify.c (gimplify_init_constructor): Recompute vector
29584 constructor flags.
29585
29586 2021-04-01 Jakub Jelinek <jakub@redhat.com>
29587
29588 * doc/extend.texi (symver attribute): Fix up syntax errors
29589 in the examples.
29590
29591 2021-04-01 Jakub Jelinek <jakub@redhat.com>
29592
29593 PR tree-optimization/96573
29594 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
29595 also pointer types.
29596
29597 2021-04-01 Richard Biener <rguenther@suse.de>
29598
29599 PR tree-optimization/99856
29600 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
29601 precision to vector element precision.
29602
29603 2021-04-01 Martin Jambor <mjambor@suse.cz>
29604
29605 PR tree-optimization/97009
29606 * tree-sra.c (access_or_its_child_written): New function.
29607 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
29608 test.
29609
29610 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
29611
29612 PR ipa/98265
29613 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
29614
29615 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
29616
29617 PR target/99133
29618 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
29619 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
29620 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
29621 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
29622 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
29623 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
29624 Likewise.
29625 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
29626 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
29627 (define_attr "prefixed"): Update initializer.
29628
29629 2021-03-31 Jakub Jelinek <jakub@redhat.com>
29630
29631 PR debug/99490
29632 * dwarf2out.c (debug_ranges_dwo_section): New variable.
29633 (DW_RANGES_IDX_SKELETON): Define.
29634 (struct dw_ranges): Add begin_entry and end_entry members.
29635 (DEBUG_DWO_RNGLISTS_SECTION): Define.
29636 (add_ranges_num): Adjust r initializer for addition of *_entry
29637 members.
29638 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
29639 set idx to DW_RANGES_IDX_SKELETON.
29640 (use_distinct_base_address_for_range): New function.
29641 (index_rnglists): Don't set r->idx if it is equal to
29642 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
29643 r->end_entry for -gsplit-dwarf if those will be needed by
29644 output_rnglists.
29645 (output_rnglists): Add DWO argument. If true, switch to
29646 debug_ranges_dwo_section rather than debug_ranges_section.
29647 Adjust l1/l2 label indexes. Only output the offset table when
29648 dwo is true and don't include in there the skeleton range
29649 entry if present. For -gsplit-dwarf, skip ranges that belong
29650 to the other rnglists section. Change return type from void
29651 to bool and return true if there are any range entries for
29652 the other section. For dwarf_split_debug_info use
29653 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
29654 entries instead of DW_RLE_start_end, DW_RLE_start_length and
29655 DW_RLE_base_address. Use use_distinct_base_address_for_range.
29656 (init_sections_and_labels): Initialize debug_ranges_dwo_section
29657 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
29658 and range_base_label indexes.
29659 (dwarf2out_finish): Call index_rnglists earlier before finalizing
29660 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
29661 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
29662 with different dwo arguments.
29663 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
29664
29665 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
29666
29667 PR tree-optimization/98268
29668 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
29669 recompute_tree_invariant_for_addr_expr after successfully
29670 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
29671
29672 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
29673
29674 PR tree-optimization/99726
29675 * tree-data-ref.c (create_intersect_range_checks_index): Bail
29676 out if there is more than one access function SCEV for the loop
29677 being versioned.
29678
29679 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
29680
29681 PR rtl-optimization/97141
29682 PR rtl-optimization/98726
29683 * emit-rtl.c (valid_for_const_vector_p): Return true for
29684 CONST_POLY_INT_P.
29685 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
29686 poly_wide_int instead of a wide_int.
29687 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
29688 of a wide_int.
29689 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
29690 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
29691 false for CONST_VECTORs that cannot be forced to memory.
29692 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
29693 is too complex to force to memory, build it up from individual
29694 elements instead.
29695
29696 2021-03-31 Jan Hubicka <jh@suse.cz>
29697
29698 PR lto/99447
29699 * cgraph.c (cgraph_node::release_body): Fix overactive check.
29700
29701 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
29702
29703 PR target/99786
29704 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
29705 for V4HI and V2SI.
29706
29707 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
29708
29709 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
29710 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
29711 to SImode.
29712 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
29713 "rep movsb/stosb" only for known sizes.
29714 * config/i386/i386-options.c (processor_cost_table): Use Ice
29715 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
29716 Rapids and Alder Lake.
29717 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
29718 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
29719 (icelake_memset): Likewise.
29720 (icelake_cost): Likewise.
29721 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
29722 New.
29723
29724 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
29725
29726 PR target/98119
29727 * config/aarch64/aarch64.c
29728 (aarch64_vectorize_preferred_vector_alignment): Query the size
29729 of the provided SVE vector; do not assume that all SVE vectors
29730 have the same size.
29731
29732 2021-03-31 Jan Hubicka <jh@suse.cz>
29733
29734 PR lto/99447
29735 * cgraph.c (cgraph_node::release_body): Remove all callers and
29736 references.
29737 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
29738 * cgraphunit.c (cgraph_node::expand): And here.
29739
29740 2021-03-31 Martin Liska <mliska@suse.cz>
29741
29742 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
29743 and one negated condition.
29744
29745 2021-03-31 Jakub Jelinek <jakub@redhat.com>
29746 Richard Sandiford <richard.sandiford@arm.com>
29747
29748 PR target/99813
29749 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
29750 constraints on operands[2] and similarly 0 and rk constraints
29751 on operands[1] corresponding to that.
29752
29753 2021-03-31 Jakub Jelinek <jakub@redhat.com>
29754
29755 PR bootstrap/98860
29756 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
29757 linker doesn't support DWARF sections new in DWARF5.
29758 * config/i386/i386-options.c (ix86_option_override_internal): Default
29759 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
29760 targets.
29761 * config.in: Regenerated.
29762 * configure: Regenerated.
29763
29764 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29765
29766 PR target/99820
29767 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
29768 available issue_info before using it.
29769
29770 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29771
29772 PR target/99822
29773 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
29774 in operand 1.
29775
29776 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
29777
29778 PR target/99718
29779 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
29780 (altivec_lvsl_reg_<mode>): ... this.
29781 (altivec_lvsr_reg): Change to ...
29782 (altivec_lvsr_reg_<mode>): ... this.
29783 * config/rs6000/predicates.md (vec_set_index_operand): New.
29784 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29785 Enable 32bit variable vec_insert for all TARGET_VSX.
29786 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
29787 Enable 32bit variable vec_insert for p9 and above.
29788 (rs6000_expand_vector_set_var_p8): Rename to ...
29789 (rs6000_expand_vector_set_var_p7): ... this.
29790 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
29791 position.
29792 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
29793 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
29794 gen_altivec_lvsr_reg_di.
29795
29796 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
29797
29798 PR target/99744
29799 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
29800 (__rdtscp): Likewise.
29801
29802 2021-03-30 Tamar Christina <tamar.christina@arm.com>
29803
29804 PR tree-optimization/99825
29805 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
29806 Reject non-mult 2 lanes.
29807
29808 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
29809
29810 PR target/99773
29811 * config/arm/arm.c (arm_file_start): Fix emission of
29812 Tag_ABI_VFP_args attribute.
29813
29814 2021-03-30 Richard Biener <rguenther@suse.de>
29815
29816 PR tree-optimization/99824
29817 * stor-layout.c (set_min_and_max_values_for_integral_type):
29818 Assert the precision is within the bounds of
29819 WIDE_INT_MAX_PRECISION.
29820 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
29821 the outermost component ref only to lower the access size
29822 and initialize that from the access type.
29823
29824 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
29825
29826 PR target/98136
29827 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
29828 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
29829
29830 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
29831
29832 * config/aarch64/aarch64.md
29833 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
29834 attribute to disambiguate between SIMD and FP variants of the
29835 instruction.
29836
29837 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
29838
29839 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
29840 (analyze_ssa_name_flags): Fix typo in comment.
29841
29842 2021-03-29 Alex Coplan <alex.coplan@arm.com>
29843
29844 PR target/99216
29845 * config/aarch64/aarch64-sve-builtins.cc
29846 (function_builder::add_function): Add placeholder_p argument, use
29847 placeholder decls if this is set.
29848 (function_builder::add_unique_function): Instead of conditionally adding
29849 direct overloads, unconditionally add either a direct overload or a
29850 placeholder.
29851 (function_builder::add_overloaded_function): Set placeholder_p if we're
29852 using C++ overloads. Use the obstack for string storage instead
29853 of relying on the tree nodes.
29854 (function_builder::add_overloaded_functions): Don't return early for
29855 m_direct_overloads: we need to add placeholders.
29856 * config/aarch64/aarch64-sve-builtins.h
29857 (function_builder::add_function): Add placeholder_p argument.
29858
29859 2021-03-29 Richard Biener <rguenther@suse.de>
29860
29861 PR tree-optimization/99807
29862 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
29863 assert below VEC_PERM handling.
29864
29865 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29866
29867 PR target/99037
29868 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
29869 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
29870 matching const_int 0.
29871 (move_lo_quad_internal_be_<mode>): Likewise.
29872 (move_lo_quad_<mode>): Update for the above.
29873 * config/aarch64/iterators.md (VQ_2E): Delete.
29874
29875 2021-03-29 Jakub Jelinek <jakub@redhat.com>
29876
29877 PR tree-optimization/99777
29878 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
29879 types other than scalar integral types.
29880
29881 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
29882
29883 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
29884 XCOFF TLS reloc decorations.
29885
29886 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
29887
29888 * doc/analyzer.texi (Analyzer Internals): Update link to
29889 "A Memory Model for Static Analysis of C Programs".
29890
29891 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
29892
29893 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
29894 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
29895 Declare.
29896 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
29897 (rs6000_special_round_type_align): Recursively check innermost first
29898 field.
29899
29900 2021-03-26 Jakub Jelinek <jakub@redhat.com>
29901
29902 PR debug/99334
29903 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
29904 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
29905 assignment with drap_reg active, queue reg save for hfp with offset 0
29906 and flush queued reg saves. When handling a push with rule18,
29907 defer queueing reg save for hfp and just assert the offset is 0.
29908 (scan_trace): Assert that fde->rule18 is false.
29909
29910 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
29911
29912 PR target/99766
29913 * ira-costs.c (record_reg_classes): Put case with
29914 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
29915 * ira.c (ira_setup_alts): Ditto.
29916 * lra-constraints.c (process_alt_operands): Ditto.
29917 * recog.c (asm_operand_ok): Ditto.
29918 * reload.c (find_reloads): Ditto.
29919
29920 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29921
29922 * config/aarch64/aarch64-protos.h
29923 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
29924 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
29925 * config/aarch64/aarch64.c (generic_addrcost_table): Update
29926 accordingly, using the same costs as for post_modify.
29927 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
29928 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
29929 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
29930 (a64fx_addrcost_table): Likewise.
29931 (neoversev1_addrcost_table): New.
29932 (neoversev1_tunings): Use neoversev1_addrcost_table.
29933 (aarch64_address_cost): Use the new post_modify costs for CImode
29934 and XImode.
29935
29936 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29937
29938 * config/aarch64/aarch64.opt
29939 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
29940 * doc/invoke.texi: Document it.
29941 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
29942 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
29943 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
29944 (aarch64_vec_issue_info): New structures.
29945 (cpu_vector_cost): Write comments above the variables rather
29946 than to the side.
29947 (cpu_vector_cost::issue_info): New member variable.
29948 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
29949 and tree-ssa-loop-niter.h.
29950 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
29951 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
29952 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
29953 (thunderx3t110_vector_cost): Initialize issue_info to null.
29954 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
29955 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
29956 (neoversev1_vector_cost): Use them.
29957 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
29958 (aarch64_vector_costs::saw_sve_only_op): New member variable.
29959 (aarch64_vector_costs::num_vector_iterations): Likewise.
29960 (aarch64_vector_costs::scalar_ops): Likewise.
29961 (aarch64_vector_costs::advsimd_ops): Likewise.
29962 (aarch64_vector_costs::sve_ops): Likewise.
29963 (aarch64_vector_costs::seen_loads): Likewise.
29964 (aarch64_simd_vec_costs_for_flags): New function.
29965 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
29966 Count the number of predicate operations required by SVE WHILE
29967 instructions.
29968 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
29969 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
29970 (aarch64_count_ops): Likewise.
29971 (aarch64_add_stmt_cost): Record whether see an SVE operation
29972 that cannot currently be implementing using Advanced SIMD.
29973 Record issue information about the scalar, Advanced SIMD
29974 and (where relevant) SVE versions of a loop.
29975 (aarch64_vec_op_count::dump): New function.
29976 (aarch64_sve_op_count::dump): Likewise.
29977 (aarch64_estimate_min_cycles_per_iter): Likewise.
29978 (aarch64_adjust_body_cost): If issue information is available,
29979 try to compare the issue rates of the various loop implementations
29980 and increase or decrease the vector body cost accordingly.
29981
29982 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29983
29984 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
29985 Assume a zero cost for induction phis.
29986
29987 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29988
29989 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
29990 function.
29991 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
29992 vector comparisons.
29993
29994 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29995
29996 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
29997 New function.
29998 (aarch64_add_stmt_cost): Call it.
29999
30000 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30001
30002 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
30003 New tuning parameter.
30004 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
30005 (aarch64_estimated_sve_vq): New function.
30006 (aarch64_vector_costs::analyzed_vinfo): New member variable.
30007 (aarch64_vector_costs::is_loop): Likewise.
30008 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
30009 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
30010 (aarch64_record_potential_advsimd_unrolling): New function.
30011 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
30012 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
30013 aarch64_analyze_bb_vinfo on the first use of a costs structure.
30014 Detect whether we're vectorizing a loop for SVE that might be
30015 completely unrolled if it used Advanced SIMD instead.
30016 (aarch64_adjust_body_cost_for_latency): New function.
30017 (aarch64_finish_cost): Call it.
30018
30019 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30020
30021 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
30022 (aarch64_init_cost): New function.
30023 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
30024 the default unsigned[3].
30025 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
30026 (TARGET_VECTORIZE_INIT_COST): Override.
30027 (TARGET_VECTORIZE_FINISH_COST): Likewise.
30028 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
30029
30030 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30031
30032 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
30033 (neoversev1_sve_vector_cost): New cost structures.
30034 (neoversev1_vector_cost): Likewise.
30035 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
30036
30037 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30038
30039 * config/aarch64/aarch64-protos.h
30040 (sve_vec_cost::scatter_store_elt_cost): New member variable.
30041 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
30042 accordingly, taking the cost from the cost of a scalar_store.
30043 (a64fx_sve_vector_cost): Likewise.
30044 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
30045
30046 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30047
30048 * config/aarch64/aarch64-protos.h
30049 (simd_vec_cost::store_elt_extra_cost): New member variable.
30050 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
30051 accordingly, using the vec_to_scalar cost for the new field.
30052 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
30053 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
30054 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
30055 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
30056 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
30057 (thunderx3t110_advsimd_vector_cost): Likewise.
30058 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
30059
30060 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30061
30062 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
30063 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
30064 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
30065 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
30066 accordingly, using zero for the new costs.
30067 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
30068 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
30069 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
30070 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
30071 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
30072 (thunderx3t110_advsimd_vector_cost): Likewise.
30073 (aarch64_ld234_st234_vectors): New function.
30074 (aarch64_adjust_stmt_cost): Likewise.
30075 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
30076 the new vector costs.
30077
30078 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30079
30080 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
30081 derived class of simd_vec_cost. Add information about CLAST[AB]
30082 and FADDA instructions.
30083 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
30084 accordingly, using the vec_to_scalar costs for the new fields.
30085 (a64fx_sve_vector_cost): Likewise.
30086 (aarch64_reduc_type): New function.
30087 (aarch64_sve_in_loop_reduction_latency): Likewise.
30088 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
30089 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
30090 that occur in the loop body.
30091 (aarch64_add_stmt_cost): Update call accordingly.
30092
30093 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
30094
30095 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
30096 New tuning flag.
30097 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
30098 above the fields rather than to the right.
30099 (simd_vec_cost::reduc_i8_cost): New member variable.
30100 (simd_vec_cost::reduc_i16_cost): Likewise.
30101 (simd_vec_cost::reduc_i32_cost): Likewise.
30102 (simd_vec_cost::reduc_i64_cost): Likewise.
30103 (simd_vec_cost::reduc_f16_cost): Likewise.
30104 (simd_vec_cost::reduc_f32_cost): Likewise.
30105 (simd_vec_cost::reduc_f64_cost): Likewise.
30106 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
30107 accordingly, using the vec_to_scalar_cost for the new fields.
30108 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
30109 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
30110 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
30111 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
30112 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
30113 (thunderx3t110_advsimd_vector_cost): Likewise.
30114 (aarch64_use_new_vector_costs_p): New function.
30115 (aarch64_simd_vec_costs): New function, split out from...
30116 (aarch64_builtin_vectorization_cost): ...here.
30117 (aarch64_is_reduction): New function.
30118 (aarch64_detect_vector_stmt_subtype): Likewise.
30119 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
30120 using the new vector costs.
30121
30122 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
30123
30124 PR ipa/99466
30125 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
30126 TLS declarations as public.
30127
30128 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
30129
30130 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
30131 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
30132 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
30133 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
30134 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
30135 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
30136 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
30137 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
30138 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
30139
30140 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
30141
30142 PR d/91595
30143 * config.gcc (*-*-cygwin*): Add winnt-d.o
30144 (*-*-mingw*): Likewise.
30145 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
30146 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
30147 * config/i386/t-cygming: Add winnt-d.o.
30148 * config/i386/winnt-d.c: New file.
30149
30150 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
30151
30152 * config/freebsd-d.c: Include memmodel.h.
30153
30154 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
30155
30156 PR d/99691
30157 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
30158 * config/t-openbsd: Add openbsd-d.o.
30159 * config/openbsd-d.c: New file.
30160
30161 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30162
30163 PR tree-optimization/96974
30164 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
30165 with graceful exit.
30166
30167 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
30168
30169 Revert:
30170 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
30171
30172 PR target/98209
30173 PR target/99744
30174 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
30175 always_inline in system headers.
30176
30177 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
30178
30179 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
30180
30181 2021-03-25 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR c++/99565
30184 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
30185 * fold-const.c (operand_compare::operand_equal_p): Don't compare
30186 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
30187
30188 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
30189
30190 PR target/98209
30191 PR target/99744
30192 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
30193 always_inline in system headers.
30194
30195 2021-03-25 Richard Biener <rguenther@suse.de>
30196
30197 PR tree-optimization/99746
30198 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
30199 the scalar stmt as patterned. Instead set up required things
30200 manually.
30201
30202 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
30203
30204 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
30205 from 256 to 512.
30206
30207 2021-03-24 Martin Liska <mliska@suse.cz>
30208
30209 PR target/99753
30210 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
30211 error.
30212 * config/i386/i386-options.c (ix86_option_override_internal):
30213 Add run-time assert.
30214
30215 2021-03-24 Martin Jambor <mjambor@suse.cz>
30216
30217 PR ipa/99122
30218 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
30219 parameters with unknown type.
30220 (ipacp_value_safe_for_type): New function.
30221 (propagate_vals_across_arith_jfunc): Verify that the constant type
30222 can be used for a type of the formal parameter.
30223 (propagate_vals_across_ancestor): Likewise.
30224 (propagate_scalar_across_jump_function): Likewise. Pass the type
30225 also to propagate_vals_across_ancestor.
30226
30227 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
30228
30229 PR target/99727
30230 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
30231 constraint.
30232 (movmisalign<mode>_mve_load): Likewise.
30233
30234 2021-03-24 Jakub Jelinek <jakub@redhat.com>
30235
30236 PR target/99724
30237 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
30238 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
30239
30240 2021-03-24 Alexandre Oliva <oliva@adacore.com>
30241
30242 * doc/sourcebuild.texi (sysconf): New effective target.
30243
30244 2021-03-24 Alexandre Oliva <oliva@adacore.com>
30245
30246 * config/i386/predicates.md (reg_or_const_vec_operand): New.
30247 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
30248 the now *-prefixed insn_and_split, turn the splitter const vec
30249 into an input for the insn, making it an ignored immediate for
30250 non-split cases, and loaded into the scratch register
30251 otherwise.
30252
30253 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
30254
30255 PR target/99581
30256 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
30257 Use define_relaxed_memory_constraint for them.
30258
30259 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
30260
30261 PR target/99733
30262 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
30263 colon to the diagnostic message.
30264
30265 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
30266
30267 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
30268 set_info's uses.
30269 (try_fwprop_subst_note): Use set_info instead of insn_info.
30270 (try_fwprop_subst_pattern): Likewise.
30271 (try_fwprop_subst_notes): Likewise.
30272 (try_fwprop_subst): Likewise.
30273 (forward_propagate_subreg): Likewise.
30274 (forward_propagate_and_simplify): Likewise.
30275 (forward_propagate_into): Likewise.
30276 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
30277 method.
30278 (set_info::single_nondebug_insn_use): Likewise.
30279 (set_info::single_phi_use): Likewise.
30280 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
30281 method.
30282 (set_info::single_nondebug_insn_use): Likewise.
30283 (set_info::single_phi_use): Likewise.
30284
30285 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
30286
30287 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
30288
30289 2021-03-23 Jakub Jelinek <jakub@redhat.com>
30290
30291 PR target/99540
30292 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
30293 expand_mult to perform an unsigned rather than a signed
30294 multiplication.
30295
30296 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
30297
30298 PR target/99704
30299 * config/i386/cpuid.h (__cpuid): Add __volatile__.
30300 (__cpuid_count): Likewise.
30301
30302 2021-03-23 Richard Biener <rguenther@suse.de>
30303
30304 PR tree-optimization/99721
30305 * tree-vect-slp.c (vect_slp_analyze_node_operations):
30306 Make sure we can schedule the node.
30307
30308 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
30309
30310 * config/riscv/riscv.c (riscv_subword): Take endianness into
30311 account when calculating the byte offset.
30312
30313 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
30314
30315 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
30316 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
30317 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
30318 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
30319 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
30320 new predicate "subreg_lowpart_operator"
30321
30322 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
30323
30324 * config/riscv/riscv.c (riscv_swap_instruction): New function
30325 to byteswap an SImode rtx containing an instruction.
30326 (riscv_trampoline_init): Byteswap the generated instructions
30327 when needed.
30328
30329 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
30330
30331 * common/config/riscv/riscv-common.c
30332 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
30333 * config.gcc (riscv32be-*, riscv64be-*): Set
30334 TARGET_BIG_ENDIAN_DEFAULT to 1.
30335 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
30336 depending on default endianness.
30337 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30338 * config/riscv/linux.h (LINK_SPEC): Likewise.
30339 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
30340 default endianness.
30341 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
30342
30343 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
30344
30345 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
30346 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30347 * config/riscv/linux.h (LINK_SPEC): Likewise.
30348 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
30349 -mlittle-endian.
30350 (BYTES_BIG_ENDIAN): Handle big endian.
30351 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
30352 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
30353 options.
30354 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
30355
30356 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
30357
30358 * regcprop.c (find_oldest_value_reg): Ask target whether
30359 different mode is fine for replacement register.
30360
30361 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
30362
30363 PR tree-optimization/99296
30364 * value-range.cc (irange::irange_set_1bit_anti_range): New.
30365 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
30366 * value-range.h (irange::irange_set_1bit_anti_range): New.
30367
30368 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
30369
30370 PR target/99581
30371 * config/aarch64/constraints.md (UtQ): Use
30372 define_relaxed_memory_constraint for it.
30373 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
30374 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
30375 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
30376 (have_relaxed_memory_constraints): New static var.
30377 (relaxed_memory_start, relaxed_memory_end): Ditto.
30378 (add_constraint): Add arg is_relaxed_memory. Check name for
30379 relaxed memory. Set up is_relaxed_memory in constraint_data and
30380 have_relaxed_memory_constraints. Adjust calls.
30381 (choose_enum_order): Process relaxed memory.
30382 (write_tm_preds_h): Ditto.
30383 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
30384 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
30385 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
30386 * ira-lives.c (single_reg_class): Use
30387 insn_extra_relaxed_memory_constraint.
30388 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
30389 * lra-constraints.c (valid_address_p): Use
30390 insn_extra_relaxed_memory_constraint instead of other memory
30391 constraints.
30392 (process_alt_operands): Process CT_RELAXED_MEMORY.
30393 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
30394 * recog.c (asm_operand_ok, preprocess_constraints): Process
30395 CT_RELAXED_MEMORY.
30396 * reload.c (find_reloads): Ditto.
30397 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
30398 * stmt.c (parse_input_constraint): Use
30399 insn_extra_relaxed_memory_constraint.
30400
30401 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
30402
30403 PR target/97926
30404 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
30405 there are no NaNs.
30406
30407 2021-03-22 Alex Coplan <alex.coplan@arm.com>
30408
30409 PR target/97252
30410 * config/arm/arm-protos.h (neon_make_constant): Add generate
30411 argument to guard emitting insns, default to true.
30412 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
30413 CONST_VECTORs which neon_make_constant can't handle.
30414 (neon_vdup_constant): Add generate argument, avoid emitting
30415 insns if it's not set.
30416 (neon_make_constant): Plumb new generate argument through.
30417 * config/arm/constraints.md (Ui): New. Use it...
30418 * config/arm/mve.md (*mve_mov<mode>): ... here.
30419 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
30420 synthesize constants.
30421
30422 2021-03-22 Richard Biener <rguenther@suse.de>
30423
30424 * debug.h: Add deprecation warning.
30425
30426 2021-03-22 Richard Biener <rguenther@suse.de>
30427
30428 PR tree-optimization/99694
30429 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
30430 PHI result.
30431
30432 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
30433
30434 PR target/99702
30435 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
30436 after type checking.
30437
30438 2021-03-22 Jakub Jelinek <jakub@redhat.com>
30439
30440 PR debug/99562
30441 PR debug/66728
30442 * dwarf2out.c (get_full_len): Use get_precision rather than
30443 min_precision.
30444 (add_const_value_attribute): Make sure add_AT_wide argument has
30445 precision prec rather than some very wide one.
30446
30447 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
30448
30449 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
30450 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
30451 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
30452 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
30453 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
30454 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
30455 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
30456 *fix_trunc<mode>si2_internal): Fix empty split condition.
30457 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
30458 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
30459 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
30460 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
30461
30462 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
30463
30464 PR target/98914
30465 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
30466 Convert idx to DImode.
30467 (rs6000_expand_vector_set_var_p8): Likewise.
30468
30469 2021-03-21 Jakub Jelinek <jakub@redhat.com>
30470
30471 PR debug/99388
30472 * dwarf2out.c (insert_float): Change return type from void to
30473 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
30474 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
30475 Adjust callers.
30476
30477 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
30478
30479 PR target/99679
30480 * config/i386/i386.c (construct_container): Check cfun != NULL
30481 before accessing silent_p.
30482
30483 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
30484
30485 * asan.c: Fix typos in comments.
30486
30487 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
30488
30489 PR rtl-optimization/99680
30490 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
30491 (process_address_1): Check empty constraint before using
30492 CONSTRAINT_LEN.
30493
30494 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
30495
30496 * config/rs6000/rs6000.c (power10_cost): New.
30497 (rs6000_option_override_internal): Set Power10 costs.
30498 (rs6000_issue_rate): Set Power10 issue rate.
30499 * config/rs6000/power10.md: Rewrite for Power10.
30500
30501 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
30502
30503 PR target/99663
30504 * lra-constraints.c (process_address_1): Don't use unknown
30505 constraint for address constraint.
30506
30507 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
30508
30509 PR target/99661
30510 * config.gcc (powerpc-*-darwin8): Delete the reference to
30511 the now removed darwin8.h.
30512
30513 2021-03-19 Olivier Hainque <hainque@adacore.com>
30514
30515 PR target/99660
30516 * config/vxworksae.h (VX_CPU_PREFIX): Define.
30517
30518 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
30519
30520 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
30521
30522 2021-03-19 Tamar Christina <tamar.christina@arm.com>
30523
30524 PR tree-optimization/99656
30525 * tree-vect-slp-patterns.c (linear_loads_p,
30526 complex_add_pattern::matches, is_eq_or_top,
30527 vect_validate_multiplication, complex_mul_pattern::matches,
30528 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
30529 * tree-vectorizer.h: (complex_load_perm_t): Removed.
30530 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
30531 complex_load_perm_t.
30532
30533 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
30534
30535 PR target/99652
30536 * config/i386/i386-options.c (ix86_init_machine_status): Set
30537 silent_p to true.
30538 * config/i386/i386.c (init_cumulative_args): Set silent_p to
30539 false.
30540 (construct_container): Return early for return and argument
30541 errors if silent_p is true.
30542 * config/i386/i386.h (machine_function): Add silent_p.
30543
30544 2021-03-19 Jakub Jelinek <jakub@redhat.com>
30545
30546 PR target/99593
30547 * config/arm/constraints.md (Ds): New constraint.
30548 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
30549 constraint instead of w,Dm.
30550
30551 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
30552
30553 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
30554 in error message.
30555
30556 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
30557
30558 PR middle-end/99641
30559 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
30560 array type, do the computation of the current position in sizetype.
30561
30562 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
30563
30564 PR target/99422
30565 * lra-constraints.c (process_address_1): Use lookup_constraint
30566 only for a single constraint.
30567
30568 2021-03-18 Martin Sebor <msebor@redhat.com>
30569
30570 PR middle-end/99502
30571 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
30572 (inbounds_memaccess_p): ...to this. Check the ending offset of
30573 the accessed member.
30574
30575 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
30576
30577 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
30578 %> quote markers to error messages.
30579 (gcn_goacc_validate_dims): Likewise.
30580 (gcn_conditional_register_usage): Remove exclaimation mark from error
30581 message.
30582 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
30583
30584 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
30585
30586 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
30587 integer divides1.
30588
30589 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
30590 Kito Cheng <kito.cheng@sifive.com>
30591
30592 * config/riscv/riscv.c (riscv_block_move_straight): Change type
30593 to unsigned HOST_WIDE_INT for parameter and local variable with
30594 HOST_WIDE_INT type.
30595 (riscv_adjust_block_mem): Ditto.
30596 (riscv_block_move_loop): Ditto.
30597 (riscv_expand_block_move): Ditto.
30598
30599 2021-03-18 Nick Clifton <nickc@redhat.com>
30600
30601 * config/v850/v850.c (construct_restore_jr): Increase static
30602 buffer size.
30603 (construct_save_jarl): Likewise.
30604 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
30605
30606 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30607
30608 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
30609 (aarch64_override_options_internal): Use it.
30610 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
30611 tune_flags.
30612
30613 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
30614
30615 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
30616 error message format issues.
30617 (nios2_option_override): Likewise.
30618 (nios2_expand_fpu_builtin): Likewise.
30619 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
30620 truncation warning.
30621 (nios2_expand_custom_builtin): More error message format fixes.
30622 (nios2_expand_rdwrctl_builtin): Likewise.
30623 (nios2_expand_rdprs_builtin): Likewise.
30624 (nios2_expand_eni_builtin): Likewise.
30625 (nios2_expand_builtin): Likewise.
30626 (nios2_register_custom_code): Likewise.
30627 (nios2_valid_target_attribute_rec): Likewise.
30628 (nios2_add_insn_asm): Fix uninitialized variable warning.
30629
30630 2021-03-17 Jan Hubicka <jh@suse.cz>
30631
30632 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
30633 of gather to match reality.
30634 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
30635
30636 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30637
30638 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
30639 to compare against CC_REG rather than NE.
30640
30641 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
30642
30643 PR target/99504
30644 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
30645 inline assembly statements.
30646 (ix86_print_operand): Update 'P' handling for -fno-plt.
30647
30648 2021-03-17 Tamar Christina <tamar.christina@arm.com>
30649
30650 PR target/99542
30651 * config/aarch64/aarch64.c
30652 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
30653
30654 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
30655
30656 PR target/98092
30657 * config/rs6000/predicates.md (branch_comparison_operator): Allow
30658 ordered and unordered for CCFPmode, if flag_finite_math_only.
30659
30660 2021-03-16 Jakub Jelinek <jakub@redhat.com>
30661
30662 PR target/99600
30663 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
30664 rather than ASHIFT.
30665 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
30666
30667 2021-03-16 Martin Liska <mliska@suse.cz>
30668
30669 PR target/99592
30670 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
30671 cl_optimization_compare function.
30672
30673 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
30674
30675 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
30676 as "v".
30677
30678 2021-03-16 Jakub Jelinek <jakub@redhat.com>
30679
30680 PR target/99563
30681 * config/i386/i386.h (struct machine_function): Add
30682 has_explicit_vzeroupper bitfield.
30683 * config/i386/i386-expand.c (ix86_expand_builtin): Set
30684 cfun->machine->has_explicit_vzeroupper when expanding
30685 IX86_BUILTIN_VZEROUPPER.
30686 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
30687 Do the mode switching only when TARGET_VZEROUPPER, expensive
30688 optimizations turned on and not optimizing for size.
30689 (pass_insert_vzeroupper::gate): Enable even when
30690 cfun->machine->has_explicit_vzeroupper is set.
30691
30692 2021-03-16 Jakub Jelinek <jakub@redhat.com>
30693
30694 PR target/99542
30695 * config/aarch64/aarch64.c
30696 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
30697 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
30698 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
30699
30700 2021-03-15 Richard Biener <rguenther@suse.de>
30701
30702 PR tree-optimization/98834
30703 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
30704 subsetting by truncating the access size.
30705
30706 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
30707
30708 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
30709 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
30710 of znver2_cost.
30711
30712 2021-03-15 Martin Liska <mliska@suse.cz>
30713
30714 * spellcheck.c: Add missing comma in initialization.
30715
30716 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
30717
30718 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
30719 alternative 2 and alternative 1 with alternative 3 using
30720 YW register constraint.
30721 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
30722 using YW register constraint.
30723 (*vec_extractv16qi_zext): Ditto.
30724 (*vec_extractv4si): Merge alternatives 4 and 5
30725 using Yw register constraint.
30726 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
30727
30728 2021-03-13 Martin Sebor <msebor@redhat.com>
30729
30730 PR tree-optimization/99489
30731 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
30732 is not a call statement.
30733
30734 2021-03-13 Jakub Jelinek <jakub@redhat.com>
30735
30736 PR tree-optimization/99544
30737 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
30738 if for vector types multiplication can't be done in type's mode.
30739
30740 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
30741
30742 PR target/99422
30743 * config/sparc/constraints.md (w): Rename to...
30744 (W): ... this and ditch previous implementation.
30745 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
30746 (*movdf_insn_sp64): Likewise.
30747 (*mov<VM64:mode>_insn_sp64): Likewise.
30748 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
30749 w with W.
30750 (atomic_compare_and_swap_leon3_1): Likewise.
30751 (*atomic_compare_and_swapdi_v8plus): Likewise.
30752 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
30753 architecture and add missing address validity check during LRA.
30754
30755 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
30756
30757 PR fortran/98858
30758 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
30759 occuring for assumed-size arrays in use_device_{ptr,addr}.
30760
30761 2021-03-12 Jakub Jelinek <jakub@redhat.com>
30762
30763 PR target/99321
30764 * config/i386/constraints.md (YW): New internal constraint.
30765 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
30766 (*<sse2_avx2>_<insn><mode>3<mask_name>,
30767 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
30768 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
30769 constraints.
30770 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
30771 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
30772 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
30773 into one, use Yw instead of former x,v.
30774 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
30775 the last alternative.
30776 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
30777 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
30778 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
30779 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
30780 into one, use <v_Yw> instead of former x,v.
30781 (avx2_interleave_highv32qi<mask_name>,
30782 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
30783 constraints. Add && <mask_avx512bw_condition> to condition.
30784 (avx2_interleave_lowv32qi<mask_name>,
30785 vec_interleave_lowv16qi<mask_name>,
30786 avx2_interleave_highv16hi<mask_name>,
30787 vec_interleave_highv8hi<mask_name>,
30788 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
30789 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
30790 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
30791 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
30792 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
30793 Yw instead of v in constraints.
30794 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
30795 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
30796 instead of Yv in constraints.
30797 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
30798 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
30799 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
30800 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
30801 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
30802 constraints.
30803 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
30804 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
30805 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
30806 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
30807 two, one with just x, another isa avx512vl with v.
30808
30809 2021-03-12 Martin Liska <mliska@suse.cz>
30810
30811 * doc/invoke.texi: Add missing param documentation.
30812
30813 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30814
30815 PR analyzer/96374
30816 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
30817 analyzer/trimmed-graph.o.
30818 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
30819 feasibility checking to reflect new implementation.
30820 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
30821 option.
30822 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
30823
30824 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30825
30826 * digraph.cc (selftest::test_shortest_paths): Update
30827 shortest_paths init for new param. Add test of
30828 SPS_TO_GIVEN_TARGET.
30829 * shortest-paths.h (enum shortest_path_sense): New.
30830 (shortest_paths::shortest_paths): Add "sense" param.
30831 Update for renamings. Generalize to use "sense" param.
30832 (shortest_paths::get_shortest_path): Rename param.
30833 (shortest_paths::m_sense): New field.
30834 (shortest_paths::m_prev): Rename...
30835 (shortest_paths::m_best_edge): ...to this.
30836 (shortest_paths::get_shortest_path): Update for renamings.
30837 Conditionalize flipping of path on sense of traversal.
30838
30839 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30840
30841 * digraph.cc (selftest::test_shortest_paths): Add test coverage
30842 for paths from B and C.
30843 * shortest-paths.h (shortest_paths::shortest_paths): Handle
30844 unreachable nodes, rather than asserting.
30845
30846 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
30847
30848 PR target/99094
30849 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
30850 xcoff_tbss_section_name.
30851 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
30852 * xcoffout.c (xcoff_tbss_section_name): Delete.
30853 * xcoffout.h (xcoff_tbss_section_name): Delete.
30854
30855 2021-03-11 Richard Biener <rguenther@suse.de>
30856
30857 PR tree-optimization/99523
30858 * tree-cfg.c (dump_function_to_file): Dump SSA names
30859 w/o identifier to the decls section as well, not only those
30860 without a VAR_DECL.
30861
30862 2021-03-11 Jakub Jelinek <jakub@redhat.com>
30863
30864 PR ipa/99517
30865 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
30866 function calls with lhs fail if the lhs don't have compatible types.
30867
30868 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
30869
30870 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
30871 Change FRAME_POINTER_REGNUM to correspond to a new faked
30872 register faked_fp, part of GENNONACR_REGS like faked_ap.
30873 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
30874 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
30875 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
30876 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
30877 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
30878 register.
30879 (CRIS_REAL_FP_REGNUM): New constant.
30880 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
30881 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
30882 (cris_initial_elimination_offset): Handle elimination changes
30883 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
30884 and add one from FRAME_POINTER_REGNUM to
30885 HARD_FRAME_POINTER_REGNUM.
30886 (cris_expand_prologue, cris_expand_epilogue): Emit code for
30887 hard_frame_pointer_rtx instead of frame_pointer_rtx.
30888
30889 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
30890
30891 PR target/99492
30892 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
30893 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
30894
30895 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
30896
30897 PR target/99422
30898 * lra-constraints.c (process_address_1): Don't check unknown
30899 constraint, use X for empty constraint.
30900
30901 2021-03-10 Alex Coplan <alex.coplan@arm.com>
30902
30903 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
30904 Fix typo in comment describing "is_ha" argument.
30905
30906 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
30907
30908 * doc/sourcebuild.texi: Document LRA target selector.
30909
30910 2021-03-10 David Malcolm <dmalcolm@redhat.com>
30911
30912 * doc/ux.texi: Add subsection contrasting interactive versus
30913 batch usage of GCC.
30914
30915 2021-03-10 Joel Hutton <joel.hutton@arm.com>
30916
30917 PR target/99102
30918 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
30919 check condition.
30920 (vectorizable_load): Fix gather load mask check condition.
30921
30922 2021-03-10 Richard Biener <rguenther@suse.de>
30923
30924 PR tree-optimization/99510
30925 * tree.c (check_aligned_type): Check that the candidate
30926 has TYPE_USER_ALIGN set instead of matching with the
30927 original type.
30928
30929 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
30930
30931 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
30932 float and vector integer modes only if the mode is not larger.
30933
30934 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
30935
30936 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
30937
30938 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30939
30940 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
30941 constraints > 9.
30942 * ira-lives.c (single_reg_class): Ditto.
30943
30944 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30945
30946 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
30947 the architecture-specific rtems.h.
30948 (aarch64-*-rtems*): Likewise.
30949 (arm*-*-rtems*): Likewise.
30950 (epiphany-*-rtems*): Likewise.
30951 (riscv*-*-rtems*): Likewise.
30952
30953 2021-03-09 Jakub Jelinek <jakub@redhat.com>
30954
30955 PR tree-optimization/99305
30956 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
30957 before integer_all_onesp instead of vice versa.
30958
30959 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
30960
30961 * common/config/arm/arm-common.c (arm_config_default): Change type
30962 of 'i' to unsigned.
30963
30964 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30965
30966 PR target/99454
30967 * lra-constraints.c (process_address_1): Process constraint 'g'
30968 separately and digital constraints containing more one digit.
30969
30970 2021-03-09 Nick Clifton <nickc@redhat.com>
30971
30972 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
30973 (DWARF"_DEBUGGING_INFO): Define.
30974
30975 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
30976
30977 PR c++/90448
30978 * calls.c (initialize_argument_information): When the argument
30979 is passed by reference, do not make a copy in a thunk only if
30980 the argument is already in memory. Remove redundant test for
30981 the case of callee copy.
30982
30983 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30984
30985 PR target/99454
30986 * lra-constraints.c (process_address_1): Process 0..9 constraints
30987 in process_address_1.
30988
30989 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
30990
30991 * config/s390/s390.c (struct s390_processor processor_table):
30992 Binutils name string must not be empty.
30993
30994 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
30995
30996 * config/arc/arc.c (arc_attr_type): Remove function.
30997
30998 2021-03-09 Martin Liska <mliska@suse.cz>
30999
31000 PR target/99464
31001 * config/i386/i386-options.c (ix86_option_override_internal):
31002 Set isa_flags for OPTS argument and not for the global
31003 global_options.
31004
31005 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31006
31007 * config/rs6000/predicates.md (ds_form_mem_operand): Check
31008 in correct code.
31009
31010 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31011
31012 PR target/99070
31013 * config/rs6000/predicates.md (ds_form_mem_operand) New
31014 predicate.
31015 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
31016 ds_form_mem_operand in ld/lwa patterns.
31017 * config/rs6000/fusion.md: Regenerate file.
31018
31019 2021-03-08 Martin Sebor <msebor@redhat.com>
31020
31021 PR middle-end/98266
31022 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
31023 (array_bounds_checker::check_array_bounds): Call it.
31024
31025 2021-03-08 Martin Sebor <msebor@redhat.com>
31026
31027 PR middle-end/97631
31028 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
31029 (handle_builtin_stxncpy_strncat): Rename locals. Determine
31030 destination size from allocation calls. Issue a more appropriate
31031 kind of warning.
31032 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
31033 (handle_builtin_memset): Same.
31034
31035 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
31036
31037 PR target/98959
31038 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
31039 to ensure we do not have an Altivec style address.
31040 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
31041 an Altivec style address.
31042 (*vsx_le_perm_store_<mode>): Likewise.
31043 (splitters after *vsx_le_perm_store_<mode>): Likewise.
31044 (vsx_load_<mode>): Disable special expander if passed an Altivec
31045 style address.
31046 (vsx_store_<mode>): Likewise.
31047
31048 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31049
31050 PR target/99437
31051 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
31052 (aarch64_simd_shift_imm_vec_hi): Likewise.
31053 (aarch64_simd_shift_imm_vec_si): Likewise.
31054 (aarch64_simd_shift_imm_vec_di): Likewise.
31055 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
31056 predicate from above.
31057 (aarch64_shrn<mode>_insn_be): Likewise.
31058 (aarch64_rshrn<mode>_insn_le): Likewise.
31059 (aarch64_rshrn<mode>_insn_be): Likewise.
31060 (aarch64_shrn2<mode>_insn_le): Likewise.
31061 (aarch64_shrn2<mode>_insn_be): Likewise.
31062 (aarch64_rshrn2<mode>_insn_le): Likewise.
31063 (aarch64_rshrn2<mode>_insn_be): Likewise.
31064
31065 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
31066
31067 PR target/99422
31068 * lra-constraints.c (skip_contraint_modifiers): New function.
31069 (process_address_1): Use it before lookup_constraint call.
31070
31071 2021-03-08 Martin Liska <mliska@suse.cz>
31072
31073 PR target/99463
31074 * config/i386/i386-options.c (ix86_option_override_internal):
31075 Enable UINTR and HRESET for -march that supports it.
31076
31077 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
31078
31079 * config/s390/s390.c (f_constraint_p): New function.
31080 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
31081 (TARGET_MD_ASM_ADJUST): Likewise.
31082
31083 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
31084
31085 PR fortran/97927
31086 * tree-nested.c (convert_local_reference_stmt): Avoid calling
31087 lookup_field_for_decl for Fortran module (= namespace context).
31088
31089 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
31090
31091 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
31092 comparison with arithmetic right shift.
31093 (s390_expand_vcond): No need for a force_reg anymore.
31094 s390_vec_compare will do it.
31095 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
31096 immediate operands.
31097
31098 2021-03-07 Jakub Jelinek <jakub@redhat.com>
31099
31100 PR target/99321
31101 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
31102 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
31103 and comment.
31104 * config/i386/sse.md (v_Yw): New define_mode_attr.
31105 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
31106 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
31107 in constraints.
31108 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
31109 xYw in constraints.
31110
31111 2021-03-06 Julian Brown <julian@codesourcery.com>
31112
31113 * tree-pretty-print.c (dump_generic_node): Emit non-generic
31114 address space info for aggregates.
31115
31116 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
31117
31118 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
31119
31120 2021-03-05 Jakub Jelinek <jakub@redhat.com>
31121
31122 PR middle-end/99322
31123 * tree-cfg.c (bb_to_omp_idx): New variable.
31124 (execute_build_cfg): Release the bb_to_omp_idx vector after
31125 cleanup_tree_cfg returns.
31126 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
31127 for bb_to_omp_idx being a vec<int> instead of pointer to array
31128 of ints.
31129 (make_edges): Remove bb_to_omp_idx local variable, don't pass
31130 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
31131 vec<int> instead of pointer to array of ints and don't free/release
31132 it at the end.
31133 (remove_bb): When removing a bb and placing forced label somewhere
31134 else, ensure it is put into the same OpenMP region during cfg
31135 pass if possible or to entry successor as fallback. Unregister
31136 bb from bb_to_omp_idx.
31137
31138 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
31139
31140 PR target/99378
31141 * lra-constraints.c (process_address_1): Skip decomposing address
31142 for asm insn operand with unknown constraint.
31143
31144 2021-03-05 Martin Jambor <mjambor@suse.cz>
31145
31146 PR ipa/98078
31147 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
31148 corresponding speculative edges if we are about to resolve
31149 sepculation. Make edge direct (and so resolve speculations) before
31150 removing it from call_site_hash.
31151 (cgraph_edge::make_direct): Relax the initial assert to allow calling
31152 the function on speculative direct edges.
31153
31154 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
31155
31156 PR rtl-optimization/99376
31157 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
31158 of low-order zero bits is too large, set the result to 0 directly.
31159
31160 2021-03-04 Jakub Jelinek <jakub@redhat.com>
31161
31162 PR middle-end/93235
31163 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
31164 SUBREG and a SUBREG to op_mode can't be created.
31165
31166 2021-03-04 Alex Coplan <alex.coplan@arm.com>
31167
31168 PR target/99381
31169 * config/aarch64/aarch64-sve-builtins.cc
31170 (function_resolver::require_vector_type): Handle error_mark_node.
31171
31172 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
31173
31174 * cfgexpand.c (expand_asm_loc): Pass new parameter.
31175 (expand_asm_stmt): Likewise.
31176 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
31177 parameter.
31178 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
31179 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
31180 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
31181 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
31182 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
31183 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
31184 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
31185 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
31186 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
31187 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
31188 * doc/tm.texi (md_asm_adjust): Likewise.
31189 * target.def (md_asm_adjust): Likewise.
31190
31191 2021-03-04 Richard Biener <rguenther@suse.de>
31192
31193 PR middle-end/97855
31194 * tree-pretty-print.c: Poison pp_printf.
31195 (dump_decl_name): Avoid use of pp_printf.
31196 (dump_block_node): Likewise.
31197 (dump_generic_node): Likewise.
31198
31199 2021-03-04 Martin Sebor <msebor@redhat.com>
31200
31201 PR middle-end/96963
31202 PR middle-end/94655
31203 * builtins.c (handle_array_ref): New helper.
31204 (handle_mem_ref): New helper.
31205 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
31206 into new helper functions. Correct a workaround for vectorized
31207 assignments.
31208
31209 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
31210
31211 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
31212 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
31213 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
31214 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
31215 attribute for Power10.
31216 * config/rs6000/mma.md (*movoo): Likewise.
31217 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
31218 (define_mode_attr bits): Add DD/TD modes.
31219 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
31220 store_conditionalpti): Update size attribute for Power10.
31221
31222 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31223
31224 PR bootstrap/92002
31225 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
31226 -Wuninitialized, -Wmaybe-uninitialized.
31227 (wide-int.o-warn): Likewise.
31228
31229 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
31230
31231 * common/config/arm/arm-common.c: Include configargs.h.
31232 (arm_config_default): New function.
31233 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
31234 processors that do not support Thumb. Take into account the
31235 --with-mode configuration setting for selecting the default.
31236 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
31237 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
31238
31239 2021-03-03 Martin Liska <mliska@suse.cz>
31240
31241 PR gcov-profile/97461
31242 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
31243
31244 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
31245
31246 PR target/99234
31247 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
31248 point back the hard frame pointer to its default location when the
31249 frame is larger than SEH_MAX_FRAME_SIZE.
31250
31251 2021-03-03 Jakub Jelinek <jakub@redhat.com>
31252
31253 PR target/99321
31254 * config/i386/predicates.md (logic_operator): New define_predicate.
31255 * config/i386/i386.md (mov + mem using comm arith peephole2):
31256 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
31257 and the inner mode is [QH]Imode.
31258
31259 2021-03-03 Jakub Jelinek <jakub@redhat.com>
31260
31261 PR debug/99090
31262 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
31263 (new_loc_list): Clear end_entry.
31264 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
31265 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
31266 typo.
31267 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
31268 initialize also end_entry.
31269
31270 2021-03-03 Jakub Jelinek <jakub@redhat.com>
31271
31272 PR target/99085
31273 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
31274 partitions, if in non-layout mode after reorder_blocks also move
31275 affected blocks to ensure a single partition transition.
31276
31277 2021-03-03 Jason Merrill <jason@redhat.com>
31278
31279 PR c++/96078
31280 * cgraphunit.c (process_function_and_variable_attributes): Don't
31281 warn about flatten on an alias if the target also has it.
31282 * cgraph.h (symtab_node::get_alias_target_tree): New.
31283
31284 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
31285
31286 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
31287 period to symbol name.
31288 (tls_get_addr_internal<mode>): Same.
31289
31290 2021-03-02 David Malcolm <dmalcolm@redhat.com>
31291
31292 PR c/99323
31293 * diagnostic-show-locus.c
31294 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
31295 column 0.
31296
31297 2021-03-02 Martin Sebor <msebor@redhat.com>
31298
31299 PR middle-end/99276
31300 * builtins.c (warn_for_access): Remove stray warning text.
31301
31302 2021-03-02 Martin Sebor <msebor@redhat.com>
31303
31304 PR middle-end/99295
31305 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
31306 property.
31307
31308 2021-03-02 Jakub Jelinek <jakub@redhat.com>
31309
31310 PR debug/99319
31311 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
31312 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
31313 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
31314 DW_MACRO_define_strx and DW_MACRO_undef_strx.
31315 (save_macinfo_strings): Use DW_MACRO_*_str* even with
31316 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
31317 DW_MACRO_undef_strx.
31318
31319 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
31320
31321 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
31322 builtin signature.
31323 (BT_FN_V8HI_V8HI_UINT): Likewise.
31324 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
31325 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
31326 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
31327 New builtin definitions.
31328 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
31329 vector extension version.
31330 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
31331 available with current -march level.
31332 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
31333 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
31334 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
31335 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
31336 (vec_extend_to_fp32_lo): Likewise.
31337 (vec_round_from_fp32): Likewise.
31338 (vec_convert_to_fp16): Likewise.
31339 (vec_convert_from_fp16): Likewise.
31340 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
31341 (vclfnls_v8hi): Likewise.
31342 (vcrnfs_v8hi): Likewise.
31343 (vcfn_v8hi): Likewise.
31344 (vcnf_v8hi): Likewise.
31345
31346 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
31347
31348 * common/config/s390/s390-common.c (processor_flags_table): New entry.
31349 * config.gcc: Enable arch14 for --with-arch and --with-tune.
31350 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
31351 arch14 for unknown CPU models.
31352 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
31353 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
31354 (s390_get_sched_attrmask): Likewise.
31355 (s390_get_unit_mask): Likewise.
31356 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
31357 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
31358 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
31359 (TARGET_NNPA_P): New macro definitions.
31360 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
31361 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
31362
31363 2021-03-02 Jakub Jelinek <jakub@redhat.com>
31364
31365 PR middle-end/95757
31366 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
31367 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
31368 != 1 comparisons if name is lhs of a comparison.
31369
31370 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
31371
31372 PR target/44107
31373 PR target/48097
31374 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
31375 * config/darwin.c (darwin_should_restore_cfa_state): New.
31376 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
31377 * doc/tm.texi: Regenerated.
31378 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
31379 * dwarf2cfi.c (connect_traces): If the target requests, restore
31380 the CFA expression after a DW_CFA_restore.
31381 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
31382
31383 2021-03-01 Martin Liska <mliska@suse.cz>
31384
31385 PR target/99313
31386 * optc-save-gen.awk: Add 4 more exceptions.
31387
31388 2021-03-01 Nathan Sidwell <nathan@acm.org>
31389
31390 PR c++/99294
31391 * tree.h (TYPE_ALIGN_RAW): New accessor.
31392 (TYPE_ALIGN): Use it.
31393
31394 2021-03-01 Jan Hubicka <jh@suse.cz>
31395
31396 PR ipa/98338
31397 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
31398
31399 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
31400
31401 PR target/99234
31402 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
31403 point the hard frame pointer to the SSE register save area instead
31404 of the general register save area. Perform only minimal adjustment
31405 for small frames if it is initially not correctly aligned.
31406 (ix86_expand_prologue): Remove early saves for a SEH target.
31407 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
31408
31409 2021-02-28 Jakub Jelinek <jakub@redhat.com>
31410
31411 PR c/99304
31412 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
31413 typo - referneced -> referenced.
31414 * tree.c (component_ref_size): Fix comment typo -
31415 refernce -> reference.
31416 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
31417 traling -> trailing.
31418 (aliasing_component_refs_p): Fix comment typos -
31419 refernce -> reference and refernece -> reference and
31420 traling -> trailing.
31421 (nonoverlapping_refs_since_match_p): Fix comment typo -
31422 referneces -> references.
31423 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
31424 referneces -> references.
31425
31426 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
31427
31428 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
31429 diagnostic message to avoid use of a contraction and format
31430 warning.
31431
31432 2021-02-27 Jakub Jelinek <jakub@redhat.com>
31433
31434 PR other/99288
31435 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
31436 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
31437 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
31438 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
31439 typos.
31440
31441 2021-02-26 Richard Biener <rguenther@suse.de>
31442
31443 PR middle-end/99281
31444 * expr.c (store_field): For calls with return-slot optimization
31445 and addressable return type expand the store directly.
31446
31447 2021-02-26 Richard Biener <rguenther@suse.de>
31448
31449 PR c/99275
31450 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
31451
31452 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
31453
31454 PR target/99279
31455 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
31456 with an "if" test.
31457
31458 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
31459
31460 * config.gcc: Add rs6000-pcrel-opt.o.
31461 * config/rs6000/rs6000-pcrel-opt.c: New file.
31462 * config/rs6000/pcrel-opt.md: New file.
31463 * config/rs6000/predicates.md: Add d_form_memory predicate.
31464 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
31465 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
31466 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
31467 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
31468 and make_pass_pcrel_opt().
31469 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
31470 (rs6000_option_override_internal): Add pcrel-opt.
31471 (rs6000_delegitimize_address): Support pcrel-opt.
31472 (rs6000_opt_masks): Add pcrel-opt.
31473 (pcrel_opt_valid_mem_p): New function.
31474 (reg_to_non_prefixed): Make global.
31475 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
31476 (output_pcrel_opt_reloc): New function.
31477 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
31478 (pcrel_extern_addr): Set loads_extern_addr.
31479 Add include for pcrel-opt.md.
31480 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
31481 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
31482 pcrel-opt.md.
31483
31484 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
31485
31486 PR target/98996
31487 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
31488 If TARGET_64BIT and dest is SUBREG, we check the width, if it
31489 equal to SImode, we use SImode operation, just like what we are
31490 doing for REG one.
31491
31492 2021-02-26 Marek Polacek <polacek@redhat.com>
31493
31494 * builtins.c (warn_for_access): Fix typos.
31495
31496 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
31497
31498 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
31499 mark in front of the immediate quantity.
31500 (<optab>_rolsi3_uxtw): Likewise.
31501
31502 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
31503
31504 PR target/99271
31505 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
31506 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
31507 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
31508 address and disable when the FPCXT is not available.
31509 (nonsecure_call_value_reg_thumb2): Likewise.
31510
31511 2021-02-25 Nathan Sidwell <nathan@acm.org>
31512
31513 PR c++/99166
31514 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
31515
31516 2021-02-25 Tamar Christina <tamar.christina@arm.com>
31517
31518 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
31519
31520 2021-02-25 Richard Biener <rguenther@suse.de>
31521
31522 PR tree-optimization/99253
31523 * tree-vect-loop.c (check_reduction_path): First compute
31524 code, then verify out-of-loop uses.
31525
31526 2021-02-25 Jakub Jelinek <jakub@redhat.com>
31527
31528 PR target/95798
31529 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
31530
31531 2021-02-25 Jakub Jelinek <jakub@redhat.com>
31532
31533 PR tree-optimization/80635
31534 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
31535 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
31536 has mode precision.
31537
31538 2021-02-25 Richard Biener <rguenther@suse.de>
31539
31540 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
31541 load_map population.
31542 (vect_match_slp_patterns_2): Revert part of last change.
31543 (vect_analyze_slp): Do not interleave optimize_load_redistribution
31544 with pattern detection but do it afterwards. Dump the
31545 whole SLP graph after pattern recognition and load
31546 redistribution optimization finished.
31547
31548 2021-02-24 Jakub Jelinek <jakub@redhat.com>
31549
31550 PR fortran/99226
31551 * omp-low.c (struct omp_context): Add teams_nested_p and
31552 nonteams_nested_p members.
31553 (scan_omp_target): Diagnose teams nested inside of target with other
31554 directives strictly nested inside of the same target.
31555 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
31556 ctx->nonteams_nested_p as needed.
31557
31558 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
31559
31560 PR inline-asm/99123
31561 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
31562
31563 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
31564
31565 * config/cris/cris.c (cris_expand_prologue): Set
31566 current_function_static_stack_size, if flag_stack_usage_info.
31567
31568 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
31569
31570 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
31571 (rs6000_final_prescan_insn): Adjust.
31572 (rs6000_asm_output_opcode): Likewise.
31573
31574 2021-02-24 Martin Sebor <msebor@redhat.com>
31575
31576 PR middle-end/97172
31577 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
31578 from function arguments.
31579
31580 2021-02-24 Tamar Christina <tamar.christina@arm.com>
31581
31582 PR tree-optimization/99220
31583 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
31584 node from cache when it's about to be deleted.
31585
31586 2021-02-24 Jakub Jelinek <jakub@redhat.com>
31587
31588 PR tree-optimization/99225
31589 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
31590 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
31591 build_int_cst (..., 1). Formatting fixes.
31592
31593 2021-02-24 Tamar Christina <tamar.christina@arm.com>
31594
31595 PR tree-optimization/99149
31596 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
31597 buffer.
31598 (vect_slp_reset_pattern): Remove.
31599 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
31600 (complex_mul_pattern::build, complex_fma_pattern::build,
31601 complex_fms_pattern::build): Fix ref counts.
31602 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
31603 when node is being deleted.
31604 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
31605 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
31606 stores.
31607 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
31608
31609 2021-02-24 Matthias Klose <doko@ubuntu.com>
31610
31611 Revert:
31612 2020-12-07 Matthias Klose <doko@ubuntu.com>
31613
31614 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
31615 and ENABLE_RTL_FLAG_CHECKING.
31616
31617 2021-02-24 Richard Biener <rguenther@suse.de>
31618
31619 PR c/99224
31620 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
31621
31622 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
31623
31624 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
31625 (vsx_assemble_pair): ...to this.
31626 (*mma_assemble_pair): Rename from this...
31627 (*vsx_assemble_pair): ...to this.
31628 (mma_disassemble_pair): Rename from this...
31629 (vsx_disassemble_pair): ...to this.
31630 (*mma_disassemble_pair): Rename from this...
31631 (*vsx_disassemble_pair): ...to this.
31632 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
31633 BU_COMPAT): New macros.
31634 (mma_assemble_pair): Rename from this...
31635 (vsx_assemble_pair): ...to this.
31636 (mma_disassemble_pair): Rename from this...
31637 (vsx_disassemble_pair): ...to this.
31638 (mma_assemble_pair): New compatibility built-in.
31639 (mma_disassemble_pair): Likewise.
31640 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
31641 (RS6000_BUILTIN_COMPAT): Define.
31642 (bdesc_compat): New.
31643 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
31644 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
31645 and VSX_BUILTIN_ASSEMBLE_PAIR.
31646 (rs6000_init_builtins): Register compatibility built-ins.
31647 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
31648 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
31649 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
31650 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
31651 (__builtin_vsx_assemble_pair): ...to this.
31652 (__builtin_mma_disassemble_pair): Rename from this...
31653 (__builtin_vsx_disassemble_pair): ...to this.
31654
31655 2021-02-23 Martin Liska <mliska@suse.cz>
31656
31657 PR sanitizer/99168
31658 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
31659 with different alignment. That leads to an invalid red zone
31660 size allocated in runtime.
31661
31662 2021-02-23 Jakub Jelinek <jakub@redhat.com>
31663
31664 PR tree-optimization/99204
31665 * fold-const.c (fold_read_from_constant_string): Check that
31666 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
31667
31668 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
31669 Kewen Lin <linkw@gcc.gnu.org>
31670
31671 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
31672 (rotl<mode>3_insert_3): ...this.
31673 (plus_ior_xor): New code_iterator.
31674 (define_split for GPR rl*imi): New splitter.
31675 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
31676 for integer merging.
31677
31678 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31679
31680 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
31681 Define.
31682 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
31683 into a register when the above is enabled.
31684 * config/aarch64/aarch64.c (neoversev1_tunings):
31685 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
31686 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
31687
31688 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
31689
31690 * config/cris/cris.c (cris_print_operand) <'T'>: Change
31691 valid operand from is now an addi mult-value to shift-value.
31692 * config/cris/cris.md (*addi): Change expression of scaled
31693 operand from mult to ashift.
31694 * config/cris/cris.md (*addi_reload): New insn_and_split.
31695
31696 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
31697
31698 PR target/85074
31699 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
31700 hook_bool_const_tree_hwi_hwi_const_tree_true.
31701 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
31702
31703 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
31704
31705 PR rtl-optimization/98791
31706 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
31707 for unordered modes.
31708
31709 2021-02-22 Martin Liska <mliska@suse.cz>
31710
31711 * tree-inline.c (inline_forbidden_p): Set
31712 inline_forbidden_reason.
31713
31714 2021-02-22 Richard Biener <rguenther@suse.de>
31715
31716 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
31717 costed subgraph.
31718
31719 2021-02-22 Richard Biener <rguenther@suse.de>
31720
31721 PR tree-optimization/99165
31722 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
31723 Accumulate changed to ret.
31724
31725 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
31726
31727 Revert:
31728 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
31729
31730 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
31731
31732 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
31733
31734 PR target/99134
31735 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
31736 pattern.
31737 (trunctf<DFP_ALL:mode>2): Likewise.
31738 (trunctdtf2_vr): Likewise.
31739 (trunctdtf2): Likewise.
31740 (extend<DFP_ALL:mode>tf2_vr): Likewise.
31741 (extend<DFP_ALL:mode>tf2): Likewise.
31742 (extendtftd2_vr): Likewise.
31743 (extendtftd2): Likewise.
31744
31745 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
31746
31747 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
31748 add memory alternative.
31749 (tf_to_fprx2): New pattern.
31750
31751 2021-02-19 Martin Sebor <msebor@redhat.com>
31752
31753 PR c/97172
31754 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
31755 (attr_access::free_lang_data): Remove a spurious test.
31756
31757 2021-02-19 Nathan Sidwell <nathan@acm.org>
31758
31759 * doc/invoke.texi (flang-info-module-read): Document.
31760
31761 2021-02-19 Martin Liska <mliska@suse.cz>
31762
31763 PR translation/99167
31764 * params.opt: Fix typo.
31765
31766 2021-02-19 Richard Biener <rguenther@suse.de>
31767
31768 PR middle-end/99122
31769 * tree-inline.c (inline_forbidden_p): Do not inline functions
31770 with VLA arguments or return value.
31771
31772 2021-02-19 Jakub Jelinek <jakub@redhat.com>
31773
31774 PR target/98998
31775 * config/arm/arm.md (*stack_protect_combined_set_insn,
31776 *stack_protect_combined_test_insn): If force_const_mem result
31777 is not valid general operand, force its address into the destination
31778 register first.
31779
31780 2021-02-19 Jakub Jelinek <jakub@redhat.com>
31781
31782 PR ipa/99034
31783 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
31784 pad or non-local label, put FORCED_LABELs from bb b after that label
31785 rather than before it.
31786
31787 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
31788
31789 PR target/98657
31790 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
31791 expand_vector_broadcast' to emit the vec_duplicate operand.
31792
31793 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
31794
31795 PR rtl-optimization/96264
31796 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
31797 hard regs.
31798
31799 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
31800
31801 PR target/99113
31802 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
31803 looking up the retain attribute.
31804 (resolve_unique_section): Likewise.
31805 (get_variable_section): Likewise.
31806 (switch_to_section): Likewise. Warn when a symbol without the
31807 retain attribute and a symbol with the retain attribute are
31808 placed in the section with the same name, instead of the used
31809 attribute.
31810 * doc/extend.texi: Document the "retain" attribute.
31811
31812 2021-02-18 Nathan Sidwell <nathan@acm.org>
31813
31814 PR c++/99023
31815 * doc/invoke.texi (flang-info-include-translate): Document header
31816 lookup behaviour.
31817
31818 2021-02-18 Richard Biener <rguenther@suse.de>
31819
31820 PR middle-end/99122
31821 * ipa-fnsummary.c (analyze_function_body): Set
31822 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
31823 * tree-inline.c (insert_init_debug_bind): Pass NULL for
31824 error_mark_node values.
31825 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
31826 values.
31827 (setup_one_parameter): Delay force_value_to_type until when
31828 it's needed.
31829
31830 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
31831
31832 PR tree-optimization/99142
31833 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
31834
31835 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31836
31837 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
31838 wide_int_bitmask::wide_int_bitmask (uint64_t),
31839 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
31840 wide_int_bitmask::operator ~ () const,
31841 wide_int_bitmask::operator | (wide_int_bitmask) const,
31842 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
31843 instead of inline.
31844 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
31845 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
31846 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
31847 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
31848 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
31849 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
31850 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
31851 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
31852 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
31853 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
31854 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
31855 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
31856 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
31857 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
31858 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
31859 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
31860 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
31861 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
31862 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
31863 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
31864 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
31865 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
31866 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
31867 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
31868
31869 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31870
31871 PR middle-end/99109
31872 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
31873 (build_printable_array_type): ... this. Add nelts argument. For
31874 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
31875 nelts, call build_array_type_nelts.
31876 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
31877 instead of build_zero_elt_array_type and build_array_type_nelts.
31878
31879 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31880
31881 PR target/99104
31882 * config/i386/i386.c (distance_non_agu_define): Don't call
31883 extract_insn_cached here.
31884 (ix86_lea_outperforms): Save and restore recog_data around call
31885 to distance_non_agu_define and distance_agu_use.
31886 (ix86_ok_to_clobber_flags): Remove.
31887 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
31888 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
31889 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
31890 into define_insn. Move the splitting to define_peephole2 and
31891 check there using peep2_regno_dead_p if FLAGS_REG is dead.
31892
31893 2021-02-17 Julian Brown <julian@codesourcery.com>
31894
31895 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
31896 for non-decls.
31897
31898 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
31899
31900 PR target/98491
31901 * config/mips/mips.c (mips_symbol_insns): Do not use
31902 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
31903
31904 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
31905
31906 PR inline-asm/98096
31907 * stmt.c (resolve_operand_name_1): Take inout operands into account
31908 for access to labels by names.
31909 * doc/extend.texi: Describe counting operands for accessing labels.
31910
31911 2021-02-16 Richard Biener <rguenther@suse.de>
31912
31913 PR tree-optimization/38474
31914 * tree-ssa-structalias.c (variable_info::address_taken): New.
31915 (new_var_info): Initialize address_taken.
31916 (process_constraint): Set address_taken.
31917 (solve_constraints): Use the new address_taken flag rather
31918 than is_reg_var for sorting variables.
31919 (dump_constraint): Dump the variable number if the name
31920 is just NULL.
31921
31922 2021-02-16 Jakub Jelinek <jakub@redhat.com>
31923
31924 PR target/99100
31925 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
31926 multiply by 4096 and for inbranch by 8192.
31927 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
31928 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
31929
31930 2021-02-15 Maya Rashish <coypu@sdf.org>
31931
31932 * config/aarch64/aarch64.c (aarch64_init_builtins):
31933 Call SUBTARGET_INIT_BUILTINS.
31934
31935 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
31936
31937 PR rtl-optimization/98872
31938 * init-regs.c (initialize_uninitialized_regs): Skip initialization
31939 if CONST0_RTX is NULL.
31940
31941 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
31942
31943 PR rtl-optimization/98863
31944 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
31945 (function_info::build_info): Turn into a declaration, moving the
31946 definition to internals.h.
31947 (function_info::bb_walker): Declare.
31948 (function_info::create_reg_use): Likewise.
31949 (function_info::calculate_potential_phi_regs): Take a build_info
31950 parameter.
31951 (function_info::place_phis, function_info::create_ebbs): Declare.
31952 (function_info::calculate_ebb_live_in_for_debug): Likewise.
31953 (function_info::populate_backedge_phis): Delete.
31954 (function_info::start_block, function_info::end_block): Declare.
31955 (function_info::populate_phi_inputs): Delete.
31956 (function_info::m_potential_phi_regs): Move information to build_info.
31957 * rtl-ssa/internals.h: New file.
31958 (function_info::bb_phi_info): New class.
31959 (function_info::build_info): Moved from functions.h.
31960 Add a constructor and destructor.
31961 (function_info::build_info::ebb_use): Delete.
31962 (function_info::build_info::ebb_def): Likewise.
31963 (function_info::build_info::bb_live_out): Likewise.
31964 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
31965 (function_info::build_info::potential_phi_regs): Likewise.
31966 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
31967 (function_info::build_info::ebb_def_regs): Likewise.
31968 (function_info::build_info::bb_phis): Likewise.
31969 (function_info::build_info::bb_mem_live_out): Likewise.
31970 (function_info::build_info::bb_to_rpo): Likewise.
31971 (function_info::build_info::def_stack): Likewise.
31972 (function_info::build_info::old_def_stack_limit): Likewise.
31973 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
31974 Remove the regno argument. Push the previous definition onto the
31975 definition stack where necessary.
31976 * rtl-ssa/accesses.cc: Include internals.h.
31977 * rtl-ssa/changes.cc: Likewise.
31978 * rtl-ssa/blocks.cc: Likewise.
31979 (function_info::build_info::build_info): Define.
31980 (function_info::build_info::~build_info): Likewise.
31981 (function_info::bb_walker): New class.
31982 (function_info::bb_walker::bb_walker): Define.
31983 (function_info::add_live_out_use): Convert a logarithmic-complexity
31984 test into a linear one. Allow the same definition to be passed
31985 multiple times.
31986 (function_info::calculate_potential_phi_regs): Moved from
31987 functions.cc. Take a build_info parameter and store the
31988 information there instead.
31989 (function_info::place_phis): New function.
31990 (function_info::add_entry_block_defs): Update call to record_reg_def.
31991 (function_info::calculate_ebb_live_in_for_debug): New function.
31992 (function_info::add_phi_nodes): Use bb_phis to decide which
31993 registers need phi nodes and initialize ebb_def_regs accordingly.
31994 Do not add degenerate phis here.
31995 (function_info::add_artificial_accesses): Use create_reg_use.
31996 Assert that all definitions are listed in the DF LR sets.
31997 Update call to record_reg_def.
31998 (function_info::record_block_live_out): Record live-out register
31999 values in the phis of successor blocks. Use the live-out set
32000 when processing the last block in an EBB, instead of always
32001 using the live-in sets of successor blocks. AND the live sets
32002 with the set of registers that have been defined in the EBB,
32003 rather than with all potential phi registers. Cope correctly
32004 with branches back to the start of the current EBB.
32005 (function_info::start_block): New function.
32006 (function_info::end_block): Likewise.
32007 (function_info::populate_phi_inputs): Likewise.
32008 (function_info::create_ebbs): Likewise.
32009 (function_info::process_all_blocks): Rewrite into a multi-phase
32010 process.
32011 * rtl-ssa/functions.cc: Include internals.h.
32012 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
32013 (function_info::init_function_data): Remove caller.
32014 * rtl-ssa/insns.cc: Include internals.h
32015 (function_info::create_reg_use): New function. Lazily any
32016 degenerate phis needed by the linear RPO view.
32017 (function_info::record_use): Use create_reg_use. When processing
32018 debug uses, use potential_phi_regs and test it before checking
32019 whether the register is live on entry to the current EBB. Lazily
32020 calculate ebb_live_in_for_debug.
32021 (function_info::record_call_clobbers): Update call to record_reg_def.
32022 (function_info::record_def): Likewise.
32023
32024 2021-02-15 Martin Liska <mliska@suse.cz>
32025
32026 * toplev.c (init_asm_output): Free output of
32027 gen_command_line_string function.
32028 (process_options): Likewise.
32029
32030 2021-02-15 Martin Liska <mliska@suse.cz>
32031
32032 * params.opt: Add 2 missing Param keywords.
32033
32034 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
32035
32036 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
32037
32038 2021-02-15 Jakub Jelinek <jakub@redhat.com>
32039
32040 PR tree-optimization/99079
32041 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
32042 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
32043 require both type and TREE_TYPE (@1) to be integral types and either
32044 type having smaller or equal precision, or TREE_TYPE (@1) being
32045 unsigned type, or type being signed type. If TREE_TYPE (@1)
32046 doesn't have wrapping overflow, perform the subtraction of one in
32047 unsigned type.
32048
32049 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
32050 Richard Biener <rguether@suse.de>
32051
32052 PR ipa/97346
32053 * ipa-reference.c (ipa_init): Only conditinally initialize
32054 reference_vars_to_consider.
32055 (propagate): Conditionally deninitialize reference_vars_to_consider.
32056 (ipa_reference_write_optimization_summary): Sanity check that
32057 reference_vars_to_consider is not allocated.
32058
32059 2021-02-13 Levy Hsu <admin@levyhsu.com>
32060
32061 PR target/97417
32062 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
32063 extend parameter to get_si_mem_base_reg declaration.
32064 (get_si_mem_base_reg): Add extend parameter. Set it.
32065 (analyze): Pass extend arg to get_si_mem_base_reg.
32066 (transform): Likewise. Use it when rewriting mems.
32067 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
32068 loads and emit sign/zero extending load followed by subreg move.
32069
32070 2021-02-13 Jim Wilson <jimw@sifive.com>
32071
32072 PR target/97417
32073 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
32074 exit when !reload_completed. Only perform check for compressed reg
32075 if reload_completed.
32076 (riscv_rtx_costs): In MEM case, when optimizing for size and
32077 shorten memrefs, if not compressible, then increase cost.
32078
32079 2021-02-13 Jakub Jelinek <jakub@redhat.com>
32080
32081 PR rtl-optimization/98439
32082 * recog.c (pass_split_before_regstack::gate): Enable even when
32083 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
32084 on.
32085
32086 2021-02-13 Jakub Jelinek <jakub@redhat.com>
32087
32088 PR target/96166
32089 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
32090 swap of V2SImode elements in memory into DImode memory rotate by 32.
32091
32092 2021-02-12 Martin Sebor <msebor@redhat.com>
32093
32094 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
32095
32096 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
32097
32098 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
32099 m_temp_obstack rather than m_obstack to allocate the temporary use.
32100
32101 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
32102
32103 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
32104 as read-modify operations.
32105
32106 2021-02-12 Richard Biener <rguenther@suse.de>
32107
32108 PR middle-end/38474
32109 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
32110 fbi->aa_walk_budget is bigger than zero. Update
32111 fbi->aa_walk_budget.
32112 (param_change_prob): Likewise.
32113 * ipa-prop.c (detect_type_change_from_memory_writes):
32114 Properly account walk_aliased_vdefs.
32115 (parm_preserved_before_stmt_p): Canonicalize updates.
32116 (parm_ref_data_preserved_p): Likewise.
32117 (parm_ref_data_pass_through_p): Likewise.
32118 (determine_known_aggregate_parts): Account own alias queries.
32119
32120 2021-02-12 Martin Liska <mliska@suse.cz>
32121
32122 * opts-common.c (decode_cmdline_option): Release werror_arg.
32123 * opts.c (gen_producer_string): Release output of
32124 gen_command_line_string.
32125
32126 2021-02-12 Richard Biener <rguenther@suse.de>
32127
32128 PR tree-optimization/38474
32129 * params.opt (-param=max-store-chains-to-track=): New param.
32130 (-param=max-stores-to-track=): Likewise.
32131 * doc/invoke.texi (max-store-chains-to-track): Document.
32132 (max-stores-to-track): Likewise.
32133 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
32134 New.
32135 (pass_store_merging::m_n_stores): Likewise.
32136 (pass_store_merging::terminate_and_process_chain): Update
32137 m_n_stores and m_n_chains.
32138 (pass_store_merging::process_store): Likewise. Terminate
32139 oldest chains if the number of stores or chains get too large.
32140 (imm_store_chain_info::terminate_and_process_chain): Dump
32141 chain length.
32142
32143 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
32144
32145 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
32146 the cold section, emit a nop before the directive if the previous
32147 active instruction can throw.
32148
32149 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
32150
32151 PR target/99041
32152 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
32153 memory addresses that are legal for quad word accesses.
32154
32155 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
32156
32157 PR target/98931
32158 * config/arm/thumb2.md (*doloop_end_internal): Generate
32159 alternative sequence to handle long range branches.
32160
32161 2021-02-11 Joel Hutton <joel.hutton@arm.com>
32162
32163 PR tree-optimization/98772
32164 * optabs-tree.c (supportable_half_widening_operation): New function
32165 to check for supportable V8QI->V8HI widening patterns.
32166 * optabs-tree.h (supportable_half_widening_operation): New function.
32167 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
32168 to create promotion stmts for V8QI->V8HI widening patterns.
32169 (vectorizable_conversion): Add case for V8QI->V8HI.
32170
32171 2021-02-11 Richard Biener <rguenther@suse.de>
32172
32173 * sparseset.h (SPARSESET_ELT_BITS): Remove.
32174 (SPARSESET_ELT_TYPE): Use unsigned int.
32175 * fwprop.c: Do not include sparseset.h.
32176
32177 2021-02-10 Jakub Jelinek <jakub@redhat.com>
32178
32179 PR c++/99035
32180 * varasm.c (declare_weak): For -fsyntax-only, allow even
32181 TREE_ASM_WRITTEN function decls.
32182
32183 2021-02-10 Jakub Jelinek <jakub@redhat.com>
32184
32185 PR target/99025
32186 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
32187 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
32188 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
32189 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
32190 calling simplify_gen_subreg on it.
32191
32192 2021-02-10 Martin Liska <mliska@suse.cz>
32193
32194 * config/nvptx/nvptx.c (nvptx_option_override): Use
32195 flag_patchable_function_entry instead of the removed
32196 function_entry_patch_area_size.
32197
32198 2021-02-10 Martin Liska <mliska@suse.cz>
32199
32200 PR tree-optimization/99002
32201 PR tree-optimization/99026
32202 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
32203 leak when adjacent cases are merged.
32204 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
32205 release_clusters.
32206 (make_pass_lower_switch): Remove trailing whitespace.
32207 * tree-switch-conversion.h (release_clusters): New.
32208
32209 2021-02-10 Richard Biener <rguenther@suse.de>
32210
32211 PR rtl-optimization/99054
32212 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
32213 (fixup_partitions): Adjust.
32214 (rtl_verify_edges): Likewise.
32215
32216 2021-02-10 Jakub Jelinek <jakub@redhat.com>
32217
32218 PR middle-end/99007
32219 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
32220 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
32221 calls.
32222
32223 2021-02-10 Richard Biener <rguenther@suse.de>
32224
32225 PR ipa/99029
32226 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
32227 for callees.
32228
32229 2021-02-10 Richard Biener <rguenther@suse.de>
32230
32231 PR tree-optimization/99024
32232 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
32233 clear loop->aux if it is associated with the destroyed loop_vinfo.
32234
32235 2021-02-10 Martin Liska <mliska@suse.cz>
32236
32237 PR tree-optimization/99002
32238 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
32239 in the function.
32240
32241 2021-02-10 Martin Liska <mliska@suse.cz>
32242
32243 PR ipa/99003
32244 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
32245 a reference exists.
32246
32247 2021-02-10 Jakub Jelinek <jakub@redhat.com>
32248
32249 PR debug/98755
32250 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
32251 at class scope for DWARF5+.
32252
32253 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
32254
32255 PR rtl-optimization/96015
32256 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
32257 (relax_delay_slots): When deleting a jump to the next active
32258 instruction over a barrier, first delete the barrier if the
32259 jump is the only way to reach the target label.
32260
32261 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
32262
32263 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
32264 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
32265 vector multiplies and vect.alu for SSRA.
32266 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
32267 vect.mul cost field.
32268 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
32269 * config/arm/arm.c: Likewise.
32270
32271 2021-02-09 Richard Biener <rguenther@suse.de>
32272
32273 PR tree-optimization/98863
32274 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
32275 * tree-ssa-sccvn.c (last_pushed_avail): New global.
32276 (rpo_elim::eliminate_push_avail): Chain pushed avails.
32277 (unwind_state::avail_top): Add.
32278 (do_unwind): Rewrite unwinding of avail entries.
32279 (do_rpo_vn): Initialize last_pushed_avail and
32280 avail_top of the undo state.
32281
32282 2021-02-09 Jakub Jelinek <jakub@redhat.com>
32283
32284 PR middle-end/99004
32285 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
32286 const char * to char * and free those pointers after use.
32287
32288 2021-02-09 Richard Biener <rguenther@suse.de>
32289
32290 PR tree-optimization/99017
32291 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
32292 zero vector cost entries.
32293
32294 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
32295
32296 PR middle-end/98974
32297 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
32298 parameter in vectorizable_condition.
32299
32300 2021-02-08 Richard Biener <rguenther@suse.de>
32301
32302 PR lto/96591
32303 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
32304
32305 2021-02-08 Martin Liska <mliska@suse.cz>
32306
32307 PR lto/98971
32308 * cfgexpand.c (pass_expand::execute): Parse per-function option
32309 flag_patchable_function_entry and use it.
32310 * common.opt: Remove function_entry_patch_area_size and
32311 function_entry_patch_area_start global variables.
32312 * opts.c (parse_and_check_patch_area): New function.
32313 (common_handle_option): Use it.
32314 * opts.h (parse_and_check_patch_area): New function.
32315 * toplev.c (process_options): Parse and use
32316 function_entry_patch_area_size.
32317
32318 2021-02-08 Martin Sebor <msebor@redhat.com>
32319
32320 * doc/extend.texi (attribute malloc): Correct typos.
32321
32322 2021-02-05 Nathan Sidwell <nathan@acm.org>
32323
32324 PR driver/98943
32325 * gcc.c (driver::maybe_run_linker): Check for input file
32326 accessibility if not linking.
32327
32328 2021-02-05 Richard Biener <rguenther@suse.de>
32329
32330 PR tree-optimization/98855
32331 * tree-vectorizer.h (add_stmt_cost): New overload.
32332 * tree-vect-slp.c (li_cost_vec_cmp): New.
32333 (vect_bb_slp_scalar_cost): Cost individual loop regions
32334 separately. Account for the scalar instance root stmt.
32335
32336 2021-02-05 Tom de Vries <tdevries@suse.de>
32337
32338 PR debug/98656
32339 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
32340 argument.
32341 (bit_test_cluster::emit): Reuse location_t for newly created
32342 gswitch statement.
32343 (switch_decision_tree::try_switch_expansion): Preserve
32344 location_t.
32345 * tree-switch-conversion.h: Change function signatures.
32346
32347 2021-02-05 Jakub Jelinek <jakub@redhat.com>
32348
32349 PR target/98957
32350 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
32351 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
32352 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
32353 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
32354
32355 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32356
32357 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
32358 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
32359 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
32360 (vget_high_f16): Reimplement using new builtin.
32361 (vget_high_f32): Likewise.
32362 (vget_high_f64): Likewise.
32363 (vget_high_p8): Likewise.
32364 (vget_high_p16): Likewise.
32365 (vget_high_p64): Likewise.
32366 (vget_high_s8): Likewise.
32367 (vget_high_s16): Likewise.
32368 (vget_high_s32): Likewise.
32369 (vget_high_s64): Likewise.
32370 (vget_high_u8): Likewise.
32371 (vget_high_u16): Likewise.
32372 (vget_high_u32): Likewise.
32373 (vget_high_u64): Likewise.
32374
32375 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32376
32377 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
32378 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
32379 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
32380 (vget_low_f16): Reimplement using new builtin.
32381 (vget_low_f32): Likewise.
32382 (vget_low_f64): Likewise.
32383 (vget_low_p8): Likewise.
32384 (vget_low_p16): Likewise.
32385 (vget_low_p64): Likewise.
32386 (vget_low_s8): Likewise.
32387 (vget_low_s16): Likewise.
32388 (vget_low_s32): Likewise.
32389 (vget_low_s64): Likewise.
32390 (vget_low_u8): Likewise.
32391 (vget_low_u16): Likewise.
32392 (vget_low_u32): Likewise.
32393 (vget_low_u64): Likewise.
32394
32395 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
32396
32397 * gcc.c (print_multilib_info): Check all required argument is provided
32398 by default arg.
32399
32400 2021-02-05 liuhongt <hongtao.liu@intel.com>
32401
32402 PR target/98537
32403 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
32404 generate integer mask comparison for 128/256-bits vector when
32405 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
32406 delete redundant !maskcmp condition.
32407 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
32408 here.
32409 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
32410 condition directly to if (maskcmp), add extra check for
32411 cmpmode, it should be MODE_INT.
32412 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
32413 parameters op_true/op_false.
32414 (ix86_use_mask_cmp_p): New.
32415
32416 2021-02-05 liuhongt <hongtao.liu@intel.com>
32417
32418 PR target/98172
32419 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
32420 Remove m_GENERIC from ~list.
32421 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
32422
32423 2021-02-04 David Malcolm <dmalcolm@redhat.com>
32424
32425 PR c/97932
32426 * diagnostic-show-locus.c (compatible_locations_p): Require
32427 locations in the same macro map to be either both from the
32428 macro definition, or both from the macro arguments.
32429
32430 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
32431
32432 * config/aarch64/aarch64-simd-builtins.def: Add
32433 [su]mull_hi_lane[q] builtin generator macros.
32434 * config/aarch64/aarch64-simd.md
32435 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
32436 (aarch64_<su>mull_hi_lane<mode>): Define.
32437 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
32438 (aarch64_<su>mull_hi_laneq<mode>): Define.
32439 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
32440 builtin instead of inline asm.
32441 (vmull_high_lane_s32): Likewise.
32442 (vmull_high_lane_u16): Likewise.
32443 (vmull_high_lane_u32): Likewise.
32444 (vmull_high_laneq_s16): Likewise.
32445 (vmull_high_laneq_s32): Likewise.
32446 (vmull_high_laneq_u16): Likewise.
32447 (vmull_high_laneq_u32): Liekwise.
32448
32449 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
32450
32451 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
32452 builtin generator macros.
32453 * config/aarch64/aarch64-simd.md
32454 (aarch64_<su>mull_hi_n<mode>_insn): Define.
32455 (aarch64_<su>mull_hi_n<mode>): Define.
32456 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
32457 instead of inline asm.
32458 (vmull_high_n_s32): Likewise.
32459 (vmull_high_n_u16): Likewise.
32460 (vmull_high_n_u32): Likewise.
32461
32462 2021-02-04 Richard Biener <rguenther@suse.de>
32463
32464 PR tree-optimization/98855
32465 * tree-vect-loop.c (vectorizable_phi): Do not cost
32466 single-argument PHIs.
32467 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
32468 * tree-vect-stmts.c (vectorizable_bswap): Also perform
32469 costing for SLP operation.
32470
32471 2021-02-04 Martin Liska <mliska@suse.cz>
32472
32473 * doc/extend.texi: Mention -mprefer-vector-width in target
32474 attributes.
32475
32476 2021-02-03 Martin Sebor <msebor@redhat.com>
32477
32478 PR tree-optimization/98937
32479 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
32480 Flush pointer_query cache.
32481
32482 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32483
32484 * config/rs6000/genfusion.pl (gen_2logical): Add missing
32485 fixes based on patch review.
32486 * config/rs6000/fusion.md: Regenerate file.
32487
32488 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32489
32490 * config/rs6000/t-rs6000: Comment out auto generation of
32491 fusion.md for now.
32492
32493 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
32494
32495 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
32496 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
32497 (output_file_start): Add gfx908.
32498 * config/gcn/gcn.opt (gpu_type): Add gfx908.
32499 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
32500 (MULTILIB_DIRNAMES): Add gfx908.
32501 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
32502 (main): Recognize gfx908.
32503 * config/gcn/t-omp-device: Add gfx908.
32504
32505 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
32506
32507 * config/aarch64/aarch64-simd-builtins.def: Add
32508 [su]mlsl_hi_lane[q] builtin macro generators.
32509 * config/aarch64/aarch64-simd.md
32510 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
32511 (aarch64_<su>mlsl_hi_lane<mode>): Define.
32512 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
32513 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
32514 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
32515 builtin instead of inline asm.
32516 (vmlsl_high_lane_s32): Likewise.
32517 (vmlsl_high_lane_u16): Likewise.
32518 (vmlsl_high_lane_u32): Likewise.
32519 (vmlsl_high_laneq_s16): Likewise.
32520 (vmlsl_high_laneq_s32): Likewise.
32521 (vmlsl_high_laneq_u16): Likewise.
32522 (vmlsl_high_laneq_u32): Likewise.
32523 (vmlal_high_laneq_u32): Likewise.
32524
32525 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
32526
32527 * config/aarch64/aarch64-simd-builtins.def: Add
32528 [su]mlal_hi_lane[q] builtin generator macros.
32529 * config/aarch64/aarch64-simd.md
32530 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
32531 (aarch64_<su>mlal_hi_lane<mode>): Define.
32532 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
32533 (aarch64_<su>mlal_hi_laneq<mode>): Define.
32534 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
32535 builtin instead of inline asm.
32536 (vmlal_high_lane_s32): Likewise.
32537 (vmlal_high_lane_u16): Likewise.
32538 (vmlal_high_lane_u32): Likewise.
32539 (vmlal_high_laneq_s16): Likewise.
32540 (vmlal_high_laneq_s32): Likewise.
32541 (vmlal_high_laneq_u16): Likewise.
32542 (vmlal_high_laneq_u32): Likewise.
32543
32544 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
32545
32546 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
32547 builtin generator macros.
32548 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
32549 Define.
32550 (aarch64_<su>mlsl_hi_n<mode>): Define.
32551 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
32552 instead of inline asm.
32553 (vmlsl_high_n_s32): Likewise.
32554 (vmlsl_high_n_u16): Likewise.
32555 (vmlsl_high_n_u32): Likewise.
32556
32557 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
32558
32559 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
32560 builtin generator macros.
32561 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
32562 Define.
32563 (aarch64_<su>mlal_hi_n<mode>): Define.
32564 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
32565 instead of inline asm.
32566 (vmlal_high_n_s32): Likewise.
32567 (vmlal_high_n_u16): Likewise.
32568 (vmlal_high_n_u32): Likewise.
32569
32570 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
32571
32572 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
32573 generator macros.
32574 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
32575 Rename to...
32576 (aarch64_<su>mlal_hi<mode>_insn): This.
32577 (aarch64_<su>mlal_hi<mode>): Define.
32578 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
32579 instead of inline asm.
32580 (vmlal_high_s16): Likewise.
32581 (vmlal_high_s32): Likewise.
32582 (vmlal_high_u8): Likewise.
32583 (vmlal_high_u16): Likewise.
32584 (vmlal_high_u32): Likewise.
32585
32586 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
32587
32588 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
32589 after calling alter_subreg() on a (mem).
32590
32591 2021-02-03 Martin Liska <mliska@suse.cz>
32592
32593 PR lto/98912
32594 * lto-streamer-out.c (produce_lto_section): Fill up missing
32595 padding.
32596 * lto-streamer.h (struct lto_section): Add _padding field.
32597
32598 2021-02-03 Richard Biener <rguenther@suse.de>
32599
32600 * lto-streamer.c (lto_get_section_name): Free temporary
32601 buffer.
32602 * tree-loop-distribution.c
32603 (loop_distribution::merge_dep_scc_partitions): Free edge data.
32604
32605 2021-02-03 Jakub Jelinek <jakub@redhat.com>
32606
32607 PR middle-end/97487
32608 * ifcvt.c (noce_can_force_operand): New function.
32609 (noce_emit_move_insn): Use it.
32610 (noce_try_sign_mask): Likewise. Formatting fix.
32611
32612 2021-02-03 Jakub Jelinek <jakub@redhat.com>
32613
32614 PR middle-end/97971
32615 * lra-constraints.c (process_alt_operands): For inline asm, don't call
32616 fatal_insn, but instead return false.
32617
32618 2021-02-03 Jakub Jelinek <jakub@redhat.com>
32619
32620 PR tree-optimization/98287
32621 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
32622 for V1DImode.
32623
32624 2021-02-03 Tamar Christina <tamar.christina@arm.com>
32625
32626 PR tree-optimization/98928
32627 * tree-vect-loop.c (vect_analyze_loop_2): Change
32628 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
32629 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
32630 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
32631 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
32632
32633 2021-02-02 Richard Biener <rguenther@suse.de>
32634
32635 * gimple-loop-interchange.cc (prepare_data_references):
32636 Release vectors.
32637 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
32638 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
32639 * tree-vect-stmts.c (vectorizable_condition): Do not
32640 allocate vectors.
32641 (vectorizable_comparison): Likewise.
32642
32643 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32644
32645 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
32646 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
32647 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
32648 (vrsqrteq_u32): Likewise.
32649
32650 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32651
32652 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
32653 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
32654 (aarch64_sqxtun2<mode>_be): Likewise.
32655 (aarch64_sqxtun2<mode>): Likewise.
32656 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
32657 (vqmovun_high_s32): Likewise.
32658 (vqmovun_high_s64): Likewise.
32659 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
32660
32661 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32662
32663 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
32664 AUTO_FP flags.
32665 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
32666
32667 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32668
32669 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
32670 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
32671 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
32672 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
32673 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
32674 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
32675 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
32676 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
32677
32678 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32679
32680 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
32681 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
32682 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
32683
32684 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32685
32686 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
32687 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
32688
32689 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32690
32691 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
32692 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
32693 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
32694 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
32695 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
32696 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
32697 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
32698 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
32699 NONE builtin flags.
32700
32701 2021-02-02 Jakub Jelinek <jakub@redhat.com>
32702
32703 PR tree-optimization/98848
32704 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
32705 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
32706
32707 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
32708
32709 PR target/98743
32710 * expr.c: Check mode before calling store_expr.
32711
32712 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
32713
32714 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
32715 (VORNQ): Remove.
32716 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
32717 instruction using expression ior.
32718 (mve_vornq_u<mode>): New expander.
32719 (mve_vornq_f<mode>): Use ior code instead of unspec.
32720 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
32721
32722 2021-02-02 Alexandre Oliva <oliva@adacore.com>
32723
32724 * tree-nested.c (convert_nonlocal_reference_op): Move
32725 current_function_decl restore after re-gimplification.
32726 (convert_local_reference_op): Likewise.
32727
32728 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32729
32730 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
32731 Define builtins.
32732 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
32733 Define.
32734 (aarch64_rshrn<mode>_insn_be): Likewise.
32735 (aarch64_rshrn<mode>): Likewise.
32736 (aarch64_rshrn2<mode>_insn_le): Likewise.
32737 (aarch64_rshrn2<mode>_insn_be): Likewise.
32738 (aarch64_rshrn2<mode>): Likewise.
32739 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
32740 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
32741 using builtin.
32742 (vrshrn_high_n_s32): Likewise.
32743 (vrshrn_high_n_s64): Likewise.
32744 (vrshrn_high_n_u16): Likewise.
32745 (vrshrn_high_n_u32): Likewise.
32746 (vrshrn_high_n_u64): Likewise.
32747 (vrshrn_n_s16): Likewise.
32748 (vrshrn_n_s32): Likewise.
32749 (vrshrn_n_s64): Likewise.
32750 (vrshrn_n_u16): Likewise.
32751 (vrshrn_n_u32): Likewise.
32752 (vrshrn_n_u64): Likewise.
32753
32754 2021-02-01 Sergei Trofimovich <siarheit@google.com>
32755
32756 PR tree-optimization/98499
32757 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
32758 conservatively and assume all possible side-effects.
32759
32760 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32761
32762 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
32763 vec_unpacku_hi_): Define builtins.
32764 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
32765 builtin.
32766 (vmovl_high_s16): Likewise.
32767 (vmovl_high_s32): Likewise.
32768 (vmovl_high_u8): Likewise.
32769 (vmovl_high_u16): Likewise.
32770 (vmovl_high_u32): Likewise.
32771
32772 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32773
32774 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
32775 Define builtins.
32776 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
32777 pattern.
32778 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
32779 UNSPEC_UABDL.
32780 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
32781 builtin.
32782 (vabdl_s16): Likewise.
32783 (vabdl_s32): Likewise.
32784 (vabdl_u8): Likewise.
32785 (vabdl_u16): Likewise.
32786 (vabdl_u32): Likewise.
32787 * config/aarch64/iterators.md (ABDL): New int iterator.
32788 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
32789
32790 2021-02-01 Martin Sebor <msebor@redhat.com>
32791
32792 * tree.h (BLOCK_VARS): Add comment.
32793 (BLOCK_SUBBLOCKS): Same.
32794 (BLOCK_SUPERCONTEXT): Same.
32795 (BLOCK_ABSTRACT_ORIGIN): Same.
32796 (inlined_function_outer_scope_p): Same.
32797
32798 2021-02-01 Martin Sebor <msebor@redhat.com>
32799
32800 PR middle-end/97172
32801 * attribs.c (attr_access::free_lang_data): Define new function.
32802 * attribs.h (attr_access::free_lang_data): Declare new function.
32803
32804 2021-02-01 Richard Biener <rguenther@suse.de>
32805
32806 * vec.h (auto_vec::auto_vec): Add memory stat parameters
32807 and pass them on.
32808 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
32809
32810 2021-02-01 Tamar Christina <tamar.christina@arm.com>
32811
32812 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
32813 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
32814
32815 2021-02-01 Richard Biener <rguenther@suse.de>
32816
32817 PR rtl-optimization/98863
32818 * config/i386/i386-features.c (convert_scalars_to_vector):
32819 Set DF_RD_PRUNE_DEAD_DEFS.
32820
32821 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
32822
32823 * system.h (SIZE_MAX): Define if not already defined.
32824
32825 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
32826
32827 * config/rs6000/genfusion.pl (gen_2logical): New function to
32828 generate patterns for logical-logical fusion.
32829 * config/rs6000/fusion.md: Regenerated patterns.
32830 * config/rs6000/rs6000-cpus.def: Add
32831 OPTION_MASK_P10_FUSION_2LOGICAL.
32832 * config/rs6000/rs6000.c (rs6000_option_override_internal):
32833 Enable logical-logical fusion for p10.
32834 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
32835
32836 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
32837
32838 * config/rs6000/rs6000.opt: Add periods to new AIX options.
32839
32840 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
32841
32842 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
32843 (mabi=vec-default): New.
32844 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
32845 __EXTABI__ for AIX Vector extended ABI.
32846 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
32847 extabi info.
32848 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
32849 are non-volatile.
32850 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
32851
32852 2021-01-30 Jakub Jelinek <jakub@redhat.com>
32853
32854 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
32855 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
32856
32857 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
32858
32859 PR target/97701
32860 * lra-constraints.c (in_class_p): Don't narrow class only for REG
32861 or MEM.
32862
32863 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
32864
32865 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
32866 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
32867 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
32868
32869 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
32870
32871 PR tree-optimization/98866
32872 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
32873 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
32874 (gori_map::m_maybe_invariant): Rename from all_outgoing.
32875 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
32876 (gori_map::is_export_p): Ditto.
32877 (gori_map::calculate_gori): Ditto.
32878 (gori_compute::set_range_invariant): New.
32879 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
32880 invariant for pointers evaluating to [1, +INF].
32881
32882 2021-01-29 Richard Biener <rguenther@suse.de>
32883
32884 PR rtl-optimization/98863
32885 * config/i386/i386-features.c (remove_partial_avx_dependency):
32886 Do not perform DF analysis.
32887 (pass_data_remove_partial_avx_dependency): Remove
32888 TODO_df_finish.
32889
32890 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
32891
32892 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
32893 builtin generator macros.
32894 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
32895 Define.
32896 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
32897 instead of inline asm.
32898 (vmull_n_s32): Likewise.
32899 (vmull_n_u16): Likewise.
32900 (vmull_n_u32): Likewise.
32901
32902 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32903
32904 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
32905 Define builtins.
32906 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
32907 Rename to...
32908 (aarch64_<sur>abdl2<mode>): ... This.
32909 (<sur>sadv16qi): Adjust use of above.
32910 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
32911 builtin.
32912 (vabdl_high_s16): Likewise.
32913 (vabdl_high_s32): Likewise.
32914 (vabdl_high_u8): Likewise.
32915 (vabdl_high_u16): Likewise.
32916 (vabdl_high_u32): Likewise.
32917
32918 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32919
32920 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
32921 builtin.
32922 (uabal2): Likewise.
32923 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
32924 pattern.
32925 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
32926 UNSPEC_UABAL2.
32927 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
32928 builtin.
32929 (vabal_high_s16): Likewise.
32930 (vabal_high_s32): Likewise.
32931 (vabal_high_u8): Likewise.
32932 (vabal_high_u16): Likewise.
32933 (vabal_high_u32): Likewise.
32934 * config/aarch64/iterators.md (ABAL2): New mode iterator.
32935 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
32936
32937 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32938
32939 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
32940 builtin.
32941 (uabal): Likewise.
32942 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
32943 Rename to...
32944 (aarch64_<sur>abal<mode>): ... This
32945 (<sur>sadv16qi): Adust use of the above.
32946 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
32947 builtin.
32948 (vabal_s16): Likewise.
32949 (vabal_s32): Likewise.
32950 (vabal_u8): Likewise.
32951 (vabal_u16): Likewise.
32952 (vabal_u32): Likewise.
32953
32954 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32955
32956 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
32957 Define builtins.
32958 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
32959 Define.
32960 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
32961 builtin.
32962 (vaddlv_s16): Likewise.
32963 (vaddlv_u8): Likewise.
32964 (vaddlv_u16): Likewise.
32965 (vaddlvq_s8): Likewise.
32966 (vaddlvq_s16): Likewise.
32967 (vaddlvq_s32): Likewise.
32968 (vaddlvq_u8): Likewise.
32969 (vaddlvq_u16): Likewise.
32970 (vaddlvq_u32): Likewise.
32971 (vaddlv_s32): Likewise.
32972 (vaddlv_u32): Likewise.
32973 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
32974 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
32975 (Vwstype): New mode attribute.
32976 (Vwsuf): Likewise.
32977 (VWIDE_S): Likewise.
32978 (USADDLV): New int iterator.
32979 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
32980
32981 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
32982
32983 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
32984 builtin generator macros.
32985 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
32986 Define.
32987 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
32988 instead of inline asm.
32989 (vmlsl_lane_s32): Likewise.
32990 (vmlsl_lane_u16): Likewise.
32991 (vmlsl_lane_u32): Likewise.
32992 (vmlsl_laneq_s16): Likewise.
32993 (vmlsl_laneq_s32): Likewise.
32994 (vmlsl_laneq_u16): Likewise.
32995 (vmlsl_laneq_u32): Likewise.
32996
32997 2021-01-29 Richard Biener <rguenther@suse.de>
32998
32999 * doc/invoke.texi (--param max-gcse-memory): Document unit
33000 of size.
33001 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
33002 * params.opt (--param max-gcse-memory): Adjust default and
33003 document unit of size.
33004
33005 2021-01-29 Richard Biener <rguenther@suse.de>
33006
33007 PR rtl-optimization/98863
33008 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
33009 HOST_WIDE_INT for the memory estimate.
33010
33011 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
33012 Richard Biener <rguenther@suse.de>
33013
33014 PR tree-optimization/97627
33015 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
33016 Do not analyze fake edges.
33017
33018 2021-01-29 Richard Biener <rguenther@suse.de>
33019
33020 PR rtl-optimization/98144
33021 * df.h (df_mir_bb_info): Add con_visited member.
33022 * df-problems.c (df_mir_alloc): Initialize con_visited,
33023 do not fully populate IN and OUT.
33024 (df_mir_reset): Likewise.
33025 (df_mir_confluence_0): Set con_visited.
33026 (df_mir_confluence_n): Properly handle implicitely
33027 fully populated IN and OUT as designated by con_visited
33028 and update con_visited accordingly.
33029
33030 2021-01-29 Jakub Jelinek <jakub@redhat.com>
33031
33032 PR target/98849
33033 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
33034 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
33035 && !TARGET_REALLY_IWMMXT to conditions.
33036
33037 2021-01-29 Jakub Jelinek <jakub@redhat.com>
33038
33039 PR debug/98331
33040 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
33041 a BARRIER.
33042
33043 2021-01-28 Marek Polacek <polacek@redhat.com>
33044
33045 PR c++/94775
33046 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
33047 the main variant, maybe reset it in its variants too.
33048 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
33049 (check_aligned_type): Check if TYPE_USER_ALIGN match.
33050
33051 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
33052
33053 PR target/98730
33054 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
33055 of constant zero for comparisons.
33056
33057 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
33058
33059 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
33060 support for mapping built-in function names for long double
33061 built-in functions if long double is IEEE 128-bit.
33062
33063 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
33064
33065 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
33066 builtin generator macros.
33067 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
33068 Define.
33069 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
33070 instead of inline asm.
33071 (vmlsl_n_s32): Likewise.
33072 (vmlsl_n_u16): Likewise.
33073 (vmlsl_n_u32): Likewise.
33074
33075 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
33076
33077 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
33078 builtin generator macros.
33079 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
33080 Define.
33081 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
33082 instead of inline asm.
33083 (vmlal_n_s32): Likewise.
33084 (vmlal_n_u16): Likewise.
33085 (vmlal_n_u32): Likewise.
33086
33087 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33088
33089 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
33090 builtin.
33091 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
33092 Define.
33093 (aarch64_shrn2<mode>_insn_be): Likewise.
33094 (aarch64_shrn2<mode>): Likewise.
33095 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
33096 using builtins.
33097 (vshrn_high_n_s32): Likewise.
33098 (vshrn_high_n_s64): Likewise.
33099 (vshrn_high_n_u16): Likewise.
33100 (vshrn_high_n_u32): Likewise.
33101 (vshrn_high_n_u64): Likewise.
33102
33103 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33104
33105 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
33106 builtin.
33107 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
33108 Define.
33109 (aarch64_shrn<mode>_insn_be): Likewise.
33110 (aarch64_shrn<mode>): Likewise.
33111 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
33112 builtins.
33113 (vshrn_n_s32): Likewise.
33114 (vshrn_n_s64): Likewise.
33115 (vshrn_n_u16): Likewise.
33116 (vshrn_n_u32): Likewise.
33117 (vshrn_n_u64): Likewise.
33118 * config/aarch64/iterators.md (vn_mode): New mode attribute.
33119
33120 2021-01-28 Richard Biener <rguenther@suse.de>
33121
33122 PR rtl-optimization/80960
33123 * dse.c (check_mem_read_rtx): Call get_addr on the
33124 offsetted address.
33125
33126 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
33127 David Edelsohn <dje.gcc@gmail.com>
33128
33129 PR target/98799
33130 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33131 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
33132 when -m32.
33133 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
33134 Delete.
33135 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
33136 wrapper call rs6000_expand_vector_set_var for cleanup. Call
33137 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
33138 directly.
33139 (rs6000_expand_vector_set_var): Delete.
33140 (rs6000_expand_vector_set_var_p9): Make static.
33141 (rs6000_expand_vector_set_var_p8): Make static.
33142
33143 2021-01-28 Xing GUO <higuoxing@gmail.com>
33144
33145 * common/config/riscv/riscv-common.c
33146 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
33147 when `p` extension exists.
33148
33149 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
33150
33151 PR rtl-optimization/97684
33152 * ira.c (ira): Call ira_set_pseudo_classes before
33153 update_equiv_regs when it is necessary.
33154
33155 2021-01-27 Jakub Jelinek <jakub@redhat.com>
33156
33157 PR target/98853
33158 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
33159 %w0, %w1 and %2 instead of %0, %1 and %2.
33160
33161 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
33162
33163 * config/rs6000/genfusion.pl: New script to generate
33164 define_insn_and_split patterns so combine can arrange fused
33165 instructions next to each other.
33166 * config/rs6000/fusion.md: New file, generated fused instruction
33167 patterns for combine.
33168 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
33169 (non_update_memory_operand): New predicate.
33170 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
33171 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
33172 POWERPC_MASKS.
33173 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
33174 prototype.
33175 * config/rs6000/rs6000.c (rs6000_option_override_internal):
33176 Automatically set OPTION_MASK_P10_FUSION and
33177 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
33178 (rs600_opt_masks): Allow -mpower10-fusion
33179 in function attributes.
33180 (address_is_non_pfx_d_or_x): New function.
33181 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
33182 * config/rs6000/rs6000.md: Include fusion.md.
33183 * config/rs6000/rs6000.opt: Add -mpower10-fusion
33184 and -mpower10-fusion-ld-cmpi.
33185 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
33186
33187 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
33188
33189 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
33190 builtin generator macros.
33191 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
33192 Rename to...
33193 (aarch64_<su>mlal<mode>): This.
33194 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
33195 instead of inline asm.
33196 (vmlal_s16): Likewise.
33197 (vmlal_s32): Likewise.
33198 (vmlal_u8): Likewise.
33199 (vmlal_u16): Likewise.
33200 (vmlal_u32): Likewise.
33201
33202 2021-01-27 Richard Biener <rguenther@suse.de>
33203
33204 PR tree-optimization/98854
33205 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
33206 PHIs from scalars when the number of CTORs matches the
33207 number of children.
33208
33209 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
33210
33211 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
33212 generator macro.
33213 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
33214 Rename to...
33215 (aarch64_mls_n<mode>): This.
33216 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
33217 instead of asm.
33218 (vmls_n_s32): Likewise.
33219 (vmls_n_u16): Likewise.
33220 (vmls_n_u32): Likewise.
33221 (vmlsq_n_s16): Likewise.
33222 (vmlsq_n_s32): Likewise.
33223 (vmlsq_n_u16): Likewise.
33224 (vmlsq_n_u32): Likewise.
33225
33226 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
33227
33228 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
33229 generator macro.
33230 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
33231 than asm.
33232 (vmls_s16): Likewise.
33233 (vmls_s32): Likewise.
33234 (vmls_u8): Likewise.
33235 (vmls_u16): Likewise.
33236 (vmls_u32): Likewise.
33237 (vmlsq_s8): Likewise.
33238 (vmlsq_s16): Likewise.
33239 (vmlsq_s32): Likewise.
33240 (vmlsq_u8): Likewise.
33241 (vmlsq_u16): Likewise.
33242 (vmlsq_u32): Likewise.
33243
33244 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
33245
33246 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
33247 generator macro.
33248 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
33249 Rename to...
33250 (aarch64_mla_n<mode>): This.
33251 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
33252 instead of asm.
33253 (vmla_n_s32): Likewise.
33254 (vmla_n_u16): Likewise.
33255 (vmla_n_u32): Likewise.
33256 (vmlaq_n_s16): Likewise.
33257 (vmlaq_n_s32): Likewise.
33258 (vmlaq_n_u16): Likewise.
33259 (vmlaq_n_u32): Likewise.
33260
33261 2021-01-27 liuhongt <hongtao.liu@intel.com>
33262
33263 PR target/98833
33264 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
33265 (*sse2_eq<mode>3): Ditto.
33266
33267 2021-01-27 Jakub Jelinek <jakub@redhat.com>
33268
33269 * tree-pass.h (PROP_trees): Rename to ...
33270 (PROP_gimple): ... this.
33271 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
33272 * passes.c (execute_function_dump, execute_function_todo,
33273 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
33274 * varpool.c (ctor_for_folding): Likewise.
33275
33276 2021-01-27 Jakub Jelinek <jakub@redhat.com>
33277
33278 PR tree-optimization/97260
33279 * varpool.c: Include tree-pass.h.
33280 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
33281 non-TREE_SIDE_EFFECTS automatic variables.
33282
33283 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
33284
33285 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
33286 or -std=gnu++23.
33287 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
33288 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
33289 (gen_compile_unit_die): Recognise C++23.
33290
33291 2021-01-26 Jakub Jelinek <jakub@redhat.com>
33292
33293 PR bootstrap/98839
33294 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
33295 in comparison.
33296
33297 2021-01-26 Jakub Jelinek <jakub@redhat.com>
33298
33299 PR target/98681
33300 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
33301 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
33302 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
33303
33304 2021-01-26 Richard Biener <rguenther@suse.de>
33305
33306 * gimple-pretty-print.c (dump_binary_rhs): Handle
33307 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
33308
33309 2021-01-26 Richard Biener <rguenther@suse.de>
33310
33311 PR middle-end/98726
33312 * tree.h (vector_cst_int_elt): Remove.
33313 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
33314 make static.
33315
33316 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
33317
33318 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
33319 for V64DFmode min/max reductions.
33320
33321 2021-01-26 Jakub Jelinek <jakub@redhat.com>
33322
33323 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
33324 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
33325 two halves, one with x and the other with const0_rtx, ordered
33326 depending on endianity.
33327
33328 2021-01-26 Alexandre Oliva <oliva@adacore.com>
33329
33330 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
33331 temporaries not seen in binding block, and not about to be
33332 added as gimple variables.
33333
33334 2021-01-25 Martin Sebor <msebor@redhat.com>
33335
33336 PR c++/98646
33337 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
33338
33339 2021-01-25 Martin Liska <mliska@suse.cz>
33340
33341 * value-prof.c (get_nth_most_common_value): Use %s instead
33342 of %qs string.
33343
33344 2021-01-25 Jakub Jelinek <jakub@redhat.com>
33345
33346 PR debug/98811
33347 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
33348 readelf -wi is able to read the emitted .debug_info back.
33349 * configure: Regenerated.
33350
33351 2021-01-25 Martin Liska <mliska@suse.cz>
33352
33353 PR gcov-profile/98739
33354 * common.opt: Add missing sign symbol.
33355 * value-prof.c (get_nth_most_common_value): Restore handling
33356 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
33357 PROFILE_REPRODUCIBILITY_MULTITHREADED.
33358
33359 2021-01-25 Richard Biener <rguenther@suse.de>
33360
33361 PR middle-end/98807
33362 * tree.c (vector_element_bits): Always use precision of
33363 the element type for boolean vectors.
33364
33365 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
33366
33367 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
33368 (ENDFILE_SPEC): Evaluate qnolinkcmds.
33369
33370 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
33371
33372 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
33373 nostartfiles handling since this is already done by
33374 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
33375 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
33376 is already done by LINK_COMMAND_SPEC.
33377 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
33378 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
33379 evaluation.
33380
33381 2021-01-25 Jakub Jelinek <jakub@redhat.com>
33382
33383 PR testsuite/98771
33384 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
33385 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
33386 value rather than host size_t.
33387 (fold_const_call): Change type of s2 from size_t to
33388 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
33389 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
33390 instead of s2 as last argument.
33391
33392 2021-01-25 Tamar Christina <tamar.christina@arm.com>
33393
33394 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
33395 VCMLA_OP, VCMUL_OP): New.
33396 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
33397 * config/arm/neon.md (cmul<conj_op><mode>3): New.
33398 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
33399 UNSPEC_VCMUL_CONJ): New.
33400 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
33401 cml<fcmac1><conj_op><mode>4): New.
33402
33403 2021-01-23 Jakub Jelinek <jakub@redhat.com>
33404
33405 PR testsuite/97301
33406 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
33407
33408 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
33409
33410 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
33411 generator macro.
33412 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
33413 than asm.
33414 (vmla_s16): Likewise.
33415 (vmla_s32): Likewise.
33416 (vmla_u8): Likewise.
33417 (vmla_u16): Likewise.
33418 (vmla_u32): Likewise.
33419 (vmlaq_s8): Likewise.
33420 (vmlaq_s16): Likewise.
33421 (vmlaq_s32): Likewise.
33422 (vmlaq_u8): Likewise.
33423 (vmlaq_u16): Likewise.
33424 (vmlaq_u32): Likewise.
33425
33426 2021-01-22 David Malcolm <dmalcolm@redhat.com>
33427
33428 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
33429 directive.
33430
33431 2021-01-22 Jakub Jelinek <jakub@redhat.com>
33432
33433 PR debug/98796
33434 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
33435 filenames to emit, still emit the required 0 index directory and
33436 filename entries that match DW_AT_comp_dir and DW_AT_name of the
33437 compilation unit.
33438
33439 2021-01-22 Marek Polacek <polacek@redhat.com>
33440
33441 PR c++/98545
33442 * doc/invoke.texi: Update C++ ABI Version 15 description.
33443
33444 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33445
33446 PR tree-optimization/98766
33447 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
33448 comparing against type size with param_avoid_fma_max_bits.
33449
33450 2021-01-22 Richard Biener <rguenther@suse.de>
33451
33452 PR middle-end/98793
33453 * tree.c (vector_element_bits): Key single-bit bool vector on
33454 integer mode rather than not vector mode.
33455
33456 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
33457
33458 PR target/98093
33459 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33460 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
33461 platforms.
33462 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
33463 to call different path for P8 and P9.
33464 (rs6000_expand_vector_set_var_p9): New function.
33465 (rs6000_expand_vector_set_var_p8): New function.
33466
33467 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
33468
33469 PR target/79251
33470 PR target/98065
33471 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33472 Ajdust variable index vec_insert from address dereference to
33473 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
33474 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
33475 New declaration.
33476 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
33477
33478 2021-01-22 Martin Liska <mliska@suse.cz>
33479
33480 PR gcov-profile/98739
33481 * profile.c (compute_value_histograms): Drop time profile for
33482 -fprofile-reproducible=multithreaded.
33483
33484 2021-01-22 Nathan Sidwell <nathan@acm.org>
33485
33486 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
33487 existence here.
33488
33489 2021-01-22 Richard Biener <rguenther@suse.de>
33490
33491 PR middle-end/98773
33492 * tree-data-ref.c (initalize_matrix_A): Revert previous
33493 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
33494
33495 2021-01-22 Jakub Jelinek <jakub@redhat.com>
33496
33497 PR tree-optimization/90248
33498 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
33499 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
33500 simplifications.
33501 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
33502 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
33503
33504 2021-01-22 Jakub Jelinek <jakub@redhat.com>
33505
33506 PR tree-optimization/98255
33507 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
33508 extend index - low_bound from sizetype's precision rather than index
33509 precision.
33510 (get_addr_base_and_unit_offset_1): Likewise.
33511 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
33512 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
33513
33514 2021-01-22 Richard Biener <rguenther@suse.de>
33515
33516 PR tree-optimization/98786
33517 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
33518 adding new uses of abnormals. Verify we deal with a conditional
33519 conversion.
33520
33521 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33522
33523 PR target/98636
33524 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
33525
33526 2021-01-22 liuhongt <hongtao.liu@intel.com>
33527
33528 PR target/96891
33529 PR target/98348
33530 * config/i386/sse.md (VI_128_256): New mode iterator.
33531 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
33532 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
33533 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
33534 define_insn_and_split to lower avx512 vector comparison to avx
33535 version when dest is vector.
33536 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
33537 define_insn_and_split for negating the comparison result.
33538 * config/i386/predicates.md (float_vector_all_ones_operand):
33539 New predicate.
33540 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
33541 general NOT operator without UNSPEC_MASKOP.
33542
33543 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
33544
33545 PR rtl-optimization/98777
33546 * lra-int.h (lra_pmode_pseudo): New extern.
33547 * lra.c (lra_pmode_pseudo): New global.
33548 (lra): Set it up.
33549 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
33550
33551 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
33552
33553 * fwprop.c (fwprop_propagation::classify_result): Allow
33554 (subreg (mem)) simplifications.
33555
33556 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33557
33558 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
33559 Split into...
33560 (aarch64_sqdmlal<mode>): ... This...
33561 (aarch64_sqdmlsl<mode>): ... And this.
33562 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
33563 (aarch64_sqdmlal_lane<mode>): ... This...
33564 (aarch64_sqdmlsl_lane<mode>): ... And this.
33565 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
33566 (aarch64_sqdmlsl_laneq<mode>): ... This...
33567 (aarch64_sqdmlal_laneq<mode>): ... And this.
33568 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
33569 (aarch64_sqdmlsl_n<mode>): ... This...
33570 (aarch64_sqdmlal_n<mode>): ... And this.
33571 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
33572 (aarch64_sqdmlal2<mode>_internal): ... This...
33573 (aarch64_sqdmlsl2<mode>_internal): ... And this.
33574
33575 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
33576
33577 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
33578
33579 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
33580
33581 PR target/96372
33582 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
33583
33584 2021-01-21 liuhongt <hongtao.liu@intel.com>
33585
33586 PR rtl-optimization/98694
33587 * regcprop.c (copy_value): If SRC had been assigned a mode
33588 narrower than the copy, we can't link DEST into the chain even
33589 they have same hard_regno_nregs(i.e. HImode/SImode in i386
33590 backend).
33591
33592 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33593
33594 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
33595 Convert to define_insn_and_split. Split into simple move when moving
33596 bottom element.
33597
33598 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
33599
33600 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
33601 Adjust comment. Simplify code.
33602
33603 2021-01-20 Jakub Jelinek <jakub@redhat.com>
33604
33605 PR debug/98765
33606 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
33607 with DW_FORM_line_strp form.
33608 (prune_unused_types_update_strings): Don't add into debug_str_hash
33609 indirect strings with DW_FORM_line_strp form.
33610 (adjust_name_comp_dir): New function.
33611 (dwarf2out_finish): Call it on CU DIEs after resetting
33612 debug_line_str_hash.
33613
33614 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
33615
33616 PR rtl-optimization/98722
33617 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
33618 has no 3-op add insn to transform insns containing two pluses.
33619
33620 2021-01-20 Richard Biener <rguenther@suse.de>
33621
33622 * hwint.h (add_hwi): New function.
33623 (mul_hwi): Likewise.
33624 * tree-data-ref.c (initialize_matrix_A): Properly translate
33625 tree constants and avoid HOST_WIDE_INT_MIN.
33626 (lambda_matrix_row_add): Avoid undefined integer overflow
33627 and return true on such overflow.
33628 (lambda_matrix_right_hermite): Handle overflow from
33629 lambda_matrix_row_add gracefully. Simplify previous fix.
33630 (analyze_subscript_affine_affine): Likewise.
33631
33632 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
33633
33634 PR tree-optimization/96674
33635 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
33636 x >= y && y != XXX_MIN --> x > y - 1
33637
33638 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
33639
33640 PR tree-optimization/98535
33641 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
33642 If the high and low permutes are the same, remove the high permutes
33643 from the working set and only continue with the low ones.
33644
33645 2021-01-20 Jakub Jelinek <jakub@redhat.com>
33646
33647 PR tree-optimization/98721
33648 * builtins.c (access_ref::inform_access): Don't assume
33649 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
33650 object whenever allocfn is NULL, rather than only when DECL_P
33651 is true. Use %qE instead of %qD for that. Formatting fixes.
33652
33653 2021-01-20 Richard Biener <rguenther@suse.de>
33654
33655 PR tree-optimization/98758
33656 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
33657 (lambda_matrix_right_hermite): Avoid undefinedness with
33658 signed integer abs and multiplication.
33659 (analyze_subscript_affine_affine): Use lambda_int.
33660
33661 2021-01-20 David Malcolm <dmalcolm@redhat.com>
33662
33663 PR debug/98751
33664 * dwarf2out.c (output_line_info): Rename static variable
33665 "generation", moving it out of the function to...
33666 (output_line_info_generation): New.
33667 (init_sections_and_labels): Likewise, renaming the variable to...
33668 (init_sections_and_labels_generation): New.
33669 (dwarf2out_c_finalize): Reset the new variables.
33670
33671 2021-01-19 Martin Sebor <msebor@redhat.com>
33672
33673 PR middle-end/98664
33674 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
33675 all functions, even if they're not declared artificial or inline.
33676 * tree.c (tree_inlined_location): Use macro expansion location
33677 only if scope traversal fails to expose one.
33678
33679 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
33680
33681 PR rtl-optimization/92294
33682 * alias.c (compare_base_symbol_refs): Take an extra parameter
33683 and add the distance between two symbols to it. Enshrine in
33684 comments that -1 means "either 0 or 1, but we can't tell
33685 which at compile time".
33686 (memrefs_conflict_p): Update call accordingly.
33687 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
33688 into account.
33689
33690 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33691
33692 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
33693 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
33694 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
33695 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
33696 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
33697 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
33698 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
33699 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
33700 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
33701 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
33702 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
33703 sqmovun): Use NONE flags.
33704
33705 2021-01-19 Richard Biener <rguenther@suse.de>
33706
33707 PR ipa/98330
33708 * ipa-modref.c (analyze_stmt): Only record a summary for a
33709 direct call.
33710
33711 2021-01-19 Richard Biener <rguenther@suse.de>
33712
33713 PR middle-end/98638
33714 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
33715
33716 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
33717
33718 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
33719 built-in define __FIX_LEON3FT_TN0018.
33720
33721 2021-01-19 Richard Biener <rguenther@suse.de>
33722
33723 PR ipa/97673
33724 * tree-inline.c (tree_function_versioning): Set input_location
33725 to UNKNOWN_LOCATION throughout the function.
33726
33727 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
33728
33729 PR fortran/98476
33730 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
33731
33732 2021-01-19 Martin Jambor <mjambor@suse.cz>
33733
33734 PR ipa/98690
33735 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
33736 whether non-call exceptions allow removal of a statement.
33737 (isra_analyze_call): Pass the appropriate function to
33738 ssa_name_only_returned_p.
33739
33740 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
33741
33742 * config/riscv/arch-canonicalize (longext_sort): New function for
33743 sorting 'multi-letter'.
33744 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
33745 'alts'. The 'arch' may not be the first of 'alts'.
33746 (_expand_combination): Add underline for the 'ext' without '*'.
33747 This is because, a single-letter extension can always be treated well
33748 with a '_' prefix, but it cannot be separated out if it is appended
33749 to a multi-letter.
33750
33751 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
33752
33753 PR target/97847
33754 * ira.c (ira): Skip abnormal critical edge splitting.
33755
33756 2021-01-18 Jakub Jelinek <jakub@redhat.com>
33757
33758 PR tree-optimization/98727
33759 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
33760 second .MUL_OVERFLOW operand for signed multiplication with overflow
33761 checking if the second operand of multiplication is not constant.
33762
33763 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
33764
33765 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
33766 defaults to version 4.
33767
33768 2021-01-18 David Malcolm <dmalcolm@redhat.com>
33769
33770 * attribs.h (fndecl_dealloc_argno): New decl.
33771 * builtins.c (call_dealloc_argno): Split out second half of
33772 function into...
33773 (fndecl_dealloc_argno): New.
33774 * doc/extend.texi (Common Function Attributes): Document the
33775 interaction between the analyzer and the malloc attribute.
33776 * doc/invoke.texi (Static Analyzer Options): Likewise.
33777
33778 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
33779
33780 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
33781 dwarf_version to 4.
33782 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
33783
33784 2021-01-17 Martin Jambor <mjambor@suse.cz>
33785
33786 PR ipa/98222
33787 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
33788 the clone tree.
33789
33790 2021-01-17 Mark Wielaard <mark@klomp.org>
33791
33792 * common.opt (gdwarf-): Init(5).
33793 * doc/invoke.texi (-gdwarf): Document default to 5.
33794
33795 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
33796
33797 * builtin-types.def
33798 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
33799 to...
33800 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
33801 ...this. Add extra argument.
33802 * gimplify.c (omp_default_clause): Ensure that event handle is
33803 firstprivate in a task region.
33804 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
33805 (gimplify_adjust_omp_clauses): Likewise.
33806 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
33807 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
33808 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
33809 if detach clause specified. Add detach argument when generating
33810 call to GOMP_task.
33811 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
33812 clause.
33813 (finish_taskreg_scan): Move field for variable containing the event
33814 handle to the front of the struct.
33815 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
33816 ordering.
33817 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
33818 OMP_CLAUSE_DETACH clause.
33819 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
33820 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
33821 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
33822 Fix ordering.
33823 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
33824 ordering.
33825 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
33826
33827 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33828
33829 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
33830 multilib directory names. Use MULTILIB_REQUIRED instead of
33831 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
33832 -mcustom-fpu-cfg=fph2 multilib.
33833
33834 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33835
33836 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
33837 (nios2_init_fpu_configs): Provide register values for new
33838 -mcustom-fpu-cfg=fph2 option variant.
33839 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
33840 variant.
33841
33842 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33843
33844 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
33845 custom instruction warnings.
33846
33847 2021-01-16 Jakub Jelinek <jakub@redhat.com>
33848
33849 PR tree-optimization/96669
33850 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
33851
33852 2021-01-16 Jakub Jelinek <jakub@redhat.com>
33853
33854 PR tree-optimization/96271
33855 * passes.def: Pass false argument to first two pass_cd_dce
33856 instances and true to last instance. Add comment that
33857 last instance rewrites no longer addressed locals.
33858 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
33859 initialize it.
33860 (pass_cd_dce::set_pass_param): New method.
33861 (pass_cd_dce::execute): Return TODO_update_address_taken from
33862 last cd_dce instance.
33863
33864 2021-01-15 Carl Love <cel@us.ibm.com>
33865
33866 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
33867 New defines.
33868 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
33869 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
33870 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
33871 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
33872 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
33873 Add builtin define.
33874 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
33875 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
33876 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
33877 New overloaded definitions.
33878 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
33879 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
33880 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
33881 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
33882 P10V_BUILTIN_MULHU_V4SI]: Add case
33883 statement for builtins.
33884 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
33885 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
33886 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
33887 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
33888 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
33889 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
33890 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
33891 Add define_insn, mode is VIlong.
33892 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
33893 Add builtin descriptions.
33894
33895 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
33896
33897 * final.c (final_start_function_1): Reset force_source_line.
33898
33899 2021-01-15 Jakub Jelinek <jakub@redhat.com>
33900
33901 PR tree-optimization/96669
33902 * match.pd (((1 << A) & 1) != 0 -> A == 0,
33903 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
33904 possibly different power of two constants and to right shift too.
33905
33906 2021-01-15 Jakub Jelinek <jakub@redhat.com>
33907
33908 PR tree-optimization/96681
33909 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
33910 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
33911 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
33912 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
33913
33914 2021-01-15 Alexandre Oliva <oliva@adacore.com>
33915
33916 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
33917
33918 2021-01-15 Tamar Christina <tamar.christina@arm.com>
33919
33920 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
33921 cmul<conj_op><mode>3): New.
33922 * config/aarch64/iterators.md (UNSPEC_FCMUL,
33923 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
33924 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
33925 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
33926 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
33927 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
33928 (rot_op): Renamed to conj_op.
33929 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
33930 cmul<conj_op><mode>3): New.
33931 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
33932 cmul<conj_op><mode>3): New.
33933
33934 2021-01-15 David Malcolm <dmalcolm@redhat.com>
33935
33936 PR bootstrap/98696
33937 * diagnostic.c
33938 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
33939 Escape the tempfile name when constructing the expected output.
33940
33941 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33942
33943 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
33944 Rename to...
33945 (aarch64_<su>mlsl_hi<mode>): ... This.
33946 (aarch64_<su>mlsl_hi<mode>): Define.
33947 (*aarch64_<su>mlsl<mode): Rename to...
33948 (aarch64_<su>mlsl<mode): ... This.
33949 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
33950 smlsl_hi, umlsl_hi): Define builtins.
33951 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
33952 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
33953 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
33954 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
33955
33956 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
33957
33958 * config/i386/i386-c.c (ix86_target_macros):
33959 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
33960
33961 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33962
33963 PR target/88836
33964 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
33965 * Makefile.in (RTL_SSA_H): New variable.
33966 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
33967 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
33968 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
33969 pass_combine.
33970 * config/aarch64/aarch64-cc-fusion.cc: New file.
33971
33972 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33973
33974 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
33975 calling cancel_changes for changes that no longer exist.
33976
33977 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33978
33979 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
33980 (function_info::reg_defs): ...this.
33981 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
33982 (function_info::reg_defs): ...this.
33983
33984 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33985
33986 PR target/71233
33987 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
33988
33989 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33990
33991 Revert:
33992 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33993
33994 PR target/71233
33995 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
33996
33997 2021-01-15 Richard Biener <rguenther@suse.de>
33998
33999 PR tree-optimization/96376
34000 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
34001 for VMAT_INVARIANT.
34002
34003 2021-01-15 Martin Liska <mliska@suse.cz>
34004
34005 * doc/install.texi: Document that some tests need pytest module.
34006 * doc/sourcebuild.texi: Likewise.
34007
34008 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
34009
34010 PR target/71233
34011 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
34012
34013 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
34014
34015 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
34016 (mve_vshrq_n_u<mode>_imm): Likewise.
34017 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
34018 * config/arm/vec-common.md: ... here.
34019
34020 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
34021
34022 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
34023 vec-commond.md.
34024 * config/arm/neon.md (vashl<mode>3): Delete.
34025 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
34026 (vasl<mode>3): New expander.
34027
34028 2021-01-15 Richard Biener <rguenther@suse.de>
34029
34030 PR tree-optimization/98685
34031 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
34032 of vector extern defs.
34033
34034 2021-01-14 David Malcolm <dmalcolm@redhat.com>
34035
34036 PR jit/98586
34037 * diagnostic.c (diagnostic_kind_text): Break out this array
34038 from...
34039 (diagnostic_build_prefix): ...here.
34040 (fancy_abort): Detect when diagnostic_initialize has not yet been
34041 called and fall back to a minimal implementation of printing the
34042 ICE, rather than segfaulting in internal_error.
34043
34044 2021-01-14 David Malcolm <dmalcolm@redhat.com>
34045
34046 * diagnostic.c (diagnostic_initialize): Eliminate
34047 parseable_fixits_p in favor of initializing extra_output_kind from
34048 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
34049 (convert_column_unit): New function, split out from...
34050 (diagnostic_converted_column): ...this.
34051 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
34052 Use them to call convert_column_unit on the column values.
34053 (diagnostic_report_diagnostic): Eliminate conditional on
34054 parseable_fixits_p in favor of a switch statement on
34055 extra_output_kind, passing the appropriate values to the new
34056 params of print_parseable_fixits.
34057 (selftest::test_print_parseable_fixits_none): Update for new
34058 params of print_parseable_fixits.
34059 (selftest::test_print_parseable_fixits_insert): Likewise.
34060 (selftest::test_print_parseable_fixits_remove): Likewise.
34061 (selftest::test_print_parseable_fixits_replace): Likewise.
34062 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
34063 New.
34064 (selftest::diagnostic_c_tests): Call it.
34065 * diagnostic.h (enum diagnostics_extra_output_kind): New.
34066 (diagnostic_context::parseable_fixits_p): Delete field in favor
34067 of...
34068 (diagnostic_context::extra_output_kind): ...this new field.
34069 * doc/invoke.texi (Environment Variables): Add
34070 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
34071 * opts.c (common_handle_option): Update handling of
34072 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
34073 fields.
34074
34075 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34076
34077 * tree-vect-slp-patterns.c (class complex_operations_pattern,
34078 complex_operations_pattern::matches,
34079 complex_operations_pattern::recognize,
34080 complex_operations_pattern::build): New.
34081 (slp_patterns): Use it.
34082
34083 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34084
34085 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
34086 * optabs.def (cmls_optab, cmls_conj_optab): New.
34087 * doc/md.texi: Document them.
34088 * tree-vect-slp-patterns.c (class complex_fms_pattern,
34089 complex_fms_pattern::matches, complex_fms_pattern::recognize,
34090 complex_fms_pattern::build): New.
34091
34092 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34093
34094 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
34095 * optabs.def (cmla_optab, cmla_conj_optab): New.
34096 * doc/md.texi: Document them.
34097 * tree-vect-slp-patterns.c (vect_match_call_p,
34098 class complex_fma_pattern, vect_slp_reset_pattern,
34099 complex_fma_pattern::matches, complex_fma_pattern::recognize,
34100 complex_fma_pattern::build): New.
34101
34102 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34103
34104 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
34105 * optabs.def (cmul_optab, cmul_conj_optab): New.
34106 * doc/md.texi: Document them.
34107 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
34108 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
34109 vect_build_combine_node, class complex_mul_pattern,
34110 complex_mul_pattern::matches, complex_mul_pattern::recognize,
34111 complex_mul_pattern::build): New.
34112
34113 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34114
34115 * tree-vect-slp.c (optimize_load_redistribution_1): New.
34116 (optimize_load_redistribution, vect_is_slp_load_node): New.
34117 (vect_match_slp_patterns): Use it.
34118
34119 2021-01-14 Tamar Christina <tamar.christina@arm.com>
34120
34121 * tree-vect-slp-patterns.c (complex_add_pattern::build):
34122 Elide nodes.
34123
34124 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
34125
34126 * config/gcn/mkoffload.c (main): Create an offload image only in
34127 64-bit configurations.
34128
34129 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
34130
34131 PR target/98667
34132 * config/i386/i386-options.c (ix86_option_override_internal):
34133 Issue an error for -fcf-protection with CF_BRANCH when compiling
34134 for 32-bit non-TARGET_CMOV targets.
34135
34136 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
34137
34138 PR target/98671
34139 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
34140 Remove declaration and initialization of shadow variable "ret".
34141 (ix86_option_override_internal): Remove delcaration of
34142 shadow variable "i". Redeclare shadowed variable to unsigned.
34143 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
34144 * config/i386/i386-builtins.c (get_builtin_code_for_version):
34145 Update for redeclaration.
34146 * config/i386/i386.h (pta_size): Ditto.
34147
34148 2021-01-14 Richard Biener <rguenther@suse.de>
34149
34150 PR tree-optimization/98674
34151 * tree-data-ref.c (base_supports_access_fn_components_p): New.
34152 (initialize_data_dependence_relation): For two bases without
34153 possible access fns resort to type size equality when determining
34154 shape compatibility.
34155
34156 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34157
34158 PR target/66791
34159 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
34160 <=, >= operators in vcle and vcge intrinsics respectively.
34161 * config/arm/arm_neon_builtins.def: Remove entry for
34162 vcge and vcgeu.
34163
34164 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
34165
34166 PR target/98671
34167 * config/i386/i386-options.c (ix86_function_specific_save):
34168 Remove redundant assignment to opts->x_ix86_branch_cost.
34169 * config/i386/i386.c (ix86_prefetch_sse):
34170 Rename from x86_prefetch_sse. Update all uses.
34171 * config/i386/i386.h: Update for rename.
34172 * config/i386/i386-options.h: Ditto.
34173
34174 2021-01-14 Jakub Jelinek <jakub@redhat.com>
34175
34176 PR target/98670
34177 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
34178 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
34179 Use Bm instead of m for non-avx. Add isa attribute.
34180
34181 2021-01-14 Jakub Jelinek <jakub@redhat.com>
34182
34183 PR tree-optimization/96688
34184 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
34185 ~X can be simplified.
34186
34187 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
34188
34189 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
34190 IFN_LOAD_LANES results.
34191
34192 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34193
34194 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
34195 Define.
34196 (aarch64_xtn<mode>): Likewise.
34197 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
34198 Define
34199 builtins.
34200 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
34201 builtin.
34202 (vmovl_s16): Likewise.
34203 (vmovl_s32): Likewise.
34204 (vmovl_u8): Likewise.
34205 (vmovl_u16): Likewise.
34206 (vmovl_u32): Likewise.
34207 (vmovn_s16): Likewise.
34208 (vmovn_s32): Likewise.
34209 (vmovn_s64): Likewise.
34210 (vmovn_u16): Likewise.
34211 (vmovn_u32): Likewise.
34212 (vmovn_u64): Likewise.
34213
34214 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34215
34216 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
34217 Define.
34218 (aarch64_<su>qxtn2<mode>_be): Likewise.
34219 (aarch64_<su>qxtn2<mode>): Likewise.
34220 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
34221 Define builtins.
34222 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
34223 (su): Handle ss_truncate and us_truncate.
34224 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
34225 builtin.
34226 (vqmovn_high_s32): Likewise.
34227 (vqmovn_high_s64): Likewise.
34228 (vqmovn_high_u16): Likewise.
34229 (vqmovn_high_u32): Likewise.
34230 (vqmovn_high_u64): Likewise.
34231
34232 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34233
34234 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
34235 Define.
34236 (aarch64_xtn2<mode>_be): Likewise.
34237 (aarch64_xtn2<mode>): Likewise.
34238 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
34239 builtins.
34240 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
34241 builtins.
34242 (vmovn_high_s32): Likewise.
34243 (vmovn_high_s64): Likewise.
34244 (vmovn_high_u16): Likewise.
34245 (vmovn_high_u32): Likewise.
34246 (vmovn_high_u64): Likewise.
34247
34248 2021-01-13 Stafford Horne <shorne@gmail.com>
34249
34250 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
34251
34252 2021-01-13 Stafford Horne <shorne@gmail.com>
34253
34254 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
34255
34256 2021-01-13 Stafford Horne <shorne@gmail.com>
34257
34258 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
34259 define for __or1k_hard_float__.
34260
34261 2021-01-13 Stafford Horne <shorne@gmail.com>
34262
34263 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
34264 (PROFILE_HOOK): Define to call _mcount.
34265 (FUNCTION_PROFILER): Change from abort to no-op.
34266
34267 2021-01-13 Jakub Jelinek <jakub@redhat.com>
34268
34269 PR tree-optimization/96691
34270 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
34271 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
34272 (~D ^ C) or (D ^ C) can be simplified.
34273
34274 2021-01-13 Richard Biener <rguenther@suse.de>
34275
34276 PR tree-optimization/92645
34277 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
34278 until after vector lowering.
34279
34280 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
34281
34282 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
34283 to SVE_I.
34284 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
34285 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
34286
34287 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
34288
34289 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
34290 to SVE_I.
34291 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
34292 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
34293
34294 2021-01-13 Richard Biener <rguenther@suse.de>
34295
34296 PR tree-optimization/92645
34297 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
34298 BIT_FIELD_REF argument.
34299 (vect_build_slp_tree_2): Record the desired vector type
34300 on the external vector def.
34301 (vectorizable_slp_permutation): Handle required punning
34302 of existing vector defs.
34303
34304 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
34305
34306 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
34307
34308 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
34309
34310 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
34311
34312 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
34313
34314 * config.gcc [$target == *-*-gnu*]: Enable
34315 'default_gnu_indirect_function'.
34316
34317 2021-01-13 Jakub Jelinek <jakub@redhat.com>
34318
34319 PR target/95905
34320 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
34321 registers before calling targetm.vectorize.vec_perm_const, only after
34322 that.
34323 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
34324 two argument permutation when one operand is zero vector and only
34325 after that force operands into registers.
34326 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
34327 define_insn_and_split pattern.
34328 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
34329 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
34330 (*avx2_zero_extendv8hiv8si2_1): Likewise.
34331 (*avx512f_zero_extendv8siv8di2_1): Likewise.
34332 (*avx2_zero_extendv4siv4di2_1): Likewise.
34333 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
34334 into registers.
34335 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
34336 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
34337 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
34338 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
34339 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
34340 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
34341
34342 2021-01-13 Martin Liska <mliska@suse.cz>
34343
34344 PR tree-optimization/98455
34345 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
34346 Record also virtual PHIs.
34347 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
34348 conditionally.
34349
34350 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
34351
34352 * doc/invoke.texi (C++ Modules): Fix typos.
34353
34354 2021-01-13 Richard Biener <rguenther@suse.de>
34355
34356 PR tree-optimization/98640
34357 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
34358 handle plus or minus from a truncated operand to be
34359 sign-extended.
34360
34361 2021-01-13 Jakub Jelinek <jakub@redhat.com>
34362
34363 PR target/96938
34364 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
34365 define_insn_and_split patterns.
34366 (splitter after *btr<mode>_2): New splitter.
34367
34368 2021-01-13 Martin Liska <mliska@suse.cz>
34369
34370 PR ipa/98652
34371 * cgraphunit.c (analyze_functions): Remove dead code.
34372
34373 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
34374
34375 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
34376 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
34377 (a64fx_regmove_cost, a64fx_vector_cost): New.
34378 (a64fx_tunings): Use the new added cost tables.
34379
34380 2021-01-13 Jakub Jelinek <jakub@redhat.com>
34381
34382 PR target/95905
34383 * config/i386/predicates.md (pmovzx_parallel): New predicate.
34384 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
34385 define_insn_and_split pattern.
34386 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
34387 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
34388
34389 2021-01-13 Julian Brown <julian@codesourcery.com>
34390
34391 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
34392 to fix v0 register.
34393
34394 2021-01-13 Julian Brown <julian@codesourcery.com>
34395
34396 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
34397 on entry to a BB.
34398
34399 2021-01-13 Julian Brown <julian@codesourcery.com>
34400
34401 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
34402 for reciprocal-approximation instructions.
34403 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
34404 refinement and division result.
34405 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
34406
34407 2021-01-13 Julian Brown <julian@codesourcery.com>
34408
34409 * config/gcn/gcn-valu.md (subdf): Rename to...
34410 (subdf3): This.
34411
34412 2021-01-12 Martin Liska <mliska@suse.cz>
34413
34414 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
34415
34416 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
34417
34418 * function-abi.h: Fix typo.
34419
34420 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
34421
34422 PR target/97875
34423 PR target/97875
34424 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
34425 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
34426 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
34427 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
34428 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
34429 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
34430 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
34431 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
34432 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
34433 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
34434 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
34435 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
34436 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
34437 (ARM_HAVE_V2DI_LDST): Likewise.
34438 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
34439 (*movmisalign<mode>_mve_load): New pattern.
34440 * config/arm/neon.md (movmisalign<mode>): Move to ...
34441 * config/arm/vec-common.md: ... here.
34442
34443 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
34444
34445 PR target/97969
34446 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
34447 of pattern 'plus (plus (hard reg, const), pseudo)'.
34448
34449 2021-01-12 Richard Biener <rguenther@suse.de>
34450
34451 PR tree-optimization/98550
34452 * tree-vect-slp.c (vect_record_max_nunits): Check whether
34453 the group size is a multiple of the vector element count.
34454 (vect_build_slp_tree_1): When we need to fail because
34455 the vector type choosen causes unrolling do so lazily
34456 without affecting matches only at the end to guide group splitting.
34457
34458 2021-01-12 Martin Liska <mliska@suse.cz>
34459
34460 PR c++/97284
34461 * optc-save-gen.awk: Compare also n_target_save vars with
34462 strcmp.
34463
34464 2021-01-12 Martin Liska <mliska@suse.cz>
34465
34466 * gcov.c (source_info::debug): New.
34467 (print_usage): Add --debug (-D) option.
34468 (process_args): Likewise.
34469 (generate_results): Call src->debug after
34470 accumulate_line_counts.
34471 (read_graph_file): Properly assign id for EXIT_BLOCK.
34472 * profile.c (branch_prob): Dump function body before it is
34473 instrumented.
34474
34475 2021-01-12 Jakub Jelinek <jakub@redhat.com>
34476
34477 PR tree-optimization/98629
34478 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
34479 unless returning non-zero.
34480
34481 2021-01-12 Jakub Jelinek <jakub@redhat.com>
34482
34483 PR tree-optimization/95731
34484 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
34485 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
34486 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
34487 only after optimize_range_tests_var_bound.
34488
34489 2021-01-12 Jakub Jelinek <jakub@redhat.com>
34490
34491 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
34492 * configure: Regenerated.
34493
34494 2021-01-12 liuhongt <hongtao.liu@intel.com>
34495
34496 PR target/98612
34497 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
34498 Deleted.
34499 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
34500 dead code.
34501
34502 2021-01-12 Alexandre Oliva <oliva@adacore.com>
34503
34504 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
34505 declare.
34506 (auto_end_imm_use_stmt_traverse): New struct.
34507 (FOR_EACH_IMM_USE_STMT): Use it.
34508 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
34509 along with uses...
34510 * gimple-ssa-strength-reduction.c: ... here, ...
34511 * graphite-scop-detection.c: ... here, ...
34512 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
34513 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
34514 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
34515 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
34516 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
34517 * tree-vect-slp.c: ... and here, ...
34518 * doc/tree-ssa.texi: ... and the example here.
34519
34520 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34521
34522 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
34523 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
34524 (*sdiv_pow2<mode>3): New pattern.
34525 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
34526 Wrap the ASRD in an UNSPEC_PRED_X.
34527 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
34528 predicate with a constant PTRUE, if it isn't already.
34529 (*cond_<sve_int_op><mode>_z): Replace with...
34530 (*cond_<sve_int_op><mode>_any): ...this new pattern.
34531
34532 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34533
34534 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
34535 SVE_FULL_I to SVE_I.
34536 (*cond_bic<mode>_any): Likewise.
34537
34538 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34539
34540 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
34541 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
34542 to SVE_I.
34543
34544 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34545
34546 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
34547 SVE_FULL_I to SVE_I.
34548 (*aarch64_cond_<su>abd<mode>_2): Likewise.
34549 (*aarch64_cond_<su>abd<mode>_any): Likewise.
34550 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
34551 for the max and min but not for the minus.
34552 (*aarch64_cond_<su>abd<mode>_3): New pattern.
34553
34554 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34555
34556 * config/aarch64/iterators.md (SVE_24I): New iterator.
34557 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
34558 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
34559
34560 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34561
34562 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
34563 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
34564 to SVE_I.
34565 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
34566 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
34567 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
34568 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
34569
34570 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34571
34572 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
34573 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
34574 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
34575 to SVE_I.
34576
34577 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
34578
34579 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
34580 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
34581 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
34582
34583 2021-01-11 Martin Liska <mliska@suse.cz>
34584
34585 PR jit/98615
34586 * symtab-clones.h (clone_info::release): Release
34587 symtab::m_clones with ggc_delete as it's a GGC memory.
34588
34589 2021-01-11 Matthias Klose <doko@ubuntu.com>
34590
34591 * Makefile.in (LINK_PROGRESS): Show the link target.
34592
34593 2021-01-11 Richard Biener <rguenther@suse.de>
34594
34595 PR tree-optimization/91403
34596 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
34597 single-element interleaving group size at 4096 elements.
34598
34599 2021-01-11 Richard Biener <rguenther@suse.de>
34600
34601 PR tree-optimization/98526
34602 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
34603 of the actual reduction op for the regular case.
34604 (vectorizable_reduction): Cost the stmts
34605 vect_transform_reduction produces here.
34606
34607 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
34608
34609 * tree-ssa-forwprop.c (simplify_vector_constructor): For
34610 big-endian, use UNPACK[_FLOAT]_HI.
34611
34612 2021-01-11 Tamar Christina <tamar.christina@arm.com>
34613
34614 * tree-vect-slp-patterns.c (class complex_pattern,
34615 class complex_add_pattern): Add parameters to matches.
34616 (complex_add_pattern::build): Free memory.
34617 (complex_add_pattern::matches): Move validation end of match.
34618 (complex_add_pattern::recognize): Likewise.
34619
34620 2021-01-11 Tamar Christina <tamar.christina@arm.com>
34621
34622 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
34623
34624 2021-01-11 Tamar Christina <tamar.christina@arm.com>
34625
34626 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
34627
34628 2021-01-11 Jakub Jelinek <jakub@redhat.com>
34629
34630 PR tree-optimization/95867
34631 * tree-ssa-math-opts.h: New header.
34632 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
34633 (powi_as_mults): No longer static. Use build_one_cst instead of
34634 build_real. Formatting fix.
34635 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
34636 (attempt_builtin_powi): Handle multiplication reassociation without
34637 powi_fndecl using powi_as_mults.
34638 (reassociate_bb): For integral types don't require
34639 -funsafe-math-optimizations to call attempt_builtin_powi.
34640
34641 2021-01-11 Jakub Jelinek <jakub@redhat.com>
34642
34643 PR tree-optimization/95852
34644 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
34645 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
34646 allow in the bb any of the stmts in that vector, div_stmt and
34647 up to 3 cast stmts.
34648 (arith_cast_equal_p): New function.
34649 (arith_overflow_check_p): Add cast_stmt argument, handle signed
34650 multiply overflow checks.
34651 (match_arith_overflow): Adjust caller. Handle signed multiply
34652 overflow checks.
34653
34654 2021-01-11 Jakub Jelinek <jakub@redhat.com>
34655
34656 PR tree-optimization/95852
34657 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
34658 (uaddsub_overflow_check_p): Renamed to ...
34659 (arith_overflow_check_p): ... this. Handle also multiplication
34660 with overflow check.
34661 (match_uaddsub_overflow): Renamed to ...
34662 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
34663 also multiplication with overflow check. Adjust function comment.
34664 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
34665 match_arith_overflow also for MULT_EXPR.
34666
34667 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34668
34669 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
34670 __builtin_convertvector.
34671 (vmovl_s16): Likewise.
34672 (vmovl_s32): Likewise.
34673 (vmovl_u8): Likewise.
34674 (vmovl_u16): Likewise.
34675 (vmovl_u32): Likewise.
34676 (vmovn_s16): Likewise.
34677 (vmovn_s32): Likewise.
34678 (vmovn_s64): Likewise.
34679 (vmovn_u16): Likewise.
34680 (vmovn_u32): Likewise.
34681 (vmovn_u64): Likewise.
34682
34683 2021-01-11 Martin Liska <mliska@suse.cz>
34684
34685 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
34686 (if_chain::is_beneficial): Delete clusters
34687 (find_conditions): Make second argument of conditions_in_bbs a
34688 pointer so that we control over it's lifetime.
34689 (pass_if_to_switch::execute): Delete them.
34690
34691 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
34692
34693 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
34694 it isn't set.
34695
34696 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
34697
34698 * config/vax/vax.md (cc): Remove mode attribute.
34699 (subst_<cc>, subst_f<cc>): Rename to...
34700 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
34701 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
34702 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
34703 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
34704
34705 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
34706
34707 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
34708 `const_double_zero'.
34709
34710 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
34711
34712 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
34713 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
34714 operands.
34715
34716 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
34717
34718 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
34719 rtx.
34720 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
34721 with `const_double_zero'.
34722 * doc/rtl.texi (Constant Expression Types): Document it.
34723
34724 2021-01-09 Jakub Jelinek <jakub@redhat.com>
34725
34726 PR c++/98556
34727 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
34728 POINTER_DIFF_EXPR to be any integral type.
34729
34730 2021-01-09 Jakub Jelinek <jakub@redhat.com>
34731
34732 PR rtl-optimization/98603
34733 * function.c (instantiate_virtual_regs_in_insn): For asm goto
34734 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
34735 if any, set ASM_OPERANDS mode to VOIDmode and change
34736 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
34737
34738 2021-01-09 Alexandre Oliva <oliva@gnu.org>
34739
34740 PR debug/97714
34741 * final.c (notice_source_line): Narrow down the condition to
34742 skip a line-0 marker.
34743
34744 2021-01-08 Sergei Trofimovich <siarheit@google.com>
34745
34746 * ipa-modref.c (merge_call_side_effects): Fix
34747 linebreak split by reordering two print calls.
34748
34749 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
34750
34751 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
34752 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
34753 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
34754 consistency, fix constraint.
34755
34756 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
34757
34758 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
34759 callables instead of mask values.
34760 (struct target_flag_set_p): New predicate.
34761 (s390_cpu_cpp_builtins_internal): Define or undefine
34762 __LONG_DOUBLE_VX__ macro.
34763
34764 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
34765
34766 PR target/98482
34767 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
34768 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
34769 targets.
34770
34771 2021-01-08 Richard Biener <rguenther@suse.de>
34772
34773 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
34774
34775 2021-01-08 Richard Biener <rguenther@suse.de>
34776
34777 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
34778 (vect_build_slp_tree): On cache hit release the matched
34779 scalar stmts vector.
34780 * tree-vect-stmts.c (vectorizable_store): Properly free
34781 vec_oprnds before possibly gathering them again.
34782
34783 2021-01-08 Richard Biener <rguenther@suse.de>
34784
34785 PR tree-optimization/98544
34786 * tree-vect-slp.c (vect_optimize_slp): Always materialize
34787 permutes at a permute node.
34788
34789 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
34790
34791 PR target/98482
34792 * config/i386/i386.c (x86_function_profiler): Use R10 to call
34793 mcount in large model. Sorry for large model with PIC.
34794
34795 2021-01-08 Jakub Jelinek <jakub@redhat.com>
34796
34797 PR target/98585
34798 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
34799 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
34800 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
34801 TargetSave and initialize for variables with enum types.
34802 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
34803 mstack-protector-guard-symbol=): Add Save.
34804 * config/i386/i386-options.c (ix86_function_specific_save,
34805 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
34806 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
34807 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
34808 x_ix86_veclibabi_type.
34809
34810 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
34811
34812 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
34813 SVE_FULL_I to SVE_I.
34814 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
34815
34816 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
34817
34818 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
34819 SVE_FULL_I to SVE_I.
34820 (*cond_uxt<mode>_any): Likewise.
34821
34822 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34823
34824 * config/aarch64/iterators.md (Vwhalf): New iterator.
34825 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
34826 Rename to...
34827 (aarch64_<sur>adalp<mode>): ... This. Make more
34828 builtin-friendly.
34829 (<sur>sadv16qi): Adjust callsite of the above.
34830 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
34831 builtins.
34832 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
34833 builtins.
34834 (vpadal_s16): Likewise.
34835 (vpadal_u8): Likewise.
34836 (vpadal_u16): Likewise.
34837 (vpadalq_s8): Likewise.
34838 (vpadalq_s16): Likewise.
34839 (vpadalq_s32): Likewise.
34840 (vpadalq_u8): Likewise.
34841 (vpadalq_u16): Likewise.
34842 (vpadalq_u32): Likewise.
34843
34844 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34845
34846 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
34847 Rename to...
34848 (aarch64_<su>abd<mode>): ... This.
34849 (<sur>sadv16qi): Adjust callsite of the above.
34850 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
34851 builtins.
34852 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
34853 builtin.
34854 (vabd_s16): Likewise.
34855 (vabd_s32): Likewise.
34856 (vabd_u8): Likewise.
34857 (vabd_u16): Likewise.
34858 (vabd_u32): Likewise.
34859 (vabdq_s8): Likewise.
34860 (vabdq_s16): Likewise.
34861 (vabdq_s32): Likewise.
34862 (vabdq_u8): Likewise.
34863 (vabdq_u16): Likewise.
34864 (vabdq_u32): Likewise.
34865
34866 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34867
34868 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
34869 builtins.
34870 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
34871 (vaba_s16): Likewise.
34872 (vaba_s32): Likewise.
34873 (vaba_u8): Likewise.
34874 (vaba_u16): Likewise.
34875 (vaba_u32): Likewise.
34876 (vabaq_s8): Likewise.
34877 (vabaq_s16): Likewise.
34878 (vabaq_s32): Likewise.
34879 (vabaq_u8): Likewise.
34880 (vabaq_u16): Likewise.
34881 (vabaq_u32): Likewise.
34882
34883 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34884
34885 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
34886 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
34887 Change RTL pattern to match.
34888
34889 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
34890
34891 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
34892 * config/riscv/riscv-c.c (riscv-subset.h): New.
34893 (INCLUDE_STRING): Define.
34894 (riscv_cpu_cpp_builtins): Add new style architecture extension
34895 test macros.
34896 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
34897 (riscv_subset_list::end): New.
34898 (riscv_current_subset_list): New.
34899
34900 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
34901
34902 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
34903 Move to riscv-subset.h.
34904 (struct riscv_subset_t): Ditto.
34905 (class riscv_subset_list): Ditto.
34906 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
34907 from riscv-common.c.
34908 (struct riscv_subset_t): Ditto.
34909 (class riscv_subset_list): Ditto.
34910 * config/riscv/t-riscv ($(common_out_file)): Add file
34911 dependency.
34912
34913 2021-01-07 Jakub Jelinek <jakub@redhat.com>
34914
34915 PR target/98567
34916 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
34917 New define_insn patterns.
34918
34919 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34920
34921 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
34922 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
34923 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
34924
34925 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34926
34927 PR tree-optimization/98560
34928 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
34929 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
34930 argument 1.
34931 (vec_cond_direct): Likewise argument 2.
34932 (vec_condu_direct, vec_condeq_direct): Delete.
34933 (expand_vect_cond_optab_fn): Rename to...
34934 (expand_vec_cond_optab_fn): ...this, replacing old macro.
34935 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
34936 (expand_vect_cond_mask_optab_fn): Rename to...
34937 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
34938 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
34939 convert optab.
34940 (direct_vec_cond_optab_supported_p): Likewise.
34941 (direct_vec_condu_optab_supported_p): Delete.
34942 (direct_vec_condeq_optab_supported_p): Delete.
34943 * gimple-isel.cc: Include internal-fn.h.
34944 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
34945 before using it.
34946
34947 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34948
34949 PR tree-optimization/98560
34950 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
34951 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
34952
34953 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
34954
34955 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
34956 rotate_insn and optab code attributes.
34957 Update all uses to merged code attribute.
34958 * config/i386/sse.md: Update all uses to merged code attribute.
34959 * config/i386/mmx.md: Update all uses to merged code attribute.
34960
34961 2021-01-07 Jakub Jelinek <jakub@redhat.com>
34962
34963 PR tree-optimization/98568
34964 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
34965 (bswap_replace): Use it.
34966
34967 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
34968
34969 PR rtl-optimization/97978
34970 * lra-int.h (lra_hard_reg_split_p): New external.
34971 * lra.c (lra_hard_reg_split_p): New global.
34972 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
34973 * lra-assigns.c (lra_assign): Don't check allocation correctness
34974 after hard reg splitting.
34975
34976 2021-01-06 Martin Sebor <msebor@redhat.com>
34977
34978 PR c++/98305
34979 * builtins.c (new_delete_mismatch_p): New overload.
34980 (new_delete_mismatch_p (tree, tree)): Call it.
34981
34982 2021-01-06 Alexandre Oliva <oliva@adacore.com>
34983
34984 * Makefile.in (T_GLIMITS_H): New.
34985 (stmp-int-hdrs): Depend on it, use it.
34986 * config/t-vxworks (T_GLIMITS_H): Override it.
34987 (vxw-glimits.h): New.
34988
34989 2021-01-06 Richard Biener <rguenther@suse.de>
34990
34991 PR tree-optimization/98513
34992 * value-range.cc (intersect_ranges): Compare the upper bounds
34993 for the expected relation.
34994
34995 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34996
34997 Revert:
34998 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
34999
35000 * doc/standards.texi (HSAIL): Remove section.
35001
35002 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
35003
35004 * configure: Re-generate.
35005
35006 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35007
35008 * doc/invoke.texi (-std=c++20): Adjust for the publication of
35009 ISO 14882:2020 standard.
35010 * doc/standards.texi: Likewise.
35011
35012 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35013
35014 PR tree-optimization/94802
35015 * expr.h (maybe_optimize_sub_cmp_0): Declare.
35016 * expr.c: Include tree-pretty-print.h and flags.h.
35017 (maybe_optimize_sub_cmp_0): New function.
35018 (do_store_flag): Use it.
35019 * cfgexpand.c (expand_gimple_cond): Likewise.
35020
35021 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
35022
35023 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
35024 * rtlanal.c (simple_regno_set): Tweak description to clarify the
35025 RMW condition.
35026
35027 2021-01-05 Richard Biener <rguenther@suse.de>
35028
35029 PR tree-optimization/98516
35030 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
35031 lanes when materializing on a VEC_PERM node.
35032 (vectorizable_slp_permutation): Dump the permute properly.
35033
35034 2021-01-05 Richard Biener <rguenther@suse.de>
35035
35036 * tree-vect-slp.c (vect_slp_region): Move debug counter
35037 to cover individual subgraphs.
35038
35039 2021-01-05 Richard Biener <rguenther@suse.de>
35040
35041 PR tree-optimization/98428
35042 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
35043 vector lane extracts for loop vectorization.
35044
35045 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35046
35047 PR tree-optimization/98514
35048 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
35049 int64_t *.
35050 (operand_rank): Change type from hash_map<tree, long> to
35051 hash_map<tree, int64_t>.
35052 (phi_rank): Change return type from long to int64_t.
35053 (loop_carried_phi): Change block_rank variable type from long to
35054 int64_t.
35055 (propagate_rank): Change return type, rank parameter type and
35056 op_rank variable type from long to int64_t.
35057 (find_operand_rank): Change return type from long to int64_t
35058 and change slot variable type from long * to int64_t *.
35059 (insert_operand_rank): Change rank parameter type from long to
35060 int64_t.
35061 (get_rank): Change return type and rank variable type from long to
35062 int64_t. Use PRId64 instead of ld to print the rank.
35063 (init_reassoc): Change rank variable type from long to int64_t
35064 and adjust correspondingly bb_rank and operand_rank initialization.
35065
35066 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35067
35068 PR tree-optimization/96928
35069 * tree-ssa-phiopt.c (xor_replacement): New function.
35070 (tree_ssa_phiopt_worker): Call it.
35071
35072 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35073
35074 PR tree-optimization/96930
35075 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
35076 from narrower value which has the same type as 1 << B, perform
35077 the right shift on the narrower value followed by extension.
35078
35079 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35080
35081 PR tree-optimization/96239
35082 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
35083 function.
35084 (get_status_for_store_merging): Don't return BB_INVALID for blocks
35085 with potential bswap optimizable CONSTRUCTORs.
35086 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
35087 if possible.
35088
35089 2021-01-05 Richard Biener <rguenther@suse.de>
35090
35091 PR tree-optimization/98381
35092 * tree.c (vector_element_bits): Properly compute bool vector
35093 element size.
35094 * tree-vect-loop.c (vectorizable_live_operation): Properly
35095 compute the last lane bit offset.
35096
35097 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
35098
35099 PR target/98522
35100 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
35101 Clear the top 64 bytes of the input XMM register.
35102 (sse_cvttps2pi): Ditto.
35103
35104 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
35105
35106 PR target/98521
35107 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
35108
35109 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
35110
35111 PR target/98495
35112 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
35113 short first.
35114
35115 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
35116
35117 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
35118 (umaddsidi4_split): Likewise.
35119
35120 2021-01-05 liuhongt <hongtao.liu@intel.com>
35121
35122 PR target/98461
35123 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
35124 define_insn_and_split for zero_extend of subreg HI of pmovskb
35125 result.
35126 (*sse2_pmovskb_zexthisi): Add new combine splitters for
35127 zero_extend of not of subreg HI of pmovskb result.
35128
35129 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
35130
35131 PR target/97269
35132 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
35133 nested in CONSTs.
35134 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
35135 convert_memory_address to convert symbolic immediates to ptr_mode
35136 before forcing them to memory.
35137
35138 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
35139
35140 PR rtl-optimization/97144
35141 * recog.c (constrain_operands): Initialize matching_operand
35142 for each alternative, rather than only doing it once.
35143
35144 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
35145
35146 PR rtl-optimization/98403
35147 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
35148 why we don't remove call clobbers.
35149 (function_info::apply_changes_to_insn): Don't attempt to add
35150 call clobbers here.
35151
35152 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
35153
35154 PR tree-optimization/98371
35155 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
35156 (vect_analyze_loop): If an epilogue loop appears to be cheaper
35157 than the main loop, re-analyze it as a main loop before adopting
35158 it as a main loop.
35159
35160 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35161
35162 PR c++/98316
35163 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
35164 * aclocal.m4, configure: Regenerate.
35165 * Makefile.in (NETLIBS): Define.
35166 (BACKEND): Remove $(CODYLIB).
35167
35168 2021-01-05 Jakub Jelinek <jakub@redhat.com>
35169
35170 PR rtl-optimization/98334
35171 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
35172 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
35173
35174 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35175
35176 * tree-inline.c (expand_call_inline): Restore input_location.
35177 Return result from recursive call.
35178
35179 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
35180
35181 PR tree-optimization/95401
35182 * config/aarch64/aarch64-sve-builtins.cc
35183 (gimple_folder::load_store_cookie): Use bits rather than bytes
35184 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
35185 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
35186 * tree-vect-stmts.c (vectorizable_store): Likewise.
35187 (vectorizable_load): Likewise.
35188
35189 2021-01-04 Richard Biener <rguenther@suse.de>
35190
35191 PR tree-optimization/98308
35192 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
35193 SLP vectype.
35194
35195 2021-01-04 Jakub Jelinek <jakub@redhat.com>
35196
35197 PR tree-optimization/95771
35198 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
35199 with precision smaller than int's precision and types with precision
35200 twice as large as long long. Formatting fixes.
35201
35202 2021-01-04 Richard Biener <rguenther@suse.de>
35203
35204 PR tree-optimization/98464
35205 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
35206 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
35207 (process_bb): Adjust.
35208
35209 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
35210
35211 PR other/98437
35212 * doc/invoke.texi (-fsanitize=address): Fix wording describing
35213 clash with -fsanitize=hwaddress.
35214
35215 2021-01-04 Richard Biener <rguenther@suse.de>
35216
35217 PR tree-optimization/98282
35218 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
35219 invariants as VN_NARY.
35220
35221 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
35222
35223 PR target/89057
35224 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
35225 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
35226 to handle zero operands.
35227
35228 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
35229
35230 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
35231 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
35232 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
35233 [-32, 31].
35234
35235 2021-01-04 Richard Biener <rguenther@suse.de>
35236
35237 PR tree-optimization/98393
35238 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
35239 when hitting the limit.
35240
35241 2021-01-04 Richard Biener <rguenther@suse.de>
35242
35243 PR tree-optimization/98291
35244 * tree-vect-loop.c (vectorizable_reduction): Bypass
35245 associativity check for SLP reductions with VF 1.
35246
35247 2021-01-04 Jakub Jelinek <jakub@redhat.com>
35248
35249 PR tree-optimization/96782
35250 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
35251
35252 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
35253
35254 * collect-utils.c (collect_execute): Check dumppfx.
35255 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
35256 to collect_execute.
35257 (do_link): Add new parameter atsuffix.
35258 (main): Handle -dumpdir option. Skip one argument for
35259 -o, -isystem and -B options.
35260 * gcc.c (make_at_file): New helper function.
35261 (close_at_file): Use it.
35262
35263 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35264
35265 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
35266 Amend handling for LD64_VERSION fallback defaults.
35267
35268 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35269
35270 * config.gcc: Compute default version information
35271 from the configured target. Likewise defaults for
35272 ld64.
35273 * config/darwin10.h: Removed.
35274 * config/darwin12.h: Removed.
35275 * config/darwin9.h: Removed.
35276 * config/rs6000/darwin8.h: Removed.
35277
35278 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35279
35280 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
35281
35282 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35283
35284 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
35285 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
35286
35287 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35288
35289 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
35290 here...
35291 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
35292
35293 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35294
35295 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
35296 for the Darwin10 unwinder stub from here ...
35297 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
35298
35299 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
35300
35301 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
35302 (ASM_DEBUG_SPEC):Only define if the assembler supports
35303 stabs.
35304 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
35305 (DARWIN_PREFER_DWARF): Define.
35306 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
35307 (DARWIN_PREFER_DWARF): Likewise
35308 (DSYMUTIL_SPEC): Likewise.
35309 (COLLECT_RUN_DSYMUTIL): Likewise.
35310 (ASM_DEBUG_SPEC): Likewise.
35311 (ASM_DEBUG_OPTION_SPEC): Likewise.
35312
35313 2021-01-02 Jan Hubicka <jh@suse.cz>
35314
35315 * cfg.c (free_block): ggc_free bb.
35316
35317 2021-01-01 Jakub Jelinek <jakub@redhat.com>
35318
35319 * gcc.c (process_command): Update copyright notice dates.
35320 * gcov-dump.c (print_version): Ditto.
35321 * gcov.c (print_version): Ditto.
35322 * gcov-tool.c (print_version): Ditto.
35323 * gengtype.c (create_file): Ditto.
35324 * doc/cpp.texi: Bump @copying's copyright year.
35325 * doc/cppinternals.texi: Ditto.
35326 * doc/gcc.texi: Ditto.
35327 * doc/gccint.texi: Ditto.
35328 * doc/gcov.texi: Ditto.
35329 * doc/install.texi: Ditto.
35330 * doc/invoke.texi: Ditto.
35331
35332 2021-01-01 Jakub Jelinek <jakub@redhat.com>
35333
35334 * ChangeLog-2020: Rotate ChangeLog. New file.
35335
35336 \f
35337 Copyright (C) 2021 Free Software Foundation, Inc.
35338
35339 Copying and distribution of this file, with or without modification,
35340 are permitted in any medium without royalty provided the copyright
35341 notice and this notice are preserved.