1 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
3 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
4 Proceed if no symbol summary or the symbol alias flag is false.
6 2021-09-15 Jakub Jelinek <jakub@redhat.com>
10 * varasm.c (output_constructor_regular_field): Instead of assertion
11 that array_size_for_constructor result is equal to size of
12 TREE_TYPE (local->val) in bytes, assert that the type size is greater
13 or equal to array_size_for_constructor result and use type size as
16 2021-09-15 Martin Liska <mliska@suse.cz>
19 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
21 2021-09-15 Martin Liska <mliska@suse.cz>
24 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
25 Check that we have a symbol summary for a symbol.
27 2021-09-15 Richard Biener <rguenther@suse.de>
30 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
31 to inherit from elfos.h
33 2021-09-15 liuhongt <hongtao.liu@intel.com>
36 * config/i386/i386-expand.c
37 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
39 (ix86_expand_vector_set): Use blendw instead of pinsrw.
40 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
41 AVX512FP16 which supports 16bit vector load.
42 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
44 (avx512bw_interleave_high<mode><mask_name>): .. this, and
46 (avx2_interleave_highv16hi<mask_name>): Rename to ..
47 (avx2_interleave_high<mode><mask_name>): .. this, and extend
49 (vec_interleave_highv8hi<mask_name>): Rename to ..
50 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
51 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
53 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
54 this, and extend to V32HFmode.
55 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
56 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
57 (vec_interleave_lowv8hi<mask_name>): Rename to ..
58 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
59 (sse4_1_pblendw): Rename to ..
60 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
61 (avx2_pblendph): New define_expand.
62 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
63 sseintmodesuffix instead of ssemodesuffix.
64 (blendsuf): New mode attr.
66 2021-09-15 Richard Biener <rguenther@suse.de>
68 * tree-vectorizer.h (dr_misalignment): Move out of line.
69 (dr_target_alignment): New.
70 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
71 (set_dr_target_alignment): New.
72 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
73 * tree-vect-data-refs.c (dr_misalignment): Compute and
74 return the group members misalignment.
75 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
76 (vect_analyze_data_refs_alignment): Compute alignment only
77 for the first element of a DR group.
78 (vect_slp_analyze_node_alignment): Likewise.
80 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
82 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
83 * config/i386/avx512fp16vlintrin.h: Likewise.
84 * config/i386/i386-builtin.def: Adjust builtin name and
85 enumeration to match AVX512F style.
87 2021-09-15 Richard Biener <rguenther@suse.de>
89 PR tree-optimization/102318
90 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
91 previous change and do the mode conversion separately from
94 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
95 Peter Cordes <peter@cordes.ca>
98 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
99 (*vec_extract<mode><ssescalarmodelower>_valign): Output
100 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
103 2021-09-15 Richard Biener <rguenther@suse.de>
105 * config.gcc: Remove vax-*-openbsd* configuration.
107 2021-09-15 Richard Biener <rguenther@suse.de>
109 * config.gcc: Remove m68k-openbsd.
111 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
114 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
116 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
118 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
119 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
120 (*mma_xxsetaccz): Delete.
121 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
122 Use UNSPECV_MMA_XXSETACCZ. Update comment.
123 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
125 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
127 * Makefile.in: Remove variables related to applying no-PIE
128 to the exes on $build.
129 * configure: Regenerate.
130 * configure.ac: Remove configuration related to applying
131 no-PIE to the exes on $build.
133 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
135 * config/arc/arc.md (doloop_end): Add missing mode.
136 (loop_end): Likewise.
138 2021-09-14 Jakub Jelinek <jakub@redhat.com>
140 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
141 it to recursive calls, for depth above 7 just gimplify or return.
142 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
143 __builtin_clear_padding and TARGET_EXPR.
144 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
146 2021-09-14 liuhongt <hongtao.liu@intel.com>
148 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
150 (_mm_mask_fpclass_sh_mask): Likewise.
151 (_mm512_mask_fpclass_ph_mask): Likewise.
152 (_mm512_fpclass_ph_mask): Likewise.
153 (_mm_getexp_sh): Likewise.
154 (_mm_mask_getexp_sh): Likewise.
155 (_mm_maskz_getexp_sh): Likewise.
156 (_mm512_getexp_ph): Likewise.
157 (_mm512_mask_getexp_ph): Likewise.
158 (_mm512_maskz_getexp_ph): Likewise.
159 (_mm_getexp_round_sh): Likewise.
160 (_mm_mask_getexp_round_sh): Likewise.
161 (_mm_maskz_getexp_round_sh): Likewise.
162 (_mm512_getexp_round_ph): Likewise.
163 (_mm512_mask_getexp_round_ph): Likewise.
164 (_mm512_maskz_getexp_round_ph): Likewise.
165 (_mm_getmant_sh): Likewise.
166 (_mm_mask_getmant_sh): Likewise.
167 (_mm_maskz_getmant_sh): Likewise.
168 (_mm512_getmant_ph): Likewise.
169 (_mm512_mask_getmant_ph): Likewise.
170 (_mm512_maskz_getmant_ph): Likewise.
171 (_mm_getmant_round_sh): Likewise.
172 (_mm_mask_getmant_round_sh): Likewise.
173 (_mm_maskz_getmant_round_sh): Likewise.
174 (_mm512_getmant_round_ph): Likewise.
175 (_mm512_mask_getmant_round_ph): Likewise.
176 (_mm512_maskz_getmant_round_ph): Likewise.
177 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
179 (_mm_fpclass_ph_mask): Likewise.
180 (_mm256_mask_fpclass_ph_mask): Likewise.
181 (_mm256_fpclass_ph_mask): Likewise.
182 (_mm256_getexp_ph): Likewise.
183 (_mm256_mask_getexp_ph): Likewise.
184 (_mm256_maskz_getexp_ph): Likewise.
185 (_mm_getexp_ph): Likewise.
186 (_mm_mask_getexp_ph): Likewise.
187 (_mm_maskz_getexp_ph): Likewise.
188 (_mm256_getmant_ph): Likewise.
189 (_mm256_mask_getmant_ph): Likewise.
190 (_mm256_maskz_getmant_ph): Likewise.
191 (_mm_getmant_ph): Likewise.
192 (_mm_mask_getmant_ph): Likewise.
193 (_mm_maskz_getmant_ph): Likewise.
194 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
195 * config/i386/i386-builtin.def: Add corresponding new builtins.
196 * config/i386/i386-expand.c
197 (ix86_expand_args_builtin): Handle new builtin types.
198 (ix86_expand_round_builtin): Ditto.
199 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
200 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
201 to support HF vector modes.
202 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
204 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
205 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
206 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
207 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
210 2021-09-14 liuhongt <hongtao.liu@intel.com>
212 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
214 (_mm512_mask_reduce_ph): Likewise.
215 (_mm512_maskz_reduce_ph): Likewise.
216 (_mm512_reduce_round_ph): Likewise.
217 (_mm512_mask_reduce_round_ph): Likewise.
218 (_mm512_maskz_reduce_round_ph): Likewise.
219 (_mm_reduce_sh): Likewise.
220 (_mm_mask_reduce_sh): Likewise.
221 (_mm_maskz_reduce_sh): Likewise.
222 (_mm_reduce_round_sh): Likewise.
223 (_mm_mask_reduce_round_sh): Likewise.
224 (_mm_maskz_reduce_round_sh): Likewise.
225 (_mm512_roundscale_ph): Likewise.
226 (_mm512_mask_roundscale_ph): Likewise.
227 (_mm512_maskz_roundscale_ph): Likewise.
228 (_mm512_roundscale_round_ph): Likewise.
229 (_mm512_mask_roundscale_round_ph): Likewise.
230 (_mm512_maskz_roundscale_round_ph): Likewise.
231 (_mm_roundscale_sh): Likewise.
232 (_mm_mask_roundscale_sh): Likewise.
233 (_mm_maskz_roundscale_sh): Likewise.
234 (_mm_roundscale_round_sh): Likewise.
235 (_mm_mask_roundscale_round_sh): Likewise.
236 (_mm_maskz_roundscale_round_sh): Likewise.
237 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
239 (_mm_mask_reduce_ph): Likewise.
240 (_mm_maskz_reduce_ph): Likewise.
241 (_mm256_reduce_ph): Likewise.
242 (_mm256_mask_reduce_ph): Likewise.
243 (_mm256_maskz_reduce_ph): Likewise.
244 (_mm_roundscale_ph): Likewise.
245 (_mm_mask_roundscale_ph): Likewise.
246 (_mm_maskz_roundscale_ph): Likewise.
247 (_mm256_roundscale_ph): Likewise.
248 (_mm256_mask_roundscale_ph): Likewise.
249 (_mm256_maskz_roundscale_ph): Likewise.
250 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
251 * config/i386/i386-builtin.def: Add corresponding new builtins.
252 * config/i386/i386-expand.c
253 (ix86_expand_args_builtin): Handle new builtin types.
254 (ix86_expand_round_builtin): Ditto.
255 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
257 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
258 ... this, and adjust for round operands.
259 (reduces<mode><mask_scalar_name>): Likewise, with ...
260 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
262 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
263 Adjust for HF vector modes.
264 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
266 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
268 2021-09-14 liuhongt <hongtao.liu@intel.com>
270 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
272 (_mm512_mask_rcp_ph): Likewise.
273 (_mm512_maskz_rcp_ph): Likewise.
274 (_mm_rcp_sh): Likewise.
275 (_mm_mask_rcp_sh): Likewise.
276 (_mm_maskz_rcp_sh): Likewise.
277 (_mm512_scalef_ph): Likewise.
278 (_mm512_mask_scalef_ph): Likewise.
279 (_mm512_maskz_scalef_ph): Likewise.
280 (_mm512_scalef_round_ph): Likewise.
281 (_mm512_mask_scalef_round_ph): Likewise.
282 (_mm512_maskz_scalef_round_ph): Likewise.
283 (_mm_scalef_sh): Likewise.
284 (_mm_mask_scalef_sh): Likewise.
285 (_mm_maskz_scalef_sh): Likewise.
286 (_mm_scalef_round_sh): Likewise.
287 (_mm_mask_scalef_round_sh): Likewise.
288 (_mm_maskz_scalef_round_sh): Likewise.
289 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
291 (_mm256_rcp_ph): Likewise.
292 (_mm_mask_rcp_ph): Likewise.
293 (_mm256_mask_rcp_ph): Likewise.
294 (_mm_maskz_rcp_ph): Likewise.
295 (_mm256_maskz_rcp_ph): Likewise.
296 (_mm_scalef_ph): Likewise.
297 (_mm256_scalef_ph): Likewise.
298 (_mm_mask_scalef_ph): Likewise.
299 (_mm256_mask_scalef_ph): Likewise.
300 (_mm_maskz_scalef_ph): Likewise.
301 (_mm256_maskz_scalef_ph): Likewise.
302 * config/i386/i386-builtin.def: Add new builtins.
303 * config/i386/sse.md (VFH_AVX512VL): New.
304 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
305 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
306 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
307 Adjust to support HF vector modes.
308 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
310 2021-09-14 liuhongt <hongtao.liu@intel.com>
312 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
314 (_mm512_mask_sqrt_ph): Likewise.
315 (_mm512_maskz_sqrt_ph): Likewise.
316 (_mm512_sqrt_round_ph): Likewise.
317 (_mm512_mask_sqrt_round_ph): Likewise.
318 (_mm512_maskz_sqrt_round_ph): Likewise.
319 (_mm512_rsqrt_ph): Likewise.
320 (_mm512_mask_rsqrt_ph): Likewise.
321 (_mm512_maskz_rsqrt_ph): Likewise.
322 (_mm_rsqrt_sh): Likewise.
323 (_mm_mask_rsqrt_sh): Likewise.
324 (_mm_maskz_rsqrt_sh): Likewise.
325 (_mm_sqrt_sh): Likewise.
326 (_mm_mask_sqrt_sh): Likewise.
327 (_mm_maskz_sqrt_sh): Likewise.
328 (_mm_sqrt_round_sh): Likewise.
329 (_mm_mask_sqrt_round_sh): Likewise.
330 (_mm_maskz_sqrt_round_sh): Likewise.
331 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
332 (_mm256_sqrt_ph): Likewise.
333 (_mm_mask_sqrt_ph): Likewise.
334 (_mm256_mask_sqrt_ph): Likewise.
335 (_mm_maskz_sqrt_ph): Likewise.
336 (_mm256_maskz_sqrt_ph): Likewise.
337 (_mm_rsqrt_ph): Likewise.
338 (_mm256_rsqrt_ph): Likewise.
339 (_mm_mask_rsqrt_ph): Likewise.
340 (_mm256_mask_rsqrt_ph): Likewise.
341 (_mm_maskz_rsqrt_ph): Likewise.
342 (_mm256_maskz_rsqrt_ph): Likewise.
343 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
344 * config/i386/i386-builtin.def: Add corresponding new builtins.
345 * config/i386/i386-expand.c
346 (ix86_expand_args_builtin): Handle new builtins.
347 (ix86_expand_round_builtin): Ditto.
348 * config/i386/sse.md (VF_AVX512FP16VL): New.
349 (sqrt<mode>2): Adjust for HF vector modes.
350 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
351 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
353 (<sse>_rsqrt<mode>2<mask_name>): New.
354 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
356 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
359 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
360 'RESERVED_LOCATION_P' locations.
361 * warning-control.cc (get_nowarn_spec, suppress_warning)
362 (copy_warning): Likewise.
364 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
366 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
367 (typedef key_type_t): ... this. Remove.
368 (nowarn_map): Document.
369 * diagnostic-spec.c (nowarn_map): Likewise.
370 * warning-control.cc (convert_to_key): Evolve functions into...
371 (get_location): ... these. Adjust all users.
373 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
375 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
377 2021-09-13 Jason Merrill <jason@redhat.com>
379 * params.opt: Add destructive-interference-size and
380 constructive-interference-size.
381 * doc/invoke.texi: Document them.
382 * config/aarch64/aarch64.c (aarch64_override_options_internal):
384 * config/arm/arm.c (arm_option_override): Set them.
385 * config/i386/i386-options.c (ix86_option_override_internal):
388 2021-09-13 Martin Liska <mliska@suse.cz>
389 H.J. Lu <hjl.tools@gmail.com>
392 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
393 for x86-64 micro levels for __builtin_cpu_supports.
394 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
395 Add priorities for the micro-arch levels.
396 (enum processor_features): Add new features.
397 * common/config/i386/i386-isas.h: Add micro-arch features.
398 * config/i386/i386-builtins.c (get_builtin_code_for_version):
399 Support the micro-arch levels by callsing
400 __builtin_cpu_supports.
401 * doc/extend.texi: Document that the levels are support by
402 __builtin_cpu_supports.
404 2021-09-13 Andrew Pinski <apinski@marvell.com>
407 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
409 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
410 (aarch64_general_gimple_fold_builtin): Likewise.
412 2021-09-13 Andrew Pinski <apinski@marvell.com>
414 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
415 to the Unsupported targets list.
416 Remove support for m32r-*-linux* and m32rle-*-linux*.
417 * config/m32r/linux.h: Removed.
418 * config/m32r/t-linux: Removed.
420 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
423 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
424 register index for SVE predicate modes.
426 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
428 * tree-ssa-threadbackward.c
429 (back_threader_profitability::profitable_path_p): Remove FSM
431 (back_threader_registry::register_path): Same.
432 * tree-ssa-threadedge.c
433 (jump_threader::simplify_control_stmt_condition): Same.
434 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
435 Add backedge_threads argument.
436 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
437 backedge_threads argument.
438 (back_jt_path_registry::back_jt_path_registry): Same.
439 (dump_jump_thread_path): Adjust for FSM removal.
440 (back_jt_path_registry::rewire_first_differing_edge): Same.
441 (back_jt_path_registry::adjust_paths_after_duplication): Same.
442 (back_jt_path_registry::update_cfg): Same.
443 (jt_path_registry::register_jump_thread): Same.
444 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
446 (class back_jt_path_registry): Add backedge_threads to
449 2021-09-13 Martin Liska <mliska@suse.cz>
452 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
454 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
457 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
458 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
459 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
460 TARGET_AVX256_STORE_BY_PIECES instead of
461 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
462 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
463 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
464 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
465 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
466 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
468 2021-09-13 liuhongt <hongtao.liu@intel.com>
471 * expmed.c (extract_bit_field_using_extv): Use
472 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
474 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
476 * Makefile.in (OBJS): Add value-pointer-equiv.o.
477 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
478 value-pointer-equiv.*.
479 (ssa_equiv_stack::ssa_equiv_stack): Same.
480 (ssa_equiv_stack::enter): Same.
481 (ssa_equiv_stack::leave): Same.
482 (ssa_equiv_stack::push_replacement): Same.
483 (ssa_equiv_stack::get_replacement): Same.
484 (is_pointer_ssa): Same.
485 (class pointer_equiv_analyzer): Same.
486 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
487 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
488 (pointer_equiv_analyzer::set_global_equiv): Same.
489 (pointer_equiv_analyzer::set_cond_equiv): Same.
490 (pointer_equiv_analyzer::get_equiv): Same.
491 (pointer_equiv_analyzer::enter): Same.
492 (pointer_equiv_analyzer::leave): Same.
493 (pointer_equiv_analyzer::get_equiv_expr): Same.
494 (pta_valueize): Same.
495 (pointer_equiv_analyzer::visit_stmt): Same.
496 (pointer_equiv_analyzer::visit_edge): Same.
497 (hybrid_folder::value_of_expr): Same.
498 (hybrid_folder::value_on_edge): Same.
499 * value-pointer-equiv.cc: New file.
500 * value-pointer-equiv.h: New file.
502 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
505 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
506 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
508 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
511 * config/arm/arm.md (movmisaligndi): New define_expand.
512 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
514 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
517 * emit-rtl.c (gen_highpart): Use adjust_address to handle
518 MEM rather than calling simplify_gen_subreg.
520 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
522 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
525 2021-09-13 Richard Biener <rguenther@suse.de>
527 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
528 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
529 change based on DARWIN_PREFER_DWARF not being defined.
531 2021-09-13 Richard Biener <rguenther@suse.de>
533 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
534 to inherit from elfos.h
536 2021-09-13 Richard Biener <rguenther@suse.de>
538 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
540 2021-09-13 Richard Biener <rguenther@suse.de>
542 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
543 override, pick up DWARF2_DEBUG define from elfos.h
545 2021-09-13 Richard Biener <rguenther@suse.de>
547 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
550 2021-09-13 Richard Biener <rguenther@suse.de>
552 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
555 2021-09-13 Richard Biener <rguenther@suse.de>
557 * config/i386/cygming.h: Always default to DWARF2 debugging.
558 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
560 * doc/install.texi: Document binutils 2.16 as minimum
561 requirement for mingw.
563 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
565 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
566 nstmts, nloads and extra_ctor_cost.
567 (rs6000_density_test): Add load density related heuristics. Do
568 extra costing on vector construction statements if need.
569 (rs6000_init_cost): Init new members.
570 (rs6000_update_target_cost_per_stmt): New function.
571 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
572 rs6000_update_target_cost_per_stmt and call it.
574 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
576 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
577 (rs6000_init_cost): Adjust.
579 2021-09-13 liuhongt <hongtao.liu@intel.com>
581 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
582 (UNSPEC_XORSIGN): Ditto.
584 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
586 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
587 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
590 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
592 * tree-ssa-threadbackward.c (class back_threader_registry): Use
593 back_jt_path_registry.
594 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
595 fwd_jt_path_registry.
596 * tree-ssa-threadedge.h (class jump_threader): Same..
597 * tree-ssa-threadupdate.c
598 (jump_thread_path_registry::jump_thread_path_registry): Rename...
599 (jt_path_registry::jt_path_registry): ...to this.
600 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
601 (jt_path_registry::~jt_path_registry): ...this.
602 (fwd_jt_path_registry::fwd_jt_path_registry): New.
603 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
604 (jump_thread_path_registry::allocate_thread_edge): Rename...
605 (jt_path_registry::allocate_thread_edge): ...to this.
606 (jump_thread_path_registry::allocate_thread_path): Rename...
607 (jt_path_registry::allocate_thread_path): ...to this.
608 (jump_thread_path_registry::lookup_redirection_data): Rename...
609 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
610 (jump_thread_path_registry::thread_block_1): Rename...
611 (fwd_jt_path_registry::thread_block_1): ...to this.
612 (jump_thread_path_registry::thread_block): Rename...
613 (fwd_jt_path_registry::thread_block): ...to this.
614 (jt_path_registry::thread_through_loop_header): Rename...
615 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
616 (jump_thread_path_registry::mark_threaded_blocks): Rename...
617 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
618 (jump_thread_path_registry::debug_path): Rename...
619 (jt_path_registry::debug_path): ...to this.
620 (jump_thread_path_registry::dump): Rename...
621 (jt_path_registry::debug): ...to this.
622 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
623 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
624 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
625 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
626 (jump_thread_path_registry::duplicate_thread_path): Rename...
627 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
628 drop ill-formed candidates.
629 (jump_thread_path_registry::remove_jump_threads_including): Rename...
630 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
631 (jt_path_registry::thread_through_all_blocks): New.
632 (back_jt_path_registry::update_cfg): New.
633 (fwd_jt_path_registry::update_cfg): New.
634 (jump_thread_path_registry::register_jump_thread): Rename...
635 (jt_path_registry::register_jump_thread): ...to this.
636 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
638 (class jt_path_registry): ...here.
639 (class fwd_jt_path_registry): New.
640 (class back_jt_path_registry): New.
642 2021-09-10 liuhongt <hongtao.liu@intel.com>
645 2021-09-01 liuhongt <hongtao.liu@intel.com>
647 * emit-rtl.c (validate_subreg): Get rid of all float-int
650 2021-09-10 Jakub Jelinek <jakub@redhat.com>
652 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
653 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
654 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
655 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
656 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
657 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
658 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
659 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
661 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
662 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
664 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
666 * tree.h (OMP_ATOMIC_WEAK): Define.
667 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
668 fail memory order being encoded in the same enum and also print
669 fail clause if present.
670 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
671 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
672 handle pre_p == NULL case as a test mode that only returns value
673 but doesn't change gimplify nor change anything otherwise, adjust
674 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
675 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
676 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
678 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
679 COND_EXPR rhs. Set weak flag on gimple load/store for
681 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
682 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
684 (expand_omp_atomic_cas): New function.
685 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
687 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
688 using expand_omp_atomic_cas.
690 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
691 Michael Matz <matz@suse.de>
693 * tree-pass.h (PROP_loop_opts_done): New.
694 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
695 Intersect with global range.
696 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
697 * tree-ssa-threadbackward.c
698 (back_threader_profitability::profitable_path_p): Disable
699 threading through latches until after loop optimizations have run.
701 2021-09-10 David Faust <david.faust@oracle.com>
703 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
706 2021-09-10 David Faust <david.faust@oracle.com>
708 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
709 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
710 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
711 (bpf_expand_cbranch): New function.
712 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
714 (zero_extendsidi2): Only use mov32 instruction if it is available.
715 (SIM mode iterator): Conditionalize support for SI mode.
716 (JM mode iterator): New.
717 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
718 (*branch_on_di): Update name, use new JM iterator.
719 * config/bpf/bpf.opt: (mjmpext): New option.
725 2021-09-10 David Faust <david.faust@oracle.com>
727 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
728 for register-to-register extensions.
729 (zero_extendqidi2): Likewise.
731 2021-09-10 Richard Biener <rguenther@suse.de>
734 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
736 2021-09-10 Richard Biener <rguenther@suse.de>
739 * gimplify.c (is_var_need_auto_init): Empty types do not need
742 2021-09-10 Richard Biener <rguenther@suse.de>
744 * configure.ac (--with-stabs): Remove.
745 * configure: Regenerate.
746 * doc/install.texi: Remove --with-stabs documentation.
748 2021-09-10 liuhongt <hongtao.liu@intel.com>
750 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
752 (_mm512_mask_cmp_ph_mask): Likewise.
753 (_mm512_cmp_round_ph_mask): Likewise.
754 (_mm512_mask_cmp_round_ph_mask): Likewise.
755 (_mm_cmp_sh_mask): Likewise.
756 (_mm_mask_cmp_sh_mask): Likewise.
757 (_mm_cmp_round_sh_mask): Likewise.
758 (_mm_mask_cmp_round_sh_mask): Likewise.
759 (_mm_comieq_sh): Likewise.
760 (_mm_comilt_sh): Likewise.
761 (_mm_comile_sh): Likewise.
762 (_mm_comigt_sh): Likewise.
763 (_mm_comige_sh): Likewise.
764 (_mm_comineq_sh): Likewise.
765 (_mm_ucomieq_sh): Likewise.
766 (_mm_ucomilt_sh): Likewise.
767 (_mm_ucomile_sh): Likewise.
768 (_mm_ucomigt_sh): Likewise.
769 (_mm_ucomige_sh): Likewise.
770 (_mm_ucomineq_sh): Likewise.
771 (_mm_comi_round_sh): Likewise.
772 (_mm_comi_sh): Likewise.
773 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
774 (_mm_mask_cmp_ph_mask): Likewise.
775 (_mm256_cmp_ph_mask): Likewise.
776 (_mm256_mask_cmp_ph_mask): Likewise.
777 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
778 * config/i386/i386-builtin.def: Add corresponding new builtins.
779 * config/i386/i386-expand.c
780 (ix86_expand_args_builtin): Handle new builtin types.
781 (ix86_expand_round_builtin): Ditto.
782 * config/i386/i386.md (ssevecmode): Add HF mode.
783 (MODEFH): New mode iterator.
785 (V48H_AVX512VL): New mode iterator to support HF vector modes.
786 Ajdust corresponding description.
787 (ssecmpintprefix): New.
788 (VI12_AVX512VL): Adjust to support HF vector modes.
789 (cmp_imm_predicate): Likewise.
790 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
792 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
793 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
794 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
796 2021-09-10 liuhongt <hongtao.liu@intel.com>
798 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
799 (_mm512_mask_max_ph): Likewise.
800 (_mm512_maskz_max_ph): Likewise.
801 (_mm512_min_ph): Likewise.
802 (_mm512_mask_min_ph): Likewise.
803 (_mm512_maskz_min_ph): Likewise.
804 (_mm512_max_round_ph): Likewise.
805 (_mm512_mask_max_round_ph): Likewise.
806 (_mm512_maskz_max_round_ph): Likewise.
807 (_mm512_min_round_ph): Likewise.
808 (_mm512_mask_min_round_ph): Likewise.
809 (_mm512_maskz_min_round_ph): Likewise.
810 (_mm_max_sh): Likewise.
811 (_mm_mask_max_sh): Likewise.
812 (_mm_maskz_max_sh): Likewise.
813 (_mm_min_sh): Likewise.
814 (_mm_mask_min_sh): Likewise.
815 (_mm_maskz_min_sh): Likewise.
816 (_mm_max_round_sh): Likewise.
817 (_mm_mask_max_round_sh): Likewise.
818 (_mm_maskz_max_round_sh): Likewise.
819 (_mm_min_round_sh): Likewise.
820 (_mm_mask_min_round_sh): Likewise.
821 (_mm_maskz_min_round_sh): Likewise.
822 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
823 (_mm256_max_ph): Likewise.
824 (_mm_mask_max_ph): Likewise.
825 (_mm256_mask_max_ph): Likewise.
826 (_mm_maskz_max_ph): Likewise.
827 (_mm256_maskz_max_ph): Likewise.
828 (_mm_min_ph): Likewise.
829 (_mm256_min_ph): Likewise.
830 (_mm_mask_min_ph): Likewise.
831 (_mm256_mask_min_ph): Likewise.
832 (_mm_maskz_min_ph): Likewise.
833 (_mm256_maskz_min_ph): Likewise.
834 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
835 * config/i386/i386-builtin.def: Add corresponding new builtins.
836 * config/i386/i386-expand.c
837 (ix86_expand_args_builtin): Handle new builtin types.
839 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
840 support HF vector modes.
841 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
842 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
844 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
846 * config/i386/subst.md (round_saeonly_mode512bit_condition):
847 Adjust for HF vector modes.
849 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
851 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
852 (_mm_mask_add_sh): Likewise.
853 (_mm_maskz_add_sh): Likewise.
854 (_mm_sub_sh): Likewise.
855 (_mm_mask_sub_sh): Likewise.
856 (_mm_maskz_sub_sh): Likewise.
857 (_mm_mul_sh): Likewise.
858 (_mm_mask_mul_sh): Likewise.
859 (_mm_maskz_mul_sh): Likewise.
860 (_mm_div_sh): Likewise.
861 (_mm_mask_div_sh): Likewise.
862 (_mm_maskz_div_sh): Likewise.
863 (_mm_add_round_sh): Likewise.
864 (_mm_mask_add_round_sh): Likewise.
865 (_mm_maskz_add_round_sh): Likewise.
866 (_mm_sub_round_sh): Likewise.
867 (_mm_mask_sub_round_sh): Likewise.
868 (_mm_maskz_sub_round_sh): Likewise.
869 (_mm_mul_round_sh): Likewise.
870 (_mm_mask_mul_round_sh): Likewise.
871 (_mm_maskz_mul_round_sh): Likewise.
872 (_mm_div_round_sh): Likewise.
873 (_mm_mask_div_round_sh): Likewise.
874 (_mm_maskz_div_round_sh): Likewise.
875 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
876 * config/i386/i386-builtin.def: Add corresponding new builtins.
877 * config/i386/i386-expand.c
878 (ix86_expand_round_builtin): Handle new builtins.
879 * config/i386/sse.md (VF_128): Change description.
880 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
881 Adjust to support HF vector modes.
882 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
885 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
887 * config/i386/i386-expand.c
888 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
890 (ix86_preferred_simd_mode): Handle HF mode.
891 * config/i386/sse.md (V_256H): New mode iterator.
892 (avx_vextractf128<mode>): Use it.
893 (VEC_INIT_MODE): Align vector HFmode condition to vector
894 HImodes since there're no real HF instruction used.
895 (VEC_INIT_HALF_MODE): Ditto.
897 (VIHF_AVX512BW): Ditto.
898 (*vec_extracthf): Ditto.
899 (VEC_EXTRACT_MODE): Ditto.
901 2021-09-10 Richard Biener <rguenther@suse.de>
904 * config/dbx.h: Remove.
905 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
906 * config/lynx.h: Likewise.
908 2021-09-10 liuhongt <hongtao.liu@intel.com>
910 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
911 right into ANDNOT + AND + IOR, using paradoxical subregs.
912 (ix86_split_copysign_const): Remove.
913 (ix86_split_copysign_var): Ditto.
914 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
915 (ix86_split_copysign_var): Ditto.
916 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
917 (@copysign<mode>3_var): Ditto.
919 2021-09-09 qing zhao <qing.zhao@oracle.com>
921 * builtins.c (expand_builtin_memset): Make external visible.
922 * builtins.h (expand_builtin_memset): Declare extern.
923 * common.opt (ftrivial-auto-var-init=): New option.
924 * doc/extend.texi: Document the uninitialized attribute.
925 * doc/invoke.texi: Document -ftrivial-auto-var-init.
926 * flag-types.h (enum auto_init_type): New enumerated type
928 * gimple-fold.c (clear_padding_type): Add one new parameter.
929 (clear_padding_union): Likewise.
930 (clear_padding_emit_loop): Likewise.
931 (clear_type_padding_in_mask): Likewise.
932 (gimple_fold_builtin_clear_padding): Handle this new parameter.
933 * gimplify.c (gimple_add_init_for_auto_var): New function.
934 (gimple_add_padding_init_for_auto_var): New function.
935 (is_var_need_auto_init): New function.
936 (gimplify_decl_expr): Add initialization to automatic variables per
938 (gimplify_call_expr): Add one new parameter for call to
939 __builtin_clear_padding.
940 (gimplify_init_constructor): Add padding initialization in the end.
941 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
942 (expand_DEFERRED_INIT): New function.
943 * internal-fn.def (DEFERRED_INIT): New internal function.
944 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
945 * tree-sra.c (generate_subtree_deferred_init): New function.
946 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
947 calls to .DEFERRED_INIT.
948 (sra_modify_deferred_init): New function.
949 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
950 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
951 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
953 (check_defs): Likewise.
954 (warn_uninitialized_vars): Likewise.
955 * tree-ssa.c (ssa_undefined_value_p): Likewise.
956 * tree.c (build_common_builtin_nodes): Build tree node for
957 BUILT_IN_CLEAR_PADDING when needed.
959 2021-09-09 Richard Biener <rguenther@suse.de>
961 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
964 2021-09-09 Richard Biener <rguenther@suse.de>
966 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
967 DOM walk from get_loop_body_in_dom_order using a worklist
970 2021-09-09 liuhongt <hongtao.liu@intel.com>
972 * config.gcc: Add avx512fp16vlintrin.h.
973 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
974 (_mm512_mask_add_ph): Likewise.
975 (_mm512_maskz_add_ph): Likewise.
976 (_mm512_sub_ph): Likewise.
977 (_mm512_mask_sub_ph): Likewise.
978 (_mm512_maskz_sub_ph): Likewise.
979 (_mm512_mul_ph): Likewise.
980 (_mm512_mask_mul_ph): Likewise.
981 (_mm512_maskz_mul_ph): Likewise.
982 (_mm512_div_ph): Likewise.
983 (_mm512_mask_div_ph): Likewise.
984 (_mm512_maskz_div_ph): Likewise.
985 (_mm512_add_round_ph): Likewise.
986 (_mm512_mask_add_round_ph): Likewise.
987 (_mm512_maskz_add_round_ph): Likewise.
988 (_mm512_sub_round_ph): Likewise.
989 (_mm512_mask_sub_round_ph): Likewise.
990 (_mm512_maskz_sub_round_ph): Likewise.
991 (_mm512_mul_round_ph): Likewise.
992 (_mm512_mask_mul_round_ph): Likewise.
993 (_mm512_maskz_mul_round_ph): Likewise.
994 (_mm512_div_round_ph): Likewise.
995 (_mm512_mask_div_round_ph): Likewise.
996 (_mm512_maskz_div_round_ph): Likewise.
997 * config/i386/avx512fp16vlintrin.h: New header.
998 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
999 Add new builtin types.
1000 * config/i386/i386-builtin.def: Add corresponding builtins.
1001 * config/i386/i386-expand.c
1002 (ix86_expand_args_builtin): Handle new builtin types.
1003 (ix86_expand_round_builtin): Likewise.
1004 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
1005 * config/i386/sse.md (VFH): New mode_iterator.
1007 (avx512fmaskmode): Add HF vector modes.
1008 (avx512fmaskhalfmode): Likewise.
1009 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
1011 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
1012 (mul<mode>3<mask_name><round_name>): Likewise.
1013 (*mul<mode>3<mask_name><round_name>): Likewise.
1014 (div<mode>3): Likewise.
1015 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
1016 * config/i386/subst.md (SUBST_V): Add HF vector modes.
1017 (SUBST_A): Likewise.
1018 (round_mode512bit_condition): Adjust for V32HFmode.
1020 2021-09-09 liuhongt <hongtao.liu@intel.com>
1023 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
1024 (reduc_plus_scal_v4sf): .. this, New define_expand.
1025 (reduc_plus_scal_v2df): .. and this, New define_expand.
1027 2021-09-09 liuhongt <hongtao.liu@intel.com>
1030 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
1033 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
1036 * doc/trouble.texi (Copy Assignment): Fix description of
1037 behaviour and fix code in example.
1039 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
1042 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
1043 r11 instead of r12 for restoring CR.
1045 2021-09-08 Jakub Jelinek <jakub@redhat.com>
1046 liuhongt <hongtao.liu@intel.com>
1049 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
1050 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
1051 into AND with mask and XOR, using paradoxical subregs.
1052 (ix86_split_xorsign): Remove.
1053 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
1055 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
1057 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
1059 2021-09-08 Jakub Jelinek <jakub@redhat.com>
1062 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
1063 operands[2], emit abs<mode>2 instead.
1064 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
1065 first alternative even for avx, add another alternative with
1066 =&Yv <- 0, Yv, Yvm constraints.
1067 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
1068 to op1, emit vpandn instead.
1070 2021-09-08 liuhongt <hongtao.liu@intel.com>
1072 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
1073 (_mm256_set_ph): Likewise.
1074 (_mm512_set_ph): Likewise.
1075 (_mm_setr_ph): Likewise.
1076 (_mm256_setr_ph): Likewise.
1077 (_mm512_setr_ph): Likewise.
1078 (_mm_set1_ph): Likewise.
1079 (_mm256_set1_ph): Likewise.
1080 (_mm512_set1_ph): Likewise.
1081 (_mm_setzero_ph): Likewise.
1082 (_mm256_setzero_ph): Likewise.
1083 (_mm512_setzero_ph): Likewise.
1084 (_mm_set_sh): Likewise.
1085 (_mm_load_sh): Likewise.
1086 (_mm_store_sh): Likewise.
1087 * config/i386/i386-builtin-types.def (V8HF): New type.
1088 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
1089 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
1090 Support vector HFmodes.
1091 (ix86_expand_vector_init_one_nonzero): Likewise.
1092 (ix86_expand_vector_init_one_var): Likewise.
1093 (ix86_expand_vector_init_interleave): Likewise.
1094 (ix86_expand_vector_init_general): Likewise.
1095 (ix86_expand_vector_set): Likewise.
1096 (ix86_expand_vector_extract): Likewise.
1097 (ix86_expand_vector_init_concat): Likewise.
1098 (ix86_expand_sse_movcc): Handle vector HFmodes.
1099 (ix86_expand_vector_set_var): Ditto.
1100 * config/i386/i386-modes.def: Add HF vector modes in comment.
1101 * config/i386/i386.c (classify_argument): Add HF vector modes.
1102 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
1103 (ix86_vector_mode_supported_p): Likewise.
1104 (ix86_set_reg_reg_cost): Handle vector HFmode.
1105 (ix86_get_ssemov): Handle vector HFmode.
1106 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
1108 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
1110 (function_arg_advance_32): Ditto.
1111 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
1112 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
1113 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
1114 (VALID_SSE2_REG_VHF_MODE): New.
1115 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
1116 (SSE_REG_MODE_P): Add vector HFmode.
1117 * config/i386/i386.md (mode): Add HF vector modes.
1118 (MODE_SIZE): Likewise.
1119 (ssemodesuffix): Add ph suffix for HF vector modes.
1120 * config/i386/sse.md (VFH_128): New mode iterator.
1121 (VMOVE): Adjust for HF vector modes.
1123 (V_256_512): Likewise.
1125 (avx512fmaskmode): Likewise.
1126 (shuffletype): Likewise.
1127 (sseinsnmode): Likewise.
1128 (ssedoublevecmode): Likewise.
1129 (ssehalfvecmode): Likewise.
1130 (ssehalfvecmodelower): Likewise.
1131 (ssePScmode): Likewise.
1132 (ssescalarmode): Likewise.
1133 (ssescalarmodelower): Likewise.
1134 (sseintprefix): Likewise.
1136 (bcstscalarsuff): Likewise.
1137 (xtg_mode): Likewise.
1138 (VI12HF_AVX512VL): New mode_iterator.
1139 (VF_AVX512FP16): Likewise.
1141 (VIHF_256): Likewise.
1142 (VIHF_AVX512BW): Likewise.
1143 (V16_256): Likewise.
1144 (V32_512): Likewise.
1145 (sseintmodesuffix): New mode_attr.
1146 (sse): Add scalar and vector HFmodes.
1147 (ssescalarmode): Add vector HFmode mapping.
1148 (ssescalarmodesuffix): Add sh suffix for HFmode.
1149 (*<sse>_vm<insn><mode>3): Use VFH_128.
1150 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
1151 (*ieee_<ieee_maxmin><mode>3): Likewise.
1152 (<avx512>_blendm<mode>): New define_insn.
1153 (vec_setv8hf): New define_expand.
1154 (vec_set<mode>_0): New define_insn for HF vector set.
1155 (*avx512fp16_movsh): Likewise.
1156 (avx512fp16_movsh): Likewise.
1157 (vec_extract_lo_v32hi): Rename to ...
1158 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
1160 (vec_extract_hi_v32hi): Likewise.
1161 (vec_extract_hi_<mode>): Likewise.
1162 (vec_extract_lo_v16hi): Likewise.
1163 (vec_extract_lo_<mode>): Likewise.
1164 (vec_extract_hi_v16hi): Likewise.
1165 (vec_extract_hi_<mode>): Likewise.
1166 (vec_set_hi_v16hi): Likewise.
1167 (vec_set_hi_<mode>): Likewise.
1168 (vec_set_lo_v16hi): Likewise.
1169 (vec_set_lo_<mode>): Likewise.
1170 (*vec_extract<mode>_0): New define_insn_and_split for HF
1172 (*vec_extracthf): New define_insn.
1173 (VEC_EXTRACT_MODE): Add HF vector modes.
1174 (PINSR_MODE): Add V8HF.
1175 (sse2p4_1): Likewise.
1176 (pinsr_evex_isa): Likewise.
1177 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
1178 insert for V8HFmode.
1179 (pbroadcast_evex_isa): Add HF vector modes.
1180 (AVX2_VEC_DUP_MODE): Likewise.
1181 (VEC_INIT_MODE): Likewise.
1182 (VEC_INIT_HALF_MODE): Likewise.
1183 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
1185 (avx2_pbroadcast<mode>_1): Likewise.
1186 (<avx512>_vec_dup<mode>_1): Likewise.
1187 (<avx512>_vec_dup<mode><mask_name>): Likewise.
1188 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
1191 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
1192 H.J. Lu <hongjiu.lu@intel.com>
1193 Liu Hongtao <hongtao.liu@intel.com>
1194 Wang Hongyu <hongyu.wang@intel.com>
1195 Xu Dianhong <dianhong.xu@intel.com>
1197 * common/config/i386/cpuinfo.h (get_available_features):
1198 Detect FEATURE_AVX512FP16.
1199 * common/config/i386/i386-common.c
1200 (OPTION_MASK_ISA_AVX512FP16_SET,
1201 OPTION_MASK_ISA_AVX512FP16_UNSET,
1202 OPTION_MASK_ISA2_AVX512FP16_SET,
1203 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
1204 (OPTION_MASK_ISA2_AVX512BW_UNSET,
1205 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
1206 (ix86_handle_option): Handle -mavx512fp16.
1207 * common/config/i386/i386-cpuinfo.h (enum processor_features):
1208 Add FEATURE_AVX512FP16.
1209 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
1210 * config.gcc: Add avx512fp16intrin.h.
1211 * config/i386/avx512fp16intrin.h: New intrinsic header.
1212 * config/i386/cpuid.h: Add bit_AVX512FP16.
1213 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
1214 * config/i386/i386-builtins.c: Support _Float16 type for i386
1216 (ix86_register_float16_builtin_type): New function.
1217 (ix86_float16_type_node): New.
1218 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1220 * config/i386/i386-expand.c (ix86_expand_branch): Support
1222 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
1223 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
1224 (ix86_expand_fp_movcc): Ditto.
1225 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
1226 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
1227 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
1228 * config/i386/i386.c (ix86_get_ssemov): Use
1229 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
1230 (ix86_get_excess_precision): Use
1231 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
1233 (sse_store_index): Use SFmode cost for HFmode cost.
1234 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
1235 GPR cost for HFmode.
1236 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
1237 (ix86_mangle_type): Add manlging for _Float16 type.
1238 (inline_secondary_memory_needed): No memory is needed for
1239 16bit movement between gpr and sse reg under
1241 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
1242 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
1243 (ix86_division_cost): Ditto.
1244 (ix86_rtx_costs): Ditto.
1245 (ix86_add_stmt_cost): Ditto.
1246 (ix86_optab_supported_p): Ditto.
1247 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
1248 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
1249 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
1250 * config/i386/i386.md (mode): Add HFmode.
1251 (MODE_SIZE): Add HFmode.
1252 (isa): Add avx512fp16.
1253 (enabled): Handle avx512fp16.
1254 (ssemodesuffix): Add sh suffix for HFmode.
1255 (comm): Add mult, div.
1256 (plusminusmultdiv): New code iterator.
1257 (insn): Add mult, div.
1258 (*movhf_internal): Adjust for avx512fp16 instruction.
1259 (*movhi_internal): Ditto.
1260 (*cmpi<unord>hf): New define_insn for HFmode.
1261 (*ieee_s<ieee_maxmin>hf3): Likewise.
1262 (extendhf<mode>2): Likewise.
1263 (trunc<mode>hf2): Likewise.
1264 (float<floatunssuffix><mode>hf2): Likewise.
1265 (*<insn>hf): Likewise.
1266 (cbranchhf4): New expander.
1267 (movhfcc): Likewise.
1268 (<insn>hf3): Likewise.
1271 * config/i386/i386.opt: Add mavx512fp16.
1272 * config/i386/immintrin.h: Include avx512fp16intrin.h.
1273 * doc/invoke.texi: Add mavx512fp16.
1274 * doc/extend.texi: Add avx512fp16 Usage Notes.
1276 2021-09-08 liuhongt <hongtao.liu@intel.com>
1278 * common.opt: Support -fexcess-precision=16.
1279 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
1280 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
1281 EXCESS_PRECISION_TYPE_FLOAT16.
1282 * config/arm/arm.c (arm_excess_precision): Ditto.
1283 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
1284 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
1285 when EXCESS_PRECISION_TYPE_FLOAT16.
1286 * config/s390/s390.c (s390_excess_precision): Ditto.
1287 * coretypes.h (enum excess_precision_type): Add
1288 EXCESS_PRECISION_TYPE_FLOAT16.
1289 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
1290 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
1291 * doc/extend.texi (Half-Precision): Document
1292 -fexcess-precision=16.
1293 * flag-types.h (enum excess_precision): Add
1294 EXCESS_PRECISION_FLOAT16.
1295 * target.def (excess_precision): Update document.
1296 * tree.c (excess_precision_type): Set excess_precision_type to
1297 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
1299 2021-09-08 liuhongt <hongtao.liu@intel.com>
1301 * doc/extend.texi: (@node Floating Types): Adjust the wording.
1302 (@node Half-Precision): Ditto.
1304 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
1307 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
1308 'CONST_INT_P (src)' to the condition of the block that tries to
1309 eliminate literal when loading integer contant.
1311 2021-09-07 David Faust <david.faust@oracle.com>
1313 * doc/extend.texi (BPF Type Attributes) New node.
1314 Document new preserve_access_index attribute.
1315 Document new preserve_access_index builtin.
1316 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
1318 2021-09-07 David Faust <david.faust@oracle.com>
1320 * config/bpf/bpf.c: Adjust includes.
1321 (bpf_handle_preserve_access_index_attribute): New function.
1322 (bpf_attribute_table): Use it here.
1323 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
1324 (bpf_option_override): Handle "-mco-re" option.
1325 (bpf_asm_init_sections): New.
1326 (TARGET_ASM_INIT_SECTIONS): Redefine.
1327 (bpf_file_end): New.
1328 (TARGET_ASM_FILE_END): Redefine.
1329 (bpf_init_builtins): Add "__builtin_preserve_access_index".
1330 (bpf_core_compute, bpf_core_get_index): New.
1331 (is_attr_preserve_access): New.
1332 (bpf_expand_builtin): Handle new builtins.
1333 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
1334 (bpf_core_walk): New.
1335 (bpf_resolve_overloaded_builtin): New.
1336 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
1338 (pass_bpf_core_attr): New RTL pass.
1339 * config/bpf/bpf-passes.def: New file.
1340 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
1341 * config/bpf/coreout.c: New file.
1342 * config/bpf/coreout.h: Likewise.
1343 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
1344 (coreout.o): New rule.
1345 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
1346 * config.gcc (bpf): Add coreout.h to extra_headers.
1347 Add coreout.o to extra_objs.
1348 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
1350 2021-09-07 David Faust <david.faust@oracle.com>
1352 * btfout.c (get_btf_id): Function is no longer static.
1353 * ctfc.h: Expose it here.
1355 2021-09-07 David Faust <david.faust@oracle.com>
1357 * ctfc.c (ctf_lookup_tree_type): New function.
1360 2021-09-07 David Faust <david.faust@oracle.com>
1362 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
1363 * ctfc.h: Analogous change.
1365 2021-09-07 David Faust <david.faust@oracle.com>
1367 * dwarf2out.c (lookup_type_die): Function is no longer static.
1368 * dwarf2out.h: Expose it here.
1370 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
1372 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
1373 (ctf_debug_early_finish): New definition.
1374 (ctf_debug_finish): Likewise.
1375 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
1376 (ctf_debug_early_finish): New declaration.
1377 (ctf_debug_finish): Likewise.
1378 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
1379 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
1381 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
1383 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
1384 support when compiling for CO-RE.
1385 * config/bpf/bpf.opt: Add new command line option -mco-re.
1387 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
1389 * flag-types.h (enum debug_info_type): Add new enum
1390 DINFO_TYPE_BTF_WITH_CORE.
1391 (BTF_WITH_CORE_DEBUG): New bitmask.
1392 * flags.h (btf_with_core_debuginfo_p): New declaration.
1393 * opts.c (btf_with_core_debuginfo_p): New definition.
1395 2021-09-07 Jason Merrill <jason@redhat.com>
1397 * tree.h (error_operand_p): Change to inline function.
1399 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
1401 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
1402 (empty_block_with_phis_p): ...this.
1403 (potentially_threadable_block): Same.
1404 (jump_threader::thread_through_normal_block): Same.
1406 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
1409 * dwarf2out.c (mark_base_types): New overloaded function.
1410 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
1411 as the compilation unit, and call move_marked_base_types afterward.
1413 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
1416 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
1418 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
1420 2021-09-07 Richard Biener <rguenther@suse.de>
1422 PR tree-optimization/102226
1423 * tree-vect-loop.c (vect_transform_cycle_phi): Record
1424 the converted value for the epilogue PHI use.
1426 2021-09-07 Martin Liska <mliska@suse.cz>
1428 PR gcov-profile/80223
1429 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
1430 options, do not inline when no_profile_instrument_function
1431 attributes are different in early inliner. It's fine to inline
1432 it after PGO instrumentation.
1434 2021-09-07 Richard Biener <rguenther@suse.de>
1436 PR tree-optimization/101555
1437 * tree-ssa-pre.c (translate_vuse_through_block): Do not
1438 perform an alias walk to determine the validity of the
1439 mem at the start of the block which is already guaranteed
1440 by means of prune_clobbered_mems.
1441 (phi_translate_1): Pass edge to translate_vuse_through_block.
1443 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
1446 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
1447 (remainder<mode>3): Likewise.
1449 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
1451 * config/mips/mips.c (mips_file_start): add .module for
1454 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
1456 * wide-int.cc (wi::clz): Reorder tests to ensure the result
1457 is zero for all negative values.
1459 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
1461 * doc/invoke.texi (-foffload-options): Fix @opindex.
1463 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
1466 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
1467 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
1468 source alternative for AVX.
1470 2021-09-06 liuhongt <hongtao.liu@intel.com>
1472 PR middle-end/102182
1473 * optabs.c (expand_fix): Add from1 to avoid from being
1476 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
1478 * dwarf2out.c (modified_type_die): Deal with all array types earlier
1479 and use local variable consistently throughout the function.
1481 2021-09-06 Jakub Jelinek <jakub@redhat.com>
1483 PR tree-optimization/102207
1484 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
1485 were promoted from signed to wider unsigned type.
1487 2021-09-06 Andrew Pinski <apinski@marvell.com>
1489 PR tree-optimization/63184
1490 * match.pd: Add simplification of pointer_diff of two pointer_plus
1491 with addr_expr in the first operand of each pointer_plus.
1492 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
1493 in the first operand of each pointer_plus.
1495 2021-09-06 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/102176
1498 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
1500 (vect_bb_slp_scalar_cost): Use the computed set of
1501 vectorized scalar stmts instead of relying on the out-of-date
1502 and not accurate PURE_SLP_STMT.
1503 (vect_bb_vectorization_profitable_p): Compute the set
1504 of vectorized scalar stmts.
1506 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
1508 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
1509 GIMPLE_COND special casing.
1510 (path_range_query::range_defined_in_block): Use range_of_stmt
1511 instead of calling fold_range directly.
1513 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
1515 * gimple-range-path.cc (path_range_query::range_of_expr): Set
1516 m_undefined_path when appropriate.
1517 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
1518 (path_range_query::unreachable_path_p): New.
1519 (path_range_query::precompute_ranges): Set m_undefined_path.
1520 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
1521 (path_range_query::internal_range_of_expr): New.
1522 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
1523 Use unreachable_path_p.
1525 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
1527 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
1528 Remove argument and call find_taken_edge.
1529 (back_threader::resolve_phi): Do not calculate taken edge before
1530 calling maybe_register_path.
1531 (back_threader::find_paths_to_names): Same.
1533 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
1535 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
1536 * config/h8300/testcompare.md (store_c): Update name, use new
1538 (store_neg_c, store_shifted_c): New patterns.
1540 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
1543 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
1544 instead of r12 for CR save, in all cases.
1546 2021-09-03 Andrew Pinski <apinski@marvell.com>
1548 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
1549 Handle error_mark_node as the type of the type_decl.
1551 2021-09-03 Andrew Pinski <apinski@marvell.com>
1553 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
1555 (aarch64_simd_types): Likewise.
1556 (aarch64_simd_intOI_type_node): Likewise.
1557 (aarch64_simd_intCI_type_node): Likewise.
1558 (aarch64_simd_intXI_type_node): Likewise.
1559 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
1560 (aarch64_fp16_ptr_type_node): Likewise.
1561 (aarch64_bf16_type_node): Likewise.
1562 (aarch64_bf16_ptr_type_node): Likewise.
1564 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1566 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
1568 (minus_op1_op2_relation_effect): ...here.
1569 (class operator_pointer_diff): New.
1570 (operator_pointer_diff::op1_op2_relation_effect): Call
1571 minus_op1_op2_relation_effect.
1572 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
1574 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1576 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
1577 Add may_peel_loop_headers.
1578 (back_threader_registry::thread_through_all_blocks): Same.
1579 (try_thread_blocks): Pass may_peel_loop_headers argument.
1580 (pass_early_thread_jumps::execute): Same.
1582 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1584 * tree-ssa-threadedge.c (has_phis_p): New.
1585 (forwarder_block_p): New.
1586 (potentially_threadable_block): Call forwarder_block_p.
1587 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
1588 (jump_threader::thread_through_normal_block): Call
1591 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1593 * tree-ssa-threadbackward.c (back_threader::dump): New.
1594 (back_threader::debug): New.
1595 (back_threader_profitability::profitable_path_p): Dump blocks
1596 even if we are bailing early.
1598 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1600 * tree-ssa-threadupdate.c (cancel_thread): New.
1601 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
1602 (jump_thread_path_registry::mark_threaded_blocks): Same.
1603 (jump_thread_path_registry::register_jump_thread): Same.
1605 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1607 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
1608 which objects are available.
1609 (jt_state::pop): Same.
1610 (jt_state::register_equiv): Same.
1611 (jt_state::register_equivs_on_edge): Same.
1613 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1615 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
1616 Move pop until after a thread is registered.
1618 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1620 * tree-ssa-threadupdate.c (debug): New.
1622 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1624 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
1625 (push_dump_file::~push_dump_file): New.
1626 (dump_ranger): Change dump_file temporarily while dumping
1628 * gimple-range-trace.h (class push_dump_file): New.
1630 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1632 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
1633 (dump_ranger): Dump function name.
1635 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1637 * gimple-range-path.cc (path_range_query::range_defined_in_block):
1638 Adjust for non-null.
1639 (path_range_query::adjust_for_non_null_uses): New.
1640 (path_range_query::precompute_ranges): Call
1641 adjust_for_non_null_uses.
1642 * gimple-range-path.h: Add m_non_null and
1643 adjust_for_non_null_uses.
1645 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1647 * gimple-range-path.cc (path_range_query::dump): Dump path
1649 (path_range_query::precompute_ranges): Dump entire path.
1651 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1653 * value-relation.cc (relation_oracle::debug): New.
1654 * value-relation.h (relation_oracle::debug): New.
1656 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1658 * tree-ssa-loop-ch.c: Remove unnecessary include file.
1660 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1662 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
1663 Skip statements with no defining BB.
1664 * gimple-range-path.cc (path_range_query::range_defined_in_block):
1665 Do not get confused by statements with no defining BB.
1667 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
1669 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
1670 gimple_range_adjustment. Add support for constants.
1671 (adjust_realpart_expr): New.
1672 (gimple_range_adjustment): Move IMAGPART_EXPR code to
1673 adjust_imagpart_expr.
1674 * range-op.cc (integral_table::integral_table): Add entry for
1677 2021-09-03 Jakub Jelinek <jakub@redhat.com>
1679 * omp-expand.c (expand_omp_atomic_pipeline): Use
1680 IFN_ATOMIC_COMPARE_EXCHANGE instead of
1681 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
1684 2021-09-03 Jakub Jelinek <jakub@redhat.com>
1687 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
1688 that is false if DECL_BIT_FIELD.
1689 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
1690 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
1691 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
1692 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
1693 of DECL_FIELD_ABI_IGNORED.
1694 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1695 SET_DECL_FIELD_ABI_IGNORED instead of writing to
1696 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
1697 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
1698 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
1699 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
1701 2021-09-03 liuhongt <hongtao.liu@intel.com>
1704 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
1705 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
1706 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
1708 2021-09-02 Martin Sebor <msebor@redhat.com>
1710 PR tree-optimization/17506
1712 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
1714 2021-09-02 Richard Biener <rguenther@suse.de>
1716 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
1717 fix for PR78185 and continue processing when leaving
1720 2021-09-02 Jakub Jelinek <jakub@redhat.com>
1722 PR tree-optimization/99591
1723 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
1726 2021-09-02 Richard Biener <rguenther@suse.de>
1729 2021-09-02 Richard Biener <rguenther@suse.de>
1731 PR tree-optimization/102155
1732 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
1733 over a part of the RPO array and do not recurse here.
1734 Dump blocks marked as always executed.
1735 (fill_always_executed_in): Walk over the RPO array and
1736 process loops whose header we run into.
1737 (loop_invariant_motion_in_fun): Compute the first RPO
1738 using rev_post_order_and_mark_dfs_back_seme in iteration
1739 order and pass that to fill_always_executed_in.
1741 2021-09-02 liuhongt <hongtao.liu@intel.com>
1743 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
1744 * config/i386/i386.c (enum x86_64_reg_class): Add
1746 (merge_classes): Handle X86_64_SSEHF_CLASS.
1747 (examine_argument): Ditto.
1748 (construct_container): Ditto.
1749 (classify_argument): Ditto, and set HFmode/HCmode to
1751 (function_value_32): Return _FLoat16/Complex Float16 by
1753 (function_value_64): Return _Float16/Complex Float16 by SSE
1755 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
1756 (ix86_secondary_reload): Require gpr as intermediate register
1757 to store _Float16 from sse register when sse4 is not
1759 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
1761 (ix86_scalar_mode_supported_p): Ditto.
1762 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
1763 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
1764 (VALID_INT_MODE_P): Add HFmode and HCmode.
1765 * config/i386/i386.md (*pushhf_rex64): New define_insn.
1767 (*movhf_internal): Ditto.
1768 * doc/extend.texi (Half-Precision Floating Point): Documemt
1771 2021-09-02 Richard Biener <rguenther@suse.de>
1773 PR tree-optimization/102155
1774 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
1775 over a part of the RPO array and do not recurse here.
1776 Dump blocks marked as always executed.
1777 (fill_always_executed_in): Walk over the RPO array and
1778 process loops whose header we run into.
1779 (loop_invariant_motion_in_fun): Compute the first RPO
1780 using rev_post_order_and_mark_dfs_back_seme in iteration
1781 order and pass that to fill_always_executed_in.
1783 2021-09-02 YunQiang Su <syq@debian.org>
1786 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
1788 * config/mips/mips.c (mips_module_isa_name): New.
1789 mips_file_start: add .module mipsREV to all asm output
1791 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
1793 PR tree-optimization/102152
1794 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
1795 comparison to a scalar comparison before calling
1796 update_stmt_if_modified.
1798 2021-09-01 Andrew Pinski <apinski@marvell.com>
1801 * config/aarch64/aarch64.c (aarch64_expand_setmem):
1802 Check STRICT_ALIGNMENT before creating an overlapping
1805 2021-09-01 Martin Sebor <msebor@redhat.com>
1807 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
1808 (check_access): Pass additional argument.
1809 (check_memop_access): Remove template and make a member function.
1810 (maybe_check_dealloc_call): Make a pass_waccess member function.
1811 (class pass_waccess): Add, rename, and remove members.
1812 (pass_waccess::pass_waccess): Adjust to name change.
1813 (pass_waccess::~pass_waccess): Same.
1814 (check_alloca): Make a member function.
1815 (check_alloc_size_call): Same.
1816 (check_strcat): Same.
1817 (check_strncat): Same.
1818 (check_stxcpy): Same.
1819 (check_stxncpy): Same.
1820 (check_strncmp): Same.
1821 (maybe_warn_rdwr_sizes): Rename...
1822 (pass_waccess::maybe_check_access_sizes): ...to this.
1823 (pass_waccess::check_call): Adjust to name changes.
1824 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
1826 (pass_waccess::execute): Adjust to name changes.
1827 * gimple-ssa-warn-access.h (check_memop_access): Remove.
1828 * pointer-query.cc (access_ref::phi): Handle null pointer.
1829 (access_ref::inform_access): Same.
1830 (pointer_query::put_ref): Modify a cached value, not a copy of it.
1831 (pointer_query::dump): New function.
1832 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
1834 * pointer-query.h (pointer_query::dump): Declare.
1835 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
1836 (dump_strlen_info): Use function query.
1837 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
1839 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
1841 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
1843 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
1845 * doc/extend.texi: Document unavailable attribute.
1846 * print-tree.c (print_node): Handle unavailable attribute.
1847 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
1848 * tree.c (error_unavailable_use): New.
1849 * tree.h (TREE_UNAVAILABLE): New.
1850 (error_unavailable_use): New.
1852 2021-09-01 Jakub Jelinek <jakub@redhat.com>
1854 PR tree-optimization/102124
1855 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
1856 MINUS_EXPR, if itype is unsigned with smaller precision than type,
1857 add an extra cast to signed variant of itype to ensure sign-extension.
1859 2021-09-01 Martin Liska <mliska@suse.cz>
1861 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
1862 edges and rather use colors for TRUE and FALSE edges.
1864 2021-09-01 Richard Biener <rguenther@suse.de>
1866 PR tree-optimization/93491
1867 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
1868 after processing the stmt itself. Do not consider
1869 pure functions possibly not returning. Properly avoid
1870 adding possibly trapping calls to EXP_GEN when there's
1871 a preceeding possibly not returning call.
1872 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
1875 2021-09-01 Richard Biener <rguenther@suse.de>
1877 PR tree-optimization/102139
1878 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
1879 type to record a std::pair of the stmt-info and the innermost
1881 (dr_vec_info::group): New member.
1882 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
1883 (vect_compute_data_ref_alignment): Verify the recorded
1884 base alignment can be used.
1885 (data_ref_pair): Remove.
1886 (dr_group_sort_cmp): Adjust.
1887 (vect_analyze_data_ref_accesses): Store the group-ID in the
1888 dr_vec_info and operate on a vector of dr_vec_infos.
1890 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
1892 * read-md.c (md_reader::handle_enum): support value assignation.
1893 * doc/md.texi: record define_c_enum value assignation support.
1895 2021-09-01 Jakub Jelinek <jakub@redhat.com>
1897 PR tree-optimization/102141
1898 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
1899 argument. If false, emit stmts after gsi instead of before, and
1901 (bswap_replace): Adjust callers. When converting output of bswap,
1902 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
1905 2021-09-01 liuhongt <hongtao.liu@intel.com>
1907 * emit-rtl.c (validate_subreg): Get rid of all float-int
1910 2021-09-01 liuhongt <hongtao.liu@intel.com>
1913 2021-08-30 liuhongt <hongtao.liu@intel.com>
1915 * expmed.c (extract_bit_field_1): Make sure we're playing with
1916 integral modes before call extract_integral_bit_field.
1917 (extract_integral_bit_field): Add a parameter of type
1918 scalar_int_mode which corresponds to of tmode.
1919 And call extract_and_convert_fixed_bit_field instead of
1920 extract_fixed_bit_field and convert_extracted_bit_field.
1921 (extract_and_convert_fixed_bit_field): New function, it's a
1922 combination of extract_fixed_bit_field and
1923 convert_extracted_bit_field.
1925 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
1927 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
1929 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
1931 * omp-general.h (omp_is_reference): Rename to...
1932 (omp_privatize_by_reference): ... this. Adjust all users...
1933 * omp-general.c: ... here, ...
1934 * gimplify.c: ... here, ...
1935 * omp-expand.c: ... here, ...
1936 * omp-low.c: ... here.
1938 2021-08-31 Martin Sebor <msebor@redhat.com>
1940 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
1941 pointer element for equality to zero, not that of the cotaining
1944 2021-08-31 Martin Sebor <msebor@redhat.com>
1946 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
1948 2021-08-31 Martin Sebor <msebor@redhat.com>
1950 * function.h (function): Add comments.
1951 (get_range_query): Same. Add attribute returns nonnull.
1953 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
1955 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
1956 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
1957 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
1959 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
1961 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
1963 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
1964 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
1965 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
1966 (m32c-*-elf*, m32c-*-rtems*): Likewise.
1967 * config/cris/cris.h (DBX_NO_XREFS): Remove.
1968 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
1969 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
1970 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
1971 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
1972 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
1974 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
1976 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
1977 allowed on target constructs and only with particular other clauses.
1978 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
1980 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
1981 structs when 'ancestor' is used.
1982 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
1984 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
1985 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
1987 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
1989 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
1990 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
1992 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
1993 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
1994 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
1995 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
1996 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
1997 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
1998 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
1999 would be paradoxical.
2001 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
2003 * combine.c (combine_simplify_rtx): Avoid converting an explicit
2004 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
2005 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2007 2021-08-31 Richard Biener <rguenther@suse.de>
2009 PR tree-optimization/102142
2010 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
2011 condition under which to unset the visited flag.
2013 2021-08-31 Richard Biener <rguenther@suse.de>
2015 PR middle-end/102129
2016 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
2017 possibly trapping expressions across calls.
2019 2021-08-31 Jakub Jelinek <jakub@redhat.com>
2021 PR tree-optimization/102134
2022 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
2023 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
2026 2021-08-31 Andrew Pinski <apinski@marvell.com>
2029 * collect-utils.c (setup_signals): New declaration.
2030 * collect-utils.h (setup_signals): New function.
2031 * collect2.c (handler): Delete.
2032 (main): Instead of manually setting up the signals,
2033 just call setup_signals.
2034 * lto-wrapper.c (main): Likewise.
2036 2021-08-31 Andrew Pinski <apinski@marvell.com>
2039 * config/i386/i386-protos.h (x86_output_aligned_bss):
2040 Change align argument to unsigned type.
2041 (x86_elf_aligned_decl_common): Likewise.
2042 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
2043 (x86_output_aligned_bss): Likewise.
2045 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
2047 * config/mips/mips.c (mips_module_isa_name): New.
2048 mips_file_start: add .module mipsREV to all asm output
2050 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
2052 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
2053 use enum instead of int for 'isa' member.
2054 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
2055 config/mips/netbsd.h: replace hardcoded numbers with enum.
2057 2021-08-31 liuhongt <hongtao.liu@intel.com>
2059 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
2060 define_split to define_insn_and_split.
2061 (*avx2_eq<mode>3): Removed.
2062 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
2063 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
2064 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
2066 (*avx2_gt<mode>3): Removed.
2067 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
2068 define_insn to define_expand, and adjust pattern.
2069 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
2071 2021-08-30 David Malcolm <dmalcolm@redhat.com>
2074 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
2076 2021-08-30 Jason Merrill <jason@redhat.com>
2078 * doc/invoke.texi: Document -Wmissing-requires.
2080 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
2082 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
2083 TARGET_EXTRA_BUILTINS guard.
2085 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
2087 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
2088 initialization of V2DI_type_node and unsigned_V2DI_type_node.
2090 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
2092 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
2093 decl when new_builtins_are_live.
2094 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
2097 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
2099 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
2100 OPTION_MASK_P10_FUSION_2STORE.
2101 (POWERPC_MASKS): Likewise.
2102 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
2103 store fusion for Power10.
2104 (is_fusable_store): New.
2105 (power10_sched_reorder): Likewise.
2106 (rs6000_sched_reorder): Do Power10 specific reordering.
2107 (rs6000_sched_reorder2): Likewise.
2108 * config/rs6000/rs6000.opt: Add new option.
2110 2021-08-30 Richard Biener <rguenther@suse.de>
2112 PR tree-optimization/102128
2113 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
2114 Move scanning for if-converted scalar code to the caller
2115 and instead delay clearing the visited flag for profitable
2117 (vect_slp_region): Cost all subgraphs before scheduling.
2118 For if-converted BB vectorization scan for scalar COND_EXPRs
2119 and do not vectorize if any found and the cost model is
2122 2021-08-30 Richard Biener <rguenther@suse.de>
2124 * common.opt (fexceptions): Mark
2125 EnabledBy(fnon-call-exceptions).
2126 * doc/invoke.texi (fnon-call-exceptions): Document this
2127 enables -fexceptions.
2129 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
2131 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
2132 is not already defined.
2134 2021-08-30 liuhongt <hongtao.liu@intel.com>
2136 * expmed.c (extract_bit_field_1): Make sure we're playing with
2137 integral modes before call extract_integral_bit_field.
2138 (extract_integral_bit_field): Add a parameter of type
2139 scalar_int_mode which corresponds to of tmode.
2140 And call extract_and_convert_fixed_bit_field instead of
2141 extract_fixed_bit_field and convert_extracted_bit_field.
2142 (extract_and_convert_fixed_bit_field): New function, it's a
2143 combination of extract_fixed_bit_field and
2144 convert_extracted_bit_field.
2146 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
2148 * config/darwin.c (darwin_libc_has_function): Do not run
2149 the checks for x86 or modern Darwin. Make sure that there
2150 is a value set for darwin_macosx_version_min before testing.
2152 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
2154 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
2156 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
2158 * ipa-modref-tree.h (modref_access_node::merge): Break out
2159 logic combining offsets and logic merging ranges to ...
2160 (modref_access_node::combined_offsets): ... here
2161 (modref_access_node::update2): ... here
2162 (modref_access_node::closer_pair_p): New member function.
2163 (modref_access_node::forced_merge): New member function.
2164 (modre_ref_node::insert): Do merging when table is full.
2166 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
2169 * config.gcc: MIPS: use N64 ABI by default if the triple end
2170 with -gnuabi64, which is used by Debian since 2013.
2172 2021-08-28 Alexandre Oliva <oliva@adacore.com>
2174 * ipa-modref.c (analyze_function): Skip debug stmts.
2175 * tree-inline.c (estimate_num_insn): Consider builtins even
2176 without a cgraph_node.
2178 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
2180 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
2181 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
2182 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
2183 * config/h8300/h8300.md (eqne): New code iterator.
2184 (geultu, geultu_to_c): Similarly.
2185 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
2186 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
2187 (cmp<mode>_c): New pattern
2189 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
2191 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
2193 (dom_opt_dom_walker::optimize_stmt): Use it.
2195 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
2197 * config/darwin.c (finalize_ctors): Add a section-start linker-
2199 (finalize_dtors): Likewise.
2200 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
2202 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
2204 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
2205 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
2206 old initialization logic when new builtins are enabled.
2207 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
2208 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
2209 (write_init_file): Likewise.
2211 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
2213 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
2214 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
2215 (amdgcn-* | gcn-*) Likewise.
2217 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
2219 * symbol-summary.h: Added missing template keyword.
2221 2021-08-27 Richard Biener <rguenther@suse.de>
2223 PR tree-optimization/45178
2224 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
2225 infinite loops without exit do not mark control dependent
2226 edges of the latch necessary.
2228 2021-08-27 konglin1 <lingling.kong@intel.com>
2231 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
2233 (<avx512>scattersi<mode>): Likewise.
2234 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
2235 (*avx512f_scatterdi<VI48F:mode>): Likewise
2237 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
2239 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
2240 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
2241 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
2242 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
2243 P10_BUILTIN_PEXTD on Power10.
2245 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
2247 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
2248 signedness for some Power10 bifs.
2250 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
2253 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
2254 computed alignment if the entire struct has attribute packed.
2256 2021-08-27 liuhongt <hongtao.liu@intel.com>
2260 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
2261 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
2262 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
2263 IX86_BUILTIN_SHUFPS256.
2264 (ix86_masked_all_ones): New function.
2266 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
2268 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
2269 (conditional moves with memory inputs splitters): Ditto.
2270 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
2272 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
2274 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
2275 search after merging.
2277 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
2279 * config/rs6000/rs6000-overload.def: Add remaining overloads.
2281 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
2283 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
2285 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
2287 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
2288 crypto, and htm stanzas.
2290 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
2292 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
2294 2021-08-26 Martin Sebor <msebor@redhat.com>
2296 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
2297 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
2298 (warn_uninitialized_vars): Same. Reduce visibility of locals.
2299 (warn_uninitialized_phi): Same.
2301 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
2303 * tree-ssa-ccp.c (get_individual_bits): Helper function to
2304 extract the individual bits from a widest_int constant (mask).
2305 (gray_code_bit_flips): New read-only table for effiently
2306 enumerating permutations/combinations of bits.
2307 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
2308 by unknown counts that are guaranteed less than the target
2309 precision and four or fewer unknown bits by enumeration.
2310 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
2311 enumeration under the same conditions. Handle remaining
2312 shifts as a mask based upon the minimum possible shift value.
2314 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
2315 Richard Biener <rguenther@suse.de>
2317 * match.pd (shift transformations): Remove a redundant
2318 !POINTER_TYPE_P check.
2320 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
2323 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
2324 Set all_regs to true in the call to replace_rtx.
2326 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
2328 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
2329 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
2330 hiting --param modref-max-refs limit.
2331 (modref_tree:insert_base): Be smarter when hitting
2332 --param modref-max-bases limit. Add new parameter REF.
2333 (modref_tree:insert): Update.
2334 (modref_tree:merge): Update.
2335 * ipa-modref.c (read_modref_records): Update.
2337 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
2339 * params.opt: (modref-max-adjustments): Add full stop.
2341 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
2343 * ipa-modref-tree.h (modref_ref_node::verify): New member
2345 (modref_ref_node::insert): Use it.
2346 (modref_ref_node::try_mere_with): Fix off by one error.
2348 2021-08-26 Martin Liska <mliska@suse.cz>
2349 Stefan Kneifel <stefan.kneifel@bluewin.ch>
2351 * cgraph.h (create_version_clone_with_body): Add new parameter.
2352 * cgraphclones.c: Likewise.
2353 * multiple_target.c (create_dispatcher_calls): Do not use
2355 (create_target_clone): Likewise here.
2357 2021-08-26 Jonathan Yong <10walls@gmail.com>
2359 * doc/extend.texi: Add note about reserved priorities
2360 to the constructor attribute.
2362 2021-08-25 Martin Sebor <msebor@redhat.com>
2364 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
2365 range table header alone.
2366 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
2368 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
2370 * doc/invoke.texi: Document --param modref-max-adjustments.
2371 * ipa-modref-tree.c (test_insert_search_collapse): Update.
2372 (test_merge): Update.
2373 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
2374 (modref_access_node::operator==): Fix handling of access ranges.
2375 (modref_access_node::contains): Constify parameter; handle also
2376 mismatched parm offsets.
2377 (modref_access_node::update): New function.
2378 (modref_access_node::merge): New function.
2379 (unspecified_modref_access_node): Update constructor.
2380 (modref_ref_node::insert_access): Add record_adjustments parameter;
2382 (modref_ref_node::try_merge_with): New private function.
2383 (modref_tree::insert): New record_adjustments parameter.
2384 (modref_tree::merge): New record_adjustments parameter.
2385 (modref_tree::copy_from): Update.
2386 * ipa-modref.c (dump_access): Dump adjustments field.
2387 (get_access): Update constructor.
2388 (record_access): Update call of insert.
2389 (record_access_lto): Update call of insert.
2390 (merge_call_side_effects): Add record_adjustments parameter.
2391 (get_access_for_fnspec): Update.
2392 (process_fnspec): Update.
2393 (analyze_call): Update.
2394 (analyze_function): Update.
2395 (read_modref_records): Update.
2396 (ipa_merge_modref_summary_after_inlining): Update.
2397 (propagate_unknown_call): Update.
2398 (modref_propagate_in_scc): Update.
2399 * params.opt (param-max-modref-adjustments=): New.
2401 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
2403 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
2405 (xxspltiw_v4si): Use vecperm type attribute.
2406 (xxspltiw_v4si_inst): Use vecperm type attribute.
2407 (xxspltiw_v4sf_inst): Likewise.
2408 (xxspltidp_v2df): Use vecperm type attribute. Use
2409 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
2410 (xxspltidp_v2df_inst): Likewise.
2411 (xxsplti32dx_v4si): Use vecperm type attribute.
2412 (xxsplti32dx_v4si_inst): Likewise.
2413 (xxsplti32dx_v4sf_inst): Likewise.
2414 (xxblend_<mode>): Likewise.
2415 (xxpermx): Likewise.
2416 (xxpermx_inst): Likewise.
2419 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
2422 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
2423 * diagnostic.c (diagnostic_initialize_input_context): New function.
2424 * diagnostic.h (diagnostic_initialize_input_context): Declare.
2425 * input.c (default_charset_callback): New function.
2426 (file_cache::initialize_input_context): New function.
2427 (file_cache_slot::create): Added ability to convert the input
2428 according to the input context.
2429 (file_cache::file_cache): Initialize the new input context.
2430 (class file_cache_slot): Added new m_alloc_offset member.
2431 (file_cache_slot::file_cache_slot): Initialize the new member.
2432 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
2433 (file_cache_slot::maybe_grow): Likewise.
2434 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
2435 (file_cache_slot::get_next_line): Likewise.
2436 * input.h (class file_cache): Added input context member.
2438 2021-08-25 Richard Biener <rguenther@suse.de>
2440 PR tree-optimization/102046
2441 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
2442 update ->any_pattern when swapping operands.
2444 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
2447 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
2448 (ix86_decompose_address): Remove retval check for ASHIFT,
2449 allow non-canonical zero extend if AND mask covers ASHIFT
2451 (ix86_legitimate_address_p): Adjust condition for decompose.
2452 (ix86_rtx_costs): Adjust cost for lea with non-canonical
2454 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
2456 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
2458 PR tree-optimization/101145
2459 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
2461 (number_of_iterations_lt): Invoke above function.
2462 (adjust_cond_for_loop_until_wrap):
2463 Merge to number_of_iterations_until_wrap.
2464 (number_of_iterations_cond): Update invokes for
2465 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
2467 2021-08-25 konglin1 <lingling.kong@intel.com>
2470 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
2472 (_mm512_mask_fpclass_ps_mask): Ditto.
2474 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
2476 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
2477 (vec_unpacku_hi_v8hi): Likewise.
2478 (vec_unpacku_lo_v16qi): Likewise.
2479 (vec_unpacku_lo_v8hi): Likewise.
2480 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
2481 (vec_unpacku_lo_<VP_small_lc>): Likewise.
2483 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
2485 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
2486 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
2487 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
2488 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
2490 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
2492 PR middle-end/102031
2493 * simplify-rtx.c (simplify_truncation): When comparing precisions
2494 use "subreg_prec" variable, not "subreg_mode".
2496 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
2498 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
2501 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
2503 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
2504 various pointer type nodes.
2505 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
2506 values for various pointer types.
2507 (ptr_V16QI_type_node): New macro.
2508 (ptr_V1TI_type_node): New macro.
2509 (ptr_V2DI_type_node): New macro.
2510 (ptr_V2DF_type_node): New macro.
2511 (ptr_V4SI_type_node): New macro.
2512 (ptr_V4SF_type_node): New macro.
2513 (ptr_V8HI_type_node): New macro.
2514 (ptr_unsigned_V16QI_type_node): New macro.
2515 (ptr_unsigned_V1TI_type_node): New macro.
2516 (ptr_unsigned_V8HI_type_node): New macro.
2517 (ptr_unsigned_V4SI_type_node): New macro.
2518 (ptr_unsigned_V2DI_type_node): New macro.
2519 (ptr_bool_V16QI_type_node): New macro.
2520 (ptr_bool_V8HI_type_node): New macro.
2521 (ptr_bool_V4SI_type_node): New macro.
2522 (ptr_bool_V2DI_type_node): New macro.
2523 (ptr_bool_V1TI_type_node): New macro.
2524 (ptr_pixel_type_node): New macro.
2525 (ptr_intQI_type_node): New macro.
2526 (ptr_uintQI_type_node): New macro.
2527 (ptr_intHI_type_node): New macro.
2528 (ptr_uintHI_type_node): New macro.
2529 (ptr_intSI_type_node): New macro.
2530 (ptr_uintSI_type_node): New macro.
2531 (ptr_intDI_type_node): New macro.
2532 (ptr_uintDI_type_node): New macro.
2533 (ptr_intTI_type_node): New macro.
2534 (ptr_uintTI_type_node): New macro.
2535 (ptr_long_integer_type_node): New macro.
2536 (ptr_long_unsigned_type_node): New macro.
2537 (ptr_float_type_node): New macro.
2538 (ptr_double_type_node): New macro.
2539 (ptr_long_double_type_node): New macro.
2540 (ptr_dfloat64_type_node): New macro.
2541 (ptr_dfloat128_type_node): New macro.
2542 (ptr_ieee128_type_node): New macro.
2543 (ptr_ibm128_type_node): New macro.
2544 (ptr_vector_pair_type_node): New macro.
2545 (ptr_vector_quad_type_node): New macro.
2546 (ptr_long_long_integer_type_node): New macro.
2547 (ptr_long_long_unsigned_type_node): New macro.
2549 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
2551 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
2552 and power9-64 stanzas.
2554 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
2555 Tom de Vries <tdevries@suse.de>
2557 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
2558 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
2559 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
2560 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
2561 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
2562 * config/nvptx/nvptx-c.c: New source file.
2563 (nvptx_cpu_cpp_builtins): Move implementation here.
2565 2021-08-24 Martin Sebor <msebor@redhat.com>
2567 PR middle-end/101600
2568 PR middle-end/101977
2569 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
2570 the phrasing of a warning.
2571 (check_access): Use the remaining size after subtracting any offset
2572 rather than the whole object size.
2573 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
2574 clear for any nonnull PHI argument.
2575 (compute_objsize): Clear argument.
2577 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
2579 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
2581 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
2583 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
2586 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
2588 * value-relation.cc (rr_transitive_table): New.
2589 (relation_transitive): New.
2590 (value_relation::swap): Remove.
2591 (value_relation::apply_transitive): New.
2592 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
2593 (relation_oracle::register_relation): Call register_transitives.
2594 (relation_oracle::register_transitives): New.
2595 * value-relation.h (relation_oracle): Add new temporary bitmap and
2598 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
2601 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
2602 from integer to a pseudo vector register.
2604 2021-08-24 Richard Biener <rguenther@suse.de>
2606 PR tree-optimization/100089
2607 * tree-vectorizer.h (vect_slp_bb): Rename to ...
2608 (vect_slp_if_converted_bb): ... this and get the original
2609 loop as new argument.
2610 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
2611 pass original loop to vect_slp_if_converted_bb.
2612 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
2613 If orig_loop was passed scan the not vectorized stmts
2614 for COND_EXPRs and force not profitable if found.
2615 (vect_slp_region): Pass down all SLP instances to costing
2616 if orig_loop was specified.
2617 (vect_slp_bbs): Pass through orig_loop.
2618 (vect_slp_bb): Rename to ...
2619 (vect_slp_if_converted_bb): ... this and get the original
2620 loop as new argument.
2621 (vect_slp_function): Adjust.
2623 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
2626 * config/arm/arm.md (attribute arch): Add fix_vlldm.
2627 (arch_enabled): Use it.
2628 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
2629 use when erratum mitigation is needed.
2631 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
2634 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
2635 * doc/invoke.texi (Arm Options): Document it.
2636 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
2637 (ALL_QUIRKS): Add quirk_vlldm.
2638 (cortex-m33): Add quirk_vlldm.
2639 (cortex-m35p, cortex-m55): Likewise.
2640 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
2641 targetting an affected CPU and not explicitly controlled on
2644 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
2646 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
2647 (lazy_load_multiple_insn): Likewise.
2649 2021-08-24 liuhongt <hongtao.liu@intel.com>
2652 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
2653 Enable avx512 embedded broadcast.
2654 (*<avx512>_vternlog<mode>_all): Ditto.
2655 (<avx512>_vternlog<mode>_mask): Ditto.
2657 2021-08-24 liuhongt <hongtao.liu@intel.com>
2660 * config/i386/i386.c (ix86_rtx_costs): Define cost for
2662 * config/i386/i386.h (STRIP_UNARY): New macro.
2663 * config/i386/predicates.md (reg_or_notreg_operand): New
2665 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
2666 (*<avx512>_vternlog<mode>_1): New pre_reload
2667 define_insn_and_split.
2668 (*<avx512>_vternlog<mode>_2): Ditto.
2669 (*<avx512>_vternlog<mode>_3): Ditto.
2670 (any_logic1,any_logic2): New code iterator.
2671 (logic_op): New code attribute.
2672 (ternlogsuffix): Extend to VNxDF and VNxSF.
2674 2021-08-24 Richard Biener <rguenther@suse.de>
2676 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
2677 * params.opt (--param vect-inner-loop-cost-factor): Adjust
2679 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
2680 inner_loop_cost_factor to the minimum of the estimated number
2681 of iterations of the inner loop and vect-inner-loop-cost-factor.
2683 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
2684 Richard Biener <rguenther@suse.de>
2686 * config/i386/i386-features.c (compute_convert_gain): Provide
2687 more accurate values for CONST_INT, when optimizing for size.
2688 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
2689 * config/i386/i386.h (COSTS_N_BYTES): to here.
2691 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
2692 Jakub Jelinek <jakub@redhat.com>
2694 PR middle-end/102029
2695 * match.pd (shift transformations): Add an additional check for
2696 !POINTER_TYPE_P in the recently added left shift transformation.
2698 2021-08-24 liuhongt <hongtao.liu@intel.com>
2700 PR tree-optimization/100089
2701 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
2702 loop vectorizer when cost model is very-cheap.
2704 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
2706 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
2707 asprintf, which is not available on AIX.
2709 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
2711 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
2712 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
2714 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
2716 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
2717 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
2719 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
2720 (rbtree.o): Likewise.
2721 (rs6000-gen-builtins): Likewise.
2722 (rs6000-builtins.c): Likewise.
2723 (rs6000-builtins.h): Likewise.
2724 (rs6000.o): Add dependency.
2725 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
2726 (rs6000-vecdefines.h): New target.
2727 (rs6000-builtins.o): Likewise.
2728 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
2729 (rs6000-c.o): Likewise.
2731 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
2734 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
2735 Diagnose buffer overrun.
2736 (safe_inc_pos): Fix overrun detection.
2737 (match_identifier): Diagnose buffer overrun.
2738 (match_integer): Likewise.
2739 (match_to_right_bracket): Likewise.
2741 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
2743 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
2744 Improve range compare.
2745 (modref_access_node::contains): New member function.
2746 (modref_access_node::search): Remove.
2747 (modref_access_node::insert): Be smarter about subaccesses.
2749 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2751 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
2752 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
2753 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
2756 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
2758 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
2760 * config/h8300/jumpcall.md (call, call_value): Restrict to
2761 !SIBLING_CALL_P cases.
2762 (subcall, sibcall_value): New patterns & expanders.
2763 * config/h8300/proepi.md (epilogue): Pass new argument to
2764 h8300_expand_epilogue.
2765 (sibcall_epilogue): New expander.
2766 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
2768 (h8300_ok_for_sibcall_p): New function.
2769 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
2771 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
2773 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
2774 Handle case where the operand is already the desired mode.
2776 2021-08-23 Richard Biener <rguenther@suse.de>
2779 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
2780 in addition to has_gimple_body.
2782 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
2784 PR middle-end/101949
2785 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
2788 2021-08-23 Martin Liska <mliska@suse.cz>
2790 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
2793 2021-08-23 Richard Biener <rguenther@suse.de>
2795 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2796 Properly scale the inner loop cost only once.
2798 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
2800 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
2801 Provide bounds for unsigned (and signed with non-negative operands)
2802 division and modulus.
2804 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
2806 * simplify-rtx.c (simplify_truncation): Generalize simplification
2807 of (truncate:A (subreg:B X)).
2808 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
2809 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
2810 already has the desired machine mode.
2811 (test_scalar_int_ops): Add tests that useless extensions and
2812 truncations are optimized away.
2813 (test_scalar_int_ext_ops): New self-test function to confirm
2814 that truncations of extensions are correctly simplified.
2815 (test_scalar_int_ext_ops2): New self-test function to check
2816 truncations of truncations, extensions of extensions, and
2817 truncations of extensions.
2818 (test_scalar_ops): Call the above two functions with a
2819 representative sampling of integer machine modes.
2821 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
2823 * match.pd (shift transformations): Change the sign of an
2824 LSHIFT_EXPR if it reduces the number of explicit conversions.
2826 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2828 PR tree-optimization/86723
2829 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
2830 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
2831 non-memory permutation of 64-bit src which only has bytes of
2832 0 or [5..8] and n->range is 4.
2833 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
2834 find_bswap_or_nop_finalize caller, support bswap with some bytes
2835 zeroed, as long as at least two bytes are not zeroed.
2836 (bswap_replace): Add mask argument and handle masking of bswap
2838 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
2839 caller, punt if cast64_to_32 or mask is not all ones.
2840 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
2841 caller, for now punt if cast64_to_32.
2843 2021-08-23 Richard Biener <rguenther@suse.de>
2845 PR tree-optimization/79334
2846 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
2847 a type also for COMPONENT_REFs.
2848 (vn_reference_may_trap): Check ARRAY_REF with constant index
2849 against the array domain.
2851 2021-08-23 liuhongt <hongtao.liu@intel.com>
2854 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
2855 TARGET_AVX512BW to condition.
2857 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2860 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
2861 register variables already during early_dwarf if possible.
2863 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
2865 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
2867 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
2870 * config/arm/arm.opt: Fix typo.
2871 * config/arm/t-rmprofile: Fix typo.
2873 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2875 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
2876 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
2877 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
2878 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
2879 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
2880 if either grainsize or num_tasks clause has the strict modifier.
2882 2021-08-23 Martin Liska <mliska@suse.cz>
2884 * dbgcnt.def (DEBUG_COUNTER): New counter.
2885 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
2887 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
2889 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
2891 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
2894 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
2896 * config/mips/mips.c (mips_msa_output_shift_immediate): New
2898 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
2899 vlshr<mode>3): Call it.
2901 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
2902 Martin Liska <mliska@suse.cz>
2904 PR middle-end/101949
2905 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
2908 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
2910 * config/mips/mips.c (mips_function_rodata_section,
2911 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
2913 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
2915 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
2917 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2919 * configure.ac (thread-local storage support): Remove tls_first_major
2920 and tls_first_minor. Use "$conftest_s" to check support.
2921 * configure: Regenerate.
2923 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2925 * configure.ac: Fixup formatting.
2927 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2929 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
2930 * configure.ac: ... update all callers.
2932 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2935 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
2936 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
2937 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
2938 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
2939 Remove remaining checks for in-tree assembler.
2940 * configure: Regenerate.
2942 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
2944 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
2945 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
2947 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
2948 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
2949 Improve logical shifts by 27 bits for H8/S.
2950 (get_shift_alg): Corresponding changes.
2951 (h8300_option_override): Revert to loops for -Os when profitable.
2953 2021-08-20 Richard Biener <rguenther@suse.de>
2955 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
2957 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
2958 index as group_id when dataref_groups were not computed.
2959 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
2960 we advace to the next BB.
2962 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2964 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
2967 2021-08-20 Martin Liska <mliska@suse.cz>
2969 PR gcov-profile/89961
2970 * gcov.c (make_gcov_file_name): Rewrite using std::string.
2971 (mangle_name): Simplify, do not used the second argument.
2972 (strip_extention): New function.
2973 (get_md5sum): Likewise.
2974 (get_gcov_intermediate_filename): Handle properly -p and -x
2976 (output_gcov_file): Use string type.
2977 (generate_results): Likewise.
2978 (md5sum_to_hex): Remove.
2980 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
2982 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
2983 (UNSPEC_XXSPLTIW): Move to vsx.md.
2984 (UNSPEC_XXSPLTID): Move to vsx.md.
2985 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
2986 (UNSPEC_XXBLEND): Move to vsx.md.
2987 (UNSPEC_XXPERMX): Move to vsx.md.
2988 (VM3): Move to vsx.md.
2989 (VM3_char): Move to vsx.md.
2990 (xxspltiw_v4si): Move to vsx.md.
2991 (xxspltiw_v4sf): Move to vsx.md.
2992 (xxspltiw_v4sf_inst): Move to vsx.md.
2993 (xxspltidp_v2df): Move to vsx.md.
2994 (xxspltidp_v2df_inst): Move to vsx.md.
2995 (xxsplti32dx_v4si_inst): Move to vsx.md.
2996 (xxsplti32dx_v4sf): Move to vsx.md.
2997 (xxsplti32dx_v4sf_inst): Move to vsx.md.
2998 (xxblend_<mode>): Move to vsx.md.
2999 (xxpermx): Move to vsx.md.
3000 (xxpermx_inst): Move to vsx.md.
3001 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
3002 (UNSPEC_XXSPLTIW): Move from altivec.md.
3003 (UNSPEC_XXSPLTID): Move from altivec.md.
3004 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
3005 (UNSPEC_XXBLEND): Move from altivec.md.
3006 (UNSPEC_XXPERMX): Move from altivec.md.
3007 (VM3): Move from altivec.md.
3008 (VM3_char): Move from altivec.md.
3009 (xxspltiw_v4si): Move from altivec.md.
3010 (xxspltiw_v4sf): Move from altivec.md.
3011 (xxspltiw_v4sf_inst): Move from altivec.md.
3012 (xxspltidp_v2df): Move from altivec.md.
3013 (xxspltidp_v2df_inst): Move from altivec.md.
3014 (xxsplti32dx_v4si_inst): Move from altivec.md.
3015 (xxsplti32dx_v4sf): Move from altivec.md.
3016 (xxsplti32dx_v4sf_inst): Move from altivec.md.
3017 (xxblend_<mode>): Move from altivec.md.
3018 (xxpermx): Move from altivec.md.
3019 (xxpermx_inst): Move from altivec.md.
3021 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
3023 * tree-vect-generic.c (expand_vector_operations_1): Use either
3024 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
3025 when constructing scalar splat expressions.
3027 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
3030 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
3031 pointer to __vector_pair *.
3033 2021-08-19 Martin Sebor <msebor@redhat.com>
3035 * gimple-range.cc: Add comments.
3036 * gimple-range.h: Same.
3038 2021-08-19 Martin Sebor <msebor@redhat.com>
3040 PR middle-end/101984
3041 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
3044 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
3046 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
3047 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
3048 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
3050 2021-08-19 Jakub Jelinek <jakub@redhat.com>
3052 PR middle-end/101950
3053 * optabs.c (expand_clrsb_using_clz): New function.
3054 (expand_unop): Use it as another clrsb expansion fallback.
3056 2021-08-19 liuhongt <hongtao.liu@intel.com>
3059 2021-07-28 liuhongt <hongtao.liu@intel.com>
3062 * config/i386/i386.h (processor_costs): Add new member
3064 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
3065 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
3066 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
3067 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
3068 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
3069 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
3070 generic_cost, core_cost): Initialize integer_to_sse same value
3072 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
3073 * config/i386/i386.c (ix86_builtin_vectorization_cost):
3074 Use integer_to_sse instead of sse_op to calculate the cost of
3077 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
3079 * config.gcc: Include rpath.opt for Darwin.
3080 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
3082 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
3085 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
3088 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
3090 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
3091 pattern and type cast.
3092 (vld4_lane_f32): Use float RTL pattern.
3093 (vld4q_lane_f64): Use float type cast.
3095 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
3097 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
3100 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
3102 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
3103 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
3104 (hash_map_tests_c_tests): Call it.
3106 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
3108 * ggc.h (enum ggc_collect): New.
3109 (ggc_collect): Use it.
3110 * ggc-page.c: Adjust.
3111 * ggc-common.c: Likewise.
3112 * ggc-tests.c: Likewise.
3113 * read-rtl-function.c: Likewise.
3114 * selftest-run-tests.c: Likewise.
3115 * doc/gty.texi (Invoking the garbage collector): Likewise.
3117 2021-08-18 liuhongt <hongtao.liu@intel.com>
3120 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
3122 * config/i386/sse.md (*sse3_haddv2df3_low): Add
3123 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
3124 (*sse3_hsubv2df3_low): Ditto.
3125 * config/i386/x86-tune.def
3126 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
3128 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
3130 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
3131 (gori_compute::compute_operand_range): Add tracing.
3132 (gori_compute::logical_combine): Ditto.
3133 (gori_compute::compute_logical_operands): Ditto.
3134 (gori_compute::compute_operand1_range): Ditto.
3135 (gori_compute::compute_operand2_range): Ditto.
3136 (gori_compute::outgoing_edge_range_p): Ditto.
3137 * gimple-range-gori.h (class gori_compute): Add range_tracer.
3139 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
3141 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
3142 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
3143 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
3144 * params.opt (--param=evrp-mode): Adjust options.
3146 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
3148 * Makefile.in (OBJS): Add gimple-range-trace.o.
3149 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
3150 * gimple-range-fold.cc: Adjust headers.
3151 * gimple-range-trace.cc: New.
3152 * gimple-range-trace.h: New.
3153 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
3154 (gimple_ranger::range_of_expr): Add tracing.
3155 (gimple_ranger::range_on_entry): Ditto.
3156 (gimple_ranger::range_on_exit): Ditto.
3157 (gimple_ranger::range_on_edge): Ditto.
3158 (gimple_ranger::fold_range_internal): Ditto.
3159 (gimple_ranger::dump_bb): Do not calculate edge range twice.
3160 (trace_ranger::*): Remove.
3161 (enable_ranger): Never create a trace_ranger.
3162 (debug_seed_ranger): Move to gimple-range-trace.cc.
3163 (dump_ranger): Ditto.
3164 (debug_ranger): Ditto.
3165 * gimple-range.h: Include gimple-range-trace.h.
3166 (range_on_entry, range_on_exit): No longer virtual.
3167 (class trace_ranger): Remove.
3168 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
3170 2021-08-17 Martin Sebor <msebor@redhat.com>
3172 PR middle-end/101854
3173 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
3174 in gimple-ssa-warn-access.cc.
3175 * calls.c (alloc_max_size): Move code to check_alloca.
3176 (get_size_range): Move to pointer-query.cc.
3177 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
3178 (get_attr_nonstring_decl): Move to tree.c.
3179 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
3180 (append_attrname): Same.
3181 (maybe_warn_rdwr_sizes): Same.
3182 (initialize_argument_information): Move code to
3183 gimple-ssa-warn-access.cc.
3184 * calls.h (maybe_warn_alloc_args_overflow): Move to
3185 gimple-ssa-warn-access.h.
3186 (get_attr_nonstring_decl): Move to tree.h.
3187 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
3188 (enum size_range_flags): Move to pointer-query.h.
3189 (get_size_range): Same.
3190 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
3191 to avoid Clang -Wunused-function.
3192 (get_size_range): Declare static.
3193 (maybe_emit_free_warning): Rename...
3194 (maybe_check_dealloc_call): ...to this for consistency.
3195 (class pass_waccess): Add members.
3196 (pass_waccess::~pass_waccess): Defined.
3197 (alloc_max_size): Move here from calls.c.
3198 (maybe_warn_alloc_args_overflow): Same.
3199 (check_alloca): New function.
3200 (check_alloc_size_call): New function.
3201 (check_strncat): Handle another warning flag.
3202 (pass_waccess::check_builtin): Handle alloca.
3203 (fntype_argno_type): Move here from calls.c.
3204 (append_attrname): Same.
3205 (maybe_warn_rdwr_sizes): Same.
3206 (pass_waccess::check_call): Define.
3207 (check_nonstring_args): New function.
3208 (pass_waccess::check): Call new member functions.
3209 (pass_waccess::execute): Enable ranger.
3210 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
3211 (maybe_warn_nonstring_arg): Same.
3212 * gimple-ssa-warn-restrict.c: Remove #include.
3213 * pointer-query.cc (get_size_range): Move here from calls.c.
3214 * pointer-query.h (enum size_range_flags): Same.
3215 (get_size_range): Same.
3216 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
3217 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
3219 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
3221 * ggc.h (ggc_collect): Add 'force_collect' parameter.
3222 * ggc-page.c (ggc_collect): Use that one instead of global
3223 'ggc_force_collect'. Adjust all users.
3224 * doc/gty.texi (Invoking the garbage collector): Update.
3225 * ggc-internal.h (ggc_force_collect): Remove.
3226 * ggc-common.c (ggc_force_collect): Likewise.
3227 * selftest.h (forcibly_ggc_collect): Remove.
3228 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
3229 * read-rtl-function.c (test_loading_labels): Adjust.
3230 * selftest-run-tests.c (run_tests): Likewise.
3232 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
3234 * config/darwin.c (darwin_file_end): Reset and reclaim the
3235 section names table at the end of compile.
3237 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
3240 * config.in: Regenerate.
3241 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
3242 (ASM_SPEC): Pass options to disable branch shortening where
3244 * configure: Regenerate.
3245 * configure.ac: Detect versions of 'as' that support the
3246 optimisation which has the bug.
3248 2021-08-17 Richard Biener <rguenther@suse.de>
3250 * optabs-query.c (supports_vec_gather_load_p): Also check
3252 (supports_vec_scatter_store_p): Likewise.
3253 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
3254 back to masked variants if non-masked are not supported.
3255 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
3256 When we need to use masked gather/scatter but do not have
3257 a mask set up a constant true one.
3258 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
3261 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
3263 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
3264 algorithm as PLUS_EXPR to improve subtraction bit bounds.
3265 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
3267 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
3269 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
3270 calculate the mask-value pair result of a multiplication by an
3272 (bit_value_binop) [MULT_EXPR]: Call it from here for
3273 multiplications by (sparse) non-negative constants.
3275 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
3278 * config.gcc (gcc_cv_initfini_array): Leave undefined for
3279 uclinuxfdpiceabi targets.
3281 2021-08-17 Alexandre Oliva <oliva@adacore.com>
3283 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
3284 reverse debug stmts.
3286 2021-08-17 Alexandre Oliva <oliva@adacore.com>
3288 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
3290 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
3292 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
3293 (__LD4Q_LANE_FUNC): Likewise.
3294 (vld4_lane_u8): Define without macro.
3295 (vld4_lane_u16): Likewise.
3296 (vld4_lane_u32): Likewise.
3297 (vld4_lane_u64): Likewise.
3298 (vld4_lane_s8): Likewise.
3299 (vld4_lane_s16): Likewise.
3300 (vld4_lane_s32): Likewise.
3301 (vld4_lane_s64): Likewise.
3302 (vld4_lane_f16): Likewise.
3303 (vld4_lane_f32): Likewise.
3304 (vld4_lane_f64): Likewise.
3305 (vld4_lane_p8): Likewise.
3306 (vld4_lane_p16): Likewise.
3307 (vld4_lane_p64): Likewise.
3308 (vld4q_lane_u8): Likewise.
3309 (vld4q_lane_u16): Likewise.
3310 (vld4q_lane_u32): Likewise.
3311 (vld4q_lane_u64): Likewise.
3312 (vld4q_lane_s8): Likewise.
3313 (vld4q_lane_s16): Likewise.
3314 (vld4q_lane_s32): Likewise.
3315 (vld4q_lane_s64): Likewise.
3316 (vld4q_lane_f16): Likewise.
3317 (vld4q_lane_f32): Likewise.
3318 (vld4q_lane_f64): Likewise.
3319 (vld4q_lane_p8): Likewise.
3320 (vld4q_lane_p16): Likewise.
3321 (vld4q_lane_p64): Likewise.
3322 (vld4_lane_bf16): Likewise.
3323 (vld4q_lane_bf16): Likewise.
3325 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
3327 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
3328 (__LD3Q_LANE_FUNC): Delete.
3329 (vld3_lane_u8): Define without macro.
3330 (vld3_lane_u16): Likewise.
3331 (vld3_lane_u32): Likewise.
3332 (vld3_lane_u64): Likewise.
3333 (vld3_lane_s8): Likewise.
3334 (vld3_lane_s16): Likewise.
3335 (vld3_lane_s32): Likewise.
3336 (vld3_lane_s64): Likewise.
3337 (vld3_lane_f16): Likewise.
3338 (vld3_lane_f32): Likewise.
3339 (vld3_lane_f64): Likewise.
3340 (vld3_lane_p8): Likewise.
3341 (vld3_lane_p16): Likewise.
3342 (vld3_lane_p64): Likewise.
3343 (vld3q_lane_u8): Likewise.
3344 (vld3q_lane_u16): Likewise.
3345 (vld3q_lane_u32): Likewise.
3346 (vld3q_lane_u64): Likewise.
3347 (vld3q_lane_s8): Likewise.
3348 (vld3q_lane_s16): Likewise.
3349 (vld3q_lane_s32): Likewise.
3350 (vld3q_lane_s64): Likewise.
3351 (vld3q_lane_f16): Likewise.
3352 (vld3q_lane_f32): Likewise.
3353 (vld3q_lane_f64): Likewise.
3354 (vld3q_lane_p8): Likewise.
3355 (vld3q_lane_p16): Likewise.
3356 (vld3q_lane_p64): Likewise.
3357 (vld3_lane_bf16): Likewise.
3358 (vld3q_lane_bf16): Likewise.
3360 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
3362 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
3363 (__LD2Q_LANE_FUNC): Likewise.
3364 (vld2_lane_u8): Define without macro.
3365 (vld2_lane_u16): Likewise.
3366 (vld2_lane_u32): Likewise.
3367 (vld2_lane_u64): Likewise.
3368 (vld2_lane_s8): Likewise.
3369 (vld2_lane_s16): Likewise.
3370 (vld2_lane_s32): Likewise.
3371 (vld2_lane_s64): Likewise.
3372 (vld2_lane_f16): Likewise.
3373 (vld2_lane_f32): Likewise.
3374 (vld2_lane_f64): Likewise.
3375 (vld2_lane_p8): Likewise.
3376 (vld2_lane_p16): Likewise.
3377 (vld2_lane_p64): Likewise.
3378 (vld2q_lane_u8): Likewise.
3379 (vld2q_lane_u16): Likewise.
3380 (vld2q_lane_u32): Likewise.
3381 (vld2q_lane_u64): Likewise.
3382 (vld2q_lane_s8): Likewise.
3383 (vld2q_lane_s16): Likewise.
3384 (vld2q_lane_s32): Likewise.
3385 (vld2q_lane_s64): Likewise.
3386 (vld2q_lane_f16): Likewise.
3387 (vld2q_lane_f32): Likewise.
3388 (vld2q_lane_f64): Likewise.
3389 (vld2q_lane_p8): Likewise.
3390 (vld2q_lane_p16): Likewise.
3391 (vld2q_lane_p64): Likewise.
3392 (vld2_lane_bf16): Likewise.
3393 (vld2q_lane_bf16): Likewise.
3395 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3397 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
3400 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3402 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
3403 (rank_for_schedule): Use it.
3405 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3407 PR rtl-optimization/91598
3408 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
3409 insns after memory reads and before memory writes.
3411 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
3413 * rtl.h (CONST_VECTOR_P): New macro.
3414 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
3415 code testing macros.
3416 (aarch64_ptrue_all_mode): Likewise.
3417 (aarch64_expand_mov_immediate): Likewise.
3418 (aarch64_const_vec_all_in_range_p): Likewise.
3419 (aarch64_rtx_costs): Likewise.
3420 (aarch64_legitimate_constant_p): Likewise.
3421 (aarch64_simd_valid_immediate): Likewise.
3422 (aarch64_simd_make_constant): Likewise.
3423 (aarch64_convert_mult_to_shift): Likewise.
3424 (aarch64_expand_sve_vec_perm): Likewise.
3425 (aarch64_vec_fpconst_pow_of_2): Likewise.
3427 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
3429 PR tree-optimization/101938
3430 * range-op.cc (operator_abs::op1_range): Special case
3431 -TYPE_MIN_VALUE for flag_wrapv.
3433 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
3435 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
3438 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3440 * tree.def (OMP_SCOPE): New tree code.
3441 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
3442 * tree-nested.c (convert_nonlocal_reference_stmt,
3443 convert_local_reference_stmt, convert_gimple_call): Handle
3445 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
3446 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
3447 * gimple.c (gimple_build_omp_scope): New function.
3448 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
3449 * gimple.h (gimple_build_omp_scope): Declare.
3450 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
3451 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
3452 gimple_omp_scope_set_clauses): New inline functions.
3453 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
3454 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
3455 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
3456 * gimple-walk.c (walk_gimple_stmt): Likewise.
3457 * gimple-low.c (lower_stmt): Likewise.
3458 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
3459 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
3460 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
3461 allowing task reductions. Reject inscan reductions on scope.
3462 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
3463 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
3464 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
3465 (estimate_num_insns): Likewise.
3466 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
3467 contexts if var isn't privatized there.
3468 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
3469 (scan_omp_1_stmt): Likewise.
3470 (maybe_add_implicit_barrier_cancel): Look through outer
3472 (lower_omp_scope): New function.
3473 (lower_omp_task_reductions): Handle OMP_SCOPE.
3474 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
3475 (diagnose_sb_1, diagnose_sb_2): Likewise.
3476 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
3477 (expand_omp): Handle GIMPLE_OMP_SCOPE.
3478 (omp_make_gimple_edges): Likewise.
3479 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
3481 2021-08-17 Richard Biener <rguenther@suse.de>
3483 PR tree-optimization/101925
3484 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
3485 reverse on COMPONENT_REF and ARRAY_REF according to
3486 what reverse_storage_order_for_component_p does.
3487 (vn_reference_eq): Compare reversed on reference ops.
3488 (reverse_storage_order_for_component_p): New overload.
3489 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
3490 on the reference looked up.
3492 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
3494 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
3496 (h8300_option_override): Use loops on H8/S more often when optimizing
3498 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
3499 accordingly. Handle various arithmetic right shifts with special
3500 sequences that we couldn't handle before.
3502 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
3504 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
3506 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
3508 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
3509 * config/sparc/sparc.c (sparc_gcov_type_size): New.
3510 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
3511 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
3512 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
3513 * doc/tm.texi.in: Regenerate.
3514 * target.def (gcov_type_size): New target hook.
3515 * targhooks.c (default_gcov_type_size): New.
3516 * targhooks.h (default_gcov_type_size): Declare.
3517 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
3519 (gimple_gen_time_profiler): Likewise.
3521 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
3523 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
3525 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3527 PR middle-end/101931
3528 * omp-low.c (omp_runtime_api_call): Update for routines
3529 added in the meanwhile.
3531 2021-08-16 Martin Liska <mliska@suse.cz>
3533 PR tree-optimization/100393
3534 * tree-switch-conversion.c (group_cluster::dump): Use
3535 get_comparison_count.
3536 (jump_table_cluster::find_jump_tables): Pre-compute number of
3537 comparisons and then decrement it. Cache also max_ratio.
3538 (jump_table_cluster::can_be_handled): Change signature.
3539 * tree-switch-conversion.h (get_comparison_count): New.
3541 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
3543 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
3544 encodings only when -fgnat-encodings=all is specified.
3545 (add_bound_info): Likewise.
3546 (add_byte_size_attribute): Likewise.
3547 (gen_member_die): Likewise.
3549 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3551 * omp-oacc-neuter-broadcast.cc
3552 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
3554 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3556 * omp-oacc-neuter-broadcast.cc
3557 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
3560 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3562 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
3563 (execute_omp_oacc_neuter_broadcast): ... here.
3564 (install_var_field, build_receiver_ref, build_sender_ref): Take
3565 'field_map_t *' parameter. Adjust all users.
3566 (worker_single_copy, neuter_worker_single): Take a
3567 'record_field_map_t *' parameter. Adjust all users.
3569 2021-08-16 liuhongt <hongtao.liu@intel.com>
3572 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
3575 2021-08-16 Martin Liska <mliska@suse.cz>
3578 * multiple_target.c (create_dispatcher_calls): Make default
3579 function local only if it is a definition.
3581 2021-08-16 Martin Liska <mliska@suse.cz>
3584 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
3585 consider equal SSA_NAMEs when one is a param.
3587 2021-08-16 liuhongt <hongtao.liu@intel.com>
3590 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
3591 Support vpermi2b for V32QI/V16QImode.
3592 (ix86_extract_perm_from_pool_constant): New function.
3593 (ix86_expand_vec_one_operand_perm_avx512): Support
3594 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
3595 (expand_vec_perm_1): Adjust comments for upper.
3596 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
3598 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
3599 (pshufb_truncv4siv4hi_operand): Ditto.
3600 (pshufb_truncv8hiv8qi_operand): Ditto.
3601 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
3602 New pre_reload define_insn_and_split.
3603 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
3604 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
3605 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
3606 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
3607 (*avx512f_permvar_truncv4div4si_1): Ditto.
3608 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
3609 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
3610 (*avx512f_pshufd_truncv2div2si_1): Ditto.
3612 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
3614 * config/riscv/multilib-generator: Support code model option for
3616 * doc/install.texi: Add document of new option for
3617 --with-multilib-generator.
3619 2021-08-15 Clément Chigot <clement.chigot@atos.net>
3621 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
3622 (rs6000_legitimize_tls_address_aix): Use it.
3623 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
3624 xcoff_tls_exec_model_detected is true.
3626 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
3628 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
3629 to allow a bit more code growth, saving many dozens of cycles.
3630 (h8300_option_override): Adjus shift_alg_si if optimizing for
3632 (get_shift_alg): Use special + inline shifts for residuals
3635 2021-08-14 Stafford Horne <shorne@gmail.com>
3638 * config/or1k/or1k-opts.h: New file.
3639 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
3640 Support generating gotha relocations if -mcmodel=large is
3642 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
3644 * config/or1k/or1k.opt (mcmodel=): New option.
3645 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
3647 2021-08-14 Martin Sebor <msebor@redhat.com>
3649 PR middle-end/101791
3650 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
3651 to valid_new_delete_pair_p.
3652 * tree.c (valid_new_delete_pair_p): Add argument.
3653 * tree.h (valid_new_delete_pair_p): Same.
3655 2021-08-14 Jakub Jelinek <jakub@redhat.com>
3658 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
3659 <case E_V64QImode>: For this mode assert
3660 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
3662 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
3665 * config/rs6000/altivec.md (xxeval): Use register_predicate
3666 instead of altivec_register_predicate.
3668 2021-08-13 Martin Sebor <msebor@redhat.com>
3670 PR middle-end/101734
3671 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
3672 (maybe_warn_operand): Call it.
3674 2021-08-13 Martin Liska <mliska@suse.cz>
3677 * attribs.c (decl_attributes): Make naked functions "noipa"
3680 2021-08-13 Martin Liska <mliska@suse.cz>
3683 * symtab.c (symtab_node::noninterposable_alias): Do not create
3684 local aliases for target_clone functions as the clonning pass
3687 2021-08-13 Martin Liska <mliska@suse.cz>
3689 * opts.c (LIVE_PATCHING_OPTION): Define.
3690 (control_options_for_live_patching): Use it in error messages.
3692 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
3694 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
3695 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
3696 ignore_stores_eaf_flags): New constants.
3697 (remove_useless_eaf_flags): New function.
3698 (eaf_flags_useful_p): Use it.
3699 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
3701 (modref_lattice::init): Add EAF_NOREAD.
3702 (modref_lattice::add_escape_point): Do not reacord escape point if
3704 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
3705 use remove_useless_eaf_flags.
3706 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
3707 (modref_lattice::merge_direct_load): Add EAF_NOREAD
3708 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
3709 (analyze_parms): Use remove_useless_eaf_flags.
3710 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
3711 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
3712 use remove_useless_eaf_flags.
3713 (modref_propagate_flags_in_scc): Update.
3714 * ipa-modref.h: Turn eaf_flags_t back to char.
3715 * tree-core.h (EAF_NOT_RETURNED): Fix.
3716 (EAF_NOREAD): New constant
3717 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
3719 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
3720 (handle_pure_call): Likewise.
3722 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3724 * tree.def (OMP_MASKED): New tree code.
3725 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
3726 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
3727 OMP_CLAUSE_FILTER_EXPR): Define.
3728 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
3729 (omp_clause_code_name): Likewise.
3730 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
3731 * tree-nested.c (convert_nonlocal_omp_clauses,
3732 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
3733 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
3734 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
3735 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
3736 (dump_generic_node): Handle OMP_MASTER.
3737 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
3738 * gimple.c (gimple_build_omp_masked): New function.
3739 (gimple_copy): Handle GIMPLE_OMP_MASKED.
3740 * gimple.h (gimple_build_omp_masked): Declare.
3741 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
3742 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
3743 gimple_omp_masked_set_clauses): New inline functions.
3744 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
3745 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
3746 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
3747 * gimple-walk.c (walk_gimple_stmt): Likewise.
3748 * gimple-low.c (lower_stmt): Likewise.
3749 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
3750 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
3751 that take one expression rather than decl or constant, force
3752 gimplification of that into a SSA_NAME or temporary unless min
3754 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
3755 (gimplify_expr): Handle OMP_MASKED.
3756 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
3757 (estimate_num_insns): Likewise.
3758 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
3759 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
3760 diagnostics for existence of masked construct.
3761 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
3762 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
3763 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
3766 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
3769 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
3770 (ldexp<mode>3): Use avx512f_scalef<mode>2.
3771 (UNSPEC_SCALEF): Move from ...
3772 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
3774 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
3776 * ipa-split.c (consider_split): Fix condition testing void functions.
3778 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
3780 * doc/invoke.texi: Remove docs for threader-mode param.
3781 * flag-types.h (enum threader_mode): Remove.
3782 * params.opt: Remove threader-mode param.
3783 * tree-ssa-threadbackward.c (class back_threader): Remove
3784 path_is_unreachable_p.
3785 Make find_paths private.
3786 Add maybe_thread and thread_through_all_blocks.
3787 Remove reference marker for m_registry.
3788 Remove reference marker for m_profit.
3789 (back_threader::back_threader): Adjust for registry and profit not
3791 (dump_path): Move down.
3793 (class thread_jumps): Remove.
3794 (class back_threader_registry): Remove m_all_paths.
3796 (thread_jumps::thread_through_all_blocks): Move to back_threader
3798 (fsm_find_thread_path): Remove
3799 (back_threader::maybe_thread): New.
3800 (back_threader::thread_through_all_blocks): Move from
3802 (back_threader_registry::back_threader_registry): Remove
3804 (back_threader_registry::~back_threader_registry): Remove.
3805 (thread_jumps::find_taken_edge): Remove.
3806 (thread_jumps::check_subpath_and_update_thread_path): Remove.
3807 (thread_jumps::maybe_register_path): Remove.
3808 (thread_jumps::handle_phi): Remove.
3809 (handle_assignment_p): Remove.
3810 (thread_jumps::handle_assignment): Remove.
3811 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
3812 (thread_jumps::find_jump_threads_backwards): Remove.
3813 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
3814 (try_thread_blocks): Rename find_jump_threads_backwards to
3816 (pass_early_thread_jumps::execute): Same.
3818 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3820 * tree-core.h (omp_clause_proc_bind_kind): Add
3821 OMP_CLAUSE_PROC_BIND_PRIMARY.
3822 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
3823 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3825 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
3827 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
3828 fno-common reference.
3829 * config/arc/arc.c (arc_override_options): Remove overriding of
3832 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3835 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
3836 If d->testing_p, return true after performing checks instead of
3837 actually expanding the insn.
3838 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
3839 !TARGET_AVX512BW and return false.
3841 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
3843 * configure.ac (PE linker --disable-dynamicbase support): New check.
3844 * configure: Regenerate.
3845 * config.in: Likewise.
3846 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
3847 (LINK_SPEC): Use it.
3848 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
3849 (LINK_SPEC): Likewise.
3851 2021-08-12 liuhongt <hongtao.liu@intel.com>
3854 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
3855 post_reload define_insn_and_split.
3856 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
3857 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
3858 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
3859 (*avx2_zero_extendv8hiv8si2_2): Ditto.
3860 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
3861 (*avx512f_zero_extendv8siv8di2_2): Ditto.
3862 (*avx2_zero_extendv4siv4di2_2): Ditto.
3863 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
3864 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
3867 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
3869 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
3872 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
3874 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
3876 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
3878 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
3879 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
3880 initialization of pcvoid_type_node here...
3881 (altivec_init_builtins): ...from here.
3882 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
3883 RS6000_BTI_const_ptr_void.
3884 (pcvoid_type_node): New macro.
3886 2021-08-11 Richard Biener <rguenther@suse.de>
3889 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
3890 hard-register accesses.
3892 2021-08-11 Richard Biener <rguenther@suse.de>
3894 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
3895 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
3896 to determine has_volatile_ops.
3898 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
3900 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
3902 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
3903 Alexandre Oliva <oliva@adacore.com>
3905 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
3907 (modref_lattice::merge_deref): Fix handling of indirect scape points.
3908 (update_escape_summary_1): Likewise.
3909 (update_escape_summary): Likewise.
3910 (ipa_merge_modref_summary_after_inlining): Likewise.
3912 2021-08-11 Richard Biener <rguenther@suse.de>
3914 PR middle-end/101858
3915 * fold-const.c (fold_binary_loc): Guard simplification
3916 of X < (cast) (1 << Y) to integer types.
3918 2021-08-11 Richard Biener <rguenther@suse.de>
3920 PR tree-optimization/101861
3921 * tree-vect-stmts.c (vectorizable_load): Fix error in
3922 previous change with regard to gather vectorization.
3924 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3927 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
3929 (vdup_n_s16): Likewise.
3930 (vdup_n_s32): Likewise.
3931 (vdup_n_s64): Likewise.
3932 (vdup_n_u8): Likewise.
3933 (vdup_n_u16): Likewise.
3934 (vdup_n_u32): Likewise.
3935 (vdup_n_u64): Likewise.
3936 (vdup_n_p8): Likewise.
3937 (vdup_n_p16): Likewise.
3938 (vdup_n_p64): Likewise.
3939 (vdup_n_f16): Likewise.
3940 (vdup_n_f32): Likewise.
3941 (vdupq_n_s8): Likewise.
3942 (vdupq_n_s16): Likewise.
3943 (vdupq_n_s32): Likewise.
3944 (vdupq_n_s64): Likewise.
3945 (vdupq_n_u8): Likewise.
3946 (vdupq_n_u16): Likewise.
3947 (vdupq_n_u32): Likewise.
3948 (vdupq_n_u64): Likewise.
3949 (vdupq_n_p8): Likewise.
3950 (vdupq_n_p16): Likewise.
3951 (vdupq_n_p64): Likewise.
3952 (vdupq_n_f16): Likewise.
3953 (vdupq_n_f32): Likewise.
3954 (vmov_n_s8): Replace call to builtin with call to corresponding
3956 (vmov_n_s16): Likewise.
3957 (vmov_n_s32): Likewise.
3958 (vmov_n_s64): Likewise.
3959 (vmov_n_u8): Likewise.
3960 (vmov_n_u16): Likewise.
3961 (vmov_n_u32): Likewise.
3962 (vmov_n_u64): Likewise.
3963 (vmov_n_p8): Likewise.
3964 (vmov_n_p16): Likewise.
3965 (vmov_n_f16): Likewise.
3966 (vmov_n_f32): Likewise.
3967 (vmovq_n_s8): Likewise.
3968 (vmovq_n_s16): Likewise.
3969 (vmovq_n_s32): Likewise.
3970 (vmovq_n_s64): Likewise.
3971 (vmovq_n_u8): Likewise.
3972 (vmovq_n_u16): Likewise.
3973 (vmovq_n_u32): Likewise.
3974 (vmovq_n_u64): Likewise.
3975 (vmovq_n_p8): Likewise.
3976 (vmovq_n_p16): Likewise.
3977 (vmovq_n_f16): Likewise.
3978 (vmovq_n_f32): Likewise.
3979 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
3981 2021-08-11 liuhongt <hongtao.liu@intel.com>
3984 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
3985 when TARGET_AVX512F and TARGET_SSE_MATH.
3987 2021-08-10 Jakub Jelinek <jakub@redhat.com>
3990 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
3991 for V32HImode if !TARGET_AVX512BW.
3992 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
3993 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
3994 early, but actually check the permutation.
3996 2021-08-10 Richard Biener <rguenther@suse.de>
3998 PR tree-optimization/101809
3999 * tree-vect-stmts.c (get_load_store_type): Allow emulated
4000 gathers with offset vector nunits being a constant multiple
4001 of the data vector nunits.
4002 (vect_get_gather_scatter_ops): Use the appropriate nunits
4003 for the offset vector defs.
4004 (vectorizable_store): Adjust call to
4005 vect_get_gather_scatter_ops.
4006 (vectorizable_load): Likewise. Handle the case of less
4007 offset vectors than data vectors.
4009 2021-08-10 Jakub Jelinek <jakub@redhat.com>
4012 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
4013 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
4016 2021-08-10 Richard Biener <rguenther@suse.de>
4018 PR tree-optimization/101801
4019 PR tree-optimization/101819
4020 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
4021 * tree-vect-loop.c (vect_emulated_vector_p): New function.
4022 (vectorizable_reduction): Re-instantiate a check for emulated
4024 * tree-vect-stmts.c (vectorizable_shift): Likewise.
4025 (vectorizable_operation): Likewise. Cost emulated vector
4026 operations according to the scalar sequence synthesized by
4029 2021-08-10 Richard Biener <rguenther@suse.de>
4031 PR middle-end/101824
4032 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
4033 volatile in case the variable was.
4035 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
4038 * config/i386/constraints.md (BC): Document for integer SSE
4039 constant all bits set operand.
4040 (BF): New constraint for const floating-point all bits set
4042 * config/i386/i386.c (standard_sse_constant_p): Likewise.
4043 (standard_sse_constant_opcode): Likewise.
4044 * config/i386/sse.md (sseconstm1): New mode attribute.
4045 (mov<mode>_internal): Replace BC with <sseconstm1>.
4047 2021-08-10 liuhongt <hongtao.liu@intel.com>
4049 * config/i386/sse.md (cond_<insn><mode>): New expander.
4050 (VI248_AVX512VLBW): New mode iterator.
4051 * config/i386/predicates.md
4052 (nonimmediate_or_const_vec_dup_operand): New predicate.
4054 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
4056 PR tree-optimization/101741
4057 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
4058 type of parameter for toupper/tolower.
4060 2021-08-09 Martin Jambor <mjambor@suse.cz>
4063 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
4065 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
4067 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
4069 (is_store_insn1): Verify source is a register.
4071 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
4074 * config/i386/mmx.md (<any_logic:code>v2sf3):
4075 Rename from *mmx_<any_logic:code>v2sf3
4077 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4079 * config/nvptx/nvptx.c: Cross-reference parts adapted in
4080 'gcc/omp-oacc-neuter-broadcast.cc'.
4081 * omp-low.c: Likewise.
4082 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
4085 2021-08-09 Julian Brown <julian@codesourcery.com>
4086 Kwok Cheung Yeung <kcy@codesourcery.com>
4087 Thomas Schwinge <thomas@codesourcery.com>
4089 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
4090 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
4091 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
4092 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
4093 (gcn_fork_join): Update comment.
4094 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
4095 (macc_experimental_workers): Remove unused option.
4097 2021-08-09 Julian Brown <julian@codesourcery.com>
4098 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
4099 Kwok Cheung Yeung <kcy@codesourcery.com>
4100 Thomas Schwinge <thomas@codesourcery.com>
4102 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
4103 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
4104 Add documentation hook.
4105 * doc/tm.texi: Regenerate.
4106 * omp-oacc-neuter-broadcast.cc: New file.
4107 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
4108 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
4109 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
4110 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
4111 * target.def (goacc.create_worker_broadcast_record): Add target
4113 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
4115 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
4116 Rename prototype to...
4117 (gcn_goacc_create_worker_broadcast_record): ... this.
4118 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
4120 (gcn_goacc_create_worker_broadcast_record): ... this.
4121 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
4123 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
4125 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
4128 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
4131 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4133 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
4135 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4137 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
4138 consider '-foffload-abi'.
4139 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
4140 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
4143 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4145 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
4148 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4150 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
4152 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4154 * doc/gty.texi (Files): Update.
4156 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
4158 * doc/gty.texi (Files): Fix GTY header file example.
4160 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
4162 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
4163 determine the upper and lower bounds from a mask-value pair.
4164 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
4165 absolute value and unsigned absolute value expressions.
4166 (bit_value_binop): Initialize *VAL's precision.
4167 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
4168 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
4169 support when the operands are unknown but potentially equal.
4170 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
4172 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
4174 * config/aarch64/aarch64.md
4175 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
4177 2021-08-08 Sergei Trofimovich <siarheit@google.com>
4179 * lra-constraints.c: Fix s/otput/output/ typo.
4181 2021-08-06 Martin Sebor <msebor@redhat.com>
4183 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
4184 (expand_builtin_strcat): Same.
4185 (expand_builtin_stpncpy): Same.
4186 (expand_builtin_strncat): Same.
4187 (check_read_access): Same.
4188 (check_memop_access): Same.
4189 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
4190 (expand_builtin_strnlen): Same.
4191 (expand_builtin_memcpy): Same.
4192 (expand_builtin_memmove): Same.
4193 (expand_builtin_mempcpy): Same.
4194 (expand_builtin_strcpy): Same.
4195 (expand_builtin_strcpy_args): Same.
4196 (expand_builtin_stpcpy_1): Same.
4197 (expand_builtin_strncpy): Same.
4198 (expand_builtin_memset): Same.
4199 (expand_builtin_bzero): Same.
4200 (expand_builtin_strcmp): Same.
4201 (expand_builtin_strncmp): Same.
4202 (expand_builtin): Remove handlers.
4203 (fold_builtin_strlen): Add a comment.
4204 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
4205 * calls.c (maybe_warn_nonstring_arg): Same.
4206 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
4207 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
4208 (gimple_fold_builtin_stpcpy): Same.
4209 * gimple-ssa-warn-access.cc (has_location): New function.
4210 (get_location): Same.
4211 (get_callee_fndecl): Same.
4214 (warn_string_no_nul): Define.
4215 (unterminated_array): Same.
4216 (check_nul_terminated_array): Same.
4217 (maybe_warn_nonstring_arg): Same.
4218 (maybe_warn_for_bound): Same.
4219 (warn_for_access): Same.
4220 (check_access): Same.
4221 (check_memop_access): Same.
4222 (check_read_access): Same.
4223 (warn_dealloc_offset): Use helper functions.
4224 (maybe_emit_free_warning): Same.
4225 (class pass_waccess): Add members.
4226 (check_strcat): New function.
4227 (check_strncat): New function.
4228 (check_stxcpy): New function.
4229 (check_stxncpy): New function.
4230 (check_strncmp): New function.
4231 (pass_waccess::check_builtin): New function.
4232 (pass_waccess::check): Call it.
4233 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
4235 (maybe_warn_for_bound): Same.
4236 (check_access): Same.
4237 (check_memop_access): Same.
4238 (check_read_access): Same.
4239 * pointer-query.h (struct access_data): Define a ctor overload.
4241 2021-08-06 Richard Biener <rguenther@suse.de>
4243 PR tree-optimization/101801
4244 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
4245 (vect_can_vectorize_without_simd_p): ... to this.
4246 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
4247 (vect_can_vectorize_without_simd_p): ... to this and fold
4248 in vect_min_worthwhile_factor.
4249 (vect_min_worthwhile_factor): Remove.
4250 (vectorizable_reduction): Adjust and remove the cost part.
4251 * tree-vect-stmts.c (vectorizable_shift): Likewise.
4252 (vectorizable_operation): Likewise.
4254 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
4257 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
4258 Add general_gr_operand predicate to operand 3.
4260 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
4262 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
4263 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
4265 2021-08-06 Tamar Christina <tamar.christina@arm.com>
4267 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
4268 register_svprfop): Pass vec<> by pointer.
4269 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
4270 * langhooks.c (lhd_simulate_enum_decl): Likewise.
4271 * langhooks.h (struct lang_hooks_for_types): Likewise.
4273 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
4275 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
4276 __builtin_memcpy instead of constructing an additional
4277 __builtin_aarch64_simd_oi one vector at a time.
4278 (vst1q_bf16_x2): Likewise.
4279 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
4280 an additional __builtin_aarch64_simd_ci one vector at a time.
4281 (vst1q_bf16_x3): Likewise.
4282 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
4283 (vst1q_bf16_x4): Likewise.
4284 (vst2_bf16): Use __builtin_memcpy instead of constructing an
4285 additional __builtin_aarch64_simd_oi one vector at a time.
4286 (vst2q_bf16): Likewise.
4287 (vst3_bf16): Use __builtin_memcpy instead of constructing an
4288 additional __builtin_aarch64_simd_ci mode one vector at a
4290 (vst3q_bf16): Likewise.
4291 (vst4_bf16): Use __builtin_memcpy instead of constructing an
4292 additional __builtin_aarch64_simd_xi one vector at a time.
4293 (vst4q_bf16): Likewise.
4295 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
4297 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
4298 (__ST2Q_LANE_FUNC): Delete.
4299 (vst2_lane_f16): Use __builtin_memcpy to copy vector
4300 structure instead of constructing __builtin_aarch64_simd_oi
4301 one vector at a time.
4302 (vst2_lane_f32): Likewise.
4303 (vst2_lane_f64): Likewise.
4304 (vst2_lane_p8): Likewise.
4305 (vst2_lane_p16): Likewise.
4306 (vst2_lane_p64): Likewise.
4307 (vst2_lane_s8): Likewise.
4308 (vst2_lane_s16): Likewise.
4309 (vst2_lane_s32): Likewise.
4310 (vst2_lane_s64): Likewise.
4311 (vst2_lane_u8): Likewise.
4312 (vst2_lane_u16): Likewise.
4313 (vst2_lane_u32): Likewise.
4314 (vst2_lane_u64): Likewise.
4315 (vst2_lane_bf16): Likewise.
4316 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
4317 structure instead of using a union.
4318 (vst2q_lane_f32): Likewise.
4319 (vst2q_lane_f64): Likewise.
4320 (vst2q_lane_p8): Likewise.
4321 (vst2q_lane_p16): Likewise.
4322 (vst2q_lane_p64): Likewise.
4323 (vst2q_lane_s8): Likewise.
4324 (vst2q_lane_s16): Likewise.
4325 (vst2q_lane_s32): Likewise.
4326 (vst2q_lane_s64): Likewise.
4327 (vst2q_lane_u8): Likewise.
4328 (vst2q_lane_u16): Likewise.
4329 (vst2q_lane_u32): Likewise.
4330 (vst2q_lane_u64): Likewise.
4331 (vst2q_lane_bf16): Likewise.
4333 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
4335 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
4336 (__ST3Q_LANE_FUNC): Delete.
4337 (vst3_lane_f16): Use __builtin_memcpy to copy vector
4338 structure instead of constructing __builtin_aarch64_simd_ci
4339 one vector at a time.
4340 (vst3_lane_f32): Likewise.
4341 (vst3_lane_f64): Likewise.
4342 (vst3_lane_p8): Likewise.
4343 (vst3_lane_p16): Likewise.
4344 (vst3_lane_p64): Likewise.
4345 (vst3_lane_s8): Likewise.
4346 (vst3_lane_s16): Likewise.
4347 (vst3_lane_s32): Likewise.
4348 (vst3_lane_s64): Likewise.
4349 (vst3_lane_u8): Likewise.
4350 (vst3_lane_u16): Likewise.
4351 (vst3_lane_u32): Likewise.
4352 (vst3_lane_u64): Likewise.
4353 (vst3_lane_bf16): Likewise.
4354 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
4355 structure instead of using a union.
4356 (vst3q_lane_f32): Likewise.
4357 (vst3q_lane_f64): Likewise.
4358 (vst3q_lane_p8): Likewise.
4359 (vst3q_lane_p16): Likewise.
4360 (vst3q_lane_p64): Likewise.
4361 (vst3q_lane_s8): Likewise.
4362 (vst3q_lane_s16): Likewise.
4363 (vst3q_lane_s32): Likewise.
4364 (vst3q_lane_s64): Likewise.
4365 (vst3q_lane_u8): Likewise.
4366 (vst3q_lane_u16): Likewise.
4367 (vst3q_lane_u32): Likewise.
4368 (vst3q_lane_u64): Likewise.
4369 (vst3q_lane_bf16): Likewise.
4371 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
4373 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
4374 (__ST4Q_LANE_FUNC): Delete.
4375 (vst4_lane_f16): Use __builtin_memcpy to copy vector
4376 structure instead of constructing __builtin_aarch64_simd_xi
4377 one vector at a time.
4378 (vst4_lane_f32): Likewise.
4379 (vst4_lane_f64): Likewise.
4380 (vst4_lane_p8): Likewise.
4381 (vst4_lane_p16): Likewise.
4382 (vst4_lane_p64): Likewise.
4383 (vst4_lane_s8): Likewise.
4384 (vst4_lane_s16): Likewise.
4385 (vst4_lane_s32): Likewise.
4386 (vst4_lane_s64): Likewise.
4387 (vst4_lane_u8): Likewise.
4388 (vst4_lane_u16): Likewise.
4389 (vst4_lane_u32): Likewise.
4390 (vst4_lane_u64): Likewise.
4391 (vst4_lane_bf16): Likewise.
4392 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
4393 structure instead of using a union.
4394 (vst4q_lane_f32): Likewise.
4395 (vst4q_lane_f64): Likewise.
4396 (vst4q_lane_p8): Likewise.
4397 (vst4q_lane_p16): Likewise.
4398 (vst4q_lane_p64): Likewise.
4399 (vst4q_lane_s8): Likewise.
4400 (vst4q_lane_s16): Likewise.
4401 (vst4q_lane_s32): Likewise.
4402 (vst4q_lane_s64): Likewise.
4403 (vst4q_lane_u8): Likewise.
4404 (vst4q_lane_u16): Likewise.
4405 (vst4q_lane_u32): Likewise.
4406 (vst4q_lane_u64): Likewise.
4407 (vst4q_lane_bf16): Likewise.
4409 2021-08-06 Martin Liska <mliska@suse.cz>
4411 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
4412 a target option is restored, it can have
4413 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
4414 and error should not be emitted.
4416 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
4418 * gcov-io.h (gcov_write): Declare.
4419 * gcov-io.c (gcov_write): New.
4420 (gcov_write_counter): Remove.
4421 (gcov_write_tag_length): Likewise.
4422 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
4423 gcov_write_unsigned().
4424 * doc/invoke.texi (fprofile-info-section): Mention
4425 __gcov_info_to_gdca().
4427 2021-08-06 Martin Sebor <msebor@redhat.com>
4429 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
4430 arguments to by-reference.
4431 (iterate_fix_dominators): Same.
4432 * dominance.h (iterate_fix_dominators): Same.
4433 * ipa-prop.h: Call auto_vec::to_vec_legacy.
4434 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
4435 arguments to by-reference.
4436 (debug_data_dependence_relation): Same.
4437 (dump_data_dependence_relations): Same.
4438 * tree-data-ref.h (debug_data_dependence_relation): Same.
4439 (dump_data_dependence_relations): Same.
4440 * tree-predcom.c (dump_chains): Same.
4441 (initialize_root_vars_lm): Same.
4442 (determine_unroll_factor): Same.
4443 (replace_phis_by_defined_names): Same.
4444 (insert_init_seqs): Same.
4445 (pcom_worker::tree_predictive_commoning_loop): Call
4446 auto_vec::to_vec_legacy.
4447 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
4448 arguments to by-reference.
4449 * tree-ssa-threadbackward.c (populate_worklist): Same.
4450 (back_threader::resolve_def): Same.
4451 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
4452 (vect_enhance_data_refs_alignment): Same.
4453 (vect_check_lower_bound): Same.
4454 (vect_prune_runtime_alias_test_list): Same.
4455 (vect_permute_store_chain): Same.
4456 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
4457 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
4458 * tree-vectorizer.h (vect_permute_store_chain): Same.
4459 * vec.c (test_init): New function.
4460 (vec_c_tests): Call new function.
4461 * vec.h (vec): Declare ctors, dtor, and assignment.
4462 (auto_vec::vec_to_legacy): New function.
4463 (vec::copy): Adjust initialization.
4465 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
4468 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
4469 callee only uses GPRs.
4470 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
4471 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
4472 * config/i386/x86gprintrin.h: Add
4473 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
4474 to disable non-GPR ISAs.
4476 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
4478 PR middle-end/101787
4479 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
4481 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
4483 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
4484 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
4485 (vect_is_extending_load, vect_is_integer_truncation): New functions,
4486 moved from aarch64.c but given different names.
4487 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
4488 (aarch64_is_reduction, aarch64_reduc_type)
4489 (aarch64_embedded_comparison_type, aarch64_comparison_type)
4490 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
4491 in favor of the above. Update callers accordingly.
4493 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
4496 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
4497 writing .cpu directive in asm output.
4498 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
4499 (arm_last_printed_arch_string): Delete.
4500 (arm_last-printed_fpu_string): Delete.
4501 (arm_configure_build_target): If use of floating-point/SIMD is
4502 disabled, remove all fp/simd related features from the target ISA.
4503 (last_arm_targ_options): New variable.
4504 (arm_print_asm_arch_directives): Add new parameters. Change order
4505 of emitted directives and handle all cases here.
4506 (arm_file_start): Always call arm_print_asm_arch_directives, move
4507 all generation of .arch/.arch_extension here.
4508 (arm_file_end): Call arm_print_asm_arch.
4509 (arm_declare_function_name): Call arm_print_asm_arch_directives
4510 instead of printing .arch/.fpu directives directly.
4512 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
4514 * config/arm/arm.c (arm_configure_build_target): Don't call
4515 arm_option_reconfigure_globals.
4516 (arm_option_restore): Call arm_option_reconfigure_globals after
4517 reconfiguring the target.
4518 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
4520 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
4522 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
4523 arch_name is always set.
4525 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
4527 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
4528 of vec_select high-half from being added into Neon subtract
4531 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
4533 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
4534 of vec_select high-half from being added into Neon add cost.
4536 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
4538 * cfgloop.h (loops_list::loops_list): Add one optional argument
4539 root and adjust accordingly, update loop tree walking and factor
4541 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
4543 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
4545 PR tree-optimization/101626
4546 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
4547 reverse scalar storage order on a pointer or vector component.
4549 2021-08-05 liuhongt <hongtao.liu@intel.com>
4551 * config/i386/sse.md (cond_<code><mode>): New expander.
4553 2021-08-05 liuhongt <hongtao.liu@intel.com>
4555 * config/i386/sse.md (cond_<code><mode>): New expander.
4557 2021-08-05 liuhongt <hongtao.liu@intel.com>
4559 * config/i386/sse.md (cond_<code><mode>): New expander.
4561 2021-08-04 David Malcolm <dmalcolm@redhat.com>
4564 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
4566 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
4569 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
4570 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
4572 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
4575 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
4576 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
4577 data with SSE register from one memory location to another.
4579 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
4581 * config/s390/s390.c (expand_perm_with_vpdi): New function.
4582 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
4583 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
4584 parameterized expander.
4585 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
4587 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
4589 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
4590 (struct expand_vec_perm_d): Define struct.
4591 (expand_perm_with_merge): New function.
4592 (vectorize_vec_perm_const_1): New function.
4593 (s390_vectorize_vec_perm_const): New function.
4594 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
4596 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
4598 * config/s390/vector.md (V_HW_64): Remove mode iterator.
4599 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
4600 * config/s390/vx-builtins.md
4601 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
4604 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
4606 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
4608 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
4610 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
4611 instead of an unspec.
4613 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
4615 * config/s390/s390-modes.def: Add more vector modes to support
4616 concatenation of two vectors.
4617 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
4619 (s390_expand_merge): Likewise.
4620 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
4621 (s390_expand_merge): New function.
4622 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
4623 Remove constant definitions.
4624 * config/s390/vector.md (V_HW_2): Add mode iterators.
4625 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
4626 (vec_2x_nelts, vec_2x_wide): New mode attributes.
4627 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
4628 New pattern definitions.
4629 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
4630 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
4631 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
4632 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
4634 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
4636 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
4637 emit vec merge pattern.
4639 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
4641 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
4643 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
4644 vec_select high-half from being added into Neon multiply
4646 * rtlanal.c (vec_series_highpart_p): Define.
4647 * rtlanal.h (vec_series_highpart_p): Declare.
4649 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
4651 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
4653 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
4654 vec_select cost from being added into Neon multiply cost.
4656 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
4658 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
4659 which old_loop_vinfo is an epilogue loop that handles a constant
4660 number of iterations.
4662 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
4664 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
4665 when a reanalyzed loop fails to be cheaper than the current
4668 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
4670 * config/aarch64/aarch64.c: Fix a typo.
4672 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
4674 PR gcov-profile/101773
4675 * gcov-io.c (gcov_close): Check return code of a fclose.
4677 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
4680 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
4681 .file statement when needed.
4683 2021-08-04 Richard Biener <rguenther@suse.de>
4685 * tree-vect-data-refs.c (vect_check_gather_scatter):
4686 Include widening conversions only when the result is
4687 still handed by native gather or the current offset
4688 size not already matches the data size.
4689 Also succeed analysis in case there's no native support,
4690 noted by a IFN_LAST ifn and a NULL decl.
4691 (vect_analyze_data_refs): Always consider gathers.
4692 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
4693 Test for no IFN gather rather than decl gather.
4694 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
4695 gather-scatter info and cost emulated gathers accordingly.
4696 (vect_truncate_gather_scatter_offset): Properly test for
4698 (vect_use_strided_gather_scatters_p): Likewise.
4699 (get_load_store_type): Handle emulated gathers and its
4701 (vectorizable_load): Likewise. Emulate them by extracting
4702 scalar offsets, doing scalar loads and a vector construct.
4704 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
4707 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
4708 argument to set m_max_size.
4709 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
4710 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
4711 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
4713 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
4714 Marc Glisse <marc.glisse@inria.fr>
4716 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
4717 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
4718 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
4720 2021-08-04 Richard Biener <rguenther@suse.de>
4722 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
4723 out code to decompose vector loads ...
4724 (optimize_vector_load): ... here. Generalize it to
4725 handle intermediate widening and TARGET_MEM_REF loads
4726 and apply it to loads with a supported vector mode as well.
4728 2021-08-04 Richard Biener <rguenther@suse.de>
4730 PR tree-optimization/101756
4731 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
4732 the result of the reduction epilogue is compatible to the original
4735 2021-08-04 liuhongt <hongtao.liu@intel.com>
4738 * config/i386/i386.md (peephole2): Refine predicate from
4739 register_operand to general_reg_operand.
4741 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
4743 * gimple-range-path.h (path_range_query::dump): Mark override.
4745 2021-08-04 Richard Biener <rguenther@suse.de>
4747 PR tree-optimization/101769
4748 * tree-tailcall.c (eliminate_tail_call): Add the created loop
4749 for the first recursion and return it via the new output parameter.
4750 (optimize_tail_call): Pass through new output param.
4751 (tree_optimize_tail_calls_1): After creating all latches,
4752 add the created loop to the loop tree. Do not mark loops for fixup.
4754 2021-08-04 Martin Liska <mliska@suse.cz>
4756 * doc/invoke.texi: Document threader-mode param.
4758 2021-08-04 liuhongt <hongtao.liu@intel.com>
4760 * config/i386/sse.md (cond_fma<mode>): New expander.
4761 (cond_fms<mode>): Ditto.
4762 (cond_fnma<mode>): Ditto.
4763 (cond_fnms<mode>): Ditto.
4765 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4767 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
4769 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4771 * config/rs6000/constraints.md: Remove "e" from the list of available
4772 constraint characters.
4774 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
4776 PR gcov-profile/71672
4777 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
4779 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
4781 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
4783 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
4785 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
4786 try XMM31 to avoid vzeroupper.
4788 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4790 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
4791 -mcpu=neoverse-512tvb.
4792 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
4793 * config/aarch64/aarch64-tune.md: Regenerate.
4794 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
4795 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
4796 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
4797 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
4798 (aarch64_adjust_body_cost): Likewise.
4800 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4802 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
4803 record issue information for operations that occur in the
4806 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4808 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
4809 parameter. Detect cases in which an Advanced SIMD MLA would almost
4810 certainly require a MOV.
4811 (aarch64_count_ops): Update accordingly.
4813 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4815 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
4816 function, split out from...
4817 (aarch64_detect_vector_stmt_subtype): ...here.
4818 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
4820 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4822 * config/aarch64/aarch64-protos.h (sve_vec_cost):
4823 Add gather_load_x32_cost and gather_load_x64_cost.
4824 * config/aarch64/aarch64.c (generic_sve_vector_cost)
4825 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
4826 accordingly, using the values given by the scalar_load * number
4827 of elements calculation that we used previously.
4828 (aarch64_detect_vector_stmt_subtype): Use the new fields.
4830 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4832 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
4833 function, split out from...
4834 (aarch64_adjust_body_cost): ...here.
4836 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4838 * config/aarch64/fractional-cost.h: New file.
4839 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
4840 and cost_fraction.h.
4841 (vec_cost_fraction): New typedef.
4842 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
4843 (aarch64_detect_vector_stmt_subtype): Likewise.
4844 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
4845 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
4847 (aarch64_adjust_body_cost): Likewise.
4848 (aarch64_test_cost_fraction): New function.
4849 (aarch64_run_selftests): Call it.
4851 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
4853 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
4855 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
4857 (aarch64_estimated_poly_value): Likewise. Use the least significant
4858 set bit for the minimum and likely values. Use the most significant
4859 set bit for the maximum value.
4861 2021-08-03 liuhongt <hongtao.liu@intel.com>
4863 * config/i386/sse.md (cond_<insn><mode>): New expander.
4864 (cond_mul<mode>): Ditto.
4866 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
4868 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
4870 2021-08-03 liuhongt <hongtao.liu@intel.com>
4872 * config/i386/sse.md (cond_<insn><mode>):New expander.
4873 (cond_mul<mode>): Ditto.
4874 (cond_div<mode>): Ditto.
4876 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
4878 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
4879 check stack_realign_needed for stack realignment.
4880 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
4881 than the largest integer supported by vector register.
4882 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
4883 (MOVE_MAX): Set to bytes of the largest integer supported by
4885 (STORE_MAX_PIECES): New.
4887 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
4889 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
4890 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
4891 data from one memory location to another.
4893 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
4896 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
4898 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
4900 PR tree-optimization/101724
4901 * params.opt: Remove --param=threader-iterative.
4902 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
4905 2021-08-02 Tom de Vries <tdevries@suse.de>
4907 PR middle-end/101665
4908 * doc/extend.texi (nonnull attribute): Improve documentation.
4910 2021-08-02 Andrew Pinski <apinski@marvell.com>
4912 PR rtl-optimization/101683
4913 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
4915 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
4917 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
4918 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
4919 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
4920 (tree_ssa_phiop_worker): Update call to function above.
4922 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
4925 * config/i386/i386.md (bsr_rex64_1_zext): New.
4926 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
4927 with gen_bsr_rex64_1_zext.
4929 2021-07-31 Jakub Jelinek <jakub@redhat.com>
4932 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
4933 define_insn patterns.
4934 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
4935 Add combine splitters for constant - clz.
4936 (clz<mode>2): Use a temporary pseudo for bsr result.
4938 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
4940 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
4941 _mm_floor_sd, _mm_floor_ss): New.
4943 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
4945 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
4946 _mm_ceil_sd, _mm_ceil_ss): New.
4948 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
4950 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
4951 _mm_blend_ps, _mm_blendv_ps): New.
4953 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
4954 Uroš Bizjak <ubizjak@gmail.com>
4956 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
4957 to generate a conditional move using the carry flag after sub $1.
4958 (peephole2): Eliminate a register-to-register move by inverting
4959 the condition of a conditional move.
4961 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
4963 * config/mmix/mmix.md ("call", "call_value", "*call_real")
4964 ("*call_value_real"): Don't generate rtx mentioning the generic
4965 operands 1 and 2 to "call", and similarly for "call_value".
4966 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
4967 (mmix_print_operand): Use '!' instead of 'p'.
4969 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
4971 * doc/md.texi (call): Correct information about operand 2.
4972 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
4974 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
4976 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
4978 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
4980 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
4982 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
4984 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
4986 (*::get_bb_range): Ditto.
4987 (*::bb_range_p): Ditto.
4988 * gimple-range-cache.h: Change prototypes.
4990 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
4993 * builtins.c (builtin_memcpy_read_str): Change the mode argument
4994 from scalar_int_mode to fixed_size_mode.
4995 (builtin_strncpy_read_str): Likewise.
4996 (gen_memset_value_from_prev): New function.
4997 (builtin_memset_read_str): Change the mode argument from
4998 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
4999 and support CONST_VECTOR.
5000 (builtin_memset_gen_str): Likewise.
5001 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
5003 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
5004 with fixed_size_mode.
5005 (builtin_memset_read_str): Likewise.
5006 * expr.c (widest_int_mode_for_size): Renamed to ...
5007 (widest_fixed_size_mode_for_size): Add a bool argument to
5008 indicate if QI vector mode can be used.
5009 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
5010 instead of widest_int_mode_for_size.
5011 (pieces_addr::adjust): Change the mode argument from
5012 scalar_int_mode to fixed_size_mode.
5013 (op_by_pieces_d): Make m_len read-only. Add a bool member,
5014 m_qi_vector_mode, to indicate that QI vector mode can be used.
5015 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
5016 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
5017 instead of widest_int_mode_for_size.
5018 (op_by_pieces_d::get_usable_mode): Change the mode argument from
5019 scalar_int_mode to fixed_size_mode. Call
5020 widest_fixed_size_mode_for_size instead of
5021 widest_int_mode_for_size.
5022 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
5023 function to return the smallest integer or QI vector mode.
5024 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
5025 instead of widest_int_mode_for_size. Call
5026 smallest_fixed_size_mode_for_size instead of
5027 smallest_int_mode_for_size.
5028 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
5029 indicate that QI vector mode can be used and pass it to
5030 op_by_pieces_d::op_by_pieces_d.
5031 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
5032 instead of widest_int_mode_for_size. Pass memsetp to
5033 widest_fixed_size_mode_for_size to support QI vector mode.
5034 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
5035 (store_by_pieces): Pass memsetp to
5036 store_by_pieces_d::store_by_pieces_d.
5037 (clear_by_pieces_1): Removed.
5038 (clear_by_pieces): Replace clear_by_pieces_1 with
5039 builtin_memset_read_str and pass true to store_by_pieces_d to
5040 support vector mode broadcast.
5041 (string_cst_read_str): Change the mode argument from
5042 scalar_int_mode to fixed_size_mode.
5043 * expr.h (by_pieces_constfn): Change scalar_int_mode to
5045 (by_pieces_prev): Likewise.
5046 * rtl.h (lowpart_subreg_regno): New.
5047 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
5048 simplify_subreg_regno.
5049 * target.def (gen_memset_scratch_rtx): New hook.
5050 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
5051 * doc/tm.texi: Regenerated.
5053 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
5056 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
5057 TARGET_EXPR instead of MODIFY_EXPR.
5059 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
5062 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
5063 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
5064 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
5066 (vec_cmpu<IMSA:mode><mode_i>): New expander.
5068 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
5071 * config/i386/i386-options.c (ix86_option_override_internal):
5072 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
5074 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5077 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
5078 explicitly dereferencing __a.
5079 (vld1_s64): Likewise.
5080 (vld1_u64): Likewise.
5081 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
5082 and change to VAR13.
5084 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
5086 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
5087 use of m_range_analyzer.
5088 (loop_versioning::lv_dom_walker::before_dom_children): Same.
5089 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
5090 (loop_versioning::prune_loop_conditions): Replace vr_values use
5091 with range_query interface.
5092 (pass_loop_versioning::execute): Use ranger.
5094 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
5097 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
5098 enum values, and emit a warning if they mismatch.
5100 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
5102 * cfgloop.h (as_const): New function.
5103 (class loop_iterator): Rename to ...
5104 (class loops_list): ... this.
5105 (loop_iterator::next): Rename to ...
5106 (loops_list::Iter::fill_curr_loop): ... this and adjust.
5107 (loop_iterator::loop_iterator): Rename to ...
5108 (loops_list::loops_list): ... this and adjust.
5109 (loops_list::Iter): New class.
5110 (loops_list::iterator): New type.
5111 (loops_list::const_iterator): New type.
5112 (loops_list::begin): New function.
5113 (loops_list::end): Likewise.
5114 (loops_list::begin const): Likewise.
5115 (loops_list::end const): Likewise.
5116 (FOR_EACH_LOOP): Remove.
5117 (FOR_EACH_LOOP_FN): Remove.
5118 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
5119 for loop with loops_list instance.
5120 (sort_sibling_loops): Likewise.
5121 (disambiguate_loops_with_multiple_latches): Likewise.
5122 (verify_loop_structure): Likewise.
5123 * cfgloopmanip.c (create_preheaders): Likewise.
5124 (force_single_succ_latches): Likewise.
5125 * config/aarch64/falkor-tag-collision-avoidance.c
5126 (execute_tag_collision_avoidance): Likewise.
5127 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
5128 * config/s390/s390.c (s390_adjust_loops): Likewise.
5129 * doc/loop.texi: Likewise.
5130 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
5131 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
5132 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
5133 (loop_versioning::make_versioning_decisions): Likewise.
5134 * gimple-ssa-split-paths.c (split_paths): Likewise.
5135 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
5136 * graphite.c (canonicalize_loop_form): Likewise.
5137 (graphite_transform_loops): Likewise.
5138 * ipa-fnsummary.c (analyze_function_body): Likewise.
5139 * ipa-pure-const.c (analyze_function): Likewise.
5140 * loop-doloop.c (doloop_optimize_loops): Likewise.
5141 * loop-init.c (loop_optimizer_finalize): Likewise.
5142 (fix_loop_structure): Likewise.
5143 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5144 (move_loop_invariants): Likewise.
5145 * loop-unroll.c (decide_unrolling): Likewise.
5146 (unroll_loops): Likewise.
5147 * modulo-sched.c (sms_schedule): Likewise.
5148 * predict.c (predict_loops): Likewise.
5149 (pass_profile::execute): Likewise.
5150 * profile.c (branch_prob): Likewise.
5151 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
5152 (sel_find_rgns): Likewise.
5153 * tree-cfg.c (replace_loop_annotate): Likewise.
5154 (replace_uses_by): Likewise.
5155 (move_sese_region_to_fn): Likewise.
5156 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5157 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
5158 * tree-parloops.c (parallelize_loops): Likewise.
5159 * tree-predcom.c (tree_predictive_commoning): Likewise.
5160 * tree-scalar-evolution.c (scev_initialize): Likewise.
5161 (scev_reset): Likewise.
5162 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5163 * tree-ssa-live.c (remove_unused_locals): Likewise.
5164 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
5165 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5166 (tree_ssa_lim_initialize): Likewise.
5167 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
5168 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
5169 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
5170 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
5171 (free_numbers_of_iterations_estimates): Likewise.
5172 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
5173 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
5174 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
5175 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5176 (pass_scev_cprop::execute): Likewise.
5177 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
5178 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
5179 * tree-ssa-threadupdate.c
5180 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
5181 * tree-vectorizer.c (vectorize_loops): Likewise.
5182 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
5184 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
5186 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
5187 generating a VOIDmode register for e.g the
5188 function_arg_info::end_marker.
5190 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
5192 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
5193 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
5194 (cc mode_attr): Similarly.
5195 (ccz subst_attr): Similarly.
5196 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
5197 * config/h8300/testcompare.md: Remove various cc0 based patterns
5198 that had been commented out. Add pattern to set CCZ from a bit
5201 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5202 Julian Brown <julian@codesourcery.com>
5203 Kwok Cheung Yeung <kcy@codesourcery.com>
5205 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
5206 'update_stmt' after modification.
5207 (pass_oacc_loop_designation): New function, extracted out of...
5208 (pass_oacc_device_lower): ... this.
5209 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
5210 (make_pass_oacc_loop_designation): New
5211 * passes.def: Add it.
5212 * tree-parloops.c (create_parallel_loop): Adjust.
5213 * tree-pass.h (make_pass_oacc_loop_designation): New.
5215 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5217 * flag-types.h (enum threader_mode): New.
5218 * params.opt: Add entry for --param=threader-mode.
5219 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
5220 (class back_threader): New.
5221 (back_threader::back_threader): New.
5222 (back_threader::~back_threader): New.
5223 (back_threader::maybe_register_path): New.
5224 (back_threader::find_taken_edge): New.
5225 (back_threader::find_taken_edge_switch): New.
5226 (back_threader::find_taken_edge_cond): New.
5227 (back_threader::resolve_def): New.
5228 (back_threader::resolve_phi): New.
5229 (back_threader::find_paths_to_names): New.
5230 (back_threader::find_paths): New.
5233 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
5234 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
5235 (pass_thread_jumps::execute): Abstract out code...
5236 (try_thread_blocks): ...here.
5237 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
5238 Abstract out threading candidate code to...
5239 (single_succ_to_potentially_threadable_block): ...here.
5240 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
5242 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
5243 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
5244 Return bool from register_jump_thread.
5246 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
5248 * target.def: in0 and in1 do not need to be registers.
5249 * doc/tm.texi: Regenerate.
5251 2021-07-29 liuhongt <hongtao.liu@intel.com>
5254 * config/i386/i386.c (ix86_widen_mult_cost): New function.
5255 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
5258 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
5261 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
5262 (rs6000_preferred_doloop_mode): New hook.
5263 * doc/tm.texi: Regenerate.
5264 * doc/tm.texi.in: Add hook preferred_doloop_mode.
5265 * target.def (preferred_doloop_mode): New hook.
5266 * targhooks.c (default_preferred_doloop_mode): New hook.
5267 * targhooks.h (default_preferred_doloop_mode): New hook.
5268 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
5269 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
5270 and compute_doloop_base_on_mode.
5272 2021-07-28 Martin Sebor <msebor@redhat.com>
5274 PR middle-end/101494
5275 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
5276 and size computation.
5278 2021-07-28 Martin Sebor <msebor@redhat.com>
5280 PR middle-end/101601
5281 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
5283 Handle pointers to functions.
5285 2021-07-28 Martin Sebor <msebor@redhat.com>
5287 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
5288 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
5289 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
5290 (access_ref::access_ref): Same.
5291 (access_ref::phi): Same.
5292 (access_ref::get_ref): Same.
5293 (access_ref::size_remaining): Same.
5294 (access_ref::offset_in_range): Same.
5295 (access_ref::add_offset): Same.
5296 (access_ref::inform_access): Same.
5297 (ssa_name_limit_t::visit_phi): Same.
5298 (ssa_name_limit_t::leave_phi): Same.
5299 (ssa_name_limit_t::next): Same.
5300 (ssa_name_limit_t::next_phi): Same.
5301 (ssa_name_limit_t::~ssa_name_limit_t): Same.
5302 (pointer_query::pointer_query): Same.
5303 (pointer_query::get_ref): Same.
5304 (pointer_query::put_ref): Same.
5305 (pointer_query::flush_cache): Same.
5306 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
5307 (check_nul_terminated_array): Same.
5308 (unterminated_array): Same.
5309 (maybe_warn_for_bound): Same.
5310 (check_read_access): Same.
5311 (warn_for_access): Same.
5312 (get_size_range): Same.
5313 (check_access): Same.
5314 (gimple_call_alloc_size): Move to tree.c.
5315 (gimple_parm_array_size): Move to pointer-query.cc.
5316 (get_offset_range): Same.
5317 (gimple_call_return_array): Same.
5318 (handle_min_max_size): Same.
5319 (handle_array_ref): Same.
5320 (handle_mem_ref): Same.
5321 (compute_objsize): Same.
5322 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
5323 (call_dealloc_argno): Same.
5324 (fndecl_dealloc_argno): Same.
5325 (new_delete_mismatch_p): Same.
5326 (matching_alloc_calls_p): Same.
5327 (warn_dealloc_offset): Same.
5328 (maybe_emit_free_warning): Same.
5329 * builtins.h (check_nul_terminated_array): Move to
5330 gimple-ssa-warn-access.h.
5331 (check_nul_terminated_array): Same.
5332 (warn_string_no_nul): Same.
5333 (unterminated_array): Same.
5334 (class ssa_name_limit_t): Same.
5335 (class pointer_query): Same.
5336 (struct access_ref): Same.
5337 (class range_query): Same.
5338 (struct access_data): Same.
5339 (gimple_call_alloc_size): Same.
5340 (gimple_parm_array_size): Same.
5341 (compute_objsize): Same.
5342 (class access_data): Same.
5343 (maybe_emit_free_warning): Same.
5344 * calls.c (initialize_argument_information): Remove call to
5345 maybe_emit_free_warning.
5346 * gimple-array-bounds.cc: Include new header..
5347 * gimple-fold.c: Same.
5348 * gimple-ssa-sprintf.c: Same.
5349 * gimple-ssa-warn-restrict.c: Same.
5350 * passes.def: Add pass_warn_access.
5351 * tree-pass.h (make_pass_warn_access): Declare.
5352 * tree-ssa-strlen.c: Include new headers.
5353 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
5354 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
5355 * gimple-ssa-warn-access.cc: New file.
5356 * gimple-ssa-warn-access.h: New file.
5357 * pointer-query.cc: New file.
5358 * pointer-query.h: New file.
5360 2021-07-28 Jakub Jelinek <jakub@redhat.com>
5362 PR middle-end/101624
5363 * ubsan.c (maybe_instrument_pointer_overflow,
5364 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
5365 PARM_DECLs or RESULT_DECLs.
5366 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
5368 2021-07-28 Jakub Jelinek <jakub@redhat.com>
5370 PR middle-end/101642
5371 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
5372 to type of bswap16 for comparison.
5373 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
5375 2021-07-28 Richard Biener <rguenther@suse.de>
5377 PR tree-optimization/101615
5378 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
5379 at CTOR SLP graph entries.
5381 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5383 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
5384 Add "r,w" alternative.
5386 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
5389 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
5390 AVX_U128_DIRTY when all bits are zero.
5392 2021-07-28 Richard Biener <rguenther@suse.de>
5394 PR tree-optimization/101615
5395 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
5396 external nodes cannot be permuted so make them perm_out 0.
5398 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
5401 * config.in: Regenerate.
5402 * config/gcn/gcn-hsa.h (A_FIJI): New define.
5403 (A_900): New define.
5404 (A_906): New define.
5405 (A_908): New define.
5406 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
5407 * config/gcn/gcn.c (output_file_start): Adjust attributes according
5408 to the assembler capabilities.
5409 * config/gcn/mkoffload.c (main): Likewise.
5410 * configure: Regenerate.
5411 * configure.ac: Add tests for LLVM assembler attribute features.
5413 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
5415 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
5416 cond_false and cond_true on branches.
5418 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
5420 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
5423 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
5425 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
5427 2021-07-28 Jakub Jelinek <jakub@redhat.com>
5430 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
5431 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
5432 and has special !TARGET_AVX512VL expansion.
5433 (vashrv2di3<mask_name>): Rename to ...
5434 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
5435 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
5437 2021-07-28 Martin Uecker <muecker@gwdg.de>
5439 * calls.c (maybe_warn_rdwr_sizes): Correct argument
5440 numbers in warning that were switched.
5442 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
5444 PR tree-optimization/101596
5445 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
5446 by using new_type's precision instead.
5448 2021-07-28 liuhongt <hongtao.liu@intel.com>
5451 * config/i386/i386.h (processor_costs): Add new member
5453 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
5454 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
5455 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
5456 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
5457 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
5458 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
5459 generic_cost, core_cost): Initialize integer_to_sse same value
5461 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
5462 * config/i386/i386.c (ix86_builtin_vectorization_cost):
5463 Use integer_to_sse instead of sse_op to calculate the cost of
5466 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
5468 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
5470 (write_init_file): Call write_ovld_static_init.
5472 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
5474 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
5476 (write_init_file): Call write_bif_static_init.
5478 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
5480 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
5481 (TYPE_MAP_SIZE): New macro.
5482 (type_map): New initialized variable.
5483 (typemap_cmp): New function.
5484 (write_type_node): Likewise.
5485 (write_fntype_init): Implement.
5487 2021-07-27 Martin Sebor <msebor@redhat.com>
5489 PR tree-optimization/101584
5490 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
5491 (check_defs): Call it.
5493 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
5495 * tree-ssa-dom.c (dom_jump_threader_simplifier):
5496 Put avail_exprs_stack in the class, instead of passing it to
5497 jump_threader_simplifier.
5498 (dom_jump_threader_simplifier::simplify): Add state argument.
5499 (dom_opt_dom_walker): Add state.
5500 (pass_dominator::execute): Pass state to threader.
5501 (dom_opt_dom_walker::before_dom_children): Use state.
5502 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
5504 (jump_threader::record_temporary_equivalences_from_phis):
5505 Register equivalences through the state variable.
5506 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
5507 Record ranges in a statement through the state variable.
5508 (jump_threader::simplify_control_stmt_condition): Pass state to
5510 (jump_threader::simplify_control_stmt_condition_1): Same.
5511 (jump_threader::thread_around_empty_blocks): Remove obsolete
5513 (jump_threader::thread_through_normal_block): Record equivalences
5514 on edge through the state variable.
5515 (jump_threader::thread_across_edge): Abstract state pushing.
5516 (jt_state::jt_state): New.
5517 (jt_state::push): New.
5518 (jt_state::pop): New.
5519 (jt_state::register_equiv): New.
5520 (jt_state::record_ranges_from_stmt): New.
5521 (jt_state::register_equivs_on_edge): New.
5522 (jump_threader_simplifier::jump_threader_simplifier): Move from
5524 (jump_threader_simplifier::simplify): Add state argument.
5525 * tree-ssa-threadedge.h (class jt_state): New.
5526 (class jump_threader): Add state to constructor.
5527 (class jump_threader_simplifier): Add state to simplify. Remove
5528 avail_exprs_stack from class.
5529 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
5531 (vrp_jump_threader::vrp_jump_threader): Add state.
5532 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
5534 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
5536 * Makefile.in (OBJS): Add gimple-range-path.o.
5537 * gimple-range-path.cc: New file.
5538 * gimple-range-path.h: New file.
5540 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
5542 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
5543 inside vec_duplicate for all patterns.
5544 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
5545 Push sign/zero-extension inside vec_duplicate.
5547 2021-07-27 Richard Biener <rguenther@suse.de>
5549 PR tree-optimization/101573
5550 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
5551 looking at uninitialized PHI arg defs in some constrained cases.
5552 (warn_uninitialized_vars): Call it.
5553 (execute_early_warn_uninitialized): Calculate dominators.
5555 2021-07-27 Richard Biener <rguenther@suse.de>
5557 PR tree-optimization/39821
5558 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
5559 vector_stmt for widening arithmetic.
5560 (vectorizable_conversion): Adjust.
5562 2021-07-27 Martin Jambor <mjambor@suse.cz>
5564 * cgraph.h (ipa_replace_map): New field force_load_ref.
5565 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
5566 aded new flag load_dereferenced, adjusted comments.
5567 (ipa_get_param_dereferenced): New function.
5568 (ipa_set_param_dereferenced): Likewise.
5569 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
5570 * ipa-cp.c: Include gimple.h.
5571 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
5572 (get_replacement_map): New parameter force_load_ref, set the
5573 appropriate flag in ipa_replace_map if set.
5574 (struct symbol_and_index_together): New type.
5575 (adjust_refs_in_act_callers): New function.
5576 (adjust_references_in_caller): Likewise.
5577 (create_specialized_node): When appropriate, call
5578 adjust_references_in_caller and force only load references.
5579 * ipa-prop.c (load_from_dereferenced_name): New function.
5580 (ipa_analyze_controlled_uses): Also detect loads from a
5581 dereference, harden testing of call statements.
5582 (ipa_write_node_info): Stream the dereferenced flag.
5583 (ipa_read_node_info): Likewise.
5584 (ipa_set_jf_constant): Also create refdesc when jump function
5585 references a variable.
5586 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
5587 also on references of variables and return a symtab_node. Adjust
5589 (propagate_controlled_uses): Also remove references to VAR_DECLs.
5591 2021-07-27 Jakub Jelinek <jakub@redhat.com>
5593 PR middle-end/101586
5594 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
5595 positions above or equal to sz except for diagnostics of flexible
5598 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
5600 PR tree-optimization/78888
5601 * gimple-range-fold.cc (get_letter_range): New.
5602 (fold_using_range::range_of_builtin_call): Call get_letter_range.
5604 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
5606 PR tree-optimization/78888
5607 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
5608 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
5610 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
5611 Marc Glisse <marc.glisse@inria.fr>
5613 * match.pd (rotate): Simplify equality/inequality of rotations.
5614 (bswap): Simplify equality/inequality tests of byte swapping.
5616 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
5618 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
5621 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
5623 * range-op.cc (operator_lshift::fold_range): Pass rel to
5624 base class fold_range.
5625 (operator_rshift::fold_range): Same.
5627 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
5630 * toplev.h (min_align_loops_log): Remove declaration.
5631 (min_align_jumps_log, min_align_labels_log): Likewise.
5632 (min_align_functions_log): Likewise.
5634 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
5636 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
5638 (execute_vrp): Abstract out simplification of conditionals...
5639 (simplify_casted_conds): ...here.
5641 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
5643 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
5644 Add gimple argument.
5645 (array_bounds_checker::check_array_ref): Same.
5646 (array_bounds_checker::check_addr_expr): Same.
5647 (array_bounds_checker::check_array_bounds): Pass statement to
5648 check_array_bounds and check_addr_expr.
5649 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
5650 (check_addr_expr): Same.
5651 (get_value_range): Same.
5653 2021-07-26 Tamar Christina <tamar.christina@arm.com>
5655 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
5656 (sdot_prod, udot_prod): ... This.
5657 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
5659 (<sur>dot_prod<vsi2qi>): ... this.
5660 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
5661 Change operands order.
5662 (<sur>sadv16qi): Use new operands order.
5663 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
5664 vdotq_s32): Use new RTL ordering.
5666 2021-07-26 Tamar Christina <tamar.christina@arm.com>
5668 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
5669 aarch64_types_ternop_suss_qualifiers): New.
5670 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
5671 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
5672 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
5674 2021-07-23 Jakub Jelinek <jakub@redhat.com>
5676 PR rtl-optimization/101562
5677 * expmed.c (store_integral_bit_field): Only use movstrict_optab
5678 if the operand isn't paradoxical.
5680 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
5682 * gimple-array-bounds.h (class array_bounds_checker): Change
5683 ranges type to range_query.
5685 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5687 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
5688 __builtin_memcpy instead of constructing
5689 __builtin_aarch64_simd_oi one vector at a time.
5690 (vst1_u64_x2): Likewise.
5691 (vst1_f64_x2): Likewise.
5692 (vst1_s8_x2): Likewise.
5693 (vst1_p8_x2): Likewise.
5694 (vst1_s16_x2): Likewise.
5695 (vst1_p16_x2): Likewise.
5696 (vst1_s32_x2): Likewise.
5697 (vst1_u8_x2): Likewise.
5698 (vst1_u16_x2): Likewise.
5699 (vst1_u32_x2): Likewise.
5700 (vst1_f16_x2): Likewise.
5701 (vst1_f32_x2): Likewise.
5702 (vst1_p64_x2): Likewise.
5703 (vst1q_s8_x2): Likewise.
5704 (vst1q_p8_x2): Likewise.
5705 (vst1q_s16_x2): Likewise.
5706 (vst1q_p16_x2): Likewise.
5707 (vst1q_s32_x2): Likewise.
5708 (vst1q_s64_x2): Likewise.
5709 (vst1q_u8_x2): Likewise.
5710 (vst1q_u16_x2): Likewise.
5711 (vst1q_u32_x2): Likewise.
5712 (vst1q_u64_x2): Likewise.
5713 (vst1q_f16_x2): Likewise.
5714 (vst1q_f32_x2): Likewise.
5715 (vst1q_f64_x2): Likewise.
5716 (vst1q_p64_x2): Likewise.
5718 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5720 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
5721 __builtin_memcpy instead of constructing
5722 __builtin_aarch64_simd_ci one vector at a time.
5723 (vst1_u64_x3): Likewise.
5724 (vst1_f64_x3): Likewise.
5725 (vst1_s8_x3): Likewise.
5726 (vst1_p8_x3): Likewise.
5727 (vst1_s16_x3): Likewise.
5728 (vst1_p16_x3): Likewise.
5729 (vst1_s32_x3): Likewise.
5730 (vst1_u8_x3): Likewise.
5731 (vst1_u16_x3): Likewise.
5732 (vst1_u32_x3): Likewise.
5733 (vst1_f16_x3): Likewise.
5734 (vst1_f32_x3): Likewise.
5735 (vst1_p64_x3): Likewise.
5736 (vst1q_s8_x3): Likewise.
5737 (vst1q_p8_x3): Likewise.
5738 (vst1q_s16_x3): Likewise.
5739 (vst1q_p16_x3): Likewise.
5740 (vst1q_s32_x3): Likewise.
5741 (vst1q_s64_x3): Likewise.
5742 (vst1q_u8_x3): Likewise.
5743 (vst1q_u16_x3): Likewise.
5744 (vst1q_u32_x3): Likewise.
5745 (vst1q_u64_x3): Likewise.
5746 (vst1q_f16_x3): Likewise.
5747 (vst1q_f32_x3): Likewise.
5748 (vst1q_f64_x3): Likewise.
5749 (vst1q_p64_x3): Likewise.
5751 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
5754 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
5755 hard register when LRA is in progress.
5757 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5759 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
5760 __builtin_memcpy instead of using a union.
5761 (vst1q_s8_x4): Likewise.
5762 (vst1_s16_x4): Likewise.
5763 (vst1q_s16_x4): Likewise.
5764 (vst1_s32_x4): Likewise.
5765 (vst1q_s32_x4): Likewise.
5766 (vst1_u8_x4): Likewise.
5767 (vst1q_u8_x4): Likewise.
5768 (vst1_u16_x4): Likewise.
5769 (vst1q_u16_x4): Likewise.
5770 (vst1_u32_x4): Likewise.
5771 (vst1q_u32_x4): Likewise.
5772 (vst1_f16_x4): Likewise.
5773 (vst1q_f16_x4): Likewise.
5774 (vst1_f32_x4): Likewise.
5775 (vst1q_f32_x4): Likewise.
5776 (vst1_p8_x4): Likewise.
5777 (vst1q_p8_x4): Likewise.
5778 (vst1_p16_x4): Likewise.
5779 (vst1q_p16_x4): Likewise.
5780 (vst1_s64_x4): Likewise.
5781 (vst1_u64_x4): Likewise.
5782 (vst1_p64_x4): Likewise.
5783 (vst1q_s64_x4): Likewise.
5784 (vst1q_u64_x4): Likewise.
5785 (vst1q_p64_x4): Likewise.
5786 (vst1_f64_x4): Likewise.
5787 (vst1q_f64_x4): Likewise.
5789 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
5791 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
5792 instead of constructing __builtin_aarch64_simd_oi one vector
5794 (vst2_u64): Likewise.
5795 (vst2_f64): Likewise.
5796 (vst2_s8): Likewise.
5797 (vst2_p8): Likewise.
5798 (vst2_s16): Likewise.
5799 (vst2_p16): Likewise.
5800 (vst2_s32): Likewise.
5801 (vst2_u8): Likewise.
5802 (vst2_u16): Likewise.
5803 (vst2_u32): Likewise.
5804 (vst2_f16): Likewise.
5805 (vst2_f32): Likewise.
5806 (vst2_p64): Likewise.
5807 (vst2q_s8): Likewise.
5808 (vst2q_p8): Likewise.
5809 (vst2q_s16): Likewise.
5810 (vst2q_p16): Likewise.
5811 (vst2q_s32): Likewise.
5812 (vst2q_s64): Likewise.
5813 (vst2q_u8): Likewise.
5814 (vst2q_u16): Likewise.
5815 (vst2q_u32): Likewise.
5816 (vst2q_u64): Likewise.
5817 (vst2q_f16): Likewise.
5818 (vst2q_f32): Likewise.
5819 (vst2q_f64): Likewise.
5820 (vst2q_p64): Likewise.
5822 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5824 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
5825 instead of constructing __builtin_aarch64_simd_ci one vector
5827 (vst3_u64): Likewise.
5828 (vst3_f64): Likewise.
5829 (vst3_s8): Likewise.
5830 (vst3_p8): Likewise.
5831 (vst3_s16): Likewise.
5832 (vst3_p16): Likewise.
5833 (vst3_s32): Likewise.
5834 (vst3_u8): Likewise.
5835 (vst3_u16): Likewise.
5836 (vst3_u32): Likewise.
5837 (vst3_f16): Likewise.
5838 (vst3_f32): Likewise.
5839 (vst3_p64): Likewise.
5840 (vst3q_s8): Likewise.
5841 (vst3q_p8): Likewise.
5842 (vst3q_s16): Likewise.
5843 (vst3q_p16): Likewise.
5844 (vst3q_s32): Likewise.
5845 (vst3q_s64): Likewise.
5846 (vst3q_u8): Likewise.
5847 (vst3q_u16): Likewise.
5848 (vst3q_u32): Likewise.
5849 (vst3q_u64): Likewise.
5850 (vst3q_f16): Likewise.
5851 (vst3q_f32): Likewise.
5852 (vst3q_f64): Likewise.
5853 (vst3q_p64): Likewise.
5855 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5857 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
5858 instead of constructing __builtin_aarch64_simd_xi one vector
5860 (vst4_u64): Likewise.
5861 (vst4_f64): Likewise.
5862 (vst4_s8): Likewise.
5863 (vst4_p8): Likewise.
5864 (vst4_s16): Likewise.
5865 (vst4_p16): Likewise.
5866 (vst4_s32): Likewise.
5867 (vst4_u8): Likewise.
5868 (vst4_u16): Likewise.
5869 (vst4_u32): Likewise.
5870 (vst4_f16): Likewise.
5871 (vst4_f32): Likewise.
5872 (vst4_p64): Likewise.
5873 (vst4q_s8): Likewise.
5874 (vst4q_p8): Likewise.
5875 (vst4q_s16): Likewise.
5876 (vst4q_p16): Likewise.
5877 (vst4q_s32): Likewise.
5878 (vst4q_s64): Likewise.
5879 (vst4q_u8): Likewise.
5880 (vst4q_u16): Likewise.
5881 (vst4q_u32): Likewise.
5882 (vst4q_u64): Likewise.
5883 (vst4q_f16): Likewise.
5884 (vst4q_f32): Likewise.
5885 (vst4q_f64): Likewise.
5886 (vst4q_p64): Likewise.
5888 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5890 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
5891 instead of constructing __builtin_aarch64_simd_oi one vector
5893 (vtbx4_u8): Likewise.
5894 (vtbx4_p8): Likewise.
5896 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5898 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
5899 instead of constructing __builtin_aarch64_simd_oi one vector
5901 (vtbl3_u8): Likewise.
5902 (vtbl3_p8): Likewise.
5903 (vtbl4_s8): Likewise.
5904 (vtbl4_u8): Likewise.
5905 (vtbl4_p8): Likewise.
5907 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5909 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
5910 instead of constructing __builtin_aarch64_simd_oi one vector
5912 (vqtbx2_u8): Likewise.
5913 (vqtbx2_p8): Likewise.
5914 (vqtbx2q_s8): Likewise.
5915 (vqtbx2q_u8): Likewise.
5916 (vqtbx2q_p8): Likewise.
5917 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
5918 __builtin_aarch64_simd_ci one vector at a time.
5919 (vqtbx3_u8): Likewise.
5920 (vqtbx3_p8): Likewise.
5921 (vqtbx3q_s8): Likewise.
5922 (vqtbx3q_u8): Likewise.
5923 (vqtbx3q_p8): Likewise.
5924 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
5925 __builtin_aarch64_simd_xi one vector at a time.
5926 (vqtbx4_u8): Likewise.
5927 (vqtbx4_p8): Likewise.
5928 (vqtbx4q_s8): Likewise.
5929 (vqtbx4q_u8): Likewise.
5930 (vqtbx4q_p8): Likewise.
5932 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
5934 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
5935 instead of constructing __builtin_aarch64_simd_oi one vector
5937 (vqtbl2_u8): Likewise.
5938 (vqtbl2_p8): Likewise.
5939 (vqtbl2q_s8): Likewise.
5940 (vqtbl2q_u8): Likewise.
5941 (vqtbl2q_p8): Likewise.
5942 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
5943 __builtin_aarch64_simd_ci one vector at a time.
5944 (vqtbl3_u8): Likewise.
5945 (vqtbl3_p8): Likewise.
5946 (vqtbl3q_s8): Likewise.
5947 (vqtbl3q_u8): Likewise.
5948 (vqtbl3q_p8): Likewise.
5949 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
5950 __builtin_aarch64_simd_xi one vector at a time.
5951 (vqtbl4_u8): Likewise.
5952 (vqtbl4_p8): Likewise.
5953 (vqtbl4q_s8): Likewise.
5954 (vqtbl4q_u8): Likewise.
5955 (vqtbl4q_p8): Likewise.
5957 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
5960 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
5962 2021-07-22 Andrew Pinski <apinski@marvell.com>
5964 PR tree-optimization/10153
5965 * tree-tailcall.c (create_tailcall_accumulator):
5966 Don't call fold_convert as the type should be correct already.
5967 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
5968 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
5970 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
5972 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
5973 varying_p check for null/non-null check.
5975 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
5977 PR tree-optimization/101511
5978 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
5979 is in ssa2's equiv set, and don't trap if so.
5981 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
5983 PR tree-optimization/101497
5984 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
5987 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
5989 PR tree-optimization/101496
5990 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
5991 first, then vrp_visit_cond_Stmt.
5993 2021-07-22 liuhongt <hongtao.liu@intel.com>
5995 * config/i386/i386-expand.c
5996 (ix86_broadcast_from_integer_constant): Rename to ..
5997 (ix86_broadcast_from_constant): .. this, and extend it to
5999 (ix86_expand_vector_move): Extend to float mode.
6000 * config/i386/i386-features.c
6001 (replace_constant_pool_with_broadcast): Remove.
6002 (remove_partial_avx_dependency_gate): Ditto.
6003 (constant_pool_broadcast): Ditto.
6004 (class pass_constant_pool_broadcast): Ditto.
6005 (make_pass_constant_pool_broadcast): Ditto.
6006 (remove_partial_avx_dependency): Adjust gate.
6007 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
6008 * config/i386/i386-protos.h
6009 (make_pass_constant_pool_broadcast): Remove.
6011 2021-07-22 liuhongt <hongtao.liu@intel.com>
6013 * config/i386/constraints.md (Wb): New constraint.
6015 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
6017 (*ashlqi3_1): Ditto.
6018 (*<insn><mode>3_1): Split to ..
6019 (*ashr<mode>3_1): this, ...
6020 (*lshr<mode>3_1): and this, also extend this pattern to avx512
6022 (*<insn><mode>3_1): Split to ..
6023 (*ashr<mode>3_1): this, ...
6024 (*lshrqi3_1): and this, also extend this pattern to avx512
6026 (*lshrhi3_1): And this, also extend this pattern to avx512
6028 * config/i386/sse.md (k<code><mode>): New define_split after
6029 it to convert generic shift pattern to mask shift ones.
6031 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
6032 Joseph Myers <joseph@codesourcery.com>
6033 Cesar Philippidis <cesar@codesourcery.com>
6035 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
6036 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
6038 * tree-pretty-print.c (dump_omp_clause): Likewise.
6039 * omp-general.c (oacc_verify_routine_clauses): Likewise.
6040 * gimplify.c (gimplify_scan_omp_clauses)
6041 (gimplify_adjust_omp_clauses): Likewise.
6042 * tree-nested.c (convert_nonlocal_omp_clauses)
6043 (convert_local_omp_clauses): Likewise.
6044 * omp-low.c (scan_sharing_clauses): Likewise.
6045 * omp-offload.c (execute_oacc_device_lower): Update.
6047 2021-07-21 Martin Sebor <msebor@redhat.com>
6049 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
6051 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6053 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
6056 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6058 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
6060 (write_fntype_init): New stub function.
6061 (write_init_bif_table): Likewise.
6062 (write_init_ovld_table): New function.
6063 (write_init_file): Implement.
6065 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6067 * config/rs6000/rs6000-gen-builtins.c
6068 (write_autogenerated_header): New function.
6069 (write_decls): Likewise.
6070 (write_extern_fntype): New callback function.
6071 (write_header_file): Implement.
6073 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6075 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
6078 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6080 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
6082 (complete_base_type): Likewise.
6083 (construct_fntype_id): Likewise.
6084 (parse_bif_entry): Call contruct_fntype_id.
6085 (parse_ovld_entry): Likewise.
6087 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6089 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
6090 (MAXOVLDSTANZAS): New macro.
6091 (ovld_stanzas): New variable.
6092 (curr_ovld_stanza): Likewise.
6093 (MAXOVLDS): New macro.
6094 (ovlddata): New struct.
6095 (ovlds): New variable.
6096 (curr_ovld): Likewise.
6097 (max_ovld_args): Likewise.
6098 (parse_ovld_entry): New function.
6099 (parse_ovld_stanza): Likewise.
6100 (parse_ovld): Implement.
6102 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6104 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
6107 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6109 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
6110 (parse_prototype): Implement.
6112 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6114 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
6115 (curr_bif_stanza): New variable.
6116 (stanza_entry): New struct.
6117 (stanza_map): New initialized variable.
6118 (enable_string): Likewise.
6119 (fnkinds): New enum.
6120 (typelist): New struct.
6121 (attrinfo): Likewise.
6122 (MAXRESTROPNDS): New macro.
6123 (prototype): New struct.
6124 (MAXBIFS): New macro.
6125 (bifdata): New struct.
6126 (bifs): New variable.
6127 (curr_bif): Likewise.
6128 (bif_order): Likewise.
6129 (bif_index): Likewise.
6130 (fatal): New function.
6131 (stanza_name_to_stanza): Likewise.
6132 (parse_bif_attrs): New stub function.
6133 (parse_prototype): Likewise.
6134 (parse_bif_entry): New function.
6135 (parse_bif_stanza): Likewise.
6136 (parse_bif): Implement.
6137 (set_bif_order): New function.
6138 (create_bif_order): Implement.
6140 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
6142 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
6143 (num_bifs): New variable.
6144 (num_ovld_stanzas): Likewise.
6145 (num_ovlds): Likewise.
6146 (parse_codes): New enum.
6147 (bif_rbt): New variable.
6148 (ovld_rbt): Likewise.
6149 (fntype_rbt): Likewise.
6150 (bifo_rbt): Likewise.
6151 (parse_bif): New stub function.
6152 (create_bif_order): Likewise.
6153 (parse_ovld): Likewise.
6154 (write_header_file): Likewise.
6155 (write_init_file): Likewise.
6156 (write_defines_file): Likewise.
6157 (delete_output_files): New function.
6160 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
6163 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
6164 from CRC32 _builtin functions.
6166 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
6168 * coverage.c (build_gcov_info_var_registration): Mark the object placed
6169 in the linker set as referenced so that it does not get optimized away.
6171 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
6174 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
6176 * config.gcc (riscv*-*-*): Detect which python is available.
6178 2021-07-21 Jakub Jelinek <jakub@redhat.com>
6180 PR middle-end/101535
6181 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
6182 contexts in which decl isn't privatized and for ORT_TARGET return
6183 false if decl is mapped.
6185 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
6187 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
6188 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
6189 has been successfully unrolled.
6191 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
6193 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
6194 exit condition if no tail loop is needed, and if the original exit
6195 condition should therefore be kept as-is.
6196 (tree_transform_and_unroll_loop): Handle that case here too.
6198 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
6200 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
6202 (free_data_refs): Likewise.
6203 * tree-data-ref.h (free_dependence_relations): Likewise.
6204 (free_data_refs): Likewise.
6205 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
6207 (struct component): Likewise.
6208 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
6209 (pcom_worker::~pcom_worker): Likewise.
6210 (pcom_worker::release_chain): Adjust as auto_vec changes.
6211 (pcom_worker::loop): Rename to ...
6212 (pcom_worker::m_loop): ... this.
6213 (pcom_worker::datarefs): Rename to ...
6214 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
6215 (pcom_worker::dependences): Rename to ...
6216 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
6217 (pcom_worker::chains): Rename to ...
6218 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
6219 (pcom_worker::looparound_phis): Rename to ...
6220 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
6222 (pcom_worker::cache): Rename to ...
6223 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
6224 (pcom_worker::release_chain): Adjust for auto_vec changes.
6225 (pcom_worker::release_chains): Adjust for auto_vec and renaming
6227 (release_component): Remove.
6228 (release_components): Adjust for release_component removal.
6229 (component_of): Adjust to use vec.
6230 (merge_comps): Likewise.
6231 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
6232 (pcom_worker::determine_offset): Likewise.
6233 (class comp_ptrs): Remove.
6234 (pcom_worker::split_data_refs_to_components): Adjust for renaming
6235 changes, for comp_ptrs removal with auto_vec.
6236 (pcom_worker::suitable_component_p): Adjust for renaming changes.
6237 (pcom_worker::filter_suitable_components): Adjust for release_component
6239 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
6240 (pcom_worker::find_looparound_phi): Likewise.
6241 (pcom_worker::add_looparound_copies): Likewise.
6242 (pcom_worker::determine_roots_comp): Likewise.
6243 (pcom_worker::single_nonlooparound_use): Likewise.
6244 (pcom_worker::execute_pred_commoning_chain): Likewise.
6245 (pcom_worker::execute_pred_commoning): Likewise.
6246 (pcom_worker::try_combine_chains): Likewise.
6247 (pcom_worker::prepare_initializers_chain): Likewise.
6248 (pcom_worker::prepare_initializers): Likewise.
6249 (pcom_worker::prepare_finalizers_chain): Likewise.
6250 (pcom_worker::prepare_finalizers): Likewise.
6251 (pcom_worker::tree_predictive_commoning_loop): Likewise.
6253 2021-07-20 Martin Sebor <msebor@redhat.com>
6255 PR middle-end/101397
6256 * builtins.c (gimple_call_return_array): Add argument. Correct
6257 offsets for memchr, mempcpy, stpcpy, and stpncpy.
6258 (compute_objsize_r): Adjust offset computation for argument returning
6261 2021-07-20 Martin Sebor <msebor@redhat.com>
6263 PR middle-end/101300
6264 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
6266 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
6268 * function.c (assign_parm_setup_block): Use adjust_address instead
6269 of change_address to preserve MEM_EXPR and friends.
6271 2021-07-20 Martin Sebor <msebor@redhat.com>
6273 * cfgloop.h (single_likely_exit): Adjust by-value argument to
6275 * cfgloopanal.c (single_likely_exit): Same.
6276 * cgraph.h (struct cgraph_node): Same.
6277 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
6278 * genautomata.c (merge_states): Same.
6279 * genextract.c (VEC_char_to_string): Same.
6280 * genmatch.c (dt_node::gen_kids_1): Same.
6281 (walk_captures): Adjust by-value argument to by-reference.
6282 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
6283 to by-const-reference.
6284 * gimple.c (gimple_build_call_vec): Same.
6285 (gimple_build_call_internal_vec): Same.
6286 (gimple_build_switch): Same.
6287 (sort_case_labels): Same.
6288 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
6290 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
6292 (gimple_build_call_internal_vec): Same.
6293 (gimple_build_switch): Same.
6294 (sort_case_labels): Same.
6295 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
6297 * haifa-sched.c (calc_priorities): Adjust by-value argument to
6299 (sched_init_luids): Same.
6300 (haifa_init_h_i_d): Same.
6301 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
6302 (adjust_callers_for_value_intersection): Adjust by-value argument to
6304 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
6306 (find_more_contexts_for_caller_subset): Same.
6307 (find_aggregate_values_for_callers_subset): Same.
6308 (copy_useful_known_contexts): Same.
6309 * ipa-fnsummary.c (remap_edge_summaries): Same.
6310 (remap_freqcounting_predicate): Same.
6311 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
6313 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
6314 to by-const-reference.
6315 * ipa-predicate.h (predicate::remap_after_inlining): Same.
6316 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
6317 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
6318 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
6319 * read-rtl.c (add_overload_instance): Same.
6320 * rtl.h (native_decode_rtx): Same.
6321 (native_decode_vector_rtx): Same.
6322 * sched-int.h (sched_init_luids): Same.
6323 (haifa_init_h_i_d): Same.
6324 * simplify-rtx.c (native_decode_vector_rtx): Same.
6325 (native_decode_rtx): Same.
6326 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
6327 (shrink_wrap_one_built_in_call_with_conds): Same.
6328 (shrink_wrap_conditional_dead_built_in_calls): Same.
6329 * tree-data-ref.c (create_runtime_alias_checks): Same.
6330 (compute_all_dependences): Same.
6331 * tree-data-ref.h (compute_all_dependences): Same.
6332 (create_runtime_alias_checks): Same.
6333 (index_in_loop_nest): Same.
6334 * tree-if-conv.c (mask_exists): Same.
6335 * tree-loop-distribution.c (class loop_distribution): Same.
6336 (loop_distribution::create_rdg_vertices): Same.
6337 (dump_rdg_partitions): Same.
6338 (debug_rdg_partitions): Same.
6339 (partition_contains_all_rw): Same.
6340 (loop_distribution::distribute_loop): Same.
6341 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
6342 (oacc_entry_exit_single_gang): Same.
6343 * tree-ssa-loop-im.c (hoist_memory_references): Same.
6344 (loop_suitable_for_sm): Same.
6345 * tree-ssa-loop-niter.c (bound_index): Same.
6346 * tree-ssa-reassoc.c (update_ops): Same.
6347 (swap_ops_for_binary_stmt): Same.
6348 (rewrite_expr_tree): Same.
6349 (rewrite_expr_tree_parallel): Same.
6350 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
6351 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
6352 * tree-ssa-structalias.c (process_all_all_constraints): Same.
6353 (make_constraints_to): Same.
6354 (handle_lhs_call): Same.
6355 (find_func_aliases_for_builtin_call): Same.
6356 (sort_fieldstack): Same.
6357 (check_for_overlaps): Same.
6358 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
6359 (vect_create_cond_for_unequal_addrs): Same.
6360 (vect_create_cond_for_lower_bounds): Same.
6361 (vect_create_cond_for_alias_checks): Same.
6362 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
6363 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6364 (vect_make_slp_decision): Same.
6365 (vect_slp_bbs): Same.
6366 (duplicate_and_interleave): Same.
6367 (vect_transform_slp_perm_load): Same.
6368 (vect_schedule_slp): Same.
6369 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
6370 (vect_schedule_slp): Same.
6371 (duplicate_and_interleave): Same.
6372 * tree.c (build_vector_from_ctor): Same.
6373 (build_vector): Same.
6374 (check_vector_cst): Same.
6375 (check_vector_cst_duplicate): Same.
6376 (check_vector_cst_fill): Same.
6377 (check_vector_cst_stepped): Same.
6378 * tree.h (build_vector_from_ctor): Same.
6380 2021-07-20 Jakub Jelinek <jakub@redhat.com>
6383 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
6384 type from bool to int.
6385 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
6386 EASY_VECTOR_MSB case if either step or copies is not 1.
6387 (vspltis_shifted): Fix comment typo.
6388 (easy_altivec_constant): Change return type from bool to int, instead
6389 of returning true return byte size of the element mode that should be
6390 used to synthetize the constant.
6391 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
6392 that vspltis_shifted is 0, handle the case where easy_altivec_constant
6393 assumes using different vector mode from CONST_VECTOR's mode.
6394 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
6395 easy_altivec_constant to determine mode in which -1 >> -1 should be
6396 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
6398 2021-07-20 Richard Biener <rguenther@suse.de>
6401 * dwarf2out.h (dwarf_file_data): Add key member.
6402 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
6403 (dwarf_file_hasher::hash): Hash key.
6404 (lookup_filename): Remap the filename and store it in the
6405 filename member of dwarf_file_data when creating a new
6407 (file_name_acquire): Do not remap the filename again.
6408 (maybe_emit_file): Likewise.
6410 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
6412 * config/aarch64/aarch64-simd-builtins.def: Use two variant
6413 generators for all TBL/TBX intrinsics and rename to
6414 consistent forms: qtbl[1234] or qtbx[1234].
6415 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
6417 (aarch64_qtbl1<mode>): This.
6418 (aarch64_tbx1<mode>): Rename to...
6419 (aarch64_qtbx1<mode>): This.
6420 (aarch64_tbl2v16qi): Delete.
6421 (aarch64_tbl3<mode>): Rename to...
6422 (aarch64_qtbl2<mode>): This.
6423 (aarch64_tbx4<mode>): Rename to...
6424 (aarch64_qtbx2<mode>): This.
6425 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
6426 renamed qtbl1 and qtbl2 RTL patterns.
6427 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
6429 (vqtbl1_s8): Likewise.
6430 (vqtbl1_u8): Likewise.
6431 (vqtbl1q_p8): Likewise.
6432 (vqtbl1q_s8): Likewise.
6433 (vqtbl1q_u8): Likewise.
6434 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
6435 (vqtbx1_u8): Likewise.
6436 (vqtbx1_p8): Likewise.
6437 (vqtbx1q_s8): Likewise.
6438 (vqtbx1q_u8): Likewise.
6439 (vqtbx1q_p8): Likewise.
6440 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
6441 (vtbl1_u8): Likewise.
6442 (vtbl1_p8): Likewise.
6443 (vtbl2_s8): Likewise
6444 (vtbl2_u8): Likewise.
6445 (vtbl2_p8): Likewise.
6446 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
6447 (vtbl3_u8): Likewise.
6448 (vtbl3_p8): Likewise.
6449 (vtbl4_s8): Likewise.
6450 (vtbl4_u8): Likewise.
6451 (vtbl4_p8): Likewise.
6452 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
6453 (vtbx2_u8): Likewise.
6454 (vtbx2_p8): Likewise.
6455 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
6456 (vqtbl2_u8): Likewise.
6457 (vqtbl2_p8): Likewise.
6458 (vqtbl2q_s8): Likewise.
6459 (vqtbl2q_u8): Likewise.
6460 (vqtbl2q_p8): Likewise.
6461 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
6462 (vqtbx2_u8): Likewise.
6463 (vqtbx2_p8): Likewise.
6464 (vqtbx2q_s8): Likewise.
6465 (vqtbx2q_u8): Likewise.
6466 (vqtbx2q_p8): Likewise.
6467 (vtbx4_s8): Likewise.
6468 (vtbx4_u8): Likewise.
6469 (vtbx4_p8): Likewise.
6471 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
6474 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
6476 (define_peephole2 atomic_loaddi_fpu): Ditto.
6478 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
6480 * config.gcc (riscv*-*-*): Detect which python is available.
6482 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
6484 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
6485 (smul<mode>3_highpart): ... this.
6486 (mulhu_<mode>): Rename to...
6487 (umul<mode>3_highpart): ... this.
6488 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
6489 MULHU_V2DI, MULHU_V4SI): Adjust.
6491 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
6493 PR tree-optimization/100696
6494 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
6495 * internal-fn.def (IFN_MULH): New internal function.
6496 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
6497 recog normal multiply highpart as IFN_MULH.
6498 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
6501 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
6503 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
6504 (BTF_DEBUGGING_INFO): Likewise.
6505 * doc/tm.texi.in: Document the new macros.
6506 * doc/tm.texi: Regenerated.
6507 * toplev.c: Guard initialization of debug hooks.
6509 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
6511 * flags.h (ctf_debuginfo_p): New function declaration.
6512 * opts.c (ctf_debuginfo_p): New function definition.
6514 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
6517 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
6518 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
6519 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
6520 * config/gcn/gcn-valu.md: Add a warning comment.
6521 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
6522 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
6523 * config/gcn/gcn.md: Add a warning comment.
6524 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
6525 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
6527 (EF_AMDGPU_XNACK): New.
6528 (EF_AMDGPU_SRAM_ECC): New.
6530 (copy_early_debug_info): Use elf_flags.
6531 (main): Handle -mxnack and -msram-ecc options.
6532 * doc/invoke.texi: Document -mxnack and -msram-ecc.
6534 2021-07-19 Andrew Pinski <apinski@marvell.com>
6537 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
6538 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
6540 2021-07-19 Richard Biener <rguenther@suse.de>
6542 PR tree-optimization/101505
6543 * tree-vect-patterns.c (vect_determine_precisions): Walk
6544 PHIs also for loop vectorization.
6546 2021-07-19 Richard Biener <rguenther@suse.de>
6548 * gimple.h (gimple_expr_type): Remove.
6549 * doc/gimple.texi: Remove gimple_expr_type documentation.
6551 2021-07-19 Richard Biener <rguenther@suse.de>
6553 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
6554 (ao_ref_init_from_vn_reference): Likewise.
6555 (fully_constant_reference): Likewise.
6556 (vn_reference_lookup_call): Do not set vr->type to random
6558 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
6560 * tree-vect-generic.c (expand_vector_piecewise): Pass in
6561 whether we expanded parallel.
6562 (expand_vector_parallel): Adjust.
6563 (expand_vector_addition): Likewise.
6564 (expand_vector_comparison): Likewise.
6565 (expand_vector_operation): Likewise.
6566 (expand_vector_scalar_condition): Likewise.
6567 (expand_vector_conversion): Likewise.
6569 2021-07-19 Richard Biener <rguenther@suse.de>
6571 * tree-vrp.c (register_edge_assert_for_2): Use the
6573 (vrp_folder::fold_predicate_in): Likewise.
6574 * vr-values.c (gimple_assign_nonzero_p): Likewise.
6575 (vr_values::extract_range_from_comparison): Likewise.
6576 (vr_values::extract_range_from_ubsan_builtin): Use the
6577 type of the first operand.
6578 (vr_values::extract_range_basic): Push down type
6579 computation, use the appropriate LHS.
6580 (vr_values::extract_range_from_assignment): Use the
6583 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
6586 * common/config/i386/i386-common.c (ix86_handle_option): For
6587 -mgeneral-regs-only, enable the GPR only instructions which are
6588 enabled implicitly by SSE ISAs unless they have been disabled
6591 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
6594 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
6595 ix86_avx_u128_mode_needed.
6596 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
6597 returns AVX register.
6599 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
6601 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
6602 (handle_const_call): Liekise
6603 (handle_pure_call): Liekise
6605 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
6607 PR tree-optimization/96542
6608 * range-op.cc (range_operator::wi_fold_in_parts): New.
6609 (range_operator::fold_range): Call wi_fold_in_parts.
6610 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
6611 * range-op.h (wi_fold_in_parts): Add prototype.
6613 2021-07-16 David Malcolm <dmalcolm@redhat.com>
6615 * doc/analyzer.texi: Add __analyzer_dump_state.
6617 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6619 * config/rs6000/rbtree.c: New file.
6620 * config/rs6000/rbtree.h: New file.
6622 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6624 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
6625 (typeinfo): Add restr field.
6626 (match_bracketed_pair): New function.
6627 (match_const_restriction): Implement.
6629 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6631 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
6633 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6635 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
6636 (basetype): Likewise.
6637 (typeinfo): Likewise.
6638 (handle_pointer): New function.
6639 (match_basetype): New stub function.
6640 (match_const_restriction): Likewise.
6641 (match_type): New function.
6643 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6645 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
6647 (advance_line): Likewise.
6648 (safe_inc_pos): Likewise.
6649 (match_identifier): Likewise.
6650 (match_integer): Likewise.
6651 (match_to_right_bracket): Likewise.
6653 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6655 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
6656 (ovld_file): Likewise.
6657 (header_file): Likewise.
6658 (init_file): Likewise.
6659 (defines_file): Likewise.
6660 (pgm_path): Likewise.
6661 (bif_path): Likewise.
6662 (ovld_path): Likewise.
6663 (header_path): Likewise.
6664 (init_path): Likewise.
6665 (defines_path): Likewise.
6666 (LINELEN): New macro.
6667 (linebuf): New variable.
6671 (bif_diag): New function.
6672 (ovld_diag): Likewise.
6674 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6676 * config/rs6000/rs6000-builtin-new.def: New.
6677 * config/rs6000/rs6000-overload.def: New.
6679 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6681 * config/rs6000/rs6000-gen-builtins.c: New.
6683 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6685 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
6686 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
6687 * gengtype-state.c (state_writer::write_state_file_list): Add a
6688 parameter to the fileslist expression for the number of build
6690 (read_state_files_list): Detect build headers and strip the
6691 initial "./" or ".\" from their names.
6692 * gengtype.c (build_headers): New global variable.
6693 (num_build_headers): Likewise.
6694 (open_base_files): Emit #include for each build header.
6695 (main): Detect and count build headers.
6696 * gengtype.h (build_headers): New extern variable.
6697 (num_build_headers): Likewise.
6699 2021-07-16 Richard Biener <rguenther@suse.de>
6701 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
6702 the type of the LHS.
6703 (find_bswap_or_nop_1): Likewise.
6704 (find_bswap_or_nop): Likewise.
6705 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
6707 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
6708 Remove unused parameters, pass in the scalar type. Fix
6709 internal store function handling.
6710 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
6711 (vect_get_vector_types_for_stmt): Move down check for
6712 existing vector stmt after we've determined a scalar type.
6713 Pass down the used scalar type to vect_get_smallest_scalar_type.
6714 * tree-vect-generic.c (expand_vector_condition): Use
6715 the type of the LHS.
6716 (expand_vector_scalar_condition): Likewise.
6717 (expand_vector_operations_1): Likewise.
6718 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
6719 (vect_recog_dot_prod_pattern): Likewise.
6720 (vect_recog_sad_pattern): Likewise.
6721 (vect_recog_widen_op_pattern): Likewise.
6722 (vect_recog_widen_sum_pattern): Likewise.
6723 (vect_recog_mixed_size_cond_pattern): Likewise.
6725 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
6727 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
6728 (dump_eaf_flags): Dump EAF_NOT_RETURNED
6729 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
6730 and EAF_NOT_RETURNED.
6731 (modref_summary::useful_p): Likewise.
6732 (modref_summary_lto::useful_p): Likewise.
6733 (struct) modref_summary_lto: Use eaf_fleags_t.
6734 (deref_flags): Handle EAF_NOT_RETURNED.
6735 (struct escape_point): Use min_flags.
6736 (modref_lattice::init): Add EAF_NOT_RETURNED.
6737 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
6738 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
6740 (analyze_parms): Also analyze const functions; update conition on
6742 (modref_write): Update streaming.
6743 (read_section): Update streaming.
6744 (remap_arg_flags): Use eaf_flags_t.
6745 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
6746 * ipa-modref.h: (eaf_flags_t): New typedef.
6747 (struct modref_summary): Use eaf_flags_t.
6748 * tree-core.h (EAF_NOT_RETURNED): New constant.
6750 2021-07-16 Richard Biener <rguenther@suse.de>
6752 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
6753 the type of the LHS.
6754 (gimple_assign_nonnegative_warnv_p): Likewise.
6755 (gimple_call_nonnegative_warnv_p): Likewise. Return false
6756 if the call has no LHS.
6757 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
6758 * tree-eh.c (stmt_could_throw_1_p): Likewise.
6759 * tree-inline.c (insert_init_stmt): Likewise.
6760 * tree-ssa-loop-niter.c (get_val_for): Likewise.
6761 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
6763 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
6764 gassign *. Use the type of the lhs.
6765 (vn_nary_op_lookup_stmt): Adjust.
6766 (vn_nary_op_insert_stmt): Likewise.
6768 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
6770 * config/s390/predicates.md (bras_sym_operand): Accept all
6771 functions in 64-bit mode, use UNSPEC_PLT31.
6772 (larl_operand): Use UNSPEC_PLT31.
6773 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
6774 (legitimize_pic_address): Likewise.
6775 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
6777 (s390_delegitimize_address): Use UNSPEC_PLT31.
6778 (s390_output_addr_const_extra): Likewise.
6779 (print_operand): Add @PLT to TLS calls, handle %K.
6780 (s390_function_profiler): Mark __fentry__/_mcount as function,
6781 use %K, use UNSPEC_PLT31.
6782 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
6783 (s390_emit_call): Use UNSPEC_PLT31.
6784 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
6785 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
6786 (*movdi_64): Use %K.
6787 (reload_base_64): Likewise.
6788 (*sibcall_brc): Likewise.
6789 (*sibcall_brcl): Likewise.
6790 (*sibcall_value_brc): Likewise.
6791 (*sibcall_value_brcl): Likewise.
6794 (*bras_r): Likewise.
6795 (*brasl_r): Likewise.
6796 (*bras_tls): Likewise.
6797 (*brasl_tls): Likewise.
6798 (main_base_64): Likewise.
6799 (reload_base_64): Likewise.
6800 (@split_stack_call<mode>): Likewise.
6802 2021-07-16 Richard Biener <rguenther@suse.de>
6804 PR tree-optimization/101467
6805 * tree-vect-stmts.c (vect_gen_while): Properly guard
6806 make_temp_ssa_name usage.
6808 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
6810 * config.gcc: Don't use forked print-sysroot-suffix.sh and
6811 t-sysroot-suffix for C-SKY.
6812 * config/csky/print-sysroot-suffix.sh: Delete.
6813 * config/csky/t-csky-linux: Delete.
6814 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
6815 instead of CSKY_MULTILIB_DIRNAMES.
6817 2021-07-16 Richard Biener <rguenther@suse.de>
6819 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
6820 conversion issues with the partial reduction of the reused
6823 2021-07-16 Richard Biener <rguenther@suse.de>
6825 * config/i386/i386-options.c (ix86_option_override_internal): Set
6826 param_vect_partial_vector_usage to zero if not set.
6828 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
6831 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
6832 (VALID_INT_MODE_P): Add SDmode and DDmode.
6833 Add TDmode for TARGET_64BIT.
6834 (VALID_DFP_MODE_P): Remove.
6835 * config/i386/i386.c (ix86_hard_regno_mode_ok):
6836 Do not use VALID_DFP_MODE_P.
6838 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
6840 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
6842 (fold_using_range::fold_stmt): Ditto.
6843 (fold_using_range::range_of_range_op): Ditto.
6844 (fold_using_range::range_of_phi): Ditto.
6845 (fold_using_range::range_of_call): Ditto.
6846 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
6847 (fold_using_range::range_of_builtin_call): Ditto.
6848 (fold_using_range::range_of_cond_expr): Ditto.
6849 * gimple-range-fold.h (gimple_range_type): New.
6851 2021-07-15 Martin Sebor <msebor@redhat.com>
6854 * tree-ssa-strlen.c (handle_assign): New function.
6855 (maybe_warn_overflow): Add argument.
6856 (nonzero_bytes_for_type): New function.
6857 (count_nonzero_bytes): Handle more tree types. Call
6858 nonzero_bytes_for_tye.
6859 (count_nonzero_bytes): Handle types.
6860 (handle_store): Handle stores from function calls.
6861 (strlen_check_and_optimize_call): Move code to handle_assign. Call
6862 it for assignments from function calls.
6864 2021-07-15 David Malcolm <dmalcolm@redhat.com>
6869 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
6871 2021-07-15 David Malcolm <dmalcolm@redhat.com>
6873 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
6875 2021-07-15 Martin Sebor <msebor@redhat.com>
6879 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
6880 (operand_compare::verify_hash_value): Same.
6881 * tree-core.h (OEP_DECL_NAME): New.
6883 2021-07-15 Martin Jambor <mjambor@suse.cz>
6885 * profile-count.h (profile_count::value): Change the return type to
6887 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
6889 * tree-cfg.c (dump_function_to_file): Likewise.
6891 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
6894 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
6895 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
6898 2021-07-15 Richard Biener <rguenther@suse.de>
6900 * tree-vectorizer.h (vect_gen_while): Match up with
6902 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
6903 of vect_gen_while_not.
6904 (vect_gen_while_not): Adjust.
6905 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
6907 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
6909 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
6910 (ranger_cache::range_of_def): Call adjust_range.
6911 (ranger_cache::entry_range): Same.
6912 * gimple-range-cache.h (non_null_ref::adjust_range): New.
6913 * gimple-range.cc (gimple_ranger::range_of_expr): Call
6915 (gimple_ranger::range_on_entry): Same.
6917 2021-07-15 Tamar Christina <tamar.christina@arm.com>
6920 2021-07-14 Tamar Christina <tamar.christina@arm.com>
6922 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
6924 2021-07-15 Tamar Christina <tamar.christina@arm.com>
6927 2021-07-14 Tamar Christina <tamar.christina@arm.com>
6929 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
6930 (sdot_prod, udot_prod): ...These.
6931 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
6932 (aarch64_<sur>dot<vsi2qi>): Rename to...
6933 (<sur>dot_prod<vsi2qi>): ...This.
6934 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
6937 2021-07-15 Jakub Jelinek <jakub@redhat.com>
6939 PR middle-end/101437
6940 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
6941 types even if they have non-BLKmode TYPE_MODE.
6943 2021-07-15 Richard Biener <rguenther@suse.de>
6946 * gcc.c (process_command): Process -gtoggle like process_options
6947 would after parsing options.
6949 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
6951 * cfgexpand.c (expand_asm_loc): Adjust.
6952 (expand_asm_stmt): Likewise.
6953 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
6954 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
6955 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
6956 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
6957 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
6958 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
6959 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
6960 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
6961 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
6962 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
6963 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
6964 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
6965 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
6966 * doc/tm.texi: Regenerate.
6967 * target.def: Add location argument to md_asm_adjust.
6969 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
6971 * tree-diagnostic.c (diagnostic_report_current_function): Use the
6972 diagnostic's location, not input_location.
6974 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
6976 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
6978 (expand_asm_stmt): Likewise.
6980 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
6982 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
6983 addressed memory rtx, if any.
6984 (rs6000_split_multireg_move): Fix code formatting.
6985 Handle MMA build built-ins with operands in adjacent memory locations.
6987 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
6989 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
6992 2021-07-14 Jason Merrill <jason@redhat.com>
6994 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
6996 2021-07-14 Jason Merrill <jason@redhat.com>
6998 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
7001 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7003 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
7004 Remove erroneous line.
7006 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
7008 * params.opt (param_evrp_mode): Change default.
7010 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7012 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
7013 (sdot_prod, udot_prod): ...These.
7014 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
7015 (aarch64_<sur>dot<vsi2qi>): Rename to...
7016 (<sur>dot_prod<vsi2qi>): ...This.
7017 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
7020 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7022 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
7024 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7026 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
7028 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7030 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
7032 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7034 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
7035 (usdot_prod<vsi2qi>): ... This.
7036 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
7037 (usdot_prod): ...This.
7038 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
7039 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
7041 (@<sur>dot_prod<vsi2qi>): ...This.
7042 * config/aarch64/aarch64-sve-builtins-base.cc
7043 (svusdot_impl::expand): Use it.
7045 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7047 * optabs.def (usdot_prod_optab): New.
7048 * doc/md.texi: Document it and clarify other dot prod optabs.
7049 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
7050 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
7051 * optabs.c (expand_widen_pattern_expr): Likewise.
7052 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7053 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
7054 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
7056 (vect_widened_op_tree): Optionally ignore
7058 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
7060 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
7063 * config/i386/driver-i386.c (host_detect_local_cpu): Check
7064 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
7065 Enable UINTR only for 64-bit codegen.
7066 * config/i386/i386-options.c
7067 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
7069 * config/i386/i386.h (ARCH_ARG): New.
7070 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
7071 "[arch|tune] 64" for 64-bit codegen.
7073 2021-07-14 Richard Biener <rguenther@suse.de>
7075 PR tree-optimization/101445
7076 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
7077 of the IV in the correct direction for negative stride
7080 2021-07-14 Jakub Jelinek <jakub@redhat.com>
7083 * godump.c (godump_str_hash): New type.
7084 (godump_container::pot_dummy_types): Use string_hash instead of
7085 ptr_hash in the hash_set.
7087 2021-07-14 Richard Biener <rguenther@suse.de>
7089 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
7090 vector types where the old vector type has a multiple of
7091 the new vector type elements.
7092 (vect_create_partial_epilog): New function, split out from...
7093 (vect_create_epilog_for_reduction): ... here.
7094 (vect_transform_cycle_phi): Reduce the re-used accumulator
7095 to the new vector type.
7097 2021-07-14 Alexandre Oliva <oliva@adacore.com>
7099 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
7100 non-'t'-sized arg check.
7102 2021-07-14 Alexandre Oliva <oliva@adacore.com>
7104 * tree-cfg.c (cleanup_dead_labels_eh): Update
7105 post_landing_pad label upon change of landing pad block's
7107 (cleanup_dead_labels): Check that a removed label is not that
7110 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
7112 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
7114 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
7115 Add Neon to general purpose register case for zero-extend
7117 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
7118 case to prevent some cases opting to go through memory.
7119 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
7120 * rtl.c (rtvec_series_p): Define predicate to determine
7121 whether a vector contains a linear series of integers.
7122 * rtl.h (rtvec_series_p): Define.
7123 * rtlanal.c (vec_series_lowpart_p): Define predicate to
7124 determine if a vector selection is equivalent to the low part
7126 * rtlanal.h (vec_series_lowpart_p): Define.
7127 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
7128 Add vec_select -> subreg simplification.
7130 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
7132 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
7133 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
7134 _mm_test_mix_ones_zeros): New.
7136 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
7137 Richard Biener <rguenther@suse.de>
7139 * gimple.c (gimple_could_trap_p_1): Make S argument a
7140 "const gimple*". Preserve constness in call to
7141 gimple_asm_volatile_p.
7142 (gimple_could_trap_p): Make S argument a "const gimple*".
7143 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
7144 Update function prototypes.
7146 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7148 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
7149 (_loop_vec_info::main_loop_edge): New field.
7150 (_loop_vec_info::skip_main_loop_edge): Likewise.
7151 (_loop_vec_info::skip_this_loop_edge): Likewise.
7152 (_loop_vec_info::reusable_accumulators): Likewise.
7153 (_stmt_vec_info::reduc_scalar_results): Likewise.
7154 (_stmt_vec_info::reused_accumulator): Likewise.
7155 (vect_get_main_loop_result): Declare.
7156 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7157 reduc_scalar_inputs.
7158 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
7159 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
7160 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
7161 skip_main_loop_edge and skip_this_loop_edge fields.
7162 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
7163 (vect_emit_reduction_init_stmts): New function.
7164 (get_initial_def_for_reduction): Use it.
7165 (get_initial_defs_for_reduction): Likewise. Change the vinfo
7166 parameter to a loop_vec_info.
7167 (vect_create_epilog_for_reduction): Store the scalar results
7168 in the reduc_info. If an epilogue loop is reusing an accumulator
7169 from the main loop, and if the epilogue loop can also be skipped,
7170 try to place the reduction code in the join block. Record
7171 accumulators that could potentially be reused by epilogue loops.
7172 (vect_transform_cycle_phi): When vectorizing epilogue loops,
7173 try to reuse accumulators from the main loop. Record the initial
7174 value in reduc_info for non-SLP reductions too.
7176 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7178 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
7179 adjustment handling. Take the neutral value as an argument,
7180 in place of the code argument.
7181 (vect_transform_cycle_phi): Update accordingly. Handle the
7182 initial values of cond reductions separately from code reductions.
7183 Choose the adjustment here rather than in
7184 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
7186 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7188 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
7189 (neutral_op_for_reduction): ...this, providing a more general
7191 (vect_create_epilog_for_reduction): Update accordingly.
7192 (vectorizable_reduction): Likewise.
7193 (vect_transform_cycle_phi): Likewise.
7195 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7197 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
7198 reduc_info instead of the original stmt_vec_info.
7199 (vect_transform_cycle_phi): Update accordingly.
7201 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7203 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
7204 reduc_info as an additional parameter.
7205 (vect_transform_cycle_phi): Update accordingly.
7207 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7209 * tree-vectorizer.h: Include tree-ssa-operands.h.
7210 (vect_phi_initial_value): New function.
7211 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
7212 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
7213 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
7214 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
7216 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7218 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
7219 the phi results to vectype after creating them. Remove later
7220 conversion code that thus becomes redundant.
7222 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7224 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
7225 the new_phis vector with a reduc_inputs vector. Combine handling
7226 of reduction chains and ncopies > 1.
7228 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7230 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
7231 scalar_results to group_size elements after reducing down from
7232 N*group_size elements. Construct an array_slice of the live-out
7233 stmts and assert that there is one stmt per scalar result.
7235 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7237 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7238 nested_in_vect_loop and use double_reduc everywhere. Remove dead
7239 assignment to "loop".
7241 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
7243 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
7244 vector types first. For scalar types, consider both the preferred
7245 vector mode and the alternative vector modes.
7246 * optabs-query.c (can_vec_mask_load_store_p): Use the same
7247 structure as above, in particular using related_vector_mode
7248 for modes provided by autovectorize_vector_modes.
7250 2021-07-13 Jakub Jelinek <jakub@redhat.com>
7251 Richard Biener <rguenther@suse.de>
7253 PR tree-optimization/101419
7254 * tree-pass.h (PROP_objsz): Define.
7255 (make_pass_early_object_sizes): Declare.
7256 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
7257 there to pass_early_object_sizes, drop parameter.
7258 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
7259 drop parameter, move pass_post_ipa_warn right after that.
7260 * tree-object-size.c (pass_object_sizes::execute): Rename to...
7261 (object_sizes_execute): ... this. Add insert_min_max_p argument.
7262 (pass_data_object_sizes): Move after object_sizes_execute.
7263 (pass_object_sizes): Likewise. In execute method call
7264 object_sizes_execute, drop set_pass_param method and insert_min_max_p
7265 non-static data member and its initializer in the ctor.
7266 (pass_data_early_object_sizes, pass_early_object_sizes,
7267 make_pass_early_object_sizes): New.
7268 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
7269 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
7271 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
7274 * config/riscv/constraints.md ("S"): Update description and remove
7276 * doc/md.texi (Machine Constraints): Document the 'S' constraints
7279 2021-07-13 Richard Biener <rguenther@suse.de>
7282 2021-07-12 Richard Biener <rguenther@suse.de>
7284 * tree-vect-slp.c (vect_slp_region): Show the number of
7285 SLP graph entries in the optimization message.
7287 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
7289 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
7291 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
7292 return type to long.
7293 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
7296 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
7298 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
7299 Query relation between the 2 operands and use it.
7301 2021-07-12 Sergei Trofimovich <siarheit@google.com>
7303 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
7305 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
7308 * config/i386/predicates.md (vec_setm_sse41_operand):
7309 Rename from vec_setm_operand.
7310 (vec_setm_avx2_operand): New predicate.
7311 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
7312 Use vec_setm_sse41_operand as operand 2 predicate.
7313 (vec_set<V_256_512:mode): New expander.
7314 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
7315 as operand 2 predicate.
7317 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
7319 PR tree-optimization/101335
7320 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
7322 2021-07-12 Andrew Pinski <apinski@marvell.com>
7324 * tree-ssa-phiopt.c (match_simplify_replacement): Move
7325 insert of the sequence before the movement of the
7326 statement. Check if to see if the statement is used
7327 outside of the original phi to see if we should move it.
7329 2021-07-12 Richard Biener <rguenther@suse.de>
7331 * dump-context.h (debug_dump_context::debug_dump_context):
7332 Add FILE * parameter defaulted to stderr.
7333 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
7334 * tree-vect-slp.c (dot_slp_tree): New functions.
7336 2021-07-12 Richard Biener <rguenther@suse.de>
7338 PR tree-optimization/101373
7339 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
7340 references when the BB may not return.
7341 (compute_avail): Pass in the function we're working on and
7342 replace cfun references with it. Externally throwing
7343 const calls also possibly terminate the function.
7344 (pass_pre::execute): Pass down the function we're working on.
7345 * gcse.c (compute_hash_table_work): Externally throwing
7346 const/pure calls also need record_last_mem_set_info.
7347 * postreload-gcse.c (record_opr_changes): Looping or externally
7348 throwing const/pure calls also need record_last_mem_set_info.
7350 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
7352 * recog.c (memory_address_addr_space_p): Change the type to bool.
7353 Return true/false instead of 1/0.
7354 (offsettable_memref_p): Ditto.
7355 (offsettable_nonstrict_memref_p): Ditto.
7356 (offsettable_address_addr_space_p): Ditto.
7357 Change the type of addressp indirect function to bool.
7358 * recog.h (memory_address_addr_space_p): Change the type to bool.
7359 (strict_memory_address_addr_space_p): Ditto.
7360 (offsettable_memref_p): Ditto.
7361 (offsettable_nonstrict_memref_p): Ditto.
7362 (offsettable_address_addr_space_p): Ditto.
7363 * reload.c (maybe_memory_address_addr_space_p): Ditto.
7364 (strict_memory_address_addr_space_p): Change the type to bool.
7365 Return true/false instead of 1/0.
7366 (maybe_memory_address_addr_space_p): Change the type to bool.
7368 2021-07-12 Richard Biener <rguenther@suse.de>
7370 * tree-vect-slp.c (vect_slp_region): Show the number of
7371 SLP graph entries in the optimization message.
7373 2021-07-12 Richard Biener <rguenther@suse.de>
7375 PR tree-optimization/101394
7376 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
7377 copies from abnormals for a full redundancy.
7379 2021-07-12 Richard Biener <rguenther@suse.de>
7381 PR middle-end/101423
7382 * gimple.c (gimple_could_trap_p_1): Internal function calls
7384 * tree-eh.c (tree_could_trap_p): Likewise.
7386 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7389 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
7391 (vmulq_n_u32): Likewise.
7392 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
7393 (vmulq_n_f32): Likewise.
7394 (vmul_n_f16): Likewise.
7395 (vmulq_n_f16): Likewise.
7397 2021-07-12 Martin Liska <mliska@suse.cz>
7400 * gcc.c (check_offload_target_name): Call
7401 candidates_list_and_hint only if we have a candidate.
7403 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7406 * config/arm/neon.md (vec_init): Move to ...
7407 * config/arm/vec-common.md (vec_init): ... here.
7408 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
7410 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
7412 PR tree-optimization/101403
7413 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
7414 signedness of the shift is not the same as the signedness of
7417 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
7418 Uroš Bizjak <ubizjak@gmail.com>
7420 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
7421 divmod of a constant numerator with new define_insn_and_split.
7423 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
7426 * config/i386/i386-expand.c (ix86_expand_call): If a call is
7427 to a non-local-binding, or local but to a public symbol, then
7428 assume that it might be indirected via the lazy symbol binder.
7429 Mark R10 and R10 as clobbered in that case.
7431 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
7434 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
7435 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
7436 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
7438 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
7440 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
7441 log2 range of operands[3] to [1,31].
7442 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
7444 2021-07-09 Sergei Trofimovich <siarheit@google.com>
7446 * doc/md.texi: Don't split @smallexample in multiple @groups.
7448 2021-07-09 Sergei Trofimovich <siarheit@google.com>
7450 * doc/md.texi: Add missing 'see' word.
7452 2021-07-09 Andrew Pinski <apinski@marvell.com>
7454 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
7455 to take sequence and gimple_match_op. Accept the case where
7456 op is a SSA_NAME and one statement in the sequence.
7457 Also allow constants.
7458 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
7459 Update call to phiopt_early_allow. Discard the sequence if not
7462 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
7467 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
7468 instead of ISA_HAS_MSA.
7469 (mips_expand_vec_unpack): Likewise.
7470 (mips_expand_vector_init): Likewise.
7472 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
7474 * config/rs6000/vsx.md (mods_<mode>): Rename to...
7475 (mod<mode>3): ... this.
7476 (modu_<mode>): Rename to...
7477 (umod<mode>3): ... this.
7478 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
7481 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
7483 * config/h8300/shiftrotate.md (variable shifts): Expose condition
7484 code handling for the test before the loop.
7486 2021-07-08 Martin Jambor <mjambor@suse.cz>
7489 * ipa-sra.c (class isra_call_summary): New member
7490 m_before_any_store, initialize it in the constructor.
7491 (isra_call_summary::dump): Dump the new field.
7492 (ipa_sra_call_summaries::duplicate): Copy it.
7493 (process_scan_results): Set it.
7494 (isra_write_edge_summary): Stream it.
7495 (isra_read_edge_summary): Likewise.
7496 (param_splitting_across_edge): Only override
7497 safe_to_import_accesses if m_before_any_store is set.
7499 2021-07-08 Martin Sebor <msebor@redhat.com>
7502 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
7503 Use Object Size Type 0 instead of 1.
7505 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
7507 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
7510 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
7512 * match.pd: Simplify an extend-operate-truncate sequence involving
7515 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
7516 Richard Biener <rguenther@suse.de>
7518 PR tree-optimization/40210
7519 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
7520 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
7521 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
7523 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
7526 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
7528 * config/i386/mmx.md (V_32): New mode iterator.
7529 (mov<V_32:mode>): Use V_32 mode iterator.
7530 (*mov<V_32:mode>_internal): Ditto.
7531 (*push<V_32:mode>2_rex64): Ditto.
7532 (*push<V_32:mode>2): Ditto.
7533 (movmisalign<V_32:mode>): Ditto.
7534 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
7535 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
7536 (vec_unpacks_lo_v4qi): New expander.
7537 (vec_unpacks_hi_v4qi): Ditto.
7538 (vec_unpacku_lo_v4qi): Ditto.
7539 (vec_unpacku_hi_v4qi): Ditto.
7540 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
7541 (VALID_INT_MODE_P): Ditto.
7543 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
7546 * config/rs6000/rs6000.md (udivti3): New insn.
7548 (umodti3): New insn.
7551 2021-07-07 Martin Sebor <msebor@redhat.com>
7553 PR tree-optimization/100137
7554 PR tree-optimization/99121
7555 PR tree-optimization/97027
7556 * builtins.c (access_ref::access_ref): Also set offmax.
7557 (access_ref::offset_in_range): Define new function.
7558 (access_ref::add_offset): Set offmax.
7559 (access_ref::inform_access): Handle access_none.
7560 (handle_mem_ref): Clear ostype.
7561 (compute_objsize_r): Handle ASSERT_EXPR.
7562 * builtins.h (struct access_ref): Add offmax member.
7563 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
7564 compute_objsize() and simplify.
7566 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
7568 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
7569 and VSX_BUILTIN_STXVP.
7571 2021-07-07 Martin Sebor <msebor@redhat.com>
7574 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
7575 a stray %K from error_at() missed in r12-2088.
7577 2021-07-07 Richard Biener <rguenther@suse.de>
7579 PR tree-optimization/99728
7580 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
7582 (mem_refs_may_alias_p): Add assert we handled aggregate
7584 (sm_seq_valid_bb): Give up when running into aggregate copies.
7585 (ref_indep_loop_p): Handle aggregate copies as never
7586 being invariant themselves but allow other refs to be
7587 disambiguated against them.
7588 (can_sm_ref_p): Do not try to apply store-motion to aggregate
7591 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
7594 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
7597 2021-07-06 Martin Sebor <msebor@redhat.com>
7599 * gimple-pretty-print.c (percent_G_format): Remove.
7600 * tree-diagnostic.c (default_tree_printer): Remove calls.
7601 * tree-pretty-print.c (percent_K_format): Remove.
7602 * tree-pretty-print.h (percent_K_format): Remove.
7604 2021-07-06 Martin Sebor <msebor@redhat.com>
7606 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
7607 Remove %K and use error_at.
7608 (aarch64_expand_fcmla_builtin): Same.
7609 (aarch64_expand_builtin_tme): Same.
7610 (aarch64_expand_builtin_memtag): Same.
7611 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
7612 (arm_expand_builtin): Same.
7613 * config/arm/arm.c (bounds_check): Same.
7615 2021-07-06 Martin Sebor <msebor@redhat.com>
7617 * builtins.c (warn_string_no_nul): Remove %G.
7618 (maybe_warn_for_bound): Same.
7619 (warn_for_access): Same.
7620 (check_access): Same.
7621 (check_strncat_sizes): Same.
7622 (expand_builtin_strncat): Same.
7623 (expand_builtin_strncmp): Same.
7624 (expand_builtin): Same.
7625 (expand_builtin_object_size): Same.
7626 (warn_dealloc_offset): Same.
7627 (maybe_emit_free_warning): Same.
7628 * calls.c (maybe_warn_alloc_args_overflow): Same.
7629 (maybe_warn_nonstring_arg): Same.
7630 (maybe_warn_rdwr_sizes): Same.
7631 * expr.c (expand_expr_real_1): Remove %K.
7632 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
7633 (gimple_fold_builtin_strncat): Same.
7634 * gimple-ssa-sprintf.c (format_directive): Same.
7635 (handle_printf_call): Same.
7636 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
7637 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
7638 (maybe_diag_access_bounds): Same. Call gimple_location.
7639 (check_bounds_or_overlap): Same.
7640 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
7641 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
7642 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
7643 (maybe_diag_stxncpy_trunc): Same.
7644 (handle_builtin_stxncpy_strncat): Same.
7645 (maybe_warn_pointless_strcmp): Same.
7646 * tree-ssa-uninit.c (maybe_warn_operand): Same.
7648 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
7651 * config/i386/predicates.md (vec_setm_operand): Enable
7652 register_operand for TARGET_SSE4_1.
7653 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
7654 as operand 2 predicate. Call ix86_expand_vector_set_var
7655 for non-constant index operand.
7656 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
7657 Call ix86_expand_vector_set_var for non-constant index operand.
7659 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
7661 * config/h8300/jumpcall.md (*branch): When possible, generate
7662 the comparison in CCZN mode.
7663 * config/h8300/predicates.md (simple_memory_operand): Reject all
7664 auto-increment addressing modes.
7666 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
7669 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
7672 2021-07-06 Richard Biener <rguenther@suse.de>
7674 * doc/md.texi (vec_fmaddsub<mode>4): Document.
7675 (vec_fmsubadd<mode>4): Likewise.
7676 * optabs.def (vec_fmaddsub$a4): Add.
7677 (vec_fmsubadd$a4): Likewise.
7678 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
7679 (IFN_VEC_FMSUBADD): Likewise.
7680 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
7681 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
7682 (addsub_pattern::build): Likewise.
7683 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
7684 and CFN_VEC_FMSUBADD are not transparent for permutes.
7685 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
7686 (vec_fmsubadd<mode>4): Likewise.
7688 2021-07-06 Richard Biener <rguenther@suse.de>
7690 * doc/invoke.texi (fmove-loop-stores): Document.
7691 * common.opt (fmove-loop-stores): New option.
7692 * opts.c (default_options_table): Enable -fmove-loop-stores
7694 * tree-ssa-loop-im.c (pass_lim::execute): Pass
7695 flag_move_loop_stores instead of true to
7696 loop_invariant_motion_in_fun.
7698 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
7700 * doc/install.texi: Document --with-dsymutil.
7702 2021-07-06 Andrew Pinski <apinski@marvell.com>
7704 PR tree-optimization/101256
7705 * dbgcnt.def (phiopt_edge_range): New counter.
7706 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
7707 Check to make sure the new name is defined in the same
7708 bb as the conditional before duplicating range info.
7709 Also add debug counter.
7711 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
7713 PR rtl-optimization/100328
7714 * config/i386/i386-options.c (ix86_option_override_internal):
7715 Set param_ira_consider_dup_in_all_alts to 0.
7717 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
7719 PR rtl-optimization/100328
7720 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
7722 * ira.c (ira_get_dup_out_num): Adjust as parameter
7723 param_ira_consider_dup_in_all_alts.
7724 * params.opt (ira-consider-dup-in-all-alts): New.
7725 * ira-conflicts.c (process_regs_for_copy): Add one parameter
7726 single_input_op_has_cstr_p.
7727 (get_freq_for_shuffle_copy): New function.
7728 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
7729 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
7731 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
7733 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
7734 generate condition code aware RTL directly.
7736 2021-07-05 Andrew Pinski <apinski@marvell.com>
7738 PR tree-optimization/101039
7739 * match.pd (A CMP 0 ? A : -A): New patterns.
7740 * tree-ssa-phiopt.c (abs_replacement): Delete function.
7741 (tree_ssa_phiopt_worker): Don't call abs_replacement.
7742 Update comment about abs_replacement.
7744 2021-07-05 Andrew Pinski <apinski@marvell.com>
7746 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
7747 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
7749 2021-07-05 Andrew Pinski <apinski@marvell.com>
7751 * tree-ssa-phiopt.c (match_simplify_replacement):
7752 Add early_p argument. Call gimple_simplify_phiopt
7753 instead of gimple_simplify.
7754 (tree_ssa_phiopt_worker): Update call to
7755 match_simplify_replacement and allow unconditionally.
7756 (phiopt_early_allow): New function.
7757 (gimple_simplify_phiopt): New function.
7759 2021-07-05 Andrew Pinski <apinski@marvell.com>
7761 PR middle-end/101237
7762 * fold-const.c (negate_expr_p): Remove call to element_mode
7763 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
7764 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
7765 (fold_negate_expr_1): Likewise.
7766 (const_unop): Likewise.
7767 (fold_cond_expr_with_comparison): Likewise.
7768 (fold_binary_loc): Likewise.
7769 (fold_ternary_loc): Likewise.
7770 (tree_call_nonnegative_warnv_p): Likewise.
7771 * match.pd (-(A + B) -> (-B) - A): Likewise.
7773 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
7775 * configure.ac: Handle --with-dsymutil in the same way as we
7776 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
7777 Extract the type and version for the dsymutil configured or
7778 found by the default searches.
7779 * config.in: Regenerated.
7780 * configure: Regenerated.
7781 * collect2.c (do_dsymutil): Handle locating dsymutil in the
7782 same way as for the assembler and linker.
7783 * config/darwin.h (DSYMUTIL): Delete.
7784 * gcc.c: Report a configured dsymutil correctly.
7785 * exec-tool.in: Allow for dsymutil.
7787 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
7789 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
7790 Handle V4QI and V2HI modes.
7791 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
7792 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
7793 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
7794 Handle 4-byte dual operands with TARGET_XOP and single operands
7795 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
7796 mmx_pshufbv4qi3 for TARGET_SSSE3.
7797 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
7798 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
7799 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
7800 (expand_vec_perm_even_odd_1): Handle V4QI mode.
7801 (expand_vec_perm_broadcast_1): Handle V4QI mode.
7802 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
7803 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
7804 (mmx_pshufbv4qi3): Ditto.
7805 (*mmx_pblendw32): Ditto.
7806 (*mmx_pblendw64): Rename from *mmx_pblendw.
7807 (mmx_punpckhbw_low): New insn_and_split pattern.
7808 (mmx_punpcklbw_low): Ditto.
7810 2021-07-05 Richard Biener <rguenther@suse.de>
7812 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
7813 set LOOP_C_INFINITE on the vectorized loop.
7815 2021-07-05 Richard Biener <rguenther@suse.de>
7817 PR middle-end/101291
7818 * cfgloopmanip.c (loop_version): Set the loop copy of the
7819 versioned loop to the new loop.
7821 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
7824 * config.gcc: Ensure that Darwin biarch definitions are
7825 added before i386.h.
7826 * config/i386/darwin.h (TARGET_64BIT): Remove.
7827 (PR80556_WORKAROUND): New.
7828 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
7829 (DARWIN_SUBARCH_SPEC): New.
7830 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
7831 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
7832 (REAL_LIBGCC_SPEC): Remove.
7833 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
7834 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
7835 (REAL_LIBGCC_SPEC): Remove.
7837 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
7839 PR middle-end/101294
7840 * expr.c (store_constructor): Don't use vec_duplicate on vector.
7842 2021-07-02 Martin Sebor <msebor@redhat.com>
7846 * diagnostic.c (get_any_inlining_info): New.
7847 (update_effective_level_from_pragmas): Handle inlining context.
7848 (diagnostic_enabled): Same.
7849 (diagnostic_report_diagnostic): Same.
7850 * diagnostic.h (struct diagnostic_info): Add ctor.
7851 (struct diagnostic_context): Add new member.
7852 * tree-diagnostic.c (set_inlining_locations): New.
7853 (tree_diagnostics_defaults): Set new callback pointer.
7855 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
7857 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
7859 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
7860 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
7861 lxvp and stxvp built-ins.
7862 (mma_init_builtins): Handle lxvp and stxvp built-ins.
7863 (builtin_function_type): Likewise.
7864 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
7866 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
7868 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
7869 additional argument for the code.
7870 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
7871 argument for the code. Just return if the ZN bits are useful or
7872 not rather than the old style CC_* enums.
7873 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
7874 more generic shiftqi patterns.
7875 (shifthi_noscratch, shiftsi_noscratch): Similarly.
7876 (shiftqi_noscratch_set_flags): New pattern.
7877 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
7879 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
7881 PR tree-optimization/101223
7882 * range-op.cc (build_lt): Add -1 for signed values.
7883 (built_gt): Subtract -1 for signed values.
7885 2021-07-02 David Faust <david.faust@oracle.com>
7887 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
7888 (btf_asm_type): Likewise.
7890 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
7892 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
7893 an array of rtx rather than a pointer to rtx. Add code argument.
7894 (compute_a_shift_length): Similarly.
7895 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
7896 shift itself isn't an operand. Create dummy operand[0] to carry
7897 a mode and pass a suitable rtx code to compute_a_shift_length.
7898 (get_shift_alg): Adjust operand number of clobber in output templates.
7899 (output_a_shift): Make first argument an array of rtx rather than
7900 a pointer to rtx. Add code argument for the type of shift.
7901 Adjust now that the shift itself is no longer an operand.
7902 (compute_a_shift_length): Similarly.
7903 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
7904 iterator rather than nshift_operator.
7905 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
7906 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
7907 and compute_a_shift_length.
7908 (shiftqi_noscratch_clobber_flags): Likewise.
7909 (shifthi_noscratch_clobber_flags): Likewise.
7910 (shiftsi_noscratch_clobber_flags): Likewise.
7912 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
7915 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
7916 dsymutil for BTF/CTF.
7918 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
7921 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
7922 segment to include BTF.
7923 (BTF_INFO_SECTION_NAME): New.
7925 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
7927 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
7928 (small_data_operand, memreg_operand, small_insn_p): Likewise.
7929 * config/m32r/m32r.c (call_operand): Adjust return type.
7930 (small_data_operand, memreg_operand): Likewise.
7932 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
7934 * config/frv/frv-protos.h (integer_register_operand): Adjust return
7936 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
7937 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
7938 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
7939 (move_source_operand, move_destination_operand): Likewise.
7940 (condexec_source_operand, condexec_dest_operand): Likewise.
7941 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
7942 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
7943 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
7944 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
7945 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
7946 (even_fpr_operand, odd_fpr_operand): Likewise.
7947 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
7948 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
7949 (uint4_operand, uint1_operand, int_2word_operand): Likewise
7950 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
7951 (relational_operator, float_relational_operator): Likewise.
7952 (ccr_eqne_operator, minmax_operator): Likewise.
7953 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
7954 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
7955 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
7956 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
7957 (quad_acc_operand, accg_operand): Likewise.
7959 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
7961 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
7962 return type to a bool.
7963 (nonimmediate_nonstack_operand): Likewise.
7964 (xstormy16_splittable_below100_operand): Likewise.
7965 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
7967 (xstormy16_splittable_below100_operand): Likewise.
7969 2021-07-02 Richard Biener <rguenther@suse.de>
7971 PR tree-optimization/101293
7972 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
7973 with combined offsets.
7974 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
7975 combined with the rest of the offset.
7977 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
7979 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
7980 PIC encodings for PE-COFF targets.
7982 2021-07-02 Jakub Jelinek <jakub@redhat.com>
7985 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
7986 Return nullptr for TImode inner mode.
7988 2021-07-02 Richard Biener <rguenther@suse.de>
7990 PR tree-optimization/101280
7991 PR tree-optimization/101173
7992 * gimple-loop-interchange.cc
7993 (tree_loop_interchange::valid_data_dependences): Properly
7994 guard all dependence checks with DDR_REVERSED_P or its
7997 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
7999 * config/i386/i386-expand.c (ix86_expand_builtin):
8000 Add branch to clear odata when ZF is set for asedecenc_expand
8001 and wideaesdecenc_expand.
8003 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
8005 * config/i386/gcc-auto-profile: regenerate
8007 2021-07-02 liuhongt <hongtao.liu@intel.com>
8009 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
8010 (trunc<mode><pmov_dst_4_lower>2): this.
8012 2021-07-01 David Malcolm <dmalcolm@redhat.com>
8014 * diagnostic.h (diagnostic_context::m_file_cache): New field.
8015 * input.c (class fcache): Rename to...
8016 (class file_cache_slot): ...this, making most members private and
8017 prefixing fields with "m_".
8018 (file_cache_slot::get_file_path): New accessor.
8019 (file_cache_slot::get_use_count): New accessor.
8020 (file_cache_slot::missing_trailing_newline_p): New accessor.
8021 (file_cache_slot::inc_use_count): New.
8022 (fcache_buffer_size): Move to...
8023 (file_cache_slot::buffer_size): ...here.
8024 (fcache_line_record_size): Move to...
8025 (file_cache_slot::line_record_size): ...here.
8026 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
8027 (fcache_tab_size): Move to file_cache::num_file_slots.
8028 (diagnostic_file_cache_init): Update for move of fcache_tab
8029 to global_dc->m_file_cache.
8030 (diagnostic_file_cache_fini): Likewise.
8031 (lookup_file_in_cache_tab): Convert to...
8032 (file_cache::lookup_file): ...this.
8033 (diagnostics_file_cache_forcibly_evict_file): Update for move of
8034 fcache_tab to global_dc->m_file_cache, moving most of
8035 implementation to...
8036 (file_cache::forcibly_evict_file): ...this new function and...
8037 (file_cache_slot::evict): ...this new function.
8038 (evicted_cache_tab_entry): Convert to...
8039 (file_cache::evicted_cache_tab_entry): ...this.
8040 (add_file_to_cache_tab): Convert to...
8041 (file_cache::add_file): ...this, moving bulk of implementation
8043 (file_cache_slot::create): ..this new function.
8044 (file_cache::file_cache): New.
8045 (file_cache::~file_cache): New.
8046 (lookup_or_add_file_to_cache_tab): Convert to...
8047 (file_cache::lookup_or_add_file): ..this new function.
8048 (fcache::fcache): Rename to...
8049 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
8051 (fcache::~fcache): Rename to...
8052 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
8054 (needs_read): Convert to...
8055 (file_cache_slot::needs_read_p): ...this.
8056 (needs_grow): Convert to...
8057 (file_cache_slot::needs_grow_p): ...this.
8058 (maybe_grow): Convert to...
8059 (file_cache_slot::maybe_grow): ...this.
8060 (read_data): Convert to...
8061 (file_cache_slot::read_data): ...this.
8062 (maybe_read_data): Convert to...
8063 (file_cache_slot::maybe_read_data): ...this.
8064 (get_next_line): Convert to...
8065 (file_cache_slot::get_next_line): ...this.
8066 (goto_next_line): Convert to...
8067 (file_cache_slot::goto_next_line): ...this.
8068 (read_line_num): Convert to...
8069 (file_cache_slot::read_line_num): ...this.
8070 (location_get_source_line): Update for moving of globals to
8071 global_dc->m_file_cache.
8072 (location_missing_trailing_newline): Likewise.
8073 * input.h (class file_cache_slot): New forward decl.
8074 (class file_cache): New.
8076 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
8078 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
8079 128-bit floating point conditional move support.
8080 (have_compare_and_set_mask): Add IEEE 128-bit floating point
8082 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
8083 (mov<mode>cc_p10, IEEE128 iterator): New insn.
8084 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
8085 (fpmask<mode>, IEEE128 iterator): New insn.
8086 (xxsel<mode>, IEEE128 iterator): New insn.
8088 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
8091 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
8093 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
8095 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8097 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
8099 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
8100 (vec_duplicate<mode>): New expander.
8102 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
8105 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8107 (ix86_byte_broadcast): New function.
8108 (ix86_convert_const_wide_int_to_broadcast): Likewise.
8109 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
8110 size is 16 bytes or bigger.
8111 (ix86_broadcast_from_integer_constant): New function.
8112 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
8113 to broadcast if mode size is 16 bytes or bigger.
8114 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
8116 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
8118 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
8120 * config/i386/predicates.md (ix86_endbr_immediate_operand):
8121 Return true/false instead of 1/0.
8122 (movq_parallel): Ditto.
8124 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
8126 * recog.c (general_operand): Return true/false instead of 1/0.
8127 (register_operand): Ditto.
8128 (immediate_operand): Ditto.
8129 (const_int_operand): Ditto.
8130 (const_scalar_int_operand): Ditto.
8131 (const_double_operand): Ditto.
8132 (push_operand): Ditto.
8133 (pop_operand): Ditto.
8134 (memory_operand): Ditto.
8135 (indirect_operand): Ditto.
8137 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
8139 * genpreds.c (write_predicate_subfunction):
8140 Change the type of written subfunction to bool.
8141 (write_one_predicate_function):
8142 Change the type of written function to bool.
8143 (write_tm_preds_h): Ditto.
8144 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
8145 * recog.c (general_operand): Change the type to bool.
8146 (address_operand): Ditto.
8147 (register_operand): Ditto.
8148 (pmode_register_operand): Ditto.
8149 (scratch_operand): Ditto.
8150 (immediate_operand): Ditto.
8151 (const_int_operand): Ditto.
8152 (const_scalar_int_operand): Ditto.
8153 (const_double_operand): Ditto.
8154 (nonimmediate_operand): Ditto.
8155 (nonmemory_operand): Ditto.
8156 (push_operand): Ditto.
8157 (pop_operand): Ditto.
8158 (memory_operand): Ditto.
8159 (indirect_operand): Ditto.
8160 (ordered_comparison_operator): Ditto.
8161 (comparison_operator): Ditto.
8162 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
8163 Change the type of indirect predicate function to bool.
8164 * config/rs6000/rs6000.c (easy_vector_constant):
8165 Change the type to bool.
8166 * config/mips/mips-protos.h (m16_based_address_p):
8167 Change the type of operand 3 to bool.
8169 2021-07-01 Richard Biener <rguenther@suse.de>
8171 PR tree-optimization/101280
8172 PR tree-optimization/101173
8173 * gimple-loop-interchange.cc
8174 (tree_loop_interchange::valid_data_dependences): Revert
8175 previous change and instead correctly handle DDR_REVERSED_P
8178 2021-07-01 Richard Biener <rguenther@suse.de>
8180 PR tree-optimization/101278
8181 * tree-ssa-dse.c (dse_classify_store): First check for
8182 uses, then ignore stmt for chaining purposes.
8184 2021-07-01 Richard Biener <rguenther@suse.de>
8186 PR tree-optimization/100778
8187 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
8188 vectorized ops ahead of their scalar BB.
8190 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
8193 * config/i386/i386.md (*nabs<dwi>2_doubleword):
8194 New insn_and_split pattern.
8195 (*nabs<dwi>2_1): Ditto.
8196 * config/i386/i386-features.c
8197 (general_scalar_chain::compute_convert_gain):
8198 Handle (NEG (ABS (...))) RTX. Rewrite src code
8199 scanner as switch statement.
8200 (general_scalar_chain::convert_insn):
8201 Handle (NEG (ABS (...))) RTX.
8202 (general_scalar_to_vector_candidate_p):
8203 Detect (NEG (ABS (...))) RTX. Reorder case statements
8204 for (AND (NOT (...) ...)) fallthrough.
8206 2021-07-01 Richard Biener <rguenther@suse.de>
8208 PR tree-optimization/101178
8209 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
8210 (slpg::perm_in): Add.
8211 (slpg::get_perm_in): Remove.
8212 (slpg::get_perm_materialized): Add.
8213 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
8214 during permute propagation and materialization.
8216 2021-07-01 Jakub Jelinek <jakub@redhat.com>
8219 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
8221 2021-07-01 Jakub Jelinek <jakub@redhat.com>
8224 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
8225 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
8226 use boolean_type_node instead of integer_type_node as NE_EXPR type.
8227 (lower_reduction_clauses): Likewise.
8229 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
8231 * config/gcn/gcn.c: Include dwarf2.h.
8232 (gcn_addr_space_debug): New function.
8233 (TARGET_ADDR_SPACE_DEBUG): New hook.
8235 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
8237 * common/config/gcn/gcn-common.c
8238 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
8239 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
8241 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
8242 (gcn_frame_pointer_rqd): New function.
8243 (TARGET_FRAME_POINTER_REQUIRED): New hook.
8245 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
8247 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
8248 prologue register saves.
8249 (gcn_debug_unwind_info): Use UI_DWARF2.
8250 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
8251 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
8252 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
8253 (DWARF_LINK_REGISTER): New define.
8254 (FIRST_PSEUDO_REGISTER): Increment.
8255 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
8256 (CALL_USED_REGISTERS): Likewise.
8257 (REGISTER_NAMES): Likewise.
8259 2021-06-30 Richard Biener <rguenther@suse.de>
8261 PR tree-optimization/101267
8262 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
8263 API and use SLP compatible interface of vect_is_simple_use.
8264 Reject not vectorized SLP defs for callers that do not support
8266 (vect_check_store_rhs): Handle masked stores and pass down
8267 the appropriate operator index.
8268 (vectorizable_call): Adjust.
8269 (vectorizable_store): Likewise.
8270 (vectorizable_load): Likewise. Handle SLP pecularity of
8272 (vect_is_simple_use): Remove special-casing of masked stores.
8274 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
8276 * common.opt (foffload): Remove help as Driver only.
8277 * gcc.c (display_help): Add -foffload.
8279 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
8281 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
8282 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
8283 a candidate list; better inform no offload target is configured
8284 and fix hint extraction when passed target is not '\0' at [len].
8285 * common.opt (foffload): Add tailing '.'.
8286 (foffload-options): Likewise; fix flag name in the help string.
8288 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8291 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
8292 (vcage_f32): Gate comparison on __FAST_MATH__.
8293 (vcageq_f32): Likewise.
8294 (vcale_f32): Likewise.
8295 (vcaleq_f32): Likewise.
8296 (vcagt_f32): Likewise.
8297 (vcagtq_f32): Likewise.
8298 (vcalt_f32): Likewise.
8299 (vcaltq_f32): Likewise.
8300 (vcage_f16): Likewise.
8301 (vcageq_f16): Likewise.
8302 (vcale_f16): Likewise.
8303 (vcaleq_f16): Likewise.
8304 (vcagt_f16): Likewise.
8305 (vcagtq_f16): Likewise.
8306 (vcalt_f16): Likewise.
8307 (vcaltq_f16): Likewise.
8309 2021-06-30 Richard Biener <rguenther@suse.de>
8311 PR tree-optimization/101264
8312 * tree-vect-slp.c (vect_optimize_slp): Propagate the
8313 computed perm_in to all "any" permute successors
8314 we cannot de-duplicate immediately.
8316 2021-06-30 liuhongt <hongtao.liu@intel.com>
8319 * config/i386/sse.md
8320 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
8322 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
8324 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
8325 * config/i386/subst.md (maskz_scalar): New define_subst.
8326 (maskz_scalar_name): New subst_attr.
8327 (maskz_scalar_op5): Ditto.
8328 (round_saeonly_maskz_scalar_op5): Ditto.
8329 (round_saeonly_maskz_scalar_operand5): Ditto.
8331 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
8333 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
8334 Increase code CSECT alignment to at least 32 bytes.
8335 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
8336 alignment designation.
8338 2021-06-29 Sergei Trofimovich <siarheit@google.com>
8340 * doc/generic.texi: Fix s/net yet/not yet/ typo.
8342 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
8344 PR tree-optimization/101254
8345 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
8346 wrapping/non-wrapping when setting the result range.
8348 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
8350 * value-query.cc (gimple_range_global): Allow phis.
8352 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
8354 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
8355 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
8356 statement for location context.
8357 (check_for_binary_op_overflow): Ditto.
8358 (simplify_using_ranges::get_vr_for_comparison): Ditto.
8359 (simplify_using_ranges::compare_name_with_value): Ditto.
8360 (simplify_using_ranges::compare_names): Ditto.
8361 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
8362 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
8363 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
8364 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
8365 (simplify_using_ranges::two_valued_val_range_p): Ditto.
8366 (simplify_using_ranges::simplify): Ditto.
8367 * vr-values.h: Adjust prototypes.
8369 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
8372 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
8374 2021-06-29 Julian Brown <julian@codesourcery.com>
8376 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
8377 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
8378 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
8380 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
8381 (MAX_FIXED_MODE_SIZE): Change to 128.
8383 2021-06-29 Julian Brown <julian@codesourcery.com>
8385 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
8386 (s_mnemonic): Add clrsb.
8387 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
8388 (clrsb<mode>2): Add expander for SImode/DImode.
8390 2021-06-29 Julian Brown <julian@codesourcery.com>
8392 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
8393 muldi3): Add patterns.
8395 2021-06-29 Julian Brown <julian@codesourcery.com>
8397 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
8398 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
8400 2021-06-29 Julian Brown <julian@codesourcery.com>
8402 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
8404 2021-06-29 Joseph Myers <joseph@codesourcery.com>
8406 * btfout.c, ctfout.c: Include "memmodel.h".
8408 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
8410 * gcc.c (check_offload_target_name): Cast len argument to
8411 %q.*s to 'int'; avoid -Wstringop-truncation warning.
8413 2021-06-29 Richard Biener <rguenther@suse.de>
8415 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
8416 to "any" permute nodes and relax "any" permute proapgation
8417 during iterative backward propagation.
8419 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
8422 * common.opt (-foffload=): Update description.
8423 (-foffload-options=): New.
8424 * doc/invoke.texi (C Language Options): Document
8425 -foffload and -foffload-options.
8426 * gcc.c (check_offload_target_name): New, split off from
8427 handle_foffload_option.
8428 (check_foffload_target_names): New.
8429 (handle_foffload_option): Handle -foffload=default.
8430 (driver_handle_option): Update for -foffload-options.
8431 * lto-opts.c (lto_write_options): Use -foffload-options
8432 instead of -foffload.
8433 * lto-wrapper.c (merge_and_complain, append_offload_options):
8435 * opts.c (common_handle_option): Likewise.
8437 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
8439 * doc/invoke.texi (C Language Options): Sort options
8440 alphabetically in optlist and also the description itself.
8441 Remove leftover -fallow-single-precision from and add missing
8442 -fgnu-tm to the optlist.
8444 2021-06-29 Richard Biener <rguenther@suse.de>
8446 * tree-vect-slp.c (slpg_vertex::visited): Remove.
8447 (vect_slp_perms_eq): Handle -1 permutes.
8448 (vect_optimize_slp): Rewrite permute propagation.
8450 2021-06-29 Jakub Jelinek <jakub@redhat.com>
8453 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
8454 perform the optimization in GENERIC when sanitizing and x has a
8457 2021-06-29 Richard Biener <rguenther@suse.de>
8459 PR tree-optimization/101242
8460 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
8461 PHIs with not represented initial values as leafs.
8463 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
8465 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
8466 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
8468 (pdp11_initial_elimination_offset) Remove unused variable.
8469 (pdp11_cmp_length) Ditto.
8470 (pdp11_insn_cost): Ditto, and fix signedness warning.
8472 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
8474 * btfout.c: Include tm_p.h.
8477 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
8479 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
8481 (bpf_expand_epilogue): Likewise.
8482 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
8483 Do not define DBX_DEBUGGING_INFO.
8485 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
8487 * doc/invoke.texi: Document the CTF and BTF debug info options.
8489 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
8490 David Faust <david.faust@oracle.com>
8491 Jose E. Marchesi <jose.marchesi@oracle.com>
8492 Weimin Pan <weimin.pan@oracle.com>
8494 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
8495 GTFILES. Add new object files.
8496 * common.opt: Add CTF and BTF debug info options.
8497 * btfout.c: New file.
8500 * ctfout.c: Likewise.
8501 * dwarf2ctf.c: Likewise.
8502 * dwarf2ctf.h: Likewise.
8503 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
8505 * dwarf2out.c (dwarf2out_source_line): Likewise.
8506 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
8508 (debug_format_do_cu): New function.
8509 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
8511 Include dwarf2ctf.c.
8512 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
8514 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
8515 (CTF_DEBUG): New bitmask.
8516 (BTF_DEBUG): Likewise.
8517 (enum ctf_debug_info_levels): New enum.
8518 * gengtype.c (open_base_files): Handle ctfc.h.
8519 (main): Handle uint32_t type.
8520 * flags.h (btf_debuginfo_p): New definition.
8521 (dwarf_based_debuginfo_p): Likewise.
8522 * opts.c (debug_type_names): Add entries for CTF and BTF.
8523 (btf_debuginfo_p): New function.
8524 (dwarf_based_debuginfo_p): Likewise.
8525 (common_handle_option): Handle -gctfN and -gbtf options.
8526 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
8527 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
8530 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
8532 * dwarf2out.c (AT_class): Function is no longer static.
8534 (AT_unsigned): Likewise.
8537 (get_AT_string): Likewise.
8538 (get_AT_flag): Likewise.
8539 (get_AT_unsigned): Likewise.
8540 (get_AT_ref): Likewise.
8541 (new_die_raw): Likewise.
8542 (lookup_decl_die): Likewise.
8543 (base_type_die): Likewise.
8544 (add_name_attribute): Likewise.
8545 (add_AT_int): Likewise.
8546 (add_AT_unsigned): Likewise.
8547 (add_AT_loc): Likewise.
8548 (dw_get_die_tag): New function.
8549 (dw_get_die_child): Likewise.
8550 (dw_get_die_sib): Likewise.
8551 (struct dwarf_file_data): Move from here to dwarf2out.h
8552 (struct dw_attr_struct): Likewise.
8553 * dwarf2out.h: Analogous changes.
8555 2021-06-28 Martin Jambor <mjambor@suse.cz>
8558 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
8559 members m_dead_stmts and m_dead_ssas.
8560 * ipa-param-manipulation.c
8561 (ipa_param_body_adjustments::mark_dead_statements): New function.
8562 (ipa_param_body_adjustments::common_initialization): Call it on
8563 all removed but not split parameters.
8564 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
8566 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
8568 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
8569 dead debug statements.
8570 (copy_phis_for_bb): Do not copy dead PHI nodes.
8572 2021-06-28 Martin Jambor <mjambor@suse.cz>
8575 * symtab-clones.h (clone_info): Removed member param_adjustments.
8576 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
8577 deal with pass-through splits now.
8578 (ipa_param_performed_split): Removed.
8579 (ipa_param_adjustments::modify_call): Adjusted parameters.
8580 (class ipa_param_body_adjustments): Adjusted parameters of
8581 register_replacement, modify_gimple_stmt and modify_call_stmt.
8582 (ipa_verify_edge_has_no_modifications): Declare.
8583 (ipa_edge_modifications_finalize): Declare.
8584 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
8585 performed_splits processing, pas only edge to padjs->modify_call,
8586 check that call arguments were not modified if they should not have
8588 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
8590 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
8591 (ipa_edge_modification_info): Likewise.
8592 (ipa_edge_modification_sum): Likewise.
8593 (ipa_edge_modifications): New edge summary.
8594 (ipa_verify_edge_has_no_modifications): New function.
8595 (transitive_split_p): Removed.
8596 (transitive_split_map): Likewise.
8597 (init_transitive_splits): Likewise.
8598 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
8599 summary instead of performed_splits.
8600 (ipa_param_body_adjustments::register_replacement): Drop dummy
8601 parameter, set base_index of the created ipa_param_body_replacement.
8602 (phi_arg_will_live_p): New function.
8603 (ipa_param_body_adjustments::common_initialization): Do not create
8604 IPA_SRA dummy decls.
8605 (simple_tree_swap_info): Removed.
8606 (remap_split_decl_to_dummy): Likewise.
8607 (record_argument_state_1): New function.
8608 (record_argument_state): Likewise.
8609 (ipa_param_body_adjustments::modify_call_stmt): New parameter
8610 orig_stmt. Do not work with dummy decls, save necessary info about
8611 changes to ipa_edge_modifications.
8612 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
8613 orig_stmt, pass it to modify_call_stmt.
8614 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
8616 (ipa_edge_modifications_finalize): New function.
8617 * tree-inline.c (remap_gimple_stmt): Pass original statement to
8619 (copy_phis_for_bb): Do not copy dead PHI nodes.
8620 (expand_call_inline): Do not remap performed_splits.
8621 (update_clone_info): Likewise.
8622 * toplev.c: Include ipa-param-manipulation.h.
8623 (toplev::finalize): Call ipa_edge_modifications_finalize.
8625 2021-06-28 Andrew Pinski <apinski@marvell.com>
8627 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
8628 info if we're the only things setting the target PHI.
8629 (value_replacement): Don't duplicate range here.
8630 (minmax_replacement): Likewise.
8632 2021-06-28 Richard Biener <rguenther@suse.de>
8634 PR tree-optimization/101229
8635 * gimple-walk.c (gimple_walk_op): Handle PHIs.
8637 2021-06-28 Martin Liska <mliska@suse.cz>
8639 * config/v850/v850.c (construct_dispose_instruction): Allocate
8641 (construct_prepare_instruction): Likewise.
8643 2021-06-28 Martin Liska <mliska@suse.cz>
8645 * config/v850/v850.c (v850_option_override): Build default
8647 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
8648 ignored for inlining.
8649 (TARGET_CAN_INLINE_P): New.
8651 2021-06-28 Richard Biener <rguenther@suse.de>
8653 PR tree-optimization/101207
8654 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
8655 permute eliding for load permutations properly.
8657 2021-06-28 Richard Biener <rguenther@suse.de>
8659 PR tree-optimization/101173
8660 * gimple-loop-interchange.cc
8661 (tree_loop_interchange::valid_data_dependences): Disallow outer
8662 loop dependence distance of zero.
8664 2021-06-28 liuhongt <hongtao.liu@intel.com>
8667 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
8668 define_insn_and_split.
8669 (*avx_cmp<mode>3_ltint): Ditto.
8670 (*avx2_pcmp<mode>3_3): Ditto.
8671 (*avx2_pcmp<mode>3_4): Ditto.
8672 (*avx2_pcmp<mode>3_5): Ditto.
8674 2021-06-28 liuhongt <hongtao.liu@intel.com>
8676 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
8677 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
8678 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
8679 IX86_BUILTIN_PBLENDVB128): Replace icode with
8681 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
8683 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
8684 New pre_reload splitter.
8686 2021-06-27 Andrew Pinski <apinski@marvell.com>
8688 PR middle-end/101230
8689 * fold-const.c (fold_ternary_loc): Check
8690 the return value of invert_tree_comparison.
8692 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
8694 * config.gcc: Add SPDX License Identifier.
8695 (powerpc-ibm-aix789): Default to aix73.h.
8696 (powerpc-ibm-aix7.2.*.*): New stanza.
8697 * config/rs6000/aix72.h: Add SPDX License Identifier.
8698 * config/rs6000/aix73.h: New file.
8700 2021-06-26 Jason Merrill <jason@redhat.com>
8702 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
8704 2021-06-26 Andrew Pinski <apinski@marvell.com>
8706 * genmatch.c (lower_cond): Copy for_subst_vec
8707 for the simplify also.
8708 (lower): Swap the order for lower_for and lower_cond.
8710 2021-06-26 Andrew Pinski <apinski@marvell.com>
8712 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
8713 flow senatitive info on the moved ssa set.
8715 2021-06-26 Andrew Pinski <apinski@marvell.com>
8717 * fold-const.c (fold_cond_expr_with_comparison):
8718 Exand arg0 into comp_code, arg00, and arg01.
8719 (fold_ternary_loc): Use invert_tree_comparison
8720 instead of fold_invert_truthvalue for the case
8721 where we have A CMP B ? C : A.
8723 2021-06-25 Martin Sebor <msebor@redhat.com>
8725 PR middle-end/101216
8726 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
8728 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
8730 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
8732 2021-06-25 Richard Biener <rguenther@suse.de>
8734 PR tree-optimization/101202
8735 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
8738 2021-06-25 Richard Biener <rguenther@suse.de>
8740 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
8741 STMT_VINFO_REDUC_DEF from the original representative.
8743 2021-06-25 Martin Sebor <msebor@redhat.com>
8745 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
8746 gimple_no_warning_p and gimple_set_no_warning with
8747 warning_suppressed_p, and suppress_warning.
8749 (maybe_warn_for_bound): Same.
8750 (warn_for_access): Same.
8751 (check_access): Same.
8752 (expand_builtin_strncmp): Same.
8753 (fold_builtin_varargs): Same.
8754 * calls.c (maybe_warn_nonstring_arg): Same.
8755 (maybe_warn_rdwr_sizes): Same.
8756 * cfgexpand.c (expand_call_stmt): Same.
8757 * cgraphunit.c (check_global_declaration): Same.
8758 * fold-const.c (fold_undefer_overflow_warnings): Same.
8759 (fold_truth_not_expr): Same.
8760 (fold_unary_loc): Same.
8761 (fold_checksum_tree): Same.
8762 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
8763 (array_bounds_checker::check_mem_ref): Same.
8764 (array_bounds_checker::check_addr_expr): Same.
8765 (array_bounds_checker::check_array_bounds): Same.
8766 * gimple-expr.c (copy_var_decl): Same.
8767 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
8768 (gimple_fold_builtin_strncat): Same.
8769 (gimple_fold_builtin_stxcpy_chk): Same.
8770 (gimple_fold_builtin_stpcpy): Same.
8771 (gimple_fold_builtin_sprintf): Same.
8772 (fold_stmt_1): Same.
8773 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
8774 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8775 * gimple-ssa-sprintf.c (handle_printf_call): Same.
8776 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
8777 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
8778 * gimple-ssa-warn-restrict.h: Adjust declarations.
8779 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
8780 gimple_no_warning_p and gimple_set_no_warning with
8781 warning_suppressed_p, and suppress_warning.
8783 (check_bounds_or_overlap): Same.
8784 * gimple.c (gimple_build_call_from_tree): Same.
8785 * gimplify.c (gimplify_return_expr): Same.
8786 (gimplify_cond_expr): Same.
8787 (gimplify_modify_expr_complex_part): Same.
8788 (gimplify_modify_expr): Same.
8789 (gimple_push_cleanup): Same.
8790 (gimplify_expr): Same.
8791 * omp-expand.c (expand_omp_for_generic): Same.
8792 (expand_omp_taskloop_for_outer): Same.
8793 * omp-low.c (lower_rec_input_clauses): Same.
8794 (lower_lastprivate_clauses): Same.
8795 (lower_send_clauses): Same.
8796 (lower_omp_target): Same.
8797 * tree-cfg.c (pass_warn_function_return::execute): Same.
8798 * tree-complex.c (create_one_component_var): Same.
8799 * tree-inline.c (remap_gimple_op_r): Same.
8800 (copy_tree_body_r): Same.
8801 (declare_return_variable): Same.
8802 (expand_call_inline): Same.
8803 * tree-nested.c (lookup_field_for_decl): Same.
8804 * tree-sra.c (create_access_replacement): Same.
8805 (generate_subtree_copies): Same.
8806 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
8807 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
8808 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
8809 * tree-ssa-loop-im.c (execute_sm): Same.
8810 * tree-ssa-phiopt.c (cond_store_replacement): Same.
8811 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
8812 (handle_builtin_strcpy): Same.
8813 (maybe_diag_stxncpy_trunc): Same.
8814 (handle_builtin_stxncpy_strncat): Same.
8815 (handle_builtin_strcat): Same.
8816 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
8817 (set_no_uninit_warning): Same.
8818 (uninit_undefined_value_p): Same.
8819 (warn_uninit): Same.
8820 (maybe_warn_operand): Same.
8821 * tree-vrp.c (compare_values_warnv): Same.
8822 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
8823 (test_for_singularity): Same.
8824 * gimple.h (warning_suppressed_p): New function.
8825 (suppress_warning): Same.
8826 (copy_no_warning): Same.
8827 (gimple_set_block): Call gimple_set_location.
8828 (gimple_set_location): Call copy_warning.
8830 2021-06-25 Martin Sebor <msebor@redhat.com>
8832 * tree.h (warning_suppressed_at, copy_warning,
8833 warning_suppressed_p, suppress_warning): New functions.
8835 2021-06-25 Martin Sebor <msebor@redhat.com>
8837 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
8838 * gengtype.c (open_base_files): Add diagnostic-spec.h.
8839 * diagnostic-spec.c: New file.
8840 * diagnostic-spec.h: New file.
8841 * tree.h (no_warning, all_warnings, suppress_warning_at): New
8843 * warning-control.cc: New file.
8845 2021-06-25 liuhongt <hongtao.liu@intel.com>
8848 * config/i386/i386.c (x86_order_regs_for_local_alloc):
8851 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
8853 PR tree-optimization/101189
8854 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
8855 LHS range of condition to postfold routine.
8856 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
8857 FALSE edge if the LHS range supports it being taken.
8858 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
8860 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
8862 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
8863 (relation_oracle::find_relation_block): Check correct bitmap.
8864 (relation_oracle::dump): Do not dump NULL blocks.
8866 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
8868 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
8869 range_on_edge instead of manually calculating.
8871 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
8873 * range-op.cc: Fix comment.
8875 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
8878 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
8879 Handle V8QI and V4HI modes.
8880 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
8882 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
8883 (mmxpackmode): New mode attribute.
8884 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
8885 (mmxunpackmode): New mode attribute.
8886 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
8887 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
8888 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
8889 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
8890 * config/i386/i386.md (extsuffix): Move from ...
8891 * config/i386/sse.md: ... here.
8893 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
8895 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
8896 (dwarf2out_finish): ...instead of here.
8898 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
8900 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
8901 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
8902 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
8903 * configure: Regenerate.
8905 2021-06-24 Richard Biener <rguenther@suse.de>
8907 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
8908 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
8909 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
8911 2021-06-24 Richard Biener <rguenther@suse.de>
8913 * config/i386/sse.md (avx_addsubv4df3): Rename to
8915 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
8916 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
8917 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
8918 * config/i386/i386-builtin.def: Adjust.
8919 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
8920 * optabs.def (vec_addsub_optab): New optab.
8921 * tree-vect-slp-patterns.c (class addsub_pattern): New.
8922 (slp_patterns): Add addsub_pattern.
8923 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
8924 across CFN_VEC_ADDSUB.
8925 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
8927 * doc/md.texi (vec_addsub<mode>3): Document.
8929 2021-06-24 Jakub Jelinek <jakub@redhat.com>
8931 PR middle-end/101170
8932 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
8933 where regno + subreg_regno_offset wraps around use 0 as starting
8936 2021-06-24 Jakub Jelinek <jakub@redhat.com>
8938 PR middle-end/101172
8939 * stor-layout.c (finish_bitfield_representative): If nextf has
8940 error_mark_node type, set repr type to error_mark_node too.
8942 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
8944 * config/s390/s390.c (s390_function_profiler): Ignore labelno
8946 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
8948 2021-06-24 Richard Biener <rguenther@suse.de>
8950 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
8951 across operations that have different semantics on different
8954 2021-06-24 Jakub Jelinek <jakub@redhat.com>
8956 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
8957 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
8958 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
8959 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
8960 OMP_TARGET user outer_ctx instead of ctx for placeholders and
8961 initializer/combiner gimplification.
8962 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
8963 on target constructs.
8964 (lower_rec_input_clauses): Likewise.
8965 (lower_omp_target): Likewise.
8966 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
8967 on target if in_reduction is present.
8969 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
8971 * tree-predcom.c (class pcom_worker): New class.
8972 (release_chain): Renamed to...
8973 (pcom_worker::release_chain): ...this.
8974 (release_chains): Renamed to...
8975 (pcom_worker::release_chains): ...this.
8976 (aff_combination_dr_offset): Renamed to...
8977 (pcom_worker::aff_combination_dr_offset): ...this.
8978 (determine_offset): Renamed to...
8979 (pcom_worker::determine_offset): ...this.
8980 (class comp_ptrs): New class.
8981 (split_data_refs_to_components): Renamed to...
8982 (pcom_worker::split_data_refs_to_components): ...this,
8983 and update with class comp_ptrs.
8984 (suitable_component_p): Renamed to...
8985 (pcom_worker::suitable_component_p): ...this.
8986 (filter_suitable_components): Renamed to...
8987 (pcom_worker::filter_suitable_components): ...this.
8988 (valid_initializer_p): Renamed to...
8989 (pcom_worker::valid_initializer_p): ...this.
8990 (find_looparound_phi): Renamed to...
8991 (pcom_worker::find_looparound_phi): ...this.
8992 (add_looparound_copies): Renamed to...
8993 (pcom_worker::add_looparound_copies): ...this.
8994 (determine_roots_comp): Renamed to...
8995 (pcom_worker::determine_roots_comp): ...this.
8996 (determine_roots): Renamed to...
8997 (pcom_worker::determine_roots): ...this.
8998 (single_nonlooparound_use): Renamed to...
8999 (pcom_worker::single_nonlooparound_use): ...this.
9000 (remove_stmt): Renamed to...
9001 (pcom_worker::remove_stmt): ...this.
9002 (execute_pred_commoning_chain): Renamed to...
9003 (pcom_worker::execute_pred_commoning_chain): ...this.
9004 (execute_pred_commoning): Renamed to...
9005 (pcom_worker::execute_pred_commoning): ...this.
9006 (struct epcc_data): New member worker.
9007 (execute_pred_commoning_cbck): Call execute_pred_commoning
9008 with pcom_worker pointer.
9009 (find_use_stmt): Renamed to...
9010 (pcom_worker::find_use_stmt): ...this.
9011 (find_associative_operation_root): Renamed to...
9012 (pcom_worker::find_associative_operation_root): ...this.
9013 (find_common_use_stmt): Renamed to...
9014 (pcom_worker::find_common_use_stmt): ...this.
9015 (combinable_refs_p): Renamed to...
9016 (pcom_worker::combinable_refs_p): ...this.
9017 (reassociate_to_the_same_stmt): Renamed to...
9018 (pcom_worker::reassociate_to_the_same_stmt): ...this.
9019 (stmt_combining_refs): Renamed to...
9020 (pcom_worker::stmt_combining_refs): ...this.
9021 (combine_chains): Renamed to...
9022 (pcom_worker::combine_chains): ...this.
9023 (try_combine_chains): Renamed to...
9024 (pcom_worker::try_combine_chains): ...this.
9025 (prepare_initializers_chain): Renamed to...
9026 (pcom_worker::prepare_initializers_chain): ...this.
9027 (prepare_initializers): Renamed to...
9028 (pcom_worker::prepare_initializers): ...this.
9029 (prepare_finalizers_chain): Renamed to...
9030 (pcom_worker::prepare_finalizers_chain): ...this.
9031 (prepare_finalizers): Renamed to...
9032 (pcom_worker::prepare_finalizers): ...this.
9033 (tree_predictive_commoning_loop): Renamed to...
9034 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
9035 some calls and remove some cleanup code.
9036 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
9037 (static variable looparound_phis): Remove.
9038 (static variable name_expansions): Remove.
9040 2021-06-24 Richard Biener <rguenther@suse.de>
9042 * tree-vect-slp.c (slpg_vertex): New struct.
9043 (vect_slp_build_vertices): Adjust.
9044 (vect_optimize_slp): Likewise. Maintain an outgoing permute
9045 and a materialized one.
9047 2021-06-24 Richard Biener <rguenther@suse.de>
9049 PR tree-optimization/101105
9050 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9051 Only ignore steps when they are equal or scalar order is preserved.
9053 2021-06-24 liuhongt <hongtao.liu@intel.com>
9056 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
9057 Adjust comments for ix86_expand_vecop_qihi2.
9058 (ix86_expand_vecmul_qihi): Renamed to ..
9059 (ix86_expand_vecop_qihi2): Adjust function prototype to
9060 support shift operation, add static to definition.
9061 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
9062 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
9063 ix86_expand_vec_shift_qihi_constant.
9064 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
9065 (ix86_expand_vec_shift_qihi_constant): Deleted.
9066 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
9068 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
9069 condition TARGET_64BIT.
9070 (mul<mode>3): Ditto.
9071 (<insn><mode>3): Ditto.
9072 (vlshr<mode>3): Extend to support avx512 vlshr.
9073 (v<insn><mode>3): New expander for
9075 (v<insn>v8qi3): Ditto.
9076 (vashrv8hi3<mask_name>): Renamed to ..
9077 (vashr<mode>3): And extend to support V16QImode for avx512.
9078 (vashrv16qi3): Deleted.
9079 (vashrv2di3<mask_name>): Extend expander to support avx512
9082 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
9084 * doc/lto.texi (Design Overview): Update that slim objects are
9087 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
9089 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
9090 of OTHER_POWER10_MASKS so it will not be enabled by default.
9092 2021-06-23 Richard Biener <rguenther@suse.de>
9093 Martin Jambor <mjambor@suse.cz>
9095 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
9096 param replacement unconditionally. Adjust comment.
9098 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
9100 * Makefile.in (OBJS): Add gimple-range-fold.o
9101 * gimple-range-fold.cc: New.
9102 * gimple-range-fold.h: New.
9103 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
9104 (gimple_range_calc_op2): Ditto.
9105 * gimple-range-gori.h: Move prototypes to here.
9106 * gimple-range.cc: Adjust include files.
9107 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
9108 (fur_source::get_operand): Ditto.
9109 (fur_source::get_phi_operand): Ditto.
9110 (fur_source::query_relation): Ditto.
9111 (fur_source::register_relation): Ditto.
9112 (class fur_edge): Ditto.
9113 (fur_edge::fur_edge): Ditto.
9114 (fur_edge::get_operand): Ditto.
9115 (fur_edge::get_phi_operand): Ditto.
9116 (fur_stmt::fur_stmt): Ditto.
9117 (fur_stmt::get_operand): Ditto.
9118 (fur_stmt::get_phi_operand): Ditto.
9119 (fur_stmt::query_relation): Ditto.
9120 (class fur_depend): Relocate to gimple-range-fold.h.
9121 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
9122 (fur_depend::register_relation): Ditto.
9123 (fur_depend::register_relation): Ditto.
9124 (class fur_list): Ditto.
9125 (fur_list::fur_list): Ditto.
9126 (fur_list::get_operand): Ditto.
9127 (fur_list::get_phi_operand): Ditto.
9128 (fold_range): Ditto.
9129 (adjust_pointer_diff_expr): Ditto.
9130 (gimple_range_adjustment): Ditto.
9131 (gimple_range_base_of_assignment): Ditto.
9132 (gimple_range_operand1): Ditto.
9133 (gimple_range_operand2): Ditto.
9134 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
9135 (gimple_range_calc_op2): Ditto.
9136 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
9137 (fold_using_range::range_of_range_op): Ditto.
9138 (fold_using_range::range_of_address): Ditto.
9139 (fold_using_range::range_of_phi): Ditto.
9140 (fold_using_range::range_of_call): Ditto.
9141 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
9142 (fold_using_range::range_of_builtin_call): Ditto.
9143 (fold_using_range::range_of_cond_expr): Ditto.
9144 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
9145 (fold_using_range::relation_fold_and_or): Ditto.
9146 (fold_using_range::postfold_gcond_edges): Ditto.
9147 * gimple-range.h: Add gimple-range-fold.h to include files. Change
9148 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
9149 (gimple_range_handler): Relocate to gimple-range-fold.h.
9150 (gimple_range_ssa_p): Ditto.
9151 (range_compatible_p): Ditto.
9152 (class fur_source): Ditto.
9153 (class fur_stmt): Ditto.
9154 (class fold_using_range): Ditto.
9155 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
9156 (gimple_range_calc_op2): Ditto.
9158 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
9160 PR tree-optimization/101148
9161 PR tree-optimization/101014
9162 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
9163 (ranger_cache::~ranger_cache): Adjust.
9164 (ranger_cache::block_range): Check if propagation disallowed.
9165 (ranger_cache::propagate_cache): Disallow propagation if new value
9166 can't be stored properly.
9167 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
9169 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
9171 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
9172 (sbr_vector::set_bb_range): Return true.
9173 (class sbr_sparse_bitmap): Adjust.
9174 (sbr_sparse_bitmap::set_bb_range): Return value.
9175 (block_range_cache::set_bb_range): Return value.
9176 (ranger_cache::propagate_cache): Use return value to print msg.
9177 * gimple-range-cache.h (class block_range_cache): Adjust.
9179 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
9181 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
9183 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
9185 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
9186 so this pattern can be used for test/compare removal. Pass
9187 current insn to compute_logical_op_length and output_logical_op.
9188 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
9189 (h8300_and_costs): Add argument to compute_logical_op_length.
9190 (output_logical_op): Add new argument. Use it to determine if the
9191 condition codes are used and adjust the output accordingly.
9192 (compute_logical_op_length): Add new argument and update length
9193 computations when condition codes are used.
9194 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
9196 (output_logical_op): Likewise.
9198 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
9201 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
9202 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
9203 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
9204 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
9205 * config/i386/sse.md (unspec): ... here.
9207 2021-06-23 Martin Liska <mliska@suse.cz>
9210 * optc-save-gen.awk: Put back arm_fp16_format to
9213 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
9216 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
9219 (clz<mode>2): Update RTX pattern for additions.
9221 2021-06-23 Jakub Jelinek <jakub@redhat.com>
9223 PR middle-end/101167
9224 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
9225 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
9227 2021-06-22 Sergei Trofimovich <siarheit@google.com>
9229 * doc/rtl.texi: drop unbalanced parenthesis.
9231 2021-06-22 Richard Biener <rguenther@suse.de>
9233 PR middle-end/101156
9234 * gimplify.c (gimplify_expr): Remove premature incorrect
9237 2021-06-22 Jakub Jelinek <jakub@redhat.com>
9239 PR tree-optimization/101159
9240 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
9243 2021-06-22 Jakub Jelinek <jakub@redhat.com>
9245 PR middle-end/101160
9246 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
9247 clear crtl->return_rtx instead of keeping it referencing a pseudo.
9249 2021-06-22 Jakub Jelinek <jakub@redhat.com>
9250 Andrew Pinski <apinski@marvell.com>
9252 PR tree-optimization/101162
9253 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
9256 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9258 * range-op.cc (range_relational_tests): New.
9259 (range_op_tests): Call range_relational_tests.
9261 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9263 * range-op.cc (operator_cast::lhs_op1_relation): New.
9264 (operator_identity::lhs_op1_relation): Mew.
9266 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9268 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
9270 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9272 * range-op.cc (operator_plus::lhs_op1_relation): New.
9273 (operator_plus::lhs_op2_relation): New.
9275 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9277 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
9278 relation_oracle if dominators exist.
9279 (ranger_cache::~ranger_cache): Dispose of oracle.
9280 (ranger_cache::dump_bb): Dump oracle.
9281 * gimple-range.cc (fur_source::fur_source): New.
9282 (fur_source::get_operand): Use mmeber query.
9283 (fur_source::get_phi_operand): Use member_query.
9284 (fur_source::query_relation): New.
9285 (fur_source::register_dependency): Delete.
9286 (fur_source::register_relation): New.
9287 (fur_edge::fur_edge): Adjust.
9288 (fur_edge::get_phi_operand): Fix comment.
9289 (fur_edge::query): Delete.
9290 (fur_stmt::fur_stmt): Adjust.
9291 (fur_stmt::query): Delete.
9292 (fur_depend::fur_depend): Adjust.
9293 (fur_depend::register_relation): New.
9294 (fur_depend::register_relation): New.
9295 (fur_list::fur_list): Adjust.
9296 (fur_list::get_operand): Use member query.
9297 (fold_using_range::range_of_range_op): Process and query relations.
9298 (fold_using_range::range_of_address): Adjust dependency call.
9299 (fold_using_range::range_of_phi): Ditto.
9300 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
9301 (fold_using_range::relation_fold_and_or): New.
9302 (fold_using_range::postfold_gcond_edges): New.
9303 * gimple-range.h (class gimple_ranger): Adjust.
9304 (class fur_source): Adjust members.
9305 (class fur_stmt): Ditto.
9306 (class fold_using_range): Ditto.
9308 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9310 * range-op.cc (range_operator::wi_fold): Apply relation effect.
9311 (range_operator::fold_range): Adjust and apply relation effect.
9312 (*::fold_range): Add relation parameters.
9313 (*::op1_range): Ditto.
9314 (*::op2_range): Ditto.
9315 (range_operator::lhs_op1_relation): New.
9316 (range_operator::lhs_op2_relation): New.
9317 (range_operator::op1_op2_relation): New.
9318 (range_operator::op1_op2_relation_effect): New.
9319 (relop_early_resolve): New.
9320 (operator_equal::op1_op2_relation): New.
9321 (operator_equal::fold_range): Call relop_early_resolve.
9322 (operator_not_equal::op1_op2_relation): New.
9323 (operator_not_equal::fold_range): Call relop_early_resolve.
9324 (operator_lt::op1_op2_relation): New.
9325 (operator_lt::fold_range): Call relop_early_resolve.
9326 (operator_le::op1_op2_relation): New.
9327 (operator_le::fold_range): Call relop_early_resolve.
9328 (operator_gt::op1_op2_relation): New.
9329 (operator_gt::fold_range): Call relop_early_resolve.
9330 (operator_ge::op1_op2_relation): New.
9331 (operator_ge::fold_range): Call relop_early_resolve.
9332 * range-op.h (class range_operator): Adjust parameters and methods.
9334 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
9336 * Makefile.in (OBJS): Add value-relation.o.
9337 * gimple-range.h: Adjust include files.
9338 * tree-data-ref.c: Adjust include file order.
9339 * value-query.cc (range_query::get_value_range): Default to no oracle.
9340 (range_query::query_relation): New.
9341 (range_query::query_relation): New.
9342 * value-query.h (class range_query): Adjust.
9343 * value-relation.cc: New.
9344 * value-relation.h: New.
9346 2021-06-22 Richard Biener <rguenther@suse.de>
9348 PR tree-optimization/101151
9349 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
9352 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
9354 * config/riscv/riscv.c (thead_c906_tune_info): New.
9355 (riscv_tune_info_table): Use new tune.
9357 2021-06-22 Richard Biener <rguenther@suse.de>
9359 PR tree-optimization/101158
9360 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
9361 checking after checking for matching operation.
9363 2021-06-22 Richard Biener <rguenther@suse.de>
9365 PR tree-optimization/101159
9366 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
9367 missing NULL vectype check.
9369 2021-06-22 Richard Biener <rguenther@suse.de>
9371 PR tree-optimization/101154
9372 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
9374 2021-06-22 Jakub Jelinek <jakub@redhat.com>
9377 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
9378 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
9379 * config/i386/i386.c (ix86_expand_prologue): Clear it.
9380 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
9381 Remove "" from match_operand. Emit new insns using emit_move_insn and
9382 set ix86_last_zero_store_uid to INSN_UID of the last store.
9383 Add peephole2s for 1/2/4 stores of const0_rtx following previous
9386 2021-06-22 Martin Liska <mliska@suse.cz>
9388 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
9391 2021-06-22 Martin Liska <mliska@suse.cz>
9393 * gcov-io.h: Remove padding entries.
9395 2021-06-22 liuhongt <hongtao.liu@intel.com>
9397 PR tree-optimization/97770
9398 * tree-vect-patterns.c (vect_recog_popcount_pattern):
9400 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
9402 2021-06-22 liuhongt <hongtao.liu@intel.com>
9405 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
9406 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
9407 (expand<mode>_mask): this ..
9408 (*expand<mode>_mask): New pre_reload splitter to transform
9409 v{,p}expand* to vmov* when mask is zero, all ones, or has all
9410 ones in it's lower part, otherwise still generate
9413 2021-06-22 liuhongt <hongtao.liu@intel.com>
9416 * config/i386/i386-expand.c
9417 (ix86_expand_special_args_builtin): Keep constm1_operand only
9418 if it satisfies insn's operand predicate.
9420 2021-06-21 Jason Merrill <jason@redhat.com>
9423 * df-scan.c (df_ref_record): Check that regno < endregno.
9424 * function.c (assign_parms, expand_function_end): Do nothing with a
9425 TYPE_EMPTY_P result.
9427 2021-06-21 Richard Biener <rguenther@suse.de>
9429 PR tree-optimization/101120
9430 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
9432 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
9433 DR chain DCE capability.
9434 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
9435 * tree-vect-stmts.c (vectorizable_load): Remove unused
9436 loads in the DR chain for SLP.
9438 2021-06-21 Jakub Jelinek <jakub@redhat.com>
9440 PR inline-asm/100785
9441 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
9442 output or input operands were already error_mark_node.
9443 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
9444 remove all inputs, outputs and clobbers from the asm and
9447 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9449 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
9450 (vceq_s16): Likewise.
9451 (vceq_s32): Likewise.
9452 (vceq_u8): Likewise.
9453 (vceq_u16): Likewise.
9454 (vceq_u32): Likewise.
9455 (vceq_p8): Likewise.
9456 (vceqq_s8): Likewise.
9457 (vceqq_s16): Likewise.
9458 (vceqq_s32): Likewise.
9459 (vceqq_u8): Likewise.
9460 (vceqq_u16): Likewise.
9461 (vceqq_u32): Likewise.
9462 (vceqq_p8): Likewise.
9463 (vceq_f32): Gate __a == __b on __FAST_MATH__.
9464 (vceqq_f32): Likewise.
9465 (vceq_f16): Likewise.
9466 (vceqq_f16): Likewise.
9468 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9471 * config/arm/iterators.md (NEON_VACMP): Remove.
9472 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
9474 (neon_vca<cmp_op><mode>_insn): Likewise.
9475 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
9478 2021-06-21 Richard Biener <rguenther@suse.de>
9480 PR tree-optimization/101121
9481 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
9482 when we just lack a stmt with the desired op when doing permutation.
9483 (vect_build_slp_tree): When caching a failed SLP build attempt
9484 assert that at least one lane is marked as not matching.
9486 2021-06-21 liuhongt <hongtao.liu@intel.com>
9489 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
9490 register alternative.
9491 (*and<mode>_1): Ditto.
9493 (*andn<mode>_1): Ditto.
9494 (*<code><mode>_1): Ditto.
9495 (*<code>qi_1): Ditto.
9496 (*one_cmpl<mode>2_1): Ditto.
9497 (*one_cmplsi2_1_zext): Ditto.
9498 (*one_cmplqi2_1): Ditto.
9499 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
9500 the order of mask registers to be before general registers.
9502 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
9505 * config/i386/i386.md: New define_peephole2s to shrink writing
9506 1, 2 or 4 consecutive zeros to memory when optimizing for size.
9508 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
9510 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
9511 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
9512 more efficient code when the source can be trivially simplified.
9514 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
9516 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
9517 a range if global is not available.
9518 (ranger_cache::entry_range): Fallback to range_of_def.
9519 * gimple-range-cache.h (range_of_def): Adjust prototype.
9521 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
9523 PR tree-optimization/101014
9524 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
9526 (ranger_cache::~ranger_cache): Ditto.
9527 (ranger_cache::enable_new_values): Delete.
9528 (ranger_cache::push_poor_value): Delete.
9529 (ranger_cache::range_of_def): Remove poor value processing.
9530 (ranger_cache::entry_range): Ditto.
9531 (ranger_cache::fill_block_cache): Ditto.
9532 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
9533 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
9534 * gimple-range.h (class gimple_ranger): Adjust.
9536 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
9539 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
9540 derived from arm_canon_arch.
9541 (arm_canon_arch_option): Call it.
9542 (arm_canon_arch_multilib_option): New function.
9543 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
9544 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
9545 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
9546 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
9547 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
9548 * config/arm/arm.opt (mlibarch): New option.
9549 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
9550 of march on RHS with mlibarch.
9552 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
9554 * config.in: Regenerate.
9555 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
9557 * configure: Regenerate.
9558 * configure.ac: Fix for global_load assembler functions.
9560 2021-06-18 Richard Biener <rguenther@suse.de>
9562 PR tree-optimization/101112
9563 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
9564 to lookup a pattern stmt def.
9566 2021-06-18 Jakub Jelinek <jakub@redhat.com>
9568 PR middle-end/101062
9569 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
9570 representatives in QUAL_UNION_TYPE.
9572 2021-06-18 Andrew Pinski <apinski@marvell.com>
9574 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
9575 Add counting of how many times it is done.
9576 (factor_out_conditional_conversion): Likewise.
9577 (match_simplify_replacement): Likewise.
9578 (value_replacement): Likewise.
9579 (spaceship_replacement): Likewise.
9580 (cond_store_replacement): Likewise.
9581 (cond_if_else_store_replacement_1): Likewise.
9582 (hoist_adjacent_loads): Likewise.
9584 2021-06-18 Andrew Pinski <apinski@marvell.com>
9586 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
9587 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
9588 (verify_gimple_assign_binary): Reject point and offset types on
9589 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
9590 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
9591 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
9593 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
9595 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
9596 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
9597 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
9600 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
9602 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
9603 earlyclobber to alts 0/1.
9604 (gen_addadd): Add earlyclobber to alts 0/1.
9605 * config/rs6000/fusion.md: Regenerate file.
9607 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9609 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
9611 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
9613 * gimple-range-cache.cc: Comment cleanups.
9614 * gimple-range-gori.cc: Comment cleanups.
9615 * gimple-range.cc: Comment/spacing cleanups
9616 * value-range.h: Comment cleanups.
9618 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
9621 * calls.c (expand_call): Replace PUSH_ARGS with
9622 targetm.calls.push_argument (0).
9623 (emit_library_call_value_1): Likewise.
9624 * defaults.h (PUSH_ARGS): Removed.
9625 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
9626 targetm.calls.push_argument (0).
9627 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9628 (emit_push_insn): Pass the number bytes to push to
9629 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
9630 * hooks.c (hook_bool_uint_true): New.
9631 * hooks.h (hook_bool_uint_true): Likewise.
9632 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
9633 targetm.calls.push_argument (0).
9634 * target.def (push_argument): Add a targetm.calls hook.
9635 * targhooks.c (default_push_argument): New.
9636 * targhooks.h (default_push_argument): Likewise.
9637 * config/bpf/bpf.h (PUSH_ARGS): Removed.
9638 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
9639 * config/cr16/cr16.h (PUSH_ARGS): Removed.
9640 * config/i386/i386.c (ix86_push_argument): New.
9641 (TARGET_PUSH_ARGUMENT): Likewise.
9642 * config/i386/i386.h (PUSH_ARGS): Removed.
9643 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
9644 * config/m32c/m32c.h (PUSH_ARGS): Removed.
9645 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
9646 * config/pru/pru.h (PUSH_ARGS): Likewise.
9647 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
9648 TARGET_PUSH_ARGUMENT hook.
9649 * doc/tm.texi: Regenerated.
9651 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
9654 * config/i386/i386-expand.c (expand_vector_set_var):
9655 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
9656 ix86_expand_vector_init_duplicate.
9657 (ix86_expand_vector_init_duplicate): Emit insv_1 for
9658 QImode for !TARGET_PARTIAL_REG_STALL.
9659 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
9660 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
9661 as operand 2 predicate. Call ix86_expand_vector_set_var
9662 for non-constant index operand.
9663 (vec_setv2si): Ditto.
9664 (vec_setv4hi): Ditto.
9665 (vec_setv8qi): ditto.
9667 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
9669 PR tree-optimization/100790
9670 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
9673 2021-06-17 Martin Liska <mliska@suse.cz>
9675 * doc/invoke.texi: Use consistently -O1 instead of -O.
9677 2021-06-17 Martin Liska <mliska@suse.cz>
9679 * gcov-io.h: Update documentation entry about string format.
9681 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
9684 * config/s390/vecintrin.h (vec_doublee): Fix to use
9685 __builtin_s390_vflls.
9686 (vec_floate): Fix to use __builtin_s390_vflrd.
9688 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9690 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
9691 * dominance.h (get_dominated_to_depth): Likewise.
9692 (get_all_dominated_blocks): Likewise.
9693 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
9694 * gcse.c (hoist_code): Likewise.
9695 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
9696 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
9697 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
9698 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
9700 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9702 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
9703 * dominance.h (get_dominated_by_region): Likewise.
9704 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
9705 (gimple_duplicate_sese_tail): Likewise.
9706 (move_sese_region_to_fn): Likewise.
9708 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9710 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
9711 * dominance.h (get_dominated_by): Likewise.
9712 * auto-profile.c (afdo_find_equiv_class): Adjust.
9713 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
9714 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
9715 * tree-cfg.c (test_linear_chain): Likewise.
9716 (test_diamond): Likewise.
9718 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9720 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
9721 * cfgloopanal.c (get_loop_hot_path): Likewise.
9722 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
9724 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9726 * cgraph.c (cgraph_node::collect_callers): Return
9727 auto_vec<cgraph_edge *>.
9728 * cgraph.h (cgraph_node::collect_callers): Likewise.
9729 * ipa-cp.c (create_specialized_node): Adjust.
9730 (decide_about_value): Likewise.
9731 (decide_whether_version_node): Likewise.
9732 * ipa-sra.c (process_isra_node_results): Likewise.
9734 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
9736 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
9737 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
9739 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
9742 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
9744 * gimple-range.cc (debug_seed_ranger): New.
9746 (debug_ranger): New.
9748 2021-06-17 Richard Biener <rguenther@suse.de>
9750 PR tree-optimization/54400
9751 * tree-vectorizer.h (enum slp_instance_kind): Add
9752 slp_inst_kind_bb_reduc.
9753 (reduction_fn_for_scalar_code): Declare.
9754 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
9755 Check SLP_INSTANCE_KIND instead of looking at the
9757 (vect_slp_analyze_instance_alignment): Likewise.
9758 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
9759 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
9760 chain linearization from vect_build_slp_tree_2 and generalize
9761 for the use of BB reduction vectorization.
9762 (vect_build_slp_tree_2): Adjust accordingly.
9763 (vect_optimize_slp): Elide permutes at the root of BB reduction
9765 (vectorizable_bb_reduc_epilogue): New function.
9766 (vect_slp_prune_covered_roots): Likewise.
9767 (vect_slp_analyze_operations): Use them.
9768 (vect_slp_check_for_constructors): Recognize associatable
9769 chains for BB reduction vectorization.
9770 (vectorize_slp_instance_root_stmt): Generate code for the
9771 BB reduction epilogue.
9773 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
9775 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
9777 (gori_compute::may_recompute_p): New.
9778 (gori_compute::outgoing_edge_range_p): Perform recomputations.
9779 * gimple-range-gori.h (class gori_compute): Add prototype.
9781 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
9783 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
9784 true when a range can be calculated.
9785 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
9787 2021-06-16 Martin Sebor <msebor@redhat.com>
9789 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
9790 Correct documented defaults.
9792 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
9794 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
9795 m_new_value_p directly.
9797 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
9800 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
9801 Handle 64bit modes for TARGET_SSE4_1.
9802 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
9803 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
9804 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
9805 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
9806 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
9807 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
9809 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
9811 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
9812 Change to an expander that emits the correct instruction
9813 depending on endianness.
9814 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
9815 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
9817 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
9819 * config/aarch64/aarch64-simd-builtins.def: Split generator
9820 for aarch64_<su>qmovn builtins into scalar and vector
9822 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
9824 (aarch64_<su>qmovn<mode>_insn_be): Define.
9825 (aarch64_<su>qmovn<mode>): Split into scalar and vector
9826 variants. Change vector variant to an expander that emits the
9827 correct instruction depending on endianness.
9829 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
9831 * config/aarch64/aarch64-simd-builtins.def: Split generator
9832 for aarch64_sqmovun builtins into scalar and vector variants.
9833 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
9834 Split into scalar and vector variants. Change vector variant
9835 to an expander that emits the correct instruction depending
9837 (aarch64_sqmovun<mode>_insn_le): Define.
9838 (aarch64_sqmovun<mode>_insn_be): Define.
9840 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
9842 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
9843 Define - modeling zero-high-half semantics.
9844 (aarch64_xtn<mode>): Change to an expander that emits the
9845 appropriate instruction depending on endianness.
9846 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
9848 (aarch64_xtn2<mode>_le): Rename to...
9849 (aarch64_xtn2<mode>_insn_le): This.
9850 (aarch64_xtn2<mode>_be): Rename to...
9851 (aarch64_xtn2<mode>_insn_be): This.
9852 (vec_pack_trunc_<mode>): Emit truncation instruction instead
9854 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
9857 2021-06-16 Martin Jambor <mjambor@suse.cz>
9859 PR tree-optimization/100453
9860 * tree-sra.c (create_access): Disqualify any const candidates
9861 which are written to.
9862 (sra_modify_expr): Do not store sub-replacements back to a const base.
9863 (handle_unscalarized_data_in_subtree): Likewise.
9864 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
9865 instead of constant_decl_p.
9867 2021-06-16 Jakub Jelinek <jakub@redhat.com>
9869 PR middle-end/101062
9870 * stor-layout.c (finish_bitfield_representative): For fields in unions
9871 assume nextf is always NULL.
9872 (finish_bitfield_layout): Compute bit field representatives also in
9873 unions, but handle it as if each bitfield was the only field in the
9876 2021-06-16 Richard Biener <rguenther@suse.de>
9878 PR tree-optimization/101088
9879 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
9880 supported refs on edges. Do not assert same ref but
9881 different kind stores are unsuported but mark them so.
9882 (hoist_memory_references): Only look for supported refs
9885 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
9887 PR rtl-optimization/46235
9888 * config/i386/i386.md: New define_split for bt followed by cmov.
9889 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
9890 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
9891 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
9892 by setnc with zero extension.
9894 2021-06-16 Richard Biener <rguenther@suse.de>
9896 PR tree-optimization/101083
9897 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
9898 vectype as argument.
9899 (vect_build_slp_tree_2): Adjust.
9901 2021-06-15 Martin Sebor <msebor@redhat.com>
9903 PR middle-end/100876
9904 * builtins.c: (gimple_call_return_array): Account for size_t
9905 mangling as either unsigned int or unsigned long
9907 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
9909 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
9910 up before eliminating comparisons.
9912 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
9914 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
9915 nonzero|X is nonzero.
9916 (range_op_bitwise_and_tests): Add tests for above.
9918 2021-06-15 Carl Love <cel@us.ibm.com>
9921 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
9923 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
9926 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
9929 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
9930 (struct gimplify_omp_ctx): Extend defaultmap array by one.
9931 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
9932 (omp_notice_variable): Update type classification for Fortran.
9933 (gimplify_scan_omp_clauses): Update calls for new argument; handle
9934 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
9935 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
9936 * langhooks.c (lhd_omp_scalar_p): Likewise.
9937 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
9938 (LANG_HOOKS_DECLS): Add them.
9939 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
9940 omp_scalar_p pointer type to include the new bool argument.
9942 2021-06-15 David Malcolm <dmalcolm@redhat.com>
9945 (Special Functions for Debugging the Analyzer): Add
9946 __analyzer_dump_capacity.
9948 2021-06-15 Jakub Jelinek <jakub@redhat.com>
9951 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
9952 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
9954 2021-06-15 Richard Biener <rguenther@suse.de>
9956 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
9957 check to identify loop latches.
9958 * cfgloop.c (verify_loop_structure): Likewise.
9959 * loop-init.c (apply_loop_flags): Allow marked irreducible
9960 regions even with multiple latches.
9961 * predict.c (rebuild_frequencies): Simplify.
9963 2021-06-15 Richard Biener <rguenther@suse.de>
9965 * tree-ssa-threadupdate.c
9966 (jump_thread_path_registry::mark_threaded_blocks): Assert we
9967 have marked irreducible regions.
9969 2021-06-14 Martin Sebor <msebor@redhat.com>
9972 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
9973 Handle calls to placement new.
9974 (ndecl_dealloc_argno): Avoid placement delete.
9976 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
9979 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
9980 create_tmp_reg_or_ssa_name().
9982 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
9984 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
9985 (ranger_cache::enable_new_values): Set to specified value and
9986 return the old value.
9987 (ranger_cache::disable_new_values): Delete.
9988 (ranger_cache::fill_block_cache): Disable non 1st order derived
9990 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
9991 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
9993 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
9996 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
9997 Return true early when testing with V2HImode.
9998 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
10000 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
10002 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
10003 (mve_vec_unpack<US>_hi_<mode>): New pattern.
10004 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
10005 (mve_vmovntq_<supf><mode>): Prefix with '@'.
10006 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
10008 (vec_unpack<US>_lo_<mode>): Likewise.
10009 (vec_pack_trunc_<mode>): Rename to
10010 neon_quad_vec_pack_trunc_<mode>.
10011 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
10013 (vec_unpack<US>_lo_<mode>): New.
10014 (vec_pack_trunc_<mode>): New.
10016 2021-06-14 Richard Biener <rguenther@suse.de>
10018 PR tree-optimization/100934
10019 * tree-ssa-dom.c (pass_dominator::execute): Properly
10020 mark irreducible regions.
10022 2021-06-14 Martin Liska <mliska@suse.cz>
10024 * doc/invoke.texi: Put r{...} on the same line as @item.
10026 2021-06-14 Martin Liska <mliska@suse.cz>
10028 * doc/invoke.texi: Add missing newline.
10030 2021-06-14 Martin Liska <mliska@suse.cz>
10032 * doc/invoke.texi: Remove '+' charasters.
10034 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
10036 * config.gcc (arc): Add support for with_cpu option.
10037 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
10039 2021-06-14 Richard Biener <rguenther@suse.de>
10041 PR tree-optimization/101031
10042 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
10043 instead of size when accounting for a possibly string
10046 2021-06-14 Martin Liska <mliska@suse.cz>
10048 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
10050 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
10052 * value-query.cc (gimple_range_global): Call get_range_global
10053 if called after inlining.
10055 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
10058 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
10059 Emit constant permutation insn directly from here.
10061 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
10063 * attribs.c (find_attribute_namespace): Iterate over vec<> with
10065 * auto-profile.c (afdo_find_equiv_class): Likewise.
10066 * gcc.c (do_specs_vec): Likewise.
10067 (do_spec_1): Likewise.
10068 (driver::set_up_specs): Likewise.
10069 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
10070 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
10071 (imm_store_chain_info::try_coalesce_bswap): Likewise.
10072 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
10073 (get_location_for_stmts): Likewise.
10074 * graphite-poly.c (print_iteration_domains): Likewise.
10075 (free_poly_bb): Likewise.
10076 (remove_gbbs_in_scop): Likewise.
10077 (free_scop): Likewise.
10078 (dump_gbb_cases): Likewise.
10079 (dump_gbb_conditions): Likewise.
10080 (print_pdrs): Likewise.
10081 (print_scop): Likewise.
10082 * ifcvt.c (cond_move_process_if_block): Likewise.
10083 * lower-subreg.c (decompose_multiword_subregs): Likewise.
10084 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
10085 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
10086 * sel-sched-dump.c (dump_insn_vector): Likewise.
10087 * store-motion.c (store_ops_ok): Likewise.
10088 (store_killed_in_insn): Likewise.
10089 * timevar.c (timer::named_items::print): Likewise.
10090 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
10091 (cleanup_tree_cfg_noloop): Likewise.
10092 * tree-data-ref.c (dump_data_references): Likewise.
10093 (print_dir_vectors): Likewise.
10094 (print_dist_vectors): Likewise.
10095 (dump_data_dependence_relations): Likewise.
10096 (dump_dist_dir_vectors): Likewise.
10097 (dump_ddrs): Likewise.
10098 (create_runtime_alias_checks): Likewise.
10099 (free_subscripts): Likewise.
10100 (save_dist_v): Likewise.
10101 (save_dir_v): Likewise.
10102 (invariant_access_functions): Likewise.
10103 (same_access_functions): Likewise.
10104 (access_functions_are_affine_or_constant_p): Likewise.
10105 (find_data_references_in_stmt): Likewise.
10106 (graphite_find_data_references_in_stmt): Likewise.
10107 (free_dependence_relations): Likewise.
10108 (free_data_refs): Likewise.
10109 * tree-inline.c (copy_debug_stmts): Likewise.
10110 * tree-into-ssa.c (dump_currdefs): Likewise.
10111 (rewrite_update_phi_arguments): Likewise.
10112 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
10113 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
10115 (vect_slp_analyze_node_dependences): Likewise.
10116 (vect_slp_analyze_instance_dependence): Likewise.
10117 (vect_record_base_alignments): Likewise.
10118 (vect_get_peeling_costs_all_drs): Likewise.
10119 (vect_peeling_supportable): Likewise.
10120 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
10121 (vec_info::free_stmt_vec_infos): Likewise.
10123 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
10125 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
10126 (andqi3_1<cczn>): Removed.
10127 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
10128 (H8/SX bit logicals): Split out from other patterns.
10129 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
10130 mulqihi3_const_clobber_flags.
10131 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
10133 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
10136 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
10137 to true if red zone is used.
10138 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
10139 ix86_red_zone_used.
10140 * config/i386/i386.h (machine_function): Add red_zone_used.
10141 (ix86_red_zone_size): Removed.
10142 (ix86_red_zone_used): New.
10143 * config/i386/i386.md (peephole2 patterns): Replace
10144 ix86_red_zone_size with ix86_red_zone_used.
10146 2021-06-12 Jason Merrill <jason@redhat.com>
10148 * doc/extend.texi (unused variable attribute): Applies to
10149 structure fields as well.
10151 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
10153 * auto-profile.c (read_profile): fix a typo in an error string
10155 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
10157 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
10159 * tree-pretty-print.c (dump_omp_clauses): Update.
10160 (dump_generic_node) <OMP_CLAUSE>: Use it.
10162 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10165 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
10166 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
10167 the polymorphic variants matching code.
10168 (__arm_vld1q_z): Likewise.
10169 (__arm_vld2q): Likewise.
10170 (__arm_vld4q): Likewise.
10171 (__arm_vldrbq_gather_offset): Likewise.
10172 (__arm_vldrbq_gather_offset_z): Likewise.
10174 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
10176 PR tree-optimization/96392
10177 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
10179 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
10181 PR tree-optimization/96392
10182 * fold-const.c (fold_real_zero_addition_p): Take both arguments
10183 of the addition or subtraction, not just the zero. Use this
10184 other argument in tests for signaling NaNs and signed zeros.
10185 (tree_expr_maybe_real_minus_zero_p): New predicate.
10186 * fold-const.h (fold_real_zero_addition_p): Update prototype.
10187 (tree_expr_maybe_real_minus_zero_p): New function prototype.
10188 * match.pd: Update calls to fold_real_zero_addition_p.
10189 Replace HONOR_NANS with tree_expr_maybe_nan_p.
10190 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
10191 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
10192 * tree-ssa-reassoc.c (eliminate_using_constants): Update
10193 call to fold_real_zero_addition_p.
10195 2021-06-11 Richard Biener <rguenther@suse.de>
10197 PR tree-optimization/101025
10198 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
10199 all refs that require dependence checking.
10201 2021-06-11 Richard Biener <rguenther@suse.de>
10203 PR tree-optimization/101028
10204 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
10205 reassoc discovery fails fatally, mark appropriate lanes
10208 2021-06-11 Richard Biener <rguenther@suse.de>
10210 PR tree-optimization/101026
10211 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
10212 have a representative for the associated chain nodes.
10214 2021-06-11 Jakub Jelinek <jakub@redhat.com>
10216 PR rtl-optimization/101008
10217 * simplify-rtx.c (relational_result): New function.
10218 (simplify_logical_relational_operation,
10219 simplify_relational_operation): Use it.
10221 2021-06-11 Jakub Jelinek <jakub@redhat.com>
10224 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
10226 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
10229 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
10230 false if the permutation can be implemented with constant
10231 permutation instruction in wider mode.
10232 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
10233 Handle V8QImode and V4HImode.
10235 2021-06-11 Martin Liska <mliska@suse.cz>
10237 PR gcov-profile/100788
10238 * common.opt: Add new option.
10239 * coverage.c (coverage_begin_function): Emit warning instead on
10240 the internal compiler error.
10241 * doc/invoke.texi: Document the option.
10242 * toplev.c (process_options): Enable it by default.
10244 2021-06-11 Richard Biener <rguenther@suse.de>
10246 PR middle-end/101009
10247 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
10248 to set *init_b to true when we encounter a constant equal
10250 (compute_affine_dependence): Also dump the actual DR_REF.
10252 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
10254 PR tree-optimization/100984
10255 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
10256 replacements table.
10257 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
10259 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
10261 * config/rs6000/rs6000.md
10262 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
10263 define_insn_and_split.
10265 2021-06-11 Richard Biener <rguenther@suse.de>
10267 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
10268 to sort operands of the associative chain.
10270 2021-06-11 Richard Biener <rguenther@suse.de>
10272 * system.h (gcc_stablesort_r): Declare.
10273 * sort.cc (gcc_sort_r): Support stable sort.
10274 (gcc_stablesort_r): Define.
10275 * vec.h (vec<>::stablesort): Add.
10277 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
10280 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
10281 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
10282 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
10283 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
10284 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
10285 (expand_vec_perm_interleave2): Handle 64bit modes.
10286 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
10287 (expand_vec_perm_even_odd_1): Ditto.
10288 (ix86_vectorize_vec_perm_const): Ditto.
10289 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
10290 * config/i386/sse.md: ... here.
10291 * config/i386/mmx.md (*vec_interleave_lowv2sf):
10292 New insn_and_split pattern.
10293 (*vec_interleave_highv2sf): Ditto.
10294 (mmx_pshufbv8qi3): New insn pattern.
10295 (*mmx_pblendw): Ditto.
10297 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
10299 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
10300 (build_acc): Likewise.
10301 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
10302 source operands in little-endian mode.
10303 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
10304 (mma_init_builtins): Likewise.
10305 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
10306 ordering for the MMA assemble and build source operands.
10307 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
10309 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
10312 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
10314 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
10316 * config/h8300/extensions.md: Replace _clobber_flags patterns
10319 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
10321 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
10322 (vcond_mask_<mode><tointvec>): this.
10324 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
10325 Thomas Schwinge <thomas@codesourcery.com>
10327 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
10328 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
10329 * gimple.h (enum gf_mask): Split
10330 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
10331 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
10332 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
10333 (is_gimple_omp_oacc): Update.
10334 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
10335 * gimplify.c (gimplify_omp_target_update): Likewise.
10336 * omp-expand.c (expand_omp_target, build_omp_regions_1)
10337 (omp_make_gimple_edges): Likewise.
10338 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
10341 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
10343 * value-query.cc (value_query::value_on_edge): Rename name to
10345 (range_query::range_on_edge): Same.
10346 (range_query::value_of_expr): Same.
10347 (range_query::value_on_edge): Same.
10348 * value-query.h (class value_query): Same.
10349 (class range_query): Same.
10351 2021-06-10 Richard Biener <rguenther@suse.de>
10353 PR tree-optimization/101003
10354 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
10355 use the pattern stmt defs when linearizing a chain.
10357 2021-06-10 Jakub Jelinek <jakub@redhat.com>
10360 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
10361 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10363 2021-06-10 Clement Chigot <clement.chigot@atos.net>
10365 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
10366 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
10368 2021-06-09 Andrew Pinski <apinski@marvell.com>
10370 PR tree-optimization/100925
10371 * match.pd (a ? CST1 : CST2): Limit transformations
10372 that would produce a negative to integeral types only.
10373 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
10375 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
10378 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
10380 * doc/tm.texi: Correctly update.
10382 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
10384 * doc/tm.texi: Correctly update.
10386 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
10389 * doc/tm.texi.in (Trampolines): Add a missing blank line.
10391 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
10394 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
10395 and -ftrampolines work only with Ada.
10396 * doc/tm.texi.in (Trampolines): Likewise.
10397 * doc/tm.texi: Regenerated.
10399 2021-06-09 Carl Love <cel@us.ibm.com>
10401 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
10402 Add define for new builtins.
10403 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
10404 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
10405 overloaded builtin definitions.
10406 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
10407 VSIGNEXTSD2Q): Add builtin expansions.
10408 (SIGNEXT): Add P10 overload definition.
10409 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
10410 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
10411 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
10412 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
10413 vsignextend_si_v2di)[VIlong]: Add define_expand.
10414 Make define_insn vsx_sign_extend_si_v2di visible.
10415 * doc/extend.texi: Add documentation for the vec_signexti,
10416 vec_signextll builtins and vec_signextq.
10418 2021-06-09 Carl Love <cel@us.ibm.com>
10420 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
10421 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
10422 __floattikf_sw, __floatuntikf_sw respectively.
10423 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
10424 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
10425 define_insn for mode IEEE 128.
10427 2021-06-09 Carl Love <cel@us.ibm.com>
10429 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
10430 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
10431 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
10432 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
10433 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
10434 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
10435 uses of VSX_TI to VEC_TI.
10437 2021-06-09 Carl Love <cel@us.ibm.com>
10439 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
10441 2021-06-09 Carl Love <cel@us.ibm.com>
10443 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
10445 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
10446 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
10447 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
10448 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
10449 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
10450 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
10451 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
10453 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
10454 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
10455 altivec_vrlqnm): New define_expands.
10456 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
10457 VCMPGTUT_P): Add macro expansions.
10458 (BU_P10V_AV_P): Add builtin predicate definition.
10459 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
10460 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
10461 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
10462 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
10463 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
10464 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
10465 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
10466 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
10467 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
10468 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
10469 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
10470 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
10471 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
10472 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
10473 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
10474 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
10475 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
10476 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
10477 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
10478 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
10479 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
10480 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
10481 P10V_BUILTIN_MODU_V1TI):
10482 New overloaded definitions.
10483 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
10484 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
10485 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
10486 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
10487 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
10488 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
10490 (altivec_init_builtins): New E_V1TImode case statement.
10491 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
10492 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
10493 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
10494 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
10495 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
10496 E_V1TImode]: New case statements.
10497 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
10498 value RS6000_BTI_bool_V1TI.
10499 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
10500 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
10501 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
10502 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
10503 vlshrv1ti3, vashrv1ti3): New define_expands.
10504 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
10505 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
10506 UNSPEC_VSX_MODUQ): New unspecs.
10507 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
10508 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
10510 (vcmpnet): New define_expand.
10511 * doc/extend.texi: Add documentation for the new builtins vec_rl,
10512 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
10513 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
10514 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
10515 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
10516 vec_any_ge, vec_any_le.
10518 2021-06-09 Carl Love <cel@us.ibm.com>
10520 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
10521 bug in argument generation.
10523 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
10525 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
10527 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
10528 remove <supf> iterator.
10529 (mve_vclzq_u<mode>): New.
10530 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
10531 (neon_vclz<mode): Move to ...
10532 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
10533 * config/arm/vec-common.md: ... here. Add support for MVE.
10535 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
10537 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
10538 (@mve_vrhaddq_<supf><mode): Likewise.
10539 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
10540 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
10541 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
10543 2021-06-09 imba-tjd <109224573@qq.com>
10545 * doc/invoke.texi: Fix typo.
10547 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
10549 PR middle-end/53267
10550 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
10551 Support evaluation of fmod/fmodf/fmodl at compile-time.
10553 2021-06-09 Richard Biener <rguenther@suse.de>
10555 PR tree-optimization/100981
10556 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
10557 gimple_get_lhs to also handle calls.
10558 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
10561 2021-06-09 Richard Biener <rguenther@suse.de>
10563 PR tree-optimization/97832
10564 * tree-vectorizer.h (_slp_tree::failed): New.
10565 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
10567 (_slp_tree::~_slp_tree): Free failed.
10568 (vect_build_slp_tree): Retain failed nodes and record
10569 matches in them, copying that back out when running
10570 into a cached fail. Dump start and end of discovery.
10571 (dt_sort_cmp): New.
10572 (vect_build_slp_tree_2): Handle associatable chains
10573 together doing more aggressive operand swapping.
10575 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
10578 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
10580 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
10581 Linux and GNU targets.
10583 2021-06-09 Richard Biener <rguenther@suse.de>
10585 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
10588 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
10590 * config/arc/arc.md (loop_end): Change it to
10591 define_insn_and_split.
10593 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
10595 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
10596 (machi): New pattern.
10597 (umaddhisi4): Use VMAC2HU instruction.
10598 (umachi): New pattern.
10600 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
10602 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
10603 * config/arc/arc.c (arc_split_move_p): New function.
10604 (arc_split_move): Clean up.
10605 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
10606 (movdf_insn): Likewise.
10607 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
10609 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
10612 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
10613 argument to "raw". Do not emit segment overrides when "raw" is true.
10615 2021-06-09 Martin Liska <mliska@suse.cz>
10617 * doc/gcov.texi: Create a proper JSON files.
10618 * doc/invoke.texi: Remove dots in order to make it a valid
10621 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
10623 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
10624 (insn_is_load_p): Use pattern_is_rotate64.
10625 (insn_is_swap_p): Likewise.
10626 (quad_aligned_load_p): Likewise.
10627 (const_load_sequence_p): Likewise.
10628 (replace_swapped_aligned_load): Likewise.
10629 (recombine_lvx_pattern): Likewise.
10630 (recombine_stvx_pattern): Likewise.
10632 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
10634 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
10635 fur_stmt source record.
10636 * gimple-range.cc (fur_source::get_operand): Generic range query.
10637 (fur_source::get_phi_operand): New.
10638 (fur_source::register_dependency): New.
10639 (fur_source::query): New.
10640 (class fur_edge): New. Edge source for operands.
10641 (fur_edge::fur_edge): New.
10642 (fur_edge::get_operand): New.
10643 (fur_edge::get_phi_operand): New.
10644 (fur_edge::query): New.
10645 (fur_stmt::fur_stmt): New.
10646 (fur_stmt::get_operand): New.
10647 (fur_stmt::get_phi_operand): New.
10648 (fur_stmt::query): New.
10649 (class fur_depend): New. Statement source and process dependencies.
10650 (fur_depend::fur_depend): New.
10651 (fur_depend::register_dependency): New.
10652 (class fur_list): New. List source for operands.
10653 (fur_list::fur_list): New.
10654 (fur_list::get_operand): New.
10655 (fur_list::get_phi_operand): New.
10656 (fold_range): New. Instantiate appropriate fur_source class and fold.
10657 (fold_using_range::range_of_range_op): Use new API.
10658 (fold_using_range::range_of_address): Ditto.
10659 (fold_using_range::range_of_phi): Ditto.
10660 (imple_ranger::fold_range_internal): Use fur_depend class.
10661 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
10662 * gimple-range.h (class fur_source): Now a base class.
10663 (class fur_stmt): New.
10664 (fold_range): New prototypes.
10665 (fur_source::fur_source): Delete.
10667 2021-06-08 Andrew Pinski <apinski@marvell.com>
10669 PR tree-optimization/25290
10670 * tree-ssa-phiopt.c (xor_replacement): Delete.
10671 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
10672 (match_simplify_replacement): Allow one cheap preparation
10673 statement that can be moved to before the if.
10675 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
10677 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
10678 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
10680 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
10682 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
10683 Create length attribute on define_insn_and_split. Only split for cases which we
10685 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
10686 fix length computation.
10687 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
10689 2021-06-08 Richard Biener <rguenther@suse.de>
10691 PR tree-optimization/100923
10692 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
10693 the operand vector to be valueized.
10694 (valueize_refs): Likewise.
10695 (valueize_shared_reference_ops_from_ref): Adjust.
10696 (valueize_shared_reference_ops_from_call): Likewise.
10697 (vn_reference_lookup_3): Likewise.
10698 (vn_reference_lookup_pieces): Likewise. Re-valueize
10699 with honoring availability when we are about to create
10700 the ao_ref and valueized before.
10701 (vn_reference_lookup): Likewise.
10702 (vn_reference_insert_pieces): Adjust.
10704 2021-06-08 Richard Biener <rguenther@suse.de>
10706 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
10707 (_slp_instance::root_stmts): ... a vector.
10708 (SLP_INSTANCE_ROOT_STMT): Rename to ...
10709 (SLP_INSTANCE_ROOT_STMTS): ... this.
10710 (slp_root::root): Change to...
10711 (slp_root::roots): ... a vector.
10712 (slp_root::slp_root): Adjust.
10713 * tree-vect-slp.c (_slp_instance::location): Adjust.
10714 (vect_free_slp_instance): Release the root stmt vector.
10715 (vect_build_slp_instance): Adjust.
10716 (vect_analyze_slp): Likewise.
10717 (_bb_vec_info::~_bb_vec_info): Likewise.
10718 (vect_slp_analyze_operations): Likewise.
10719 (vect_bb_vectorization_profitable_p): Likewise. Adjust
10720 costs for the root stmt.
10721 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
10723 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
10725 (vectorize_slp_instance_root_stmt): Adjust.
10726 (vect_schedule_slp): Likewise.
10728 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
10730 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
10731 (ssa_equiv_stack::ssa_equiv_stack): New.
10732 (ssa_equiv_stack::~ssa_equiv_stack): New.
10733 (ssa_equiv_stack::enter): New.
10734 (ssa_equiv_stack::leave): New.
10735 (ssa_equiv_stack::push_replacement): New.
10736 (ssa_equiv_stack::get_replacement): New.
10737 (is_pointer_ssa): New.
10738 (class pointer_equiv_analyzer): New.
10739 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
10740 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
10741 (pointer_equiv_analyzer::set_global_equiv): New.
10742 (pointer_equiv_analyzer::set_cond_equiv): New.
10743 (pointer_equiv_analyzer::get_equiv): New.
10744 (pointer_equiv_analyzer::enter): New.
10745 (pointer_equiv_analyzer::leave): New.
10746 (pointer_equiv_analyzer::get_equiv_expr): New.
10747 (pta_valueize): New.
10748 (pointer_equiv_analyzer::visit_stmt): New.
10749 (pointer_equiv_analyzer::visit_edge): New.
10750 (hybrid_folder::value_of_expr): Call PTA.
10751 (hybrid_folder::value_on_edge): Same.
10752 (hybrid_folder::pre_fold_bb): New.
10753 (hybrid_folder::post_fold_bb): New.
10754 (hybrid_folder::pre_fold_stmt): New.
10755 (rvrp_folder::pre_fold_bb): New.
10756 (rvrp_folder::post_fold_bb): New.
10757 (rvrp_folder::pre_fold_stmt): New.
10758 (rvrp_folder::value_of_expr): Call PTA.
10759 (rvrp_folder::value_on_edge): Same.
10761 2021-06-08 Jakub Jelinek <jakub@redhat.com>
10764 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
10765 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
10767 2021-06-08 Richard Biener <rguenther@suse.de>
10769 PR middle-end/100951
10770 * tree-vect-generic.c (expand_vector_piecewise): Build a
10771 VECTOR_CST if all elements are constant.
10772 (expand_vector_condition): Likewise.
10773 (lower_vec_perm): Likewise.
10774 (expand_vector_conversion): Likewise.
10776 2021-06-08 Martin Liska <mliska@suse.cz>
10778 * doc/invoke.texi: Document new param evrp-sparse-threshold.
10780 2021-06-08 Martin Liska <mliska@suse.cz>
10782 * genautomata.c (create_automata): Fix typo.
10784 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
10786 PR tree-optimization/100794
10787 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
10788 allow_unroll_p and only allow unrolling when it's true.
10789 (tree_predictive_commoning): Add parameter allow_unroll_p and
10791 (run_tree_predictive_commoning): Likewise.
10792 (pass_predcom::gate): Check flag_tree_loop_vectorize and
10793 global_options_set.x_flag_predictive_commoning.
10794 (pass_predcom::execute): Adjust for allow_unroll_p.
10796 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
10798 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
10799 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
10800 lambda function cleanup, remove scev_reset call, and adjust return
10802 (tree_predictive_commoning): Adjust for different changed values,
10803 only set flag TODO_update_ssa_only_virtuals if changed.
10804 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
10805 from todo_flags_finish.
10807 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
10809 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
10810 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
10811 (sbr_sparse_bitmap::bitmap_set_quad): New.
10812 (sbr_sparse_bitmap::bitmap_get_quad): New.
10813 (sbr_sparse_bitmap::set_bb_range): New.
10814 (sbr_sparse_bitmap::get_bb_range): New.
10815 (sbr_sparse_bitmap::bb_range_p): New.
10816 (block_range_cache::block_range_cache): initialize bitmap obstack.
10817 (block_range_cache::~block_range_cache): Destruct obstack.
10818 (block_range_cache::set_bb_range): Decide when to utilze the
10819 sparse on entry cache.
10820 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
10821 * params.opt (-param=evrp-sparse-threshold): New.
10823 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
10825 * bitmap.c (bitmap_set_aligned_chunk): New.
10826 (bitmap_get_aligned_chunk): New.
10827 (test_aligned_chunk): New.
10828 (bitmap_c_tests): Call test_aligned_chunk.
10829 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
10831 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
10834 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
10836 (ix86_expand_vector_init_one_nonzero): Ditto.
10837 (ix86_expand_vector_init_one_var): Ditto.
10838 (ix86_expand_vector_init_general): Ditto.
10839 * config/i386/mmx.md (vec_initv4qiqi): New expander.
10841 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
10843 * config/h8300/movepush.md: Change most _clobber_flags
10844 patterns to instead use <cczn> subst.
10845 (movsi_cczn): New pattern with usable CC cases split out.
10846 (movsi_h8sx_cczn): Likewise.
10848 2021-06-07 Martin Liska <mliska@suse.cz>
10850 * common/common-target.def: Split long lines and replace them
10852 * target.def: Likewise.
10853 * doc/tm.texi: Re-generated.
10855 2021-06-07 Jakub Jelinek <jakub@redhat.com>
10858 * fold-const.c (fold_read_from_vector): Return NULL if trying to
10859 read from a CONSTRUCTOR with vector type elements.
10861 2021-06-07 Jakub Jelinek <jakub@redhat.com>
10863 PR middle-end/100898
10864 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
10865 should copy any arguments. Don't call gimple_call_num_args
10866 on id->call_stmt or call_stmt more than once.
10868 2021-06-07 liuhongt <hongtao.liu@intel.com>
10871 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
10873 (<insn>v4siv4di2): Delete constraints for define_expand.
10875 2021-06-07 liuhongt <hongtao.liu@intel.com>
10878 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
10879 assignment of cfun->machine->has_explicit_vzeroupper.
10880 * config/i386/i386-features.c
10881 (ix86_add_reg_usage_to_vzerouppers): Delete.
10882 (ix86_add_reg_usage_to_vzeroupper): Ditto.
10883 (rest_of_handle_insert_vzeroupper): Remove
10884 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
10886 (gate): Remove cfun->machine->has_explicit_vzeroupper.
10887 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
10889 * config/i386/i386.c (ix86_insn_callee_abi): New function.
10890 (ix86_initialize_callee_abi): Ditto.
10891 (ix86_expand_avx_vzeroupper): Ditto.
10892 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
10894 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
10895 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
10897 * config/i386/i386.h (struct GTY(()) machine_function): Delete
10898 has_explicit_vzeroupper.
10899 * config/i386/i386.md (enum unspec): New member
10901 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
10902 define_constants for insn callee abi index.
10903 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
10904 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
10905 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
10906 (*avx_vzeroupper): Rename to ..
10907 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
10908 call_insn which has a special vzeroupper ABI.
10909 (*avx_vzeroupper_1): Deleted.
10911 2021-06-07 liuhongt <hongtao.liu@intel.com>
10914 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
10915 it won't use stack pointer reg.
10916 * final.c (leaf_function_p): When call_insn is a fake call, it
10917 won't affect caller as a leaf function.
10918 * reg-stack.c (callee_clobbers_any_stack_reg): New.
10919 (subst_stack_regs): When call_insn doesn't clobber any stack
10920 reg, don't clear the arguments.
10921 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
10923 * shrink-wrap.c (requires_stack_frame_p): No need for stack
10924 frame for a fake call.
10925 * rtl.h (FAKE_CALL_P): New macro.
10927 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
10929 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
10931 (sparc_order_regs_for_local_alloc): ...this.
10932 (sparc_leaf_reg_remap): Declare.
10933 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
10934 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
10935 * config/sparc/sparc.c (leaf_reg_remap): Delete.
10936 (order_regs_for_local_alloc): Rename to...
10937 (sparc_order_regs_for_local_alloc): ...this.
10938 (sparc_leaf_reg_remap): New function.
10939 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
10941 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
10943 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
10944 Use assemble_name to output BSS section name.
10946 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
10948 * config/i386/constraints.md (Bs):
10949 Remove boolean operators from match_test RTX.
10952 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
10955 2021-06-06 Martin Liska <mliska@suse.cz>
10957 * doc/extend.texi: Add missing @headitem.
10958 * doc/invoke.texi: Likewise.
10959 * doc/objc.texi: Likewise.
10961 2021-06-06 Martin Liska <mliska@suse.cz>
10963 * genhooks.c (emit_findices): Remove unused function.
10964 (emit_documentation): Do not call emit_findices
10965 and do not search for @Fcode directives.
10967 2021-06-06 Martin Liska <mliska@suse.cz>
10969 * doc/invoke.texi: Remove extra character.
10971 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
10973 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
10975 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
10977 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
10978 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
10979 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
10980 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
10982 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
10984 * config/or1k/or1k.md (*movdi): Fix empty split condition.
10986 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
10988 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
10991 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
10993 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
10994 *zero_extendsidi2): Fix empty split condition.
10996 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
10998 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
11000 * config/h8300/bitfield.md: Likewise.
11001 * config/h8300/combiner.md: Likewise.
11002 * config/h8300/divmod.md: Likewise.
11003 * config/h8300/extensions.md: Likewise.
11004 * config/h8300/jumpcall.md: Likewise.
11005 * config/h8300/movepush.md: Likewise.
11006 * config/h8300/multiply.md: Likewise.
11007 * config/h8300/other.md: Likewise.
11008 * config/h8300/shiftrotate.md: Likewise.
11009 * config/h8300/logical.md: Likewise. Fix split pattern to use
11010 code iterator that somehow slipped through.
11012 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
11014 PR middle-end/100905
11015 * tree-nested.c (convert_nonlocal_omp_clauses,
11016 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
11018 2021-06-04 Martin Sebor <msebor@redhat.com>
11020 PR middle-end/100732
11021 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
11022 with either source or destination argument of invalid type.
11023 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
11024 calls with arguments of invalid type.
11026 2021-06-04 Martin Sebor <msebor@redhat.com>
11028 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
11030 (attr_access::vla_bounds): Also handle VLA bounds.
11032 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
11034 * config/i386/predicates.md (GOT_memory_operand):
11035 Implement using match_code RTXes.
11036 (GOT32_symbol_operand): Ditto.
11038 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
11041 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
11043 (ix86_expand_vector_init_general): Ditto.
11044 Use SImode instead of word_mode for logic operations
11045 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
11046 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
11047 implemented by expand_vec_perm_1.
11048 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
11049 should be implemented using standard shuffle patterns.
11050 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
11051 V2HI modes to modes, implementable with shuffle for one operand.
11052 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
11053 (*pshufw_1): New insn pattern.
11054 (*vec_dupv2hi): Ditto.
11055 (vec_initv2hihi): New expander.
11057 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
11059 * config/arm/vfp.md (no_literal_pool_df_immediate,
11060 no_literal_pool_sf_immediate): Fix empty split condition.
11062 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
11064 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
11065 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
11066 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
11067 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
11068 *<sse4_1_avx2>_pblendvb_lt): Likewise.
11070 2021-06-04 Jakub Jelinek <jakub@redhat.com>
11073 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
11074 concatenation from half-sized modes with TImode elements.
11076 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
11078 * config/arc/arc.c (arc_override_options): Disable millicode
11079 thunks when RF16 is on.
11081 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
11083 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
11085 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
11087 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
11088 Replace PROMOTE_MODE marco with its content.
11090 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
11092 * config/cris/cris.md (*addi_reload): Fix empty split condition.
11094 2021-06-03 Jim Wilson <jimw@sifive.com>
11096 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
11097 turn it on for all riscv targets.
11099 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
11102 * config/i386/i386-expand.c (ix86_expand_vector_set):
11103 Handle V2HI and V4QI modes.
11104 (ix86_expand_vector_extract): Ditto.
11105 * config/i386/mmx.md (*pinsrw): New insn pattern.
11108 (*pextrw_zext): Ditto.
11110 (*pextrb_zext): Ditto.
11111 (vec_setv2hi): New expander.
11112 (vec_extractv2hihi): Ditto.
11113 (vec_setv4qi): Ditto.
11114 (vec_extractv4qiqi): Ditto.
11115 (vec_setv8qi): Enable only for TARGET_SSE4_1.
11116 (vec_extractv8qiqi): Ditto.
11118 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
11120 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
11121 order to subf instruction.
11122 * config/rs6000/fusion.md: Regenerate.
11124 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
11126 * calls.c (get_size_range): Use range_of_expr instead of
11127 determine_value_range.
11128 * tree-affine.c (expr_to_aff_combination): Same.
11129 * tree-data-ref.c (split_constant_offset): Same.
11130 * tree-vrp.c (determine_value_range_1): Remove.
11131 (determine_value_range): Remove.
11132 * tree-vrp.h (determine_value_range): Remove.
11134 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
11136 * function-tests.c (test_ranges): Call gimple_range_tests.
11137 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
11139 * gimple-range.cc (fur_source::get_operand): Do not call
11140 get_tree_range or gimple_range_global.
11142 (get_tree_range): Move to value-query.cc.
11143 Call get_arith_expr_range.
11144 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
11145 Include gimple-range-tests.cc.
11146 * gimple-range.h (fold_range): Add argument.
11147 (get_tree_range): Remove.
11148 * selftest.h (gimple_range_tests): New.
11149 * value-query.cc (global_range_query::range_of_expr): Add
11151 (range_query::get_tree_range): Move from gimple-range.cc.
11152 * value-query.h (class range_query): Add get_tree_range and
11153 get_arith_expr_range. Make fur_source a friend.
11154 * vr-values.c (vr_values::range_of_expr): Pass stmt to
11156 * gimple-range-tests.cc: New file.
11158 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
11160 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
11161 update_global_range.
11162 * value-query.cc (update_global_range): New.
11163 * value-query.h (update_global_range): New.
11165 2021-06-03 David Malcolm <dmalcolm@redhat.com>
11167 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
11168 printing the same location twice if there are fix-it hints,
11169 multiple locations, or a label.
11171 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
11173 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
11174 thresholds to narrow the upper bound on epilogue iterations.
11176 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
11178 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
11179 (mve_vabsq_s<mode>): Likewise.
11180 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
11181 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
11182 * config/arm/vec-common.md (neg<mode>2): Rename to
11183 <absneg_str><mode>2.
11185 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
11187 * common/config/arc/arc-common.c (arc_option_optimization_table):
11188 Remove malign-call.
11189 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
11190 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
11191 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
11192 * config/arc/arc.md (abssi2_mixed): Remove pattern.
11193 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
11194 (malign-call): Likewise.
11195 (mmixed-code): Likewise.
11196 * doc/invoke.texi (ARC): Update doc.
11198 2021-06-03 Martin Liska <mliska@suse.cz>
11200 * common.opt: Use proper Enum values.
11201 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
11202 (parse_sanitizer_options): Handle only sanitizer_opts.
11203 (common_handle_option): Just assign value.
11205 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
11208 * tree-inline.c (inline_forbidden_p): Remove test on return type.
11210 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
11212 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
11213 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
11214 (type_byte_size): Inline into...
11215 (add_byte_size_attribute): ...this and call add_scalar_info.
11217 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
11219 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
11220 (typed_binop_from_tree): New function.
11221 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
11222 turn a divide by a power of 2 into a shift.
11223 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
11224 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
11225 typed divide by calling typed_binop_from_tree.
11227 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
11229 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
11230 (is_handled_procedure_type): Likewise.
11231 (struct loc_descr_context): Add strict_signedness field.
11232 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
11233 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
11234 (resolve_args_picking): Minor tweak.
11235 (function_to_dwarf_procedure): Initialize strict_signedness field.
11236 (type_byte_size): Likewise.
11237 (field_byte_offset): Likewise.
11238 (gen_descr_array_type_die): Likewise.
11239 (gen_variant_part): Likewise.
11240 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
11241 to true when a context is present before evaluating the arguments.
11242 <COND_EXPR>: Do not generate a useless comparison with zero.
11243 When dereferencing an address, if strict_signedness is true and the
11244 type is small and signed, use DW_OP_deref_type to do the dereference
11245 and then DW_OP_convert to convert back to the generic type.
11247 2021-06-03 Jakub Jelinek <jakub@redhat.com>
11250 * tree-inline.c (copy_tree_body_r): Handle iterators on
11251 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
11253 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
11255 * config/arc/arc.md (*bbit_di): Remove.
11257 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
11259 PR rtl-optimization/100264
11260 * ree.c (get_sub_rtx): Ignore SET expressions without register
11261 destinations and remove assertion, as it is not valid anymore
11262 with this new behaviour.
11263 (merge_def_and_ext): Eliminate destination check for register
11264 as such SET expressions can't occur anymore.
11265 (combine_reaching_defs): Likewise.
11267 2021-06-02 Jakub Jelinek <jakub@redhat.com>
11270 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
11271 -Wtype-limits warnings.
11272 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
11273 in operands to avoid -Wsign-compare warnings.
11275 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
11277 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
11280 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
11282 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
11284 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
11286 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
11288 * config/s390/subst.md(cconly_subst): Use a single constraint
11289 in (match_scratch).
11291 2021-06-02 Martin Liska <mliska@suse.cz>
11293 * ipa-icf.h: Use auto_vec for memory_access_types.
11295 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
11297 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
11298 argument from prototype.
11299 (output_logical_op): Add rtx_code argument.
11300 (compute_logical_op_length): Likewise.
11301 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
11302 to compute_a_shift_length.
11303 (output_logical_op); New argument with the rtx code rather than
11304 extracting it from an operand. Handle QImode too.
11305 (compute_logical_op_length): Similary.
11306 (compute_a_shift_length): Drop unused argument.
11307 * config/h8300/h8300.md (logicals): New code iterator.
11308 * config/h8300/logical.md (<code><mode>3 expander): Combine
11309 the "and" expander with the "ior"/"xor" expander.
11310 (bclr<mode>msx): Combine the QI/HI mode patterns.
11311 (<logical><mode>3 insns): Use code iterator rather than match_operator.
11312 Handle QImode as well. Update call to output_logical_op and
11313 compute_logical_op_length to pass in rtx_code
11314 Fix split condition on all define_insn_and_split patterns.
11315 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
11316 the flags and setting ZN via existing define_subst.
11317 * config/h8300/shiftrotate.md: Drop unused argument from
11318 calls to compute_a_shift_length.
11319 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
11321 2021-06-01 Andrew Pinski <apinski@marvell.com>
11323 PR tree-optimization/25290
11324 * tree-ssa-phiopt.c (match_simplify_replacement):
11326 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
11327 (two_value_replacement): Change the comment about
11328 conditional_replacement.
11329 (conditional_replacement): Delete.
11331 2021-06-01 Andrew Pinski <apinski@marvell.com>
11333 PR tree-optimization/95481
11334 * tree-tailcall.c (find_tail_calls): Handle empty typed
11337 2021-06-01 Andrew Pinski <apinski@marvell.com>
11339 * gimplify.c (zero_sized_field_decl): Delete
11340 (zero_sized_type): Delete
11341 (gimplify_init_ctor_eval): Use is_empty_type instead
11342 of zero_sized_field_decl.
11343 (gimplify_modify_expr): Use is_empty_type instead of
11346 2021-06-01 Jason Merrill <jason@redhat.com>
11349 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
11351 2021-06-01 Jason Merrill <jason@redhat.com>
11354 * diagnostic.h (warning_enabled_at): Declare.
11355 * diagnostic.c (diagnostic_enabled): Factor out from...
11356 (diagnostic_report_diagnostic): ...here.
11357 (warning_enabled_at): New.
11359 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
11361 * gimple-ssa-evrp.c: Enable exporting of global ranges.
11363 2021-06-01 Martin Liska <mliska@suse.cz>
11366 * doc/invoke.texi: Mention that -fgcse-after-reload
11367 is enabled with -O3.
11369 2021-06-01 liuhongt <hongtao.liu@intel.com>
11371 PR tree-optimization/98365
11372 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
11373 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
11374 (convert_scalar_cond_reduction): Ditto.
11375 (predicate_scalar_phi): Ditto.
11377 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
11379 PR tree-optimization/100781
11380 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
11381 value calculation by default.
11382 (ranger_cache::enable_new_values): New.
11383 (ranger_cache::disable_new_values): New.
11384 (ranger_cache::push_poor_value): Check if new values are allowed.
11385 * gimple-range-cache.h (class ranger_cache): New member/methods.
11386 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
11387 statement, and disable/renable new value calculation.
11389 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
11391 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
11392 (ranger_cache::range_of_def): New.
11393 (ranger_cache::entry_range): New.
11394 (ranger_cache::exit_range): New.
11395 (ranger_cache::range_of_expr): Adjust.
11396 (ranger_cache::range_on_edge): Adjust.
11397 (ranger_cache::propagate_cache): Call exit_range directly.
11398 * gimple-range-cache.h (class ranger_cache): Adjust.
11400 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
11402 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
11403 gori_compute being a member rather than base class.
11404 dervied call to member call.
11405 (ranger_cache::dump): No longer dump gori_map.
11406 (ranger_cache::dump_bb): New.
11407 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
11408 being a member rather than base class.
11409 (ranger_cache::set_global_range): Ditto.
11410 (ranger_cache::ssa_range_in_bb): Ditto.
11411 (ranger_cache::range_of_expr): New.
11412 (ranger_cache::range_on_edge): New.
11413 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
11414 (ranger_cache::propagate_cache): Adjust debugging output.
11415 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
11417 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
11418 member, and inherit from range_query instead.
11419 (ranger_cache::dump_bb): New. split from dump.
11420 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
11421 (gori_compute::expr_range_at_stmt): Delete.
11422 (gori_compute::compute_name_range_op): Delete.
11423 (gori_compute::compute_operand_range_switch): Add fur_source.
11424 (gori_compute::compute_operand_range): Add fur_source param, inline
11425 old compute_name_range_op and optimize_logical_operands.
11426 (struct tf_range): Delete.
11427 (gori_compute::logical_combine): Adjust
11428 (gori_compute::optimize_logical_operands): Delete.
11429 (gori_compute::compute_logical_operands_in_chain): Delete.
11430 (gori_compute::compute_logical_operands): Adjust.
11431 (gori_compute::compute_operand1_range): Adjust to fur_source.
11432 (gori_compute::compute_operand2_range): Ditto.
11433 (gori_compute::compute_operand1_and_operand2_range): Ditto.
11434 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
11435 and adjust to fur_source.
11436 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
11437 range_query and fur_source.
11438 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
11439 from the ranger_cache..
11440 (gimple_ranger::fold_range_internal): Adjust to base class change of
11442 (gimple_ranger::dump_bb): Adjust dump.
11443 * gimple-range.h (gimple_ranger):export gori computes object.
11445 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
11447 PR tree-optimization/100774
11448 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
11449 Constant values are also not stale.
11450 (ranger_cache::set_global_range): Range invariant values should also
11451 have the correct timestamp.
11453 2021-05-31 Martin Liska <mliska@suse.cz>
11455 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
11456 Unpack FUNCTION_DECL_DECL_TYPE.
11457 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
11458 Stream FUNCTION_DECL_DECL_TYPE instead of
11459 DECL_IS_OPERATOR_NEW_P.
11460 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
11462 (DECL_IS_OPERATOR_NEW_P): Likewise.
11463 (DECL_IS_OPERATOR_DELETE_P): Likewise.
11464 (DECL_LAMBDA_FUNCTION_P): Likewise.
11466 2021-05-31 Richard Biener <rguenther@suse.de>
11469 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
11470 * internal-fn.def (SHUFFLEVECTOR): New.
11471 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
11472 * doc/extend.texi: Document __builtin_shufflevector.
11474 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
11477 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
11478 indexed form addresses.
11480 2021-05-29 Jeff Law <jlaw@tachyum.com>
11482 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
11483 parameter. Call callers fixed.
11485 (output_plussi): Add FALLTHRU markers.
11486 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
11488 2021-05-29 Jakub Jelinek <jakub@redhat.com>
11490 PR middle-end/99928
11491 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
11492 combined with parallel, make sure to add shared clause to
11493 parallel for explicit linear clause.
11495 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
11497 PR tree-optimization/100787
11498 * gimple-ssa-evrp.c: Disable exporting of global ranges.
11500 2021-05-28 Jason Merrill <jason@redhat.com>
11502 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
11503 operator--, operator*, operator==, and operator!=.
11504 (class tsi_range): New.
11506 2021-05-28 Richard Biener <rguenther@suse.de>
11508 PR tree-optimization/100778
11509 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
11510 trapping ops in different BBs.
11512 2021-05-28 Richard Biener <rguenther@suse.de>
11515 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
11516 copy fntype from original call.
11518 2021-05-28 Martin Liska <mliska@suse.cz>
11520 PR gcov-profile/100751
11521 * doc/gcov.texi: Revert partially a hunk that was wrong.
11523 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
11525 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
11527 (HAVE_sync_compare_and_swaphi): Likewise.
11528 (HAVE_sync_compare_and_swapsi): Likewise.
11530 2021-05-28 Jakub Jelinek <jakub@redhat.com>
11532 PR middle-end/99928
11533 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
11535 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
11537 * gimplify.c (gimplify_omp_affinity): New.
11538 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
11539 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
11540 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
11541 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
11542 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
11544 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
11545 Richard Biener <rguenther@suse.de>
11547 * match.pd <popcount & / + pattern matching>:
11548 When generating popcount directly fails, try doing it in two halves.
11550 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11552 * Makefile.in (generated_files): Add gimple-match.c and
11555 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
11557 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
11559 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
11561 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
11563 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
11565 PR tree-optimization/99398
11566 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
11567 where the fed operands are CTOR/CST and propagated through
11568 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
11569 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
11571 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
11574 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
11576 * config/i386/mmx.md (addv2sf3): Do not call
11577 ix86_fixup_binary_operands_no_copy.
11580 (<smaxmin:code>v2sf3): Ditto.
11581 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
11582 (<plusminus:insn><VI_32:mode>3): Remove expander.
11583 (<plusminus:insn><VI_32:mode>3): Rename from
11584 "*<plusminus:insn><VI_32:mode>3".
11585 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
11586 (mulv2hi3): Remove expander.
11587 (mulv2hi3): Rename from *mulv2hi3.
11588 (<s>mulv2hi3_highpart): Remove expander.
11589 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
11590 (<smaxmin:code><MMXMODE14:mode>3): Rename from
11591 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
11592 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
11593 (SMAXMIN_MMXMODEI): Remove mode iterator.
11594 (<smaxmin:code>v4hi3): New expander.
11595 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
11596 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
11597 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
11598 (SMAXMIN_VI_32): Remove mode iterator.
11599 (<umaxmin:code><MMXMODE24:mode>3): Rename from
11600 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
11601 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
11602 (UMAXMIN_MMXMODEI): Remove mode iterator.
11603 (<umaxmin:code>v8qi3): New expander.
11604 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
11605 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
11606 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
11607 (UMAXMIN_VI_32): Remove mode iterator.
11608 (<any_shift:insn>v2hi3): Remove expander.
11609 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
11610 (<any_logic:code><MMXMODEI:mode>3): Do not call
11611 ix86_fixup_binary_operands_no_copy.
11612 (<any_logic:code><VI_32:mode>3): Remove expander.
11613 (<any_logic:code><VI_32:mode>3): Rename from
11614 "*<any_logic:code><VI_32:mode>3".
11615 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
11616 * config/i386/sse.md (div<VF2:mode>3): Do not call
11617 ix86_fixup_binary_operands_no_copy.
11618 (div<VF1:mode>3): Ditto.
11619 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
11620 (smulhrsv4hi3): Ditto.
11621 (smulhrsv2hi3): Ditto.
11623 2021-05-27 Martin Sebor <msebor@redhat.com>
11625 * ggc.h (gt_ggc_mx): Add overloads for all integers.
11627 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
11629 (hash_map::operator==): New function.
11631 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
11634 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
11635 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
11636 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
11637 (*xop_maskcmp<VI_32:mode>3): Ditto.
11638 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
11639 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
11641 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
11644 * config/arm/arm.c (arm_configure_build_target): Remove parameter
11645 opts_set, directly check opts parameters for being non-null.
11646 (arm_option_restore): Update call to arm_configure_build_target.
11647 (arm_option_override): Likewise.
11648 (arm_can_inline_p): Likewise.
11649 (arm_valid_target_attribute_tree): Likewise.
11650 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
11651 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
11654 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
11656 * vr-values.c (simplify_conversion_using_ranges): Use
11657 get_range_query instead of get_global_range_query.
11659 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
11661 * gimple-range.cc (get_range_global): Move to value-query.cc.
11662 (gimple_range_global): Same.
11663 (get_global_range_query): Same.
11664 (global_range_query::range_of_expr): Same.
11665 * gimple-range.h (class global_range_query): Move to
11667 (gimple_range_global): Same.
11668 * tree-ssanames.c (get_range_info): Move to value-query.cc.
11669 (get_ptr_nonnull): Same.
11670 * tree-ssanames.h (get_range_info): Remove.
11671 (get_ptr_nonnull): Remove.
11672 * value-query.cc (get_ssa_name_range_info): Move from
11674 (get_ssa_name_ptr_info_nonnull): Same.
11675 (get_range_global): Move from gimple-range.cc.
11676 (gimple_range_global): Same.
11677 (get_global_range_query): Same.
11678 (global_range_query::range_of_expr): Same.
11679 * value-query.h (class global_range_query): Move from
11681 (gimple_range_global): Same.
11683 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
11686 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
11687 (uavgv2hi3_ceil): Ditto.
11689 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
11692 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
11694 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
11696 * tree-ssanames.c (get_range_info): Merge both copies of
11697 get_range_info into one that works with irange.
11698 * tree-ssanames.h (get_range_info): Remove version that works on
11701 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
11703 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
11704 (expand_builtin_strnlen): Same.
11705 (determine_block_size): Same.
11706 * fold-const.c (expr_not_equal_to): Same.
11707 * gimple-fold.c (size_must_be_zero_p): Same.
11708 * gimple-match-head.c: Include gimple-range.h.
11709 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
11710 * gimple-ssa-warn-restrict.c
11711 (builtin_memref::extend_offset_range): Same.
11712 * graphite-sese-to-poly.c (add_param_constraints): Same.
11713 * internal-fn.c (get_min_precision): Same.
11714 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
11715 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
11717 * tree-data-ref.c (split_constant_offset): Same.
11718 (dr_step_indicator): Same.
11719 * tree-dfa.c (get_ref_base_and_extent): Same.
11720 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
11721 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
11722 (determine_value_range): Same.
11723 (record_nonwrapping_iv): Same.
11724 (infer_loop_bounds_from_signedness): Same.
11725 (scev_var_range_cant_overflow): Same.
11726 * tree-ssa-phiopt.c (two_value_replacement): Same.
11727 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
11728 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
11729 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
11731 (dump_strlen_info): Same.
11732 (set_strlen_range): Same.
11733 (maybe_diag_stxncpy_trunc): Same.
11734 (get_len_or_size): Same.
11735 (handle_integral_assign): Same.
11736 * tree-ssa-structalias.c (find_what_p_points_to): Same.
11737 * tree-ssa-uninit.c (find_var_cmp_const): Same.
11738 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
11739 * tree-vect-patterns.c (vect_get_range_info): Same.
11740 (vect_recog_divmod_pattern): Same.
11741 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
11742 (register_edge_assert_for_2): Same.
11743 (determine_value_range_1): Same.
11744 * tree.c (get_range_pos_neg): Same.
11745 * vr-values.c (vr_values::get_lattice_entry): Same.
11746 (vr_values::update_value_range): Same.
11747 (simplify_conversion_using_ranges): Same.
11749 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
11751 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
11752 get_range_query instead of query argument.
11753 (pass_walloca::execute): Enable and disable global ranger.
11755 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
11757 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
11759 (rvrp_folder::~rvrp_folder): Call disable_ranger.
11760 (hybrid_folder::hybrid_folder): Call enable_ranger.
11761 (hybrid_folder::~hybrid_folder): Call disable_ranger.
11763 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
11765 * function.c (allocate_struct_function): Set cfun->x_range_query.
11766 * function.h (struct function): Declare x_range_query.
11767 (get_range_query): New.
11768 (get_global_range_query): New.
11769 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
11770 Remove call to safe_grow_cleared.
11771 * gimple-range.cc (get_range_global): New.
11772 (gimple_range_global): Move from gimple-range.h.
11773 (get_global_range_query): New.
11774 (global_range_query::range_of_expr): New.
11775 (enable_ranger): New.
11776 (disable_ranger): New.
11777 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
11778 (class global_range_query): New.
11779 (enable_ranger): New.
11780 (disable_ranger): New.
11781 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
11782 dump_all_value_ranges to dump.
11783 * tree-vrp.c (vrp_prop::finalize): Same.
11784 * value-query.cc (range_query::dump): New.
11785 * value-query.h (range_query::dump): New.
11786 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
11787 (vr_values::dump): ...this.
11788 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
11789 dump and make virtual.
11791 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
11793 * config/i386/i386.c (ix86_autovectorize_vector_modes):
11794 Add V4QImode and V16QImode for TARGET_SSE2.
11795 * doc/sourcebuild.texi (Vector-specific attributes):
11796 Add vect64 and vect32 description.
11798 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
11800 * gimple-range-gori.cc (range_def_chain::register_dependency):
11801 Resize m_def_chain when needed.
11803 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
11805 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
11806 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
11807 * config/arm/vec-common.md: .. here. Add support for MVE.
11809 2021-05-26 Jakub Jelinek <jakub@redhat.com>
11811 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
11813 * config/microblaze/microblaze.c (microblaze_legitimize_address,
11815 microblaze_option_override, print_operand): Likewise.
11816 * config/microblaze/microblaze.md (call_internal_plt,
11817 call_value_intern_plt, call_value_intern): Likewise.
11818 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
11819 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
11820 call_value_multiple_internal1): Likewise.
11821 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
11823 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11825 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
11826 arc_ccfsm_advance, symbolic_reference_mentioned_p,
11827 arc_raw_symbolic_reference_mentioned_p): Remove register
11830 2021-05-26 Jakub Jelinek <jakub@redhat.com>
11833 * omp-low.c: Include omp-offload.h.
11834 (create_omp_child_function): If current_function_decl has
11835 "omp declare target" attribute and is_gimple_omp_offloaded,
11836 remove that attribute from the copy of attribute list and
11837 add "omp target entrypoint" attribute instead.
11838 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
11839 variables for offloading if in omp_maybe_offloaded_ctx.
11840 * omp-offload.c (pass_omp_target_link::execute): Nullify second
11841 argument to GOMP_target_data_ext in offloaded code.
11843 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
11845 * config/csky/csky.c (csky_can_change_mode_class): Delete.
11846 For csky, HF/SF mode use the low bits of VREGS.
11848 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
11850 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
11851 DECL which is a reference for OMP.
11853 2021-05-26 Martin Liska <mliska@suse.cz>
11855 PR gcov-profile/100751
11856 * doc/gcov.texi: Document that __gcov_dump can be called just
11857 once and that __gcov_reset resets run-time counters.
11859 2021-05-26 Martin Liska <mliska@suse.cz>
11861 * doc/install.texi: Port relevant part from install-old.texi
11862 and re-generate list of CPUs and systems.
11864 2021-05-26 Martin Liska <mliska@suse.cz>
11866 * Makefile.in: Remove it.
11867 * doc/include/fdl.texi: Update next/previous chapters.
11868 * doc/install.texi: Likewise.
11869 * doc/install-old.texi: Removed.
11871 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
11873 * config/csky/csky.c (ck810_legitimate_index_p): Support
11874 "base + index" with DF mode.
11875 * config/csky/constraints.md ("Y"): New constraint for memory operands
11876 without index register.
11877 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
11878 when mov between memory and general registers, and lower their priority.
11879 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
11881 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
11883 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
11885 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
11887 * config/csky/csky.md (untyped_call): Emit clobber for return
11888 registers to mark them used.
11890 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
11892 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
11894 2021-05-26 Andrew Pinski <apinski@marvell.com>
11896 * match.pd (x < 0 ? ~y : y): New patterns.
11898 2021-05-26 Andrew Pinski <apinski@marvell.com>
11900 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
11901 A?POW2:0 and A?0:POW2.
11903 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11905 * gimple-range-gori.cc (class logical_stmt_cache): Delete
11906 (logical_stmt_cache::logical_stmt_cache ): Delete.
11907 (logical_stmt_cache::~logical_stmt_cache): Delete.
11908 (logical_stmt_cache::cache_entry::dump): Delete.
11909 (logical_stmt_cache::get_range): Delete.
11910 (logical_stmt_cache::cached_name ): Delete.
11911 (logical_stmt_cache::same_cached_name): Delete.
11912 (logical_stmt_cache::cacheable_p): Delete.
11913 (logical_stmt_cache::slot_diagnostics ): Delete.
11914 (logical_stmt_cache::dump): Delete.
11915 (gori_compute_cache::gori_compute_cache): Delete.
11916 (gori_compute_cache::~gori_compute_cache): Delete.
11917 (gori_compute_cache::compute_operand_range): Delete.
11918 (gori_compute_cache::cache_stmt): Delete.
11919 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
11921 (class gori_compute_cache): Delete.
11923 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11925 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
11927 (fold_using_range::range_of_address): Adjust.
11928 (fold_using_range::range_of_phi): Adjust.
11929 * gimple-range.h (class fur_source): Adjust.
11930 (fur_source::fur_source): Adjust.
11932 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11934 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
11935 from expr_range_in_bb and adjust.
11936 (gori_compute::compute_name_range_op): Adjust.
11937 (gori_compute::optimize_logical_operands): Adjust.
11938 (gori_compute::compute_logical_operands_in_chain): Adjust.
11939 (gori_compute::compute_operand1_range): Adjust.
11940 (gori_compute::compute_operand2_range): Adjust.
11941 (ori_compute_cache::cache_stmt): Adjust.
11942 * gimple-range-gori.h (gori_compute): Rename prototype.
11944 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11946 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
11947 checked only after range_of_stmt, not range_on_entry.
11948 (gimple_ranger::range_on_entry): Check for non-null in any
11949 predecessor block, if it is not already non-null.
11950 (gimple_ranger::range_on_exit): DOnt check for non-null after
11951 range on entry call.
11952 (gimple_ranger::dump_bb): New. Split from dump.
11953 (gimple_ranger::dump): Adjust.
11954 * gimple-range.h (class gimple_ranger): Adjust.
11956 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11958 * gimple-range-cache.cc (struct range_timestamp): Delete.
11959 (class temporal_cache): Adjust.
11960 (temporal_cache::get_timestamp): Delete.
11961 (temporal_cache::set_dependency): Delete.
11962 (temporal_cache::temporal_value): Adjust.
11963 (temporal_cache::current_p): Take dependencies as params.
11964 (temporal_cache::set_timestamp): Adjust.
11965 (temporal_cache::set_always_current): Adjust.
11966 (ranger_cache::get_non_stale_global_range): Adjust.
11967 (ranger_cache::register_dependency): Delete.
11968 * gimple-range-cache.h (class range_cache): Adjust.
11970 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
11972 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
11974 (range_def_chain::~range_def_chain): Dispose of obstack rather than
11975 each individual bitmap.
11976 (range_def_chain::set_import): New.
11977 (range_def_chain::get_imports): New.
11978 (range_def_chain::chain_import_p): New.
11979 (range_def_chain::register_dependency): Rename from build_def_chain
11981 (range_def_chain::def_chain_in_bitmap_p): New.
11982 (range_def_chain::add_def_chain_to_bitmap): New.
11983 (range_def_chain::has_def_chain): Just check first depenedence.
11984 (range_def_chain::get_def_chain): Process imports, use generic
11985 register_dependency routine.
11986 (range_def_chain::dump): New.
11987 (gori_map::gori_map): Allocate import list.
11988 (gori_map::~gori_map): Release imports.
11989 (gori_map::exports): Check for past allocated block size.
11990 (gori_map::imports): New.
11991 (gori_map::def_chain_in_export_p): Delete.
11992 (gori_map::is_import_p): New.
11993 (gori_map::maybe_add_gori): Handle imports.
11994 (gori_map::dump): Adjust output, add imports.
11995 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
11996 (gori_export_iterator::gori_export_iterator): New.
11997 (gori_export_iterator::next): New.
11998 (gori_export_iterator::get_name): New.
11999 * gimple-range-gori.h (range_def_chain): Add imports and direct
12000 dependecies via struct rdc.
12001 (range_def_chain::depend1): New.
12002 (range_def_chain::depend2): New.
12003 (class gori_map): Adjust.
12004 (FOR_EACH_GORI_IMPORT_NAME): New.
12005 (FOR_EACH_GORI_EXPORT_NAME): New.
12006 (class gori_export_iterator): New.
12008 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12010 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
12011 export cache filling to here.
12012 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
12014 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12016 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
12017 (gori_map): Move to gimple-range-gori.h.
12018 (gori_compute::gori_compute): Adjust.
12019 (gori_compute::~gori_compute): Delete.
12020 (gori_compute::compute_operand_range_switch): Adjust.
12021 (gori_compute::compute_operand_range): Adjust.
12022 (gori_compute::compute_logical_operands): Adjust.
12023 (gori_compute::has_edge_range_p ): Adjust.
12024 (gori_compute::set_range_invariant): Delete.
12025 (gori_compute::dump): Adjust.
12026 (gori_compute::outgoing_edge_range_p): Adjust.
12027 * gimple-range-gori.h (class range_def_chain): Relocate here.
12028 (class gori_map): Relocate here.
12029 (class gori_compute): Inherit from gori_map, and adjust.
12031 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
12033 * value-range.cc (range_tests_legacy): Use
12034 build_nonstandard_integer_type instead of int and short.
12036 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
12038 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
12039 when really creating an initialization statement for it.
12041 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
12043 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
12045 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
12047 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
12049 2021-05-25 Martin Liska <mliska@suse.cz>
12051 PR tree-optimization/92860
12053 * optc-save-gen.awk: Remove exceptions.
12055 2021-05-25 Martin Liska <mliska@suse.cz>
12057 * asan.h (sanitize_coverage_p): New function.
12058 * doc/extend.texi: Document it.
12059 * fold-const.c (fold_range_test): Use sanitize_flags_p
12060 instead of flag_sanitize_coverage.
12061 (fold_truth_andor): Likewise.
12062 * sancov.c: Likewise.
12063 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12064 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
12065 -fsanitize-coverage when inlining.
12067 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
12069 * config/csky/csky-modes.def : Fix copyright.
12071 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
12073 * config/csky/csky-modes.def : Amend copyright.
12074 * config/csky/csky_insn_fpuv2.md : Likewise.
12075 * config/csky/csky_insn_fpuv3.md : Likewise.
12077 2021-05-25 Richard Biener <rguenther@suse.de>
12079 PR middle-end/100727
12080 * calls.c (initialize_argument_information): Explicitely test
12081 for WITH_SIZE_EXPR.
12082 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
12084 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
12086 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
12087 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
12088 the signle definition. The signle definition may not work well
12089 at simplify_subreg_regno().
12090 (HARD_FRAME_POINTER_REGNUM): New.
12091 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
12092 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
12093 csky_initial_elimination_offset, csky_expand_prologue,
12094 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
12096 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
12098 * config/csky/csky.c (csky_option_override):
12099 Init csky_arch_isa_features[] in advance, so TARGET_DSP
12100 and TARGET_DIV can be set well.
12102 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
12104 * config/csky/constraints.md ("l", "h"): Delete.
12105 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
12106 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
12107 * config/csky/csky.c (regno_reg_classm,
12108 csky_secondary_reload, csky_register_move_cost):
12109 Use HILO_REGS instead of LO_REGS and HI_REGS.
12111 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
12113 * config/csky/constraints.md ("W"): New constriant for mem operand
12114 with base reg, index register.
12115 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
12116 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
12118 ("Dv"): New constraint for const double value that can be used at
12120 * config/csky/csky-modes.def (HFmode): New mode.
12121 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
12122 to "csky_valid_mem_constraint_operand" and support new constraint
12124 (csky_get_movedouble_length): New.
12125 (fpuv3_output_move): New.
12126 (fpuv3_const_double): New.
12127 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
12128 (decompose_csky_address): Refine.
12129 (csky_print_operand): New "CONST_DOUBLE" operand.
12130 (csky_output_move): Support fpv3 instructions.
12131 (csky_get_movedouble_length): New.
12132 (fpuv3_output_move): New.
12133 (fpuv3_const_double): New.
12134 (csky_emit_compare): Cover float comparsion.
12135 (csky_emit_compare_float): Refine.
12136 (csky_vaild_fpuv2_mem_operand): Rename to
12137 "csky_valid_mem_constraint_operand" and support new constraint "W".
12138 (ck860_rtx_costs): New.
12139 (csky_rtx_costs): Add the cost calculation of CK860.
12140 (regno_reg_class): New vregs for fpuv3.
12141 (csky_dbx_regno): Likewise.
12142 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
12143 (csky_conditional_register_usage): Suporrot fpuv3.
12144 (csky_dwarf_register_span): Suporrot fpuv3.
12145 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
12146 (ck810_legitimate_index_p): Support fp16.
12147 * config/csky/csky.h (TARGET_TLS): ADD CK860.
12148 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
12149 (TARGET_SINGLE_FPU): Support fpuv3.
12150 (TARGET_SUPPORT_FPV3): New.
12151 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
12152 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
12153 REG_CLASS_CONTENTS): Support fpuv3.
12154 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
12155 (csky_movsf_fpv2): Likewise.
12156 (ck801_movsf): Likewise.
12157 (csky_movsf): Likewise.
12159 (csky_movdf_fpv2): Likewise.
12160 (ck801_movdf): Likewise.
12161 (csky_movdf): Likewise.
12162 (movsicc): Refine. Use "comparison_operatior" instead of
12163 "ordered_comparison_operatior".
12164 (addsicc): Likewise.
12165 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
12166 (call_value_internal_vh): New.
12167 * config/csky/csky_cores.def (CK860): New arch and cpu.
12172 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
12173 into emit-patterns and match-patterns, remain the emit-patterns here,
12174 and move the match-patterns to csky_insn_fpuv2.md or
12175 csky_insn_fpuv3.md.
12176 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
12177 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
12179 * config/csky/csky_isa.def (fcr): New.
12184 (CK860): New definition for ck860.
12185 * config/csky/csky_tables.opt (ck860): New processors ck860,
12186 ck860f. And new arch ck860.
12191 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
12192 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
12193 * config/csky/t-csky-elf: Support 860.
12194 * config/csky/t-csky-linux: Likewise.
12195 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
12197 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
12199 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
12200 add generation of logical-add and add-logical fusion pairs.
12201 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
12203 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
12204 logical-add and add-logical fusion by default.
12205 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
12206 -mpower10-fusion-add-logical options.
12207 * config/rs6000/fusion.md: Regenerate file.
12209 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
12211 * value-range.cc (irange::legacy_equal_p): Check type when
12212 comparing VR_VARYING types.
12213 (range_tests_legacy): Test comparing VARYING ranges of different
12216 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
12218 * config/aarch64/aarch64.c (neoversen1_tunings):
12219 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
12221 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
12223 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
12224 extern weak symbols. Limit symbol offsets for non-GOT symbols with
12227 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
12229 * config/arm/neon.md (vec_load_lanesxi<mode>)
12230 (vec_store_lanexoi<mode>): Move ...
12231 * config/arm/vec-common.md: here.
12233 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
12235 * config/arm/neon.md (vec_load_lanesoi<mode>)
12236 (vec_store_lanesoi<mode>): Move ...
12237 * config/arm/vec-common.md: here.
12239 2021-05-24 liuhongt <hongtao.liu@intel.com>
12242 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
12243 stmt with GIMPLE_NOP when lhs doesn't exist.
12245 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
12248 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
12249 New instruction pattern.
12250 (*push<VI_32:mode>2): Ditto.
12251 (push splitter for SSE registers): New splitter.
12253 2021-05-23 Andrew Pinski <apinski@marvell.com>
12255 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
12257 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
12259 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
12260 * config/rs6000/fusion.md: Regenerate file.
12262 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
12264 * config/rs6000/genfusion.pl (gen_addadd): New function.
12265 * config/rs6000/fusion.md: Regenerate file.
12266 * config/rs6000/rs6000-cpus.def: Add
12267 OPTION_MASK_P10_FUSION_2ADD to masks.
12268 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12269 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
12270 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
12272 2021-05-21 Jakub Jelinek <jakub@redhat.com>
12274 PR middle-end/99928
12275 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
12276 * gimplify.c (enum gimplify_omp_var_data): Fix up
12277 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
12278 (omp_lastprivate_for_combined_outer_constructs): If combined target
12279 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
12280 GOVD_MAP | GOVD_SEEN.
12281 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
12282 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
12283 (gimplify_adjust_omp_clauses): For firstprivate clauses with
12284 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
12285 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
12286 let it be replaced by implicit map clause.
12288 2021-05-21 Jakub Jelinek <jakub@redhat.com>
12290 PR middle-end/99928
12291 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
12293 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
12294 (gimplify_omp_for): Likewise.
12296 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12298 PR middle-end/90115
12299 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
12300 'external' in blocks.
12302 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12304 PR middle-end/90115
12305 * flag-types.h (enum openacc_privatization): New.
12306 * params.opt (-param=openacc-privatization): New.
12307 * doc/invoke.texi (openacc-privatization): Document it.
12308 * omp-general.h (get_openacc_privatization_dump_flags): New
12310 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
12311 * omp-offload.c (execute_oacc_device_lower)
12312 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
12313 * target.def (goacc.adjust_private_decl): Add 'location_t'
12315 * doc/tm.texi: Regenerate.
12316 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
12317 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
12318 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
12319 Likewise. Preserve it for...
12320 (nvptx_goacc_expand_var_decl): ... use here.
12322 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12324 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
12327 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12329 PR middle-end/90115
12330 * omp-low.c (oacc_privatization_candidate_p): New function.
12331 (oacc_privatization_scan_clause_chain)
12332 (oacc_privatization_scan_decl_chain): Use it. Also
12333 'gcc_checking_assert' that we're not seeing duplicates.
12335 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12337 PR middle-end/90115
12338 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
12341 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12343 PR middle-end/90115
12344 * omp-offload.c (execute_oacc_device_lower): Explain.
12346 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12348 PR middle-end/90115
12349 * omp-offload.c (execute_oacc_device_lower)
12350 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
12352 * internal-fn.c (expand_UNIQUE): Don't expect
12353 'IFN_UNIQUE_OACC_PRIVATE'.
12355 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12357 PR middle-end/90115
12358 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
12360 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
12362 PR middle-end/90115
12363 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
12364 (nvptx_goacc_expand_var_decl): Tighten.
12366 2021-05-21 Julian Brown <julian@codesourcery.com>
12367 Chung-Lin Tang <cltang@codesourcery.com>
12368 Thomas Schwinge <thomas@codesourcery.com>
12370 PR middle-end/90115
12371 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
12372 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
12373 * doc/tm.texi: Regenerate.
12374 * expr.c (expand_expr_real_1): Expand decls using the
12375 expand_var_decl OpenACC hook if defined.
12376 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
12377 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
12378 * omp-low.c (omp_context): Add oacc_privatization_candidates
12380 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
12382 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
12383 private marker's gimple call arguments, and pass it to
12384 lower_oacc_reductions.
12385 (oacc_privatization_scan_clause_chain)
12386 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
12388 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
12389 * omp-offload.c (convert.h): Include.
12390 (oacc_loop_xform_head_tail): Treat private-variable markers like
12391 fork/join when transforming head/tail sequences.
12392 (struct var_decl_rewrite_info): Add struct.
12393 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
12394 (execute_oacc_device_lower): Support rewriting gang-private
12395 variables using target hook, and fix up addr_expr and var_decl
12397 * target.def (adjust_private_decl, expand_var_decl): New hooks.
12398 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
12400 (gcn_goacc_adjust_private_decl): ...this.
12401 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
12403 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
12404 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
12405 definition using gcn_goacc_adjust_gangprivate_decl...
12406 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
12407 gcn_goacc_adjust_private_decl.
12408 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
12409 (gang_private_shared_size): New global variable.
12410 (gang_private_shared_align): Likewise.
12411 (gang_private_shared_sym): Likewise.
12412 (gang_private_shared_hmap): Likewise.
12413 (nvptx_option_override): Initialize these.
12414 (nvptx_file_end): Output gang_private_shared_sym.
12415 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
12417 (nvptx_set_current_function): Clear gang_private_shared_hmap.
12418 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
12419 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
12421 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
12423 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
12425 2021-05-21 Richard Biener <rguenther@suse.de>
12426 H.J. Lu <hjl.tools@gmail.com>
12428 PR middle-end/90773
12429 * expr.c (expand_constructor): Elide expand_constructor if
12430 move by pieces is preferred.
12432 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12434 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
12435 Take a flag and mode value as arguments.
12436 (aarch64_modifies_global_state_p): Likewise.
12437 (aarch64_reads_global_state_p): Likewise.
12438 (aarch64_could_trap_p): Likewise.
12439 (aarch64_get_attributes): Likewise.
12440 (aarch64_init_simd_builtins): Adjust callsite of above.
12441 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
12442 function attributes to apply to builtins.
12443 (aarch64_init_crc32_builtins): Likewise.
12444 (aarch64_init_builtin_rsqrt): Likewise.
12446 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
12448 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
12449 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
12450 (gen_2logical): Use new fusion types.
12451 * config/rs6000/fusion.md: Regenerate.
12453 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
12456 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
12457 Handle V4QI and V2HI modes.
12458 (ix86_expand_sse_movcc): Ditto.
12459 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
12460 New instruction pattern.
12461 (*eq<VI_32:mode>3): Ditto.
12462 (*gt<VI_32:mode>3): Ditto.
12463 (*xop_pcmov_<VI_32:mode>): Ditto.
12464 (mmx_pblendvb32): Ditto.
12465 (mmx_pblendvb64): Rename from mmx_pblendvb.
12466 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
12467 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
12468 (vcond<VI_32:mode><VI_32:mode>): Ditto.
12469 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
12470 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
12472 2021-05-21 Jakub Jelinek <jakub@redhat.com>
12474 PR tree-optimization/94589
12475 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
12476 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
12477 not the same as cmp3) treat <= the same as < and >= the same as >.
12478 Don't require that cond2_phi_edge is true edge, instead take
12479 false/true edges into account based on cmp1/cmp2 comparison kinds.
12481 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
12484 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
12485 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
12486 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
12487 using SMAXMIN_MMXMODEI mode iterator.
12488 (*<smaxmin:code>v4qi3): New insn pattern.
12489 (*<smaxmin:code>v2hi3): Ditto.
12490 (SMAXMIN_VI_32): New mode iterator.
12491 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
12492 (UMAXMIN_MMXMODEI): New mode iterator.
12493 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
12494 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
12495 using UMAXMIN_MMXMODEI mode iterator.
12496 (*<umaxmin:code>v4qi3): New insn pattern.
12497 (*<umaxmin:code>v2hi3): Ditto.
12498 (UMAXMIN_VI_32): New mode iterator.
12499 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
12500 (abs<VI_32:mode>2): New insn pattern.
12501 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
12502 * config/i386/sse.md: ... here.
12504 2021-05-20 Clement Chigot <clement.chigot@atos.net>
12505 David Edelsohn <dje.gcc@gmail.com>
12507 * collect2.c (scan_prog_file): Issue non-fatal warning for
12510 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
12512 * doc/invoke.texi (-Wno-c++11-extensions)
12513 (-Wno-c++14-extensions, -Wno-c++17-extensions)
12514 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
12517 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
12519 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
12520 * config/darwin.c (darwin_override_options): Likewise.
12521 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
12522 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
12523 (DWARF2_FRAME_REG_OUT): Likewise.
12524 * config/mips/mips.c (mips_output_filename): Likewise.
12525 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
12527 (rs6000_dbx_register_number): Likewise.
12528 * dbxout.c: Include flags.h.
12529 * dwarf2cfi.c (cfi_label_required_p): Likewise.
12530 (dwarf2out_do_frame): Likewise.
12531 * except.c: Include flags.h.
12532 * final.c (dwarf2_debug_info_emitted_p): Likewise.
12533 (final_scan_insn_1): Likewise.
12534 * flags.h (dwarf_debuginfo_p): New function declaration.
12535 * opts.c (dwarf_debuginfo_p): New function definition.
12536 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
12537 * toplev.c (process_options): Likewise.
12539 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
12541 * common.opt: Change type to support bitmasks.
12542 * flag-types.h (enum debug_info_type): Rename enumerator constants.
12543 (NO_DEBUG): New bitmask.
12544 (DBX_DEBUG): Likewise.
12545 (DWARF2_DEBUG): Likewise.
12546 (XCOFF_DEBUG): Likewise.
12547 (VMS_DEBUG): Likewise.
12548 (VMS_AND_DWARF2_DEBUG): Likewise.
12549 * flags.h (debug_set_to_format): New function declaration.
12550 (debug_set_count): Likewise.
12551 (debug_set_names): Likewise.
12552 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
12553 (debug_set_to_format): New function definition.
12554 (debug_set_count): Likewise.
12555 (debug_set_names): Likewise.
12556 (set_debug_level): Update access to debug_type_names.
12557 * toplev.c: Likewise.
12559 2021-05-20 Martin Sebor <msebor@redhat.com>
12561 PR middle-end/100684
12562 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
12564 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
12567 * config/i386/i386.md (isa): Remove x64_bmi.
12568 (enabled): Remove x64_bmi.
12569 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
12570 Remove general register alternative.
12571 (*andnot<VI_32:mode>3): Ditto.
12572 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
12573 (*<any_logic:code><VI_32:mode>3): Ditto.
12575 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
12577 * config/arm/arm.c: Include head files tree-vectorizer.h and
12580 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
12583 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
12584 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
12585 (<s>mulv4hi3_highpart): New expander.
12586 (*<s>mulv2hi3_highpart): New insn pattern.
12587 (<s>mulv2hi3_higpart): New expander.
12588 (*<any_shift:insn>v2hi3): New insn pattern.
12589 (<any_shift:insn>v2hi3): New expander.
12590 * config/i386/sse.md (smulhrsv2hi3): New expander.
12591 (*smulhrsv2hi3): New insn pattern.
12593 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
12595 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
12597 * params.opt (vect-inner-loop-cost-factor): New.
12598 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
12599 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
12600 tree-vectorizer.h and its required ones.
12601 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
12602 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
12603 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
12604 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
12605 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
12606 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
12608 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
12609 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
12610 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
12612 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
12613 Torbjörn Svensson <torbjorn.svensson@st.com>
12616 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
12618 2021-05-20 Jakub Jelinek <jakub@redhat.com>
12620 PR middle-end/99928
12621 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
12622 explicit linear clause when combined with target, make it map(tofrom:)
12623 instead of no clause or firstprivate.
12625 2021-05-20 Jakub Jelinek <jakub@redhat.com>
12627 PR tree-optimization/94589
12628 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
12629 of integral conversions.
12631 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
12633 * gimple-range.cc (fur_source::get_operand): New.
12634 (gimple_range_fold): Delete.
12635 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
12636 (fold_using_range::range_of_range_op): Move from gimple_ranger.
12637 (fold_using_range::range_of_address): Ditto.
12638 (fold_using_range::range_of_phi): Ditto.
12639 (fold_using_range::range_of_call): Ditto.
12640 (fold_using_range::range_of_builtin_ubsan_call): Move from
12641 range_of_builtin_ubsan_call.
12642 (fold_using_range::range_of_builtin_call): Move from
12643 range_of_builtin_call.
12644 (gimple_ranger::range_of_builtin_call): Delete.
12645 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
12646 (gimple_ranger::fold_range_internal): New.
12647 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
12648 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
12649 gimple_ranger. Improve ranges of SSA_NAMES when possible.
12650 * gimple-range.h (gimple_ranger): Remove various range_of routines.
12651 (class fur_source): New.
12652 (class fold_using_range): New.
12653 (fur_source::fur_source): New.
12655 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
12656 instead of range_of_builtin_call.
12658 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
12660 * doc/cpp.texi (Common Predefined Macros): Update documentation
12661 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
12663 2021-05-19 Alex Coplan <alex.coplan@arm.com>
12666 * config/arm/arm.md (nonsecure_call_internal): Always ensure
12667 callee's address is in a register.
12669 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
12671 * common/config/riscv/riscv-common.c
12672 (riscv_subset_list::parsing_subset_version): Properly parse the letter
12674 (riscv_subset_list::parse_std_ext,
12675 riscv_subset_list::parse_multiletter_ext): To handle errors generated
12676 in riscv_subset_list::parsing_subset_version.
12678 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
12680 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
12681 type attribute in patterns generating XTN(2).
12683 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
12685 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
12686 Remove as duplicate of...
12687 (aarch64_xtn<mode>): This.
12688 (aarch64_xtn2<mode>_le): Move position in file.
12689 (aarch64_xtn2<mode>_be): Move position in file.
12690 (aarch64_xtn2<mode>): Move position in file.
12691 (vec_pack_trunc_<mode>): Define as an expander.
12693 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
12695 * config/aarch64/aarch64-simd-builtins.def: Split builtin
12696 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
12697 separate scalar and vector generators.
12698 * config/aarch64/aarch64-simd.md
12699 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
12701 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
12702 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
12703 * config/aarch64/iterators.md: Define SD_HSDI iterator.
12705 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
12707 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
12709 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
12711 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
12713 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
12714 Implement as an expand emitting a big/little endian
12715 instruction pattern.
12716 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
12717 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
12719 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
12721 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
12722 Implement as an expand emitting a big/little endian
12723 instruction pattern.
12724 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
12725 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
12726 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
12727 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
12729 2021-05-19 Richard Biener <rguenther@suse.de>
12731 PR middle-end/100672
12732 * fold-const.c (fold_negate_expr_1): Use element_precision.
12733 (negate_expr_p): Likewise.
12735 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
12737 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
12738 (pred_load): New int attribute.
12739 * config/aarch64/aarch64-sve.md
12740 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
12741 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
12742 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
12743 code_for_aarch64_load.
12745 2021-05-19 Richard Biener <rguenther@suse.de>
12747 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
12748 sure TARGET_MEM_REF bases are expanded as memory.
12749 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
12750 Do not mark TARGET_MEM_REF bases addressable.
12751 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
12752 TARGET_MEM_REF bases as never rewritable.
12753 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
12754 walk TARGET_MEM_REF bases as address-takens.
12755 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
12757 2021-05-19 Richard Biener <rguenther@suse.de>
12759 * builtins.c (get_object_alignment_1): Strip outer
12761 * tree-dfa.c (get_ref_base_and_extent): Handle outer
12762 WITH_SIZE_EXPR for size processing and process the
12764 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
12765 outer WITH_SIZE_EXPR.
12766 (ao_ref_base_alias_ptr_type): Likewise.
12767 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
12768 and handle that accordingly, stripping it for the
12769 core alias workers.
12770 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
12771 looking through it instead of returning NULL.
12773 2021-05-19 Jakub Jelinek <jakub@redhat.com>
12775 PR middle-end/100576
12776 * builtins.c (check_read_access): Convert bound to size_type_node if
12779 2021-05-19 Richard Biener <rguenther@suse.de>
12781 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
12782 (verify_types_in_gimple_reference): ... here. Sanitize.
12783 (verify_gimple_call): Verify references in LHS and arguments.
12784 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
12786 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
12788 * config/i386/i386.h (VALID_INT_MODE_P):
12789 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
12790 * config/i386/i386.md (isa): Add x64_bmi.
12791 (enabled): Handle x64_bmi.
12792 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
12793 Add alternative using 64bit general registers.
12794 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
12796 2021-05-19 Jakub Jelinek <jakub@redhat.com>
12798 PR middle-end/99928
12799 * tree.h (OMP_MASTER_COMBINED): Define.
12800 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
12801 handling for outer combined/composite constructs to a loop.
12802 Handle lastprivate on combined target.
12803 (gimplify_expr): Formatting fix.
12805 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
12807 * passes.def: Add sink_code pass before store_merging.
12808 * tree-ssa-sink.c (pass_sink_code:clone): New.
12810 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
12812 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
12813 rs6000_special_adjust_field_align_p.
12814 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12815 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
12816 Remove ABI warning.
12817 (rs6000_function_arg): Likewise.
12818 * config/rs6000/rs6000-protos.h
12819 (rs6000_special_adjust_field_align_p): Remove prototype.
12820 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
12822 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
12823 rs6000_special_adjust_field_align_p.
12825 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
12828 * config/i386/i386.h (VALID_SSE2_REG_MODE):
12829 Add V4QI and V2HI modes.
12830 (VALID_INT_MODE_P): Ditto.
12831 * config/i386/mmx.md (VI_32): New mode iterator.
12832 (mmxvecsize): Handle V4QI and V2HI.
12834 (mov<VI_32:mode>): New expander.
12835 (*mov<mode>_internal): New insn pattern.
12836 (movmisalign<VI_32:mode>): New expander.
12837 (neg<VI_32:mode>): New expander.
12838 (<plusminus:insn><VI_32:mode>3): New expander.
12839 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
12840 (mulv2hi3): New expander.
12841 (*mulv2hi3): New insn pattern.
12842 (one_cmpl<VI_32:mode>2): New expander.
12843 (*andnot<VI_32:mode>3): New insn pattern.
12844 (<any_logic:code><VI_32:mode>3): New expander.
12845 (*<any_logic:code><VI_32:mode>3): New insn pattern.
12847 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
12849 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
12850 Fix a mode mismatch with operand 1.
12852 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
12855 * config/i386/i386-expand.c (split_double_mode): Return
12856 temporary register when simplify_gen_subreg fails with
12857 the high half od the paradoxical subreg.
12859 2021-05-18 Richard Biener <rguenther@suse.de>
12861 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
12862 and honor it when expanding.
12863 (expand_used_vars_for_block): Pass through forced_stack_var.
12864 (expand_used_vars): Likewise.
12865 (discover_nonconstant_array_refs_r): Set bits in
12866 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
12867 (avoid_type_punning_on_regs): Likewise.
12868 (discover_nonconstant_array_refs): Likewise.
12869 (pass_expand::execute): Create and pass down forced_stack_var
12870 bitmap. For parameters and returns temporarily set
12871 TREE_ADDRESSABLE when expand_function_start.
12873 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
12875 * doc/sourcebuild.texi: Document 'dg-note'.
12877 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
12880 * configure: Regenerate.
12881 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
12883 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
12885 * gimple.h (is_gimple_omp_oacc): Tighten.
12886 * omp-low.c (check_omp_nesting_restrictions): Adjust.
12888 2021-05-18 Richard Biener <rguenther@suse.de>
12890 * tree-ssa-operands.c (mark_address_taken): Simplify.
12892 2021-05-18 Martin Liska <mliska@suse.cz>
12894 * config/gcn/mkoffload.c (STR): Redefine.
12895 * config/i386/intelmic-mkoffload.c (STR): Likewise.
12896 * config/nvptx/mkoffload.c (STR): Likewise.
12898 2021-05-18 Martin Liska <mliska@suse.cz>
12900 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
12901 Use startswith function instead of strncmp.
12902 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12903 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
12904 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
12905 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
12906 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
12907 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
12908 * config/arm/arm.c (arm_file_start): Likewise.
12909 (arm_valid_target_attribute_rec): Likewise.
12910 (thumb1_md_asm_adjust): Likewise.
12911 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
12912 * config/avr/avr.c (STR_PREFIX_P): Likewise.
12913 (avr_set_current_function): Likewise.
12914 (avr_handle_addr_attribute): Likewise.
12915 (avr_asm_output_aligned_decl_common): Likewise.
12916 (avr_asm_named_section): Likewise.
12917 (avr_section_type_flags): Likewise.
12918 (avr_asm_select_section): Likewise.
12919 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
12920 (c6x_section_type_flags): Likewise.
12921 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
12922 (darwin_objc_declare_unresolved_class_reference): Likewise.
12923 (darwin_objc_declare_class_definition): Likewise.
12924 * config/darwin.c (indirect_data): Likewise.
12925 (darwin_encode_section_info): Likewise.
12926 (darwin_objc2_section): Likewise.
12927 (darwin_objc1_section): Likewise.
12928 (machopic_select_section): Likewise.
12929 (darwin_globalize_label): Likewise.
12930 (darwin_label_is_anonymous_local_objc_name): Likewise.
12931 (darwin_asm_named_section): Likewise.
12932 (darwin_asm_output_dwarf_offset): Likewise.
12933 * config/frv/frv.c (frv_string_begins_with): Likewise.
12934 (frv_in_small_data_p): Likewise.
12935 * config/gcn/mkoffload.c (STR): Likewise.
12937 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
12938 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
12939 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
12940 (ix86_md_asm_adjust): Likewise.
12941 * config/i386/intelmic-mkoffload.c (STR): Likewise.
12942 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
12943 (i386_pe_file_end): Likewise.
12944 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
12945 (ia64_section_type_flags): Likewise.
12946 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
12947 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
12948 (mips16_stub_function_p): Likewise.
12949 (mips_function_rodata_section): Likewise.
12950 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
12951 (msp430_function_section): Likewise.
12952 (msp430_section_type_flags): Likewise.
12953 (msp430_expand_helper): Likewise.
12954 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
12955 (nios2_valid_target_attribute_rec): Likewise.
12956 * config/nvptx/mkoffload.c (process): Likewise.
12958 * config/pa/som.h: Likewise.
12959 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
12960 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
12961 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
12962 (rs6000_inner_target_options): Likewise.
12963 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
12964 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
12965 * config/vax/vax.c (vax_output_int_move): Likewise.
12966 * config/vms/vms-ld.c (startswith): Likewise.
12967 (process_args): Likewise.
12969 * config/vms/vms.c: Likewise.
12971 2021-05-18 Jakub Jelinek <jakub@redhat.com>
12973 PR rtl-optimization/100590
12974 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
12975 they are NONJUMP_INSN_P.
12977 2021-05-18 Jakub Jelinek <jakub@redhat.com>
12980 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
12981 DECL_ASSEMBLER_NAME on the fn_decl.
12983 2021-05-18 Jakub Jelinek <jakub@redhat.com>
12985 PR tree-optimization/94589
12986 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
12987 phi result used in (res & ~1) == 0 comparison as res >= 0 as
12988 res == 2 would be UB with -ffinite-math-only.
12990 2021-05-18 Martin Liska <mliska@suse.cz>
12992 * Makefile.in: genversion.o should depend on DATESTAMP.
12994 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
12996 * config/arc/simdext.md (negv2si2): Remove round bracket.
12998 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
13000 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
13001 _Bool as macro expanding to _Bool.
13003 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
13006 * tree.c (build_reference_type_for_mode)
13007 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
13009 (build_reference_type, build_pointer_type): Invoke
13010 build_*_type_for_mode with VOIDmode.
13012 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
13014 PR tree-optimization/100512
13015 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
13016 and non-zero pointer ranges as invariant.
13017 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
13018 processing from here.
13020 2021-05-17 Tom de Vries <tdevries@suse.de>
13023 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
13024 * config/nvptx/nvptx.c (nvptx_output_barrier)
13025 (nvptx_output_atomic_insn): New function.
13026 (nvptx_print_operand): Add support for 'B'.
13027 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
13030 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
13032 PR tree-optimization/100349
13033 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
13036 2021-05-17 Tamar Christina <tamar.christina@arm.com>
13038 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
13039 (host_detect_local_cpu): Use it.
13041 2021-05-17 Martin Liska <mliska@suse.cz>
13043 * doc/invoke.texi: Add 2 missing dots.
13045 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
13047 PR bootstrap/100552
13048 * configure.ac: Replace pattern substitution with call to sed.
13049 * configure: Regenerate.
13051 2021-05-17 Richard Biener <rguenther@suse.de>
13053 PR middle-end/100582
13054 * tree.c (array_at_struct_end_p): Get to the base of the
13055 reference before looking for the underlying decl.
13057 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
13059 * genoutput.c (validate_insn_alternatives) Make "wrong number of
13060 alternatives" message more specific, and remove assumption on where
13063 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
13065 * config/arm/iterators.md (V16): New iterator.
13066 (VH_cvtto): New iterator.
13067 (v_cmp_result): Added V4HF and V8HF support.
13068 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
13069 (vcond<mode><mode>): Likewise.
13070 (vcond_mask_<mode><v_cmp_result>): Likewise.
13071 (vcond<VH_cvtto><mode>): New expander.
13073 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
13075 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
13077 * config/arm/arm.c (arm_expand_vector_compare): Add support for
13079 (arm_expand_vcond): Likewise.
13080 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
13081 VCMPEQQ_N_S, VCMPNEQ_N_S.
13082 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
13083 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
13084 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
13085 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
13086 (@mve_vpselq_<supf><mode>): Likewise.
13087 (@mve_vpselq_f<mode>"): Likewise.
13088 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
13089 and move to vec-common.md.
13090 (vec_cmpu<mode><mode>): Likewise.
13091 (vcond<mode><mode>): Likewise.
13092 (vcond<V_cvtto><mode>): Likewise.
13093 (vcondu<mode><v_cmp_result>): Likewise.
13094 (vcond_mask_<mode><v_cmp_result>): Likewise.
13095 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
13096 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
13097 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
13098 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
13099 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
13100 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
13102 (vec_cmpu<mode><mode>): Likewise.
13103 (vcond<mode><mode>): Likewise.
13104 (vcond<V_cvtto><mode>): Likewise.
13105 (vcondu<mode><v_cmp_result>): Likewise.
13106 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
13109 2021-05-17 liuhongt <hongtao.liu@intel.com>
13112 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
13113 gsi_insert_seq_before instead.
13115 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
13117 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
13118 (arm_sat_ok): ...this.
13120 2021-05-17 Martin Liska <mliska@suse.cz>
13122 * lto-wrapper.c (merge_flto_options): Factor out a new function.
13123 (merge_and_complain): Use it.
13124 (run_gcc): Merge also linker command line -flto=foo argument
13127 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
13129 * config/arm/arm.h (CPP_SPEC): Remove error message about
13130 -mlittle-endian/-mbig-endian conflict.
13132 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
13134 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13135 __ROP_PROTECT__ if -mrop-protect is selected.
13137 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
13139 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
13140 rop_hash_save_offset and rop_hash_size.
13141 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
13142 rop_hash_size and rop_hash_save_offset.
13143 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
13144 (rs6000_emit_prologue): Emit hashst[p] in prologue.
13145 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
13146 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
13148 (hashst): New define_insn.
13149 (hashchk): Likewise.
13151 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
13153 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13154 Disable shrink wrap when inserting ROP-protect instructions.
13155 * config/rs6000/rs6000.opt (mrop-protect): New option.
13156 (mprivileged): Likewise.
13157 * doc/invoke.texi: Document mrop-protect and mprivileged.
13159 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
13161 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
13164 2021-05-15 Martin Jambor <mjambor@suse.cz>
13167 2021-05-13 Martin Jambor <mjambor@suse.cz>
13169 PR tree-optimization/100453
13170 * tree-sra.c (sra_modify_assign): All const base accesses do not
13171 need refreshing, not just those from decl_pool.
13172 (sra_modify_assign): Do not refresh into a const base decl.
13174 2021-05-15 Jakub Jelinek <jakub@redhat.com>
13176 PR rtl-optimization/100342
13177 * regcprop.c (copy_value): When copying a source reg in a wider
13178 mode than it has recorded for the value, adjust recorded destination
13179 mode too or punt if !REG_CAN_CHANGE_MODE_P.
13181 2021-05-14 Jason Merrill <jason@redhat.com>
13183 * intl.h: Add comments.
13185 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13187 * config/aarch64/aarch64-simd.md
13188 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
13189 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
13190 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
13191 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
13192 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
13193 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
13194 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
13195 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
13196 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
13198 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13201 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
13202 boolean logic equivalent.
13203 (vtst_s16): Likewise.
13204 (vtst_s32): Likewise.
13205 (vtst_u8): Likewise.
13206 (vtst_u16): Likewise.
13207 (vtst_u32): Likewise.
13208 (vtst_p8): Likewise.
13209 (vtst_p16): Likewise.
13210 (vtstq_s8): Likewise.
13211 (vtstq_s16): Likewise.
13212 (vtstq_s32): Likewise.
13213 (vtstq_u8): Likewise.
13214 (vtstq_u16): Likewise.
13215 (vtstq_u32): Likewise.
13216 (vtstq_p8): Likewise.
13217 (vtstq_p16): Likewise.
13218 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
13219 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
13221 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13223 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
13224 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
13225 (aarch64_sqdmlsl2<mode>): Delete.
13226 (aarch64_sqdmlal2_lane<mode>): Merge this...
13227 (aarch64_sqdmlsl2_lane<mode>): ... And this...
13228 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
13229 (aarch64_sqdmlal2_laneq<mode>): Merge this...
13230 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
13231 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
13232 (aarch64_sqdmlal2_n<mode>): Merge this...
13233 (aarch64_sqdmlsl2_n<mode>): ... And this...
13234 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
13236 2021-05-13 Martin Sebor <msebor@redhat.com>
13238 PR middle-end/100574
13239 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
13240 all null arguments.
13242 2021-05-13 Martin Sebor <msebor@redhat.com>
13244 PR tree-optimization/93100
13245 PR middle-end/98583
13246 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
13247 don't modify referenced objects.
13249 2021-05-13 Martin Jambor <mjambor@suse.cz>
13251 PR tree-optimization/100453
13252 * tree-sra.c (sra_modify_assign): All const base accesses do not
13253 need refreshing, not just those from decl_pool.
13254 (sra_modify_assign): Do not refresh into a const base decl.
13256 2021-05-13 Martin Liska <mliska@suse.cz>
13258 * tree-ssa-dom.c: Remove m_simplifier.
13260 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
13263 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
13264 canonicalize DImode inequality comparisons against the
13265 maximum integral value.
13267 2021-05-13 Jakub Jelinek <jakub@redhat.com>
13269 PR tree-optimization/98856
13270 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
13271 Expect V2DI and V4DI arithmetic right shifts to be emulated.
13272 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
13274 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
13275 expand_vec_perm_2perm_pblendv): New functions.
13276 (ix86_expand_vec_perm_const_1): Use them.
13277 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
13278 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
13279 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
13280 (ashrv4di3): New define_expand.
13281 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
13282 and !TARGET_AVX512VL expansion.
13284 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
13287 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
13288 sizes < 16 to a register when constructing vpcmov pattern.
13289 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
13291 2021-05-13 Martin Liska <mliska@suse.cz>
13293 * gcov-io.c (gcov_write_block): Remove.
13294 (gcov_write_words): Likewise.
13295 (gcov_read_words): Re-implement using gcov_read_bytes.
13296 (gcov_allocate): Remove.
13297 (GCOV_BLOCK_SIZE): Likewise.
13298 (struct gcov_var): Remove most of the fields.
13299 (gcov_position): Implement with ftell.
13300 (gcov_rewrite): Remove setting of start and offset fields.
13301 (from_file): Re-format.
13302 (gcov_open): Remove setbuf call. It should not be needed.
13303 (gcov_close): Remove internal buffer handling.
13304 (gcov_magic): Use __builtin_bswap32.
13305 (gcov_write_counter): Use directly gcov_write_unsigned.
13306 (gcov_write_string): Use direct fwrite and do not round
13308 (gcov_seek): Use directly fseek.
13309 (gcov_write_tag): Use gcov_write_unsigned directly.
13310 (gcov_write_length): Likewise.
13311 (gcov_write_tag_length): Likewise.
13312 (gcov_read_bytes): Use directly fread.
13313 (gcov_read_unsigned): Use gcov_read_words.
13314 (gcov_read_counter): Likewise.
13315 (gcov_read_string): Use gcov_read_bytes.
13316 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
13317 that size is not in bytes, but words (4B).
13318 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
13319 (GCOV_TAG_ARCS_LENGTH): Likewise.
13320 (GCOV_TAG_ARCS_NUM): Likewise.
13321 (GCOV_TAG_COUNTER_LENGTH): Likewise.
13322 (GCOV_TAG_COUNTER_NUM): Likewise.
13323 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
13325 2021-05-13 liuhongt <hongtao.liu@intel.com>
13328 * config/i386/sse.md (ssedoublevecmode): Add attribute for
13329 V64QI/V32HI/V16SI/V4DI.
13330 (ssehalfvecmode): Add attribute for V2DI/V2DF.
13331 (*vec_concatv4si_0): Extend to VI124_128.
13332 (*vec_concat<mode>_0): New pre-reload splitter.
13333 * config/i386/predicates.md (movq_parallel): New predicate.
13335 2021-05-13 Alexandre Oliva <oliva@adacore.com>
13337 * targhooks.c (default_zero_call_used_regs): Retry using
13338 successfully-zeroed registers as sources.
13340 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
13342 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
13344 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
13347 * gimple-range.cc (range_of_builtin_call): Skip out on
13348 processing __builtin_clz when varying.
13350 2021-05-12 Tom de Vries <tdevries@suse.de>
13353 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
13354 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
13355 to ptx_version_option.
13356 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
13357 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
13358 (define_insn "nvptx_vote_ballot"): Use sync variant for
13360 * config/nvptx/nvptx.opt (ptx_version): Add enum.
13361 (mptx): Add option.
13362 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
13364 2021-05-12 Richard Biener <rguenther@suse.de>
13366 PR tree-optimization/100566
13367 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
13368 allow_back for all edge queries.
13370 2021-05-12 liuhongt <hongtao.liu@intel.com>
13373 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
13374 splitters for pblendvb of NOT mask register.
13376 2021-05-12 Richard Biener <rguenther@suse.de>
13378 PR tree-optimization/100519
13379 * tree-ssa-reassoc.c (can_associate_p): Split into...
13380 (can_associate_op_p): ... this
13381 (can_associate_type_p): ... and this.
13382 (is_reassociable_op): Call can_associate_op_p.
13383 (break_up_subtract_bb): Call the appropriate predicates.
13384 (reassociate_bb): Likewise.
13386 2021-05-12 Martin Liska <mliska@suse.cz>
13388 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
13389 (run_gcc): Use -flto argument detection for merged
13392 2021-05-12 Martin Liska <mliska@suse.cz>
13394 * lto-wrapper.c (print_lto_docs_link): New function.
13395 (run_gcc): Print warning about missing job server detection
13396 after we know NR of partitions. Do the same for -flto{,=1}.
13397 * opts.c (get_option_html_page): Support -flto option.
13399 2021-05-12 Martin Liska <mliska@suse.cz>
13401 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
13403 (append_option): Remove.
13404 (find_option): Rework to use the vector type.
13405 (remove_option): Remove.
13406 (merge_and_complain): Use vectors for cl_decoded_option data
13408 (append_compiler_options): Likewise.
13409 (append_diag_options): Likewise.
13410 (append_linker_options): Likewise.
13411 (append_offload_options): Likewise.
13412 (compile_offload_image): Likewise.
13413 (compile_images_for_offload_targets): Likewise.
13414 (find_and_merge_options): Likewise.
13415 (run_gcc): Likewise.
13417 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
13420 * dwarf2out.c (dwarf2out_finish): Set
13421 have_multiple_function_sections with multi-range text_section.
13423 2021-05-12 Martin Liska <mliska@suse.cz>
13425 PR bootstrap/100560
13426 * Makefile.in: Remove version.h from linker command line.
13428 2021-05-12 Richard Biener <rguenther@suse.de>
13430 PR middle-end/100547
13431 * rtl.h (rtvec_alloc): Make argument size_t.
13432 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
13434 2021-05-12 Jakub Jelinek <jakub@redhat.com>
13436 PR middle-end/100508
13437 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
13438 type, don't reuse DECL_RTL if it has different mode, instead force
13439 creation of a new DEBUG_EXPR.
13441 2021-05-12 Jakub Jelinek <jakub@redhat.com>
13442 Marc Glisse <marc.glisse@inria.fr>
13444 PR tree-optimization/94589
13445 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
13446 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
13448 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
13451 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
13452 * config/i386/mmx.md (MMXMODE124): New mode iterator.
13454 (mmxintvecmode): New mode attribute.
13455 (mmxintvecmodelower): Ditto.
13456 (*mmx_maskcmpv2sf3_comm): New insn pattern.
13457 (*mmx_maskcmpv2sf3): Ditto.
13458 (vec_cmpv2sfv2si): New expander.
13459 (vcond<V2FI:mode>v2si): Ditto.
13460 (mmx_vlendvps): New insn pattern.
13461 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
13462 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
13463 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
13465 2021-05-11 Martin Sebor <msebor@redhat.com>
13467 PR middle-end/21433
13468 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
13470 2021-05-11 Richard Biener <rguenther@suse.de>
13472 * gimple-fold.c (gimple_fold_call): Do not call
13473 maybe_fold_reference on call arguments or the static chain.
13474 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
13477 2021-05-11 Martin Liska <mliska@suse.cz>
13479 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
13480 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
13481 (DEF_HSAIL_SAT_BUILTIN): Likewise.
13482 (DEF_HSAIL_INTR_BUILTIN): Likewise.
13483 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
13484 * doc/frontends.texi: Remove BRIG.
13485 * doc/install.texi: Likewise.
13486 * doc/invoke.texi: Likewise.
13487 * doc/standards.texi: Likewise.
13488 * brig-builtins.def: Removed.
13489 * brig/ChangeLog: Removed.
13490 * brig/Make-lang.in: Removed.
13491 * brig/brig-builtins.h: Removed.
13492 * brig/brig-c.h: Removed.
13493 * brig/brig-lang.c: Removed.
13494 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
13495 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
13496 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
13497 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
13498 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
13499 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
13500 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
13501 * brig/brigfrontend/brig-comment-handler.cc: Removed.
13502 * brig/brigfrontend/brig-control-handler.cc: Removed.
13503 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
13504 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
13505 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
13506 * brig/brigfrontend/brig-function-handler.cc: Removed.
13507 * brig/brigfrontend/brig-function.cc: Removed.
13508 * brig/brigfrontend/brig-function.h: Removed.
13509 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
13510 * brig/brigfrontend/brig-label-handler.cc: Removed.
13511 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
13512 * brig/brigfrontend/brig-machine.c: Removed.
13513 * brig/brigfrontend/brig-machine.h: Removed.
13514 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
13515 * brig/brigfrontend/brig-module-handler.cc: Removed.
13516 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
13517 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
13518 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
13519 * brig/brigfrontend/brig-to-generic.cc: Removed.
13520 * brig/brigfrontend/brig-to-generic.h: Removed.
13521 * brig/brigfrontend/brig-util.cc: Removed.
13522 * brig/brigfrontend/brig-util.h: Removed.
13523 * brig/brigfrontend/brig-variable-handler.cc: Removed.
13524 * brig/brigfrontend/hsa-brig-format.h: Removed.
13525 * brig/brigfrontend/phsa.h: Removed.
13526 * brig/brigspec.c: Removed.
13527 * brig/config-lang.in: Removed.
13528 * brig/gccbrig.texi: Removed.
13529 * brig/lang-specs.h: Removed.
13530 * brig/lang.opt: Removed.
13532 2021-05-11 Richard Biener <rguenther@suse.de>
13535 * ipa-param-manipulation.c
13536 (ipa_param_body_adjustments::modify_call_stmt): Avoid
13537 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
13538 via gimple_call_lhs_ptr.
13540 2021-05-11 Alex Coplan <alex.coplan@arm.com>
13543 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
13544 Avoid emitting CFA adjusts on the sp if we have the fp.
13546 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
13548 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
13549 (VMULD): New iterator.
13550 (VCOND): Handle V4HF and V8HF.
13551 (VCONQ): Fix entry for V2SF.
13552 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
13553 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
13554 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
13555 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
13556 Use a 128-bit vector mode for the indexed operand. Use stype for
13557 the scheduling type.
13559 2021-05-11 Richard Biener <rguenther@suse.de>
13561 * gimple-fold.c (maybe_fold_reference): Only return
13562 is_gimple_min_invariant values.
13564 2021-05-11 Richard Biener <rguenther@suse.de>
13566 PR middle-end/100509
13567 * gimple-fold.c (fold_gimple_assign): Only call
13568 get_symbol_constant_value on register type symbols.
13570 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13571 Joe Ramsay <joe.ramsay@arm.com>
13574 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
13575 (__arm_vcmpneq): Remove duplicate definition.
13576 (__arm_vstrwq_scatter_offset_p): Likewise.
13577 (__arm_vmaxq_x): Likewise.
13578 (__arm_vmlsdavaq): Likewise.
13579 (__arm_vmlsdavaxq): Likewise.
13580 (__arm_vmlsdavq_p): Likewise.
13581 (__arm_vmlsdavxq_p): Likewise.
13582 (__arm_vrmlaldavhaq): Likewise.
13583 (__arm_vstrbq_p): Likewise.
13584 (__arm_vstrbq_scatter_offset): Likewise.
13585 (__arm_vstrbq_scatter_offset_p): Likewise.
13586 (__arm_vstrdq_scatter_offset): Likewise.
13587 (__arm_vstrdq_scatter_offset_p): Likewise.
13588 (__arm_vstrdq_scatter_shifted_offset): Likewise.
13589 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
13591 2021-05-11 Jakub Jelinek <jakub@redhat.com>
13593 PR middle-end/100471
13594 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
13595 is 0, bypass the reduction loop including
13596 GOMP_taskgroup_reduction_unregister call.
13598 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
13600 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
13601 costing_for_scalar.
13602 (rs6000_density_test): Early return if costing_for_scalar is true.
13603 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
13605 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
13607 * doc/tm.texi: Regenerated.
13608 * target.def (init_cost): Add new parameter costing_for_scalar.
13609 * targhooks.c (default_init_cost): Adjust for new parameter.
13610 * targhooks.h (default_init_cost): Likewise.
13611 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
13612 (vect_compute_single_scalar_iteration_cost): Likewise.
13613 (vect_analyze_loop_2): Likewise.
13614 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
13615 (vect_bb_vectorization_profitable_p): Likewise.
13616 * tree-vectorizer.h (init_cost): Likewise.
13617 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
13618 * config/i386/i386.c (ix86_init_cost): Likewise.
13619 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
13621 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
13623 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
13624 vect_nonmem and moved into...
13625 (struct rs6000_cost_data): ...here.
13626 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
13627 (rs6000_add_stmt_cost): Likewise.
13628 (rs6000_finish_cost): Likewise.
13630 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
13632 * range-op.cc (get_bool_state): Adjust head comment.
13633 (operator_not_equal::op1_range): Fix comment.
13634 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
13636 2021-05-10 Martin Sebor <msebor@redhat.com>
13638 PR middle-end/100425
13639 PR middle-end/100510
13640 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
13641 (pass_walloca::xlimit_certain_p): ...to this.
13642 (pass_walloca::gate): Execute for any kind of handled warning.
13643 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
13644 warnings when xlimit_certain_p is set.
13646 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
13648 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
13649 Return ALTIVEC_REGS if that is best_class.
13650 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
13652 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13654 * config/arm/arm.h (CPP_SPEC): Remove error message about
13657 2021-05-10 Martin Jambor <mjambor@suse.cz>
13659 * ipa-prop.h (IPA_NODE_REF): Removed.
13660 (IPA_NODE_REF_GET_CREATE): Likewise.
13661 (IPA_EDGE_REF): Likewise.
13662 (IPA_EDGE_REF_GET_CREATE): Likewise.
13663 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
13664 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
13665 use of ipa_node_params_sum.
13666 (ipcp_versionable_function_p): Likewise.
13667 (push_node_to_stack): Likewise.
13668 (pop_node_from_stack): Likewise.
13669 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
13670 direct use of ipa_node_params_sum.
13671 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
13672 ipa_node_params_sum.
13673 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
13675 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
13676 use of ipa_node_params_sum.
13677 (self_recursively_generated_p): Likewise.
13678 (propagate_scalar_across_jump_function): Likewise.
13679 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
13680 direct use of ipa_edge_args_sum, moved the lookup after the early
13681 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
13682 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
13683 direct uses of ipa_node_params_sum.
13684 (propagate_vr_across_jump_function): Likewise.
13685 (propagate_aggregate_lattice): Likewise.
13686 (propagate_aggs_across_jump_function): Likewise.
13687 (propagate_constants_across_call): Likewise, also replaced
13688 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
13689 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
13690 of ipa_node_params_sum.
13691 (estimate_local_effects): Likewise.
13692 (add_all_node_vals_to_toposort): Likewise.
13693 (propagate_constants_topo): Likewise.
13694 (ipcp_propagate_stage): Likewise.
13695 (ipcp_discover_new_direct_edges): Likewise.
13696 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
13697 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
13698 (get_info_about_necessary_edges): Likewise.
13699 (want_remove_some_param_p): Likewise.
13700 (create_specialized_node): Likewise.
13701 (self_recursive_pass_through_p): Likewise.
13702 (self_recursive_agg_pass_through_p): Likewise.
13703 (find_more_scalar_values_for_callers_subset): Likewise and also
13704 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
13705 case replacing two of those with a single query.
13706 (find_more_contexts_for_caller_subset): Likewise for the
13707 ipa_polymorphic_call_context overload.
13708 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
13709 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
13710 ipa_node_params_sum.
13711 (find_aggregate_values_for_callers_subset): Likewise, also reusing
13712 results of ipa_edge_args_sum->get.
13713 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
13714 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
13715 direct use of ipa_edge_args_sum.
13716 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
13717 summary query after the early exit and reused the result later.
13718 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
13719 ipa_node_params_sum.
13720 (decide_whether_version_node): Likewise. Removed re-querying for
13721 summaries after cloning.
13722 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
13723 ipa_node_params_sum.
13724 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
13726 (identify_dead_nodes): Likewise.
13727 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
13728 ipa_node_params_sum.
13729 (ipcp_store_vr_results): Likewise.
13730 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
13731 (ipa_fn_summary_t::duplicate): Likewise.
13732 (analyze_function_body): Likewise.
13733 (estimate_calls_size_and_time): Likewise.
13734 (ipa_cached_call_context::duplicate_from): Likewise.
13735 (ipa_call_context::equal_to): Likewise.
13736 (remap_edge_params): Likewise.
13737 (ipa_merge_fn_summary_after_inlining): Likewise.
13738 (inline_read_section): Likewise.
13739 * ipa-icf.c (sem_function::param_used_p): Likewise.
13740 * ipa-modref.c (compute_parm_map): Likewise.
13741 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
13743 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
13744 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
13746 * ipa-profile.c (check_argument_count): Likewise.
13747 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
13748 with a direct use of ipa_node_params_sum.
13749 (ipa_initialize_node_params): Likewise.
13750 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
13751 direct use of ipa_edge_args_sum and reused the query result.
13752 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
13753 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
13754 direct use of ipa_edge_args_sum.
13755 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
13756 ipa_node_params_sum and reused the result of the query.
13757 (ipa_analyze_node): Likewise.
13758 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
13759 of ipa_node_params_sum.
13760 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
13761 direct uses of ipa_edge_args_sum.
13762 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
13763 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
13764 direct use of ipa_edge_args_sum. Removed superficial re-querying the
13766 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
13767 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
13769 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
13770 direct use of ipa_edge_args_sum.
13771 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
13772 use of ipa_node_params_sum.
13773 (ipa_print_node_params): Likewise.
13774 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
13775 direct uses of ipa_edge_args_sum.
13776 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
13778 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
13779 ipa_node_params_sum.
13780 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
13781 scopes where it is used.
13783 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
13785 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
13786 <case E_V2SImode>: Force op_true to register.
13788 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13790 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
13791 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
13792 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
13794 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
13795 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
13796 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
13797 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
13798 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
13799 (mve_vcmpneq_n_f<mode>): Remove.
13800 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
13801 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
13802 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
13804 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13806 * config/arm/iterators.md (MVE_COMPARISONS): New.
13808 (mve_cmp_type): New.
13809 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
13811 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
13812 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
13813 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
13814 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
13815 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
13816 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
13817 (mve_vcmpneq_n_<mode>): Remove.
13819 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13821 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
13822 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
13823 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
13826 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13828 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
13829 (vcmpneq_n_u): Likewise.
13830 (vcmpeqq_u,): Likewise.
13831 (vcmpeqq_n_u): Likewise.
13832 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
13833 VCMPEQQ_N_U and VCMPNEQ_N_U.
13834 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
13835 (mve_vcmpeqq_n): Likewise.
13836 (mve_vcmpeqq): Likewise.
13837 (mve_vcmpneq_n): Likewise.
13839 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
13841 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
13842 the 's' version of the builtin.
13844 2021-05-10 Richard Biener <rguenther@suse.de>
13846 PR tree-optimization/100492
13847 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13848 Find nothing when the loop contains an irreducible region.
13850 2021-05-10 Richard Biener <rguenther@suse.de>
13852 PR middle-end/100464
13854 * gimple-fold.c (canonicalize_constructor_val): Do not set
13857 2021-05-10 Richard Biener <rguenther@suse.de>
13859 PR tree-optimization/100434
13860 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
13862 (dse_optimize_stmt): Handle call LHS by dropping the
13863 LHS or the whole call if it doesn't have other
13865 (pass_dse::execute): Adjust.
13867 2021-05-10 Martin Liska <mliska@suse.cz>
13869 * Makefile.in: Add missing genversion rule.
13871 2021-05-10 Alex Coplan <alex.coplan@arm.com>
13874 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
13875 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
13877 2021-05-10 Martin Liska <mliska@suse.cz>
13879 * builtins.c (is_builtin_name): Use startswith
13880 function instead of strncmp.
13881 * collect2.c (main): Likewise.
13882 (has_lto_section): Likewise.
13883 (scan_libraries): Likewise.
13884 * coverage.c (coverage_checksum_string): Likewise.
13885 (coverage_init): Likewise.
13886 * dwarf2out.c (is_cxx): Likewise.
13887 (gen_compile_unit_die): Likewise.
13888 * gcc-ar.c (main): Likewise.
13889 * gcc.c (init_spec): Likewise.
13890 (read_specs): Likewise.
13891 (execute): Likewise.
13892 (check_live_switch): Likewise.
13893 * genattrtab.c (write_attr_case): Likewise.
13894 (IS_ATTR_GROUP): Likewise.
13895 * gencfn-macros.c (main): Likewise.
13896 * gengtype.c (type_for_name): Likewise.
13897 (gen_rtx_next): Likewise.
13898 (get_file_langdir): Likewise.
13899 (write_local): Likewise.
13900 * genmatch.c (get_operator): Likewise.
13901 (get_operand_type): Likewise.
13902 (expr::gen_transform): Likewise.
13903 * genoutput.c (validate_optab_operands): Likewise.
13904 * incpath.c (add_sysroot_to_chain): Likewise.
13905 * langhooks.c (lang_GNU_C): Likewise.
13906 (lang_GNU_CXX): Likewise.
13907 (lang_GNU_Fortran): Likewise.
13908 (lang_GNU_OBJC): Likewise.
13909 * lto-wrapper.c (run_gcc): Likewise.
13910 * omp-general.c (omp_max_simt_vf): Likewise.
13911 * omp-low.c (omp_runtime_api_call): Likewise.
13912 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
13913 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
13914 * real.c (real_from_string): Likewise.
13915 * selftest.c (assert_str_startswith): Likewise.
13916 * timevar.c (timer::validate_phases): Likewise.
13917 * tree.c (get_file_function_name): Likewise.
13918 * ubsan.c (ubsan_use_new_style_p): Likewise.
13919 * varasm.c (default_function_rodata_section): Likewise.
13920 (incorporeal_function_p): Likewise.
13921 (default_section_type_flags): Likewise.
13922 * system.h (startswith): Define startswith.
13924 2021-05-10 Martin Liska <mliska@suse.cz>
13926 * bitmap.h (class auto_bitmap): Remove
13927 __cplusplus >= 201103.
13928 * config/aarch64/aarch64.c: Likewise.
13929 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
13931 * sbitmap.h: Likewise.
13933 2021-05-10 Martin Liska <mliska@suse.cz>
13935 * Makefile.in: Rename gcov-iov to genversion and depend
13936 on version.h (instead of gcov-iov.h).
13937 * gcov-io.h: Include version.h instread of gcov-iov.h.
13938 * gengtype-state.c (read_state_version): Likewise.
13939 * gcov-iov.c: Moved to...
13940 * genversion.c: ...here.
13941 * lto-streamer.h (LTO_major_version): Define it with
13943 * version.c: Removed.
13944 * version.h: Removed.
13946 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13948 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
13949 * config/arc/simdext.md (VCT): Add predicates for iterator
13952 (voptab): Likewise.
13953 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
13954 (<voptab>v2si3): New patterns.
13956 (reduc_plus_scal_v4hi): Likewise.
13957 (reduc_plus_scal_v2si): Likewise.
13958 (vec_duplicatev2si): Likewise.
13959 (vec_duplicatev4hi): Likewise.
13961 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13963 * config/arc/simdext.md: Format and cleanup file.
13965 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13967 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
13968 only when munaligned-access option is on.
13969 (movmisalign<mode>): Likewise.
13971 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13973 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
13975 * config/arc/arc.c (arc_reorg): Remove underscore from string.
13977 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13979 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
13980 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
13981 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
13982 (norm_f): Likewise.
13985 (clzsi2): Use fls instruction when available.
13986 (arc_clzsi2): Likewise.
13988 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13990 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
13992 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
13994 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
13996 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13998 PR middle-end/100467
13999 * toplev.c (compile_file): Call insn_locations_init before
14000 targetm.asm_out.code_end.
14002 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
14005 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
14007 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
14009 2021-05-07 Jakub Jelinek <jakub@redhat.com>
14010 Andrew Stubbs <amd@codesourcery.com>
14013 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
14014 emit_move_insn operands.
14016 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
14018 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
14019 location for the outgoing edges of an empty block.
14020 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
14021 type by means of the get_array_descr_info langhook, if it is set and
14022 returns true. Remove obsolete code dealing with unnamed subtypes.
14024 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14026 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
14027 (sbr_vector): Renamed from ssa_block_cache.
14028 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
14029 (ssa_block_ranges::~ssa_block_ranges): Remove.
14030 (sbr_vector::set_bb_range): Use varying and undefined cached values.
14031 (ssa_block_ranges::set_bb_varying): Remove.
14032 (sbr_vector::get_bb_range): Adjust assert.
14033 (sbr_vector::bb_range_p): Adjust assert.
14034 (~block_range_cache): No freeing loop required.
14035 (block_range_cache::get_block_ranges): Remove.
14036 (block_range_cache::set_bb_range): Inline get_block_ranges.
14037 (block_range_cache::set_bb_varying): Remove.
14038 * gimple-range-cache.h (set_bb_varying): Remove prototype.
14039 * value-range.h (irange_allocator::get_memory): New.
14041 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14043 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
14044 dominator tree is available and requested.
14045 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
14046 (ranger_cache::fill_block_cache): Don't search dom tree here either.
14047 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
14049 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14051 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
14052 only PHI nodes better.
14054 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14056 * gimple-range-edge.h (gimple_outgoing_range): Rename from
14058 (gcond_edge_range): Export prototype.
14059 * gimple-range-edge.cc (gcond_edge_range): New.
14060 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
14061 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
14063 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14065 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
14066 default range into a temp and allocate only what is needed.
14068 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14070 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
14072 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14074 * gimple-range.h (gimple_range_global): Pick up parameter initial
14075 values, and use-before defined locals are UNDEFINED.
14077 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
14079 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
14081 * tree.h (reverse_storage_order_for_component_p): Return false if
14082 the type is a pointer.
14084 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
14086 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
14088 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
14091 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
14092 Handle V8QI, V4HI and V2SI modes.
14093 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
14094 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
14095 * config/i386/i386.md (unspec): ... here.
14097 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
14098 Tom de Vries <tdevries@suse.de>
14100 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
14101 a truth_value_p reduction variable is nonintegral.
14103 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
14106 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
14107 Return false for mode sizes < 16.
14109 2021-05-07 Jakub Jelinek <jakub@redhat.com>
14112 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
14114 2021-05-06 Martin Jambor <mjambor@suse.cz>
14116 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
14117 when there is no function summary.
14118 (ipa_sra_summarize_function): produce edge summaries even when
14121 2021-05-06 Tom Tromey <tom@tromey.com>
14123 * godump.c (string_hash_eq): Remove.
14124 (go_finish): Use htab_eq_string.
14126 2021-05-06 Tom Tromey <tom@tromey.com>
14128 * gengtype-state.c (read_state): Use htab_eq_string.
14129 (string_eq): Remove.
14131 2021-05-06 Tom Tromey <tom@tromey.com>
14133 * gensupport.c (htab_eq_string): Remove.
14135 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
14138 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
14139 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
14140 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
14141 set_ignored_loc callbacks.
14142 * debug.c (do_nothing_debug_hooks): Likewise.
14143 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14144 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
14145 (in_text_section_p, last_text_label, last_cold_label,
14146 switch_text_ranges, switch_cold_ranges): New data items.
14147 (dwarf2out_note_section_used): Remove.
14148 (dwarf2out_begin_prologue): Set fde->ignored_debug and
14150 (mark_ignored_debug_section): New helper function.
14151 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
14152 mark_ignored_debug_section.
14153 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
14154 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
14155 (size_of_aranges): Adjust formula for multi-part text ranges size.
14156 (output_aranges): Output multi-part text ranges.
14157 (dwarf2out_set_ignored_loc): New callback function.
14158 (dwarf2out_finish): Output multi-part text ranges.
14159 (dwarf2out_c_finalize): Clear new data items.
14160 * final.c (final_start_function_1): Call set_ignored_loc callback.
14161 (final_scan_insn_1): Likewise.
14162 * ggc-page.c (gt_ggc_mx): New helper function.
14163 * stringpool.c (gt_pch_nx): Likewise.
14165 2021-05-06 Richard Biener <rguenther@suse.de>
14167 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
14168 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
14169 (TV_TREE_INTO_SSA): New.
14170 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
14171 (rewrite_blocks): Likewise.
14172 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
14174 2021-05-06 Jakub Jelinek <jakub@redhat.com>
14176 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
14177 abs_replacement, xor_replacement,
14178 cond_removal_in_popcount_clz_ctz_pattern,
14179 replace_phi_edge_with_variable): Change type of phi argument from
14180 gimple * to gphi *.
14182 2021-05-06 Richard Biener <rguenther@suse.de>
14184 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
14185 Output an opt-info message.
14186 (do_split_loop_on_cond): Likewise.
14187 (tree_ssa_split_loops): Update SSA form here.
14189 2021-05-06 Richard Biener <rguenther@suse.de>
14191 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
14192 return variable removal.
14194 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
14196 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
14197 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
14198 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
14200 * config/s390/s390.c (s390_const_operand_ok): Remove unused
14203 2021-05-06 Jakub Jelinek <jakub@redhat.com>
14205 PR tree-optimization/94589
14206 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
14207 spaceship_replacement.
14208 (cond_only_block_p, spaceship_replacement): New functions.
14210 2021-05-06 Richard Biener <rguenther@suse.de>
14213 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
14214 dealing with a debug use and only query existing addresses
14216 (lower_emutls_1): Avoid splitting out addresses for debug
14217 stmts, reset the debug stmt when we fail to find existing
14219 (lower_emutls_phi_arg): Set wi.stmt.
14221 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
14224 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
14225 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
14226 (stack_protect_test): Use cbranch helper.
14228 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
14231 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
14232 always return the establisher frame for __builtin_frame_address (0).
14234 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
14237 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
14238 (ix86_cpu_model_var): Likewise.
14239 (ix86_cpu_features2_type_node): Likewise.
14240 (ix86_cpu_features2_var): Likewise.
14241 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
14244 2021-05-05 Martin Sebor <msebor@redhat.com>
14246 * passes.def (pass_warn_printf): Run after SSA.
14248 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14250 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
14251 * config/arm/predicates.md (minus_one_operand): New predicate.
14253 2021-05-05 Jeff Law <jlaw@tachyum.com>
14255 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
14257 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14259 PR rtl-optimization/100263
14260 * postreload.c (move2add_valid_value_p): Ensure register can
14263 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
14265 PR rtl-optimization/100411
14266 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
14267 and beginning of function markers.
14269 2021-05-05 Jeff Law <jlaw@tachyum.com>
14271 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
14272 * config/cr16/cr16.c (notice_update_cc): Remove.
14273 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
14275 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
14278 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14279 Handle V8QI, V4HI and V2SI modes.
14280 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
14281 (ix86_build_signbit_mask): Ditto.
14282 * config/i386/mmx.md (MMXMODE14): New mode iterator.
14283 (<smaxmin:code><MMXMODE14:mode>3): New expander.
14284 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
14285 (<umaxmin:code><MMXMODE24:mode>3): New expander.
14286 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
14287 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
14288 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
14289 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
14290 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
14291 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
14293 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
14295 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
14296 not expand the VALUE_EXPR of variables put in the non-local frame.
14297 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
14298 to be ignored for debug info, ensure its variable offsets are not.
14300 2021-05-05 Richard Biener <rguenther@suse.de>
14302 PR tree-optimization/79333
14303 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
14304 Fold stmt following SSA edges.
14306 2021-05-05 Richard Biener <rguenther@suse.de>
14308 PR middle-end/100394
14309 * calls.c (expand_call): Preserve possibly throwing calls.
14310 * cfgexpand.c (expand_call_stmt): When a call can throw signal
14311 RTL expansion there are side-effects.
14312 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
14313 mark all possibly throwing stmts necessary unless we can elide
14315 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
14316 -fdelete-dead-exceptions.
14317 * tree.h (DECL_PURE_P): Add note about exceptions.
14319 2021-05-05 Alexandre Oliva <oliva@adacore.com>
14321 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
14324 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
14326 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
14327 get_fnname_from_decl for name of thunk.
14328 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
14329 and ASM_OUTPUT_LABEL.
14330 (rs6000_xcoff_declare_function_name): Use assemble_name and
14332 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
14333 (rs6000_xcoff_encode_section_info): Don't add mapping class
14334 for aliases. Always add [DS] mapping class to primary
14336 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
14338 2021-05-04 Martin Sebor <msebor@redhat.com>
14340 PR middle-end/100307
14341 * builtins.c (compute_objsize_r): Clear base0 for pointers.
14343 2021-05-04 Jeff Law <jlaw@tachyum.com>
14345 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
14347 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14349 * caller-save.c: Remove CC0.
14350 * cfgcleanup.c: Remove CC0.
14351 * cfgrtl.c: Remove CC0.
14352 * combine.c: Remove CC0.
14353 * compare-elim.c: Remove CC0.
14354 * conditions.h: Remove CC0.
14355 * config/h8300/h8300.h: Remove CC0.
14356 * config/h8300/h8300-protos.h: Remove CC0.
14357 * config/h8300/peepholes.md: Remove CC0.
14358 * config/i386/x86-tune-sched.c: Remove CC0.
14359 * config/m68k/m68k.c: Remove CC0.
14360 * config/rl78/rl78.c: Remove CC0.
14361 * config/sparc/sparc.c: Remove CC0.
14362 * config/xtensa/xtensa.c: Remove CC0.
14363 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
14364 RTL where that is used as a placeholder only.
14365 * cprop.c: Remove CC0.
14366 * cse.c: Remove CC0.
14367 * cselib.c: Remove CC0.
14368 * df-problems.c: Remove CC0.
14369 * df-scan.c: Remove CC0.
14370 * doc/md.texi: Remove CC0. Adjust an example.
14371 * doc/rtl.texi: Remove CC0. Adjust an example.
14372 * doc/tm.texi: Regenerate.
14373 * doc/tm.texi.in: Remove CC0.
14374 * emit-rtl.c: Remove CC0.
14375 * final.c: Remove CC0.
14376 * fwprop.c: Remove CC0.
14377 * gcse-common.c: Remove CC0.
14378 * gcse.c: Remove CC0.
14379 * genattrtab.c: Remove CC0.
14380 * genconfig.c: Remove CC0.
14381 * genemit.c: Remove CC0.
14382 * genextract.c: Remove CC0.
14383 * gengenrtl.c: Remove CC0.
14384 * genrecog.c: Remove CC0.
14385 * haifa-sched.c: Remove CC0.
14386 * ifcvt.c: Remove CC0.
14387 * ira-costs.c: Remove CC0.
14388 * ira.c: Remove CC0.
14389 * jump.c: Remove CC0.
14390 * loop-invariant.c: Remove CC0.
14391 * lra-constraints.c: Remove CC0.
14392 * lra-eliminations.c: Remove CC0.
14393 * optabs.c: Remove CC0.
14394 * postreload-gcse.c: Remove CC0.
14395 * postreload.c: Remove CC0.
14396 * print-rtl.c: Remove CC0.
14397 * read-rtl-function.c: Remove CC0.
14398 * reg-notes.def: Remove CC0.
14399 * reg-stack.c: Remove CC0.
14400 * reginfo.c: Remove CC0.
14401 * regrename.c: Remove CC0.
14402 * reload.c: Remove CC0.
14403 * reload1.c: Remove CC0.
14404 * reorg.c: Remove CC0.
14405 * resource.c: Remove CC0.
14406 * rtl.c: Remove CC0.
14407 * rtl.def: Remove CC0.
14408 * rtl.h: Remove CC0.
14409 * rtlanal.c: Remove CC0.
14410 * sched-deps.c: Remove CC0.
14411 * sched-rgn.c: Remove CC0.
14412 * shrink-wrap.c: Remove CC0.
14413 * simplify-rtx.c: Remove CC0.
14414 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
14415 CC_STATUS_MDEP, and CC_STATUS.
14416 * target.def: Remove CC0.
14417 * valtrack.c: Remove CC0.
14418 * var-tracking.c: Remove CC0.
14420 2021-05-04 Richard Biener <rguenther@suse.de>
14422 PR tree-optimization/100414
14423 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
14425 (tree_ssa_phiopt_worker): But unconditionally here.
14427 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
14429 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
14430 && and || with floating-point and complex arguments.
14432 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
14434 * tree-inline.c (insert_debug_decl_map): Delete.
14435 (copy_debug_stmt): Minor tweak.
14436 (setup_one_parameter): Do not use a variable if the value is either
14437 a read-only DECL or a non-addressable local variable in the caller.
14438 In this case, insert the debug-only variable in the map manually.
14439 (expand_call_inline): Do not generate a CLOBBER for these values.
14440 * tree-inline.h (debug_map): Minor tweak.
14442 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
14444 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
14445 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
14447 2021-05-04 Richard Biener <rguenther@suse.de>
14449 PR tree-optimization/100329
14450 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
14452 (insert_stmt_after): Assert we're not running into asm goto.
14454 2021-05-04 Richard Biener <rguenther@suse.de>
14456 PR tree-optimization/100398
14457 * tree-ssa-dse.c (pass_dse::execute): Preserve control
14460 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14462 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
14464 2021-05-04 Alexandre Oliva <oliva@adacore.com>
14466 * builtins.c (try_store_by_multiple_pieces): New.
14467 (expand_builtin_memset_args): Use it. If target_char_cast
14468 fails, proceed as for non-constant val. Pass len's ctz to...
14469 * expr.c (clear_storage_hints): ... this. Try store by
14470 multiple pieces after setmem.
14471 (clear_storage): Adjust.
14472 * expr.h (clear_storage_hints): Likewise.
14473 (try_store_by_multiple_pieces): Declare.
14474 * passes.def: Replace the last copy_prop with ccp.
14476 2021-05-03 Tom de Vries <tdevries@suse.de>
14479 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
14482 2021-05-03 Richard Biener <rguenther@suse.de>
14484 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
14486 2021-05-03 Richard Biener <rguenther@suse.de>
14488 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
14489 (dse_dom_walker): Remove.
14490 (dse_dom_walker::dse_optimize_stmt): Rename...
14491 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
14492 (dse_dom_walker::before_dom_children): Inline ...
14493 (pass_dse::execute): ... here. Perform a reverse program
14496 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
14499 * configure: Regenerated.
14501 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
14504 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
14505 (s390_md_asm_adjust): Handle hard registers.
14507 2021-05-03 Jakub Jelinek <jakub@redhat.com>
14509 PR tree-optimization/100382
14510 * tree-ssa-dse.c: Include tree-eh.h.
14511 (dse_dom_walker::before_dom_children): Don't remove stmts if
14512 stmt_unremovable_because_of_non_call_eh_p is true.
14514 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
14516 * varasm.c (compute_reloc_for_var): Split out from...
14517 (get_variable_section): Use it.
14518 * output.h (compute_reloc_for_var): Declare.
14519 * config/rs6000/rs6000-protos.h
14520 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
14522 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
14523 Don't append storage mapping class to symbol.
14524 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
14525 Don't convert TLS BSS to common.
14526 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
14527 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
14529 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
14531 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
14532 If align is 0 from TLS class, use the same rules as varasm.c
14533 If not common, switch to BSS section manually.
14534 If common, emit appropriate comm or lcomm directive.
14535 (rs6000_xcoff_encode_section_info): Add logic to append all
14536 storage mapping classes.
14537 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
14538 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
14539 rs6000_xcoff_asm_output_aligned_decl_common.
14540 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
14541 rs6000_xcoff_asm_output_aligned_decl_common.
14542 (ASM_OUTPUT_TLS_COMMON): Use
14543 rs6000_xcoff_asm_output_aligned_decl_common.
14545 2021-05-02 Jakub Jelinek <jakub@redhat.com>
14548 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
14549 as first argument of pseudo_node_t constructors.
14551 2021-05-02 Jakub Jelinek <jakub@redhat.com>
14554 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
14556 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
14558 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
14559 (gt_pch_nx (int_range<1> *&)): New.
14560 (gt_ggc_mx (int_range<1> *&)): New.
14561 * value-range.h (class irange): Add GTY support for
14564 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
14566 * doc/options.texi (Negative): Change either or to both and.
14568 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
14570 * config/aarch64/aarch64-simd-builtins.def: Add
14571 float_ml[as][q]_laneq builtin generator macros.
14572 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
14573 (aarch64_float_mla_laneq<mode>): Define.
14574 (aarch64_float_mls_laneq<mode>): Define.
14575 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
14576 instead of GCC vector extensions.
14577 (vmlaq_laneq_f32): Likewise.
14578 (vmls_laneq_f32): Likewise.
14579 (vmlsq_laneq_f32): Likewise.
14581 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
14583 * config/aarch64/aarch64-simd-builtins.def: Add
14584 float_ml[as]_lane builtin generator macros.
14585 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
14587 (mul_lane<mode>3): This, and re-order arguments.
14588 (aarch64_float_mla_lane<mode>): Define.
14589 (aarch64_float_mls_lane<mode>): Define.
14590 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
14591 instead of GCC vector extensions.
14592 (vmlaq_lane_f32): Likewise.
14593 (vmls_lane_f32): Likewise.
14594 (vmlsq_lane_f32): Likewise.
14596 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
14598 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
14599 builtin generator macros.
14600 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
14602 (aarch64_float_mls<mode>): Define.
14603 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
14604 instead of relying on GCC vector extensions.
14605 (vmla_f64): Likewise.
14606 (vmlaq_f32): Likewise.
14607 (vmlaq_f64): Likewise.
14608 (vmls_f32): Likewise.
14609 (vmls_f64): Likewise.
14610 (vmlsq_f32): Likewise.
14611 (vmlsq_f64): Likewise.
14612 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
14614 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
14616 * config/aarch64/aarch64-simd-builtins.def: Add
14617 float_ml[as]_n_builtin generator macros.
14618 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
14620 (mul_n<mode>3): This, and re-order arguments.
14621 (aarch64_float_mla_n<mode>): Define.
14622 (aarch64_float_mls_n<mode>): Define.
14623 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
14624 instead of inline asm.
14625 (vmlaq_n_f32): Likewise.
14626 (vmls_n_f32): Likewise.
14627 (vmlsq_n_f32): Likewise.
14629 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
14631 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
14632 builtin generator macros.
14633 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
14634 (aarch64_pmull_hiv16qi_insn): Define.
14635 (aarch64_pmull_hiv16qi): Define.
14636 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
14637 instead of inline asm.
14638 (vmull_p8): Likewise.
14640 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
14642 * config/avr/avr.md: Adjust peepholes to match and
14643 generate parallels with clobber of REG_CC.
14644 (mov<mode>_insn): Rename to mov<mode>_insn_split.
14645 (*mov<mode>_insn): Rename to mov<mode>_insn.
14647 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
14649 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
14650 for VAR_DECLs if -fdata-sections enabled.
14652 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
14654 PR bootstrap/100327
14655 * config/rs6000/rs6000.c
14656 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
14657 (rs6000_libgcc_floating_mode_supported_p): New target hook.
14659 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
14661 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
14663 (class back_threader_registry): ...to here...
14664 (class back_threader_profitability): ...and here...
14665 (thread_jumps::thread_through_all_blocks): Remove argument.
14666 (back_threader_registry::back_threader_registry): New.
14667 (back_threader_registry::~back_threader_registry): New.
14668 (back_threader_registry::thread_through_all_blocks): New.
14669 (thread_jumps::profitable_jump_thread_path): Move from here...
14670 (back_threader_profitability::profitable_path_p): ...to here.
14671 (thread_jumps::find_taken_edge): New.
14672 (thread_jumps::convert_and_register_current_path): Move...
14673 (back_threader_registry::register_path): ...to here.
14674 (thread_jumps::register_jump_thread_path_if_profitable): Move...
14675 (thread_jumps::maybe_register_path): ...to here.
14676 (thread_jumps::handle_phi): Call find_taken_edge and
14677 maybe_register_path.
14678 (thread_jumps::handle_assignment): Same.
14679 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
14680 tree argument to handle_phi and handle_assignment.
14681 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
14682 set of m_speed_p and m_max_threaded_paths.
14683 (pass_thread_jumps::execute): Remove second argument from
14684 find_jump_threads_backwards.
14685 (pass_early_thread_jumps::execute): Same.
14687 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
14689 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
14690 (class dom_opt_dom_walker): Initialize some class variables.
14691 (pass_dominator::execute): Pass evrp_range_analyzer and
14692 dom_jump_threader_simplifier to dom_opt_dom_walker.
14693 Adjust for some functions moving into classes.
14694 (simplify_stmt_for_jump_threading): Adjust and move to...
14695 (jump_threader_simplifier::simplify): ...here.
14696 (dom_opt_dom_walker::before_dom_children): Adjust for
14697 m_evrp_range_analyzer.
14698 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
14699 (test_for_singularity): Place in dom_opt_dom_walker class.
14700 (dom_opt_dom_walker::optimize_stmt): The argument
14701 evrp_range_analyzer is now a class field.
14702 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
14703 (thread_jumps::thread_through_all_blocks): New.
14704 (thread_jumps::convert_and_register_current_path): Use m_registry.
14705 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
14706 being in the threader class.
14707 (pass_early_thread_jumps::execute): Same.
14708 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
14709 (jump_threader::jump_threader): ...here.
14710 (threadedge_finalize_values): Move...
14711 (jump_threader::~jump_threader): ...here.
14712 (jump_threader::remove_jump_threads_including): New.
14713 (jump_threader::thread_through_all_blocks): New.
14714 (record_temporary_equivalences_from_phis): Move...
14715 (jump_threader::record_temporary_equivalences_from_phis): ...here.
14716 (record_temporary_equivalences_from_stmts_at_dest): Move...
14717 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
14719 (simplify_control_stmt_condition_1): Move to jump_threader class.
14720 (simplify_control_stmt_condition): Move...
14721 (jump_threader::simplify_control_stmt_condition): ...here.
14722 (thread_around_empty_blocks): Move...
14723 (jump_threader::thread_around_empty_blocks): ...here.
14724 (thread_through_normal_block): Move...
14725 (jump_threader::thread_through_normal_block): ...here.
14726 (thread_across_edge): Move...
14727 (jump_threader::thread_across_edge): ...here.
14728 (thread_outgoing_edges): Move...
14729 (jump_threader::thread_outgoing_edges): ...here.
14730 * tree-ssa-threadedge.h: Move externally facing functings...
14731 (class jump_threader): ...here...
14732 (class jump_threader_simplifier): ...and here.
14733 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
14734 (jump_thread_path_allocator::jump_thread_path_allocator): New.
14735 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
14736 (jump_thread_path_allocator::allocate_thread_edge): New.
14737 (jump_thread_path_allocator::allocate_thread_path): New.
14738 (jump_thread_path_registry::jump_thread_path_registry): New.
14739 (jump_thread_path_registry::~jump_thread_path_registry): New.
14740 (jump_thread_path_registry::allocate_thread_edge): New.
14741 (jump_thread_path_registry::allocate_thread_path): New.
14742 (dump_jump_thread_path): Make extern.
14743 (debug (const vec<jump_thread_edge *> &path)): New.
14744 (struct removed_edges): Move to tree-ssa-threadupdate.h.
14745 (struct thread_stats_d): Remove.
14746 (remove_ctrl_stmt_and_useless_edges): Make static.
14747 (lookup_redirection_data): Move...
14748 (jump_thread_path_registry::lookup_redirection_data): ...here.
14749 (ssa_redirect_edges): Make static.
14750 (thread_block_1): Move...
14751 (jump_thread_path_registry::thread_block_1): ...here.
14752 (thread_block): Move...
14753 (jump_thread_path_registry::thread_block): ...here.
14754 (thread_through_loop_header): Move...
14755 (jump_thread_path_registry::thread_through_loop_header): ...here.
14756 (mark_threaded_blocks): Move...
14757 (jump_thread_path_registry::mark_threaded_blocks): ...here.
14758 (debug_path): Move...
14759 (jump_thread_path_registry::debug_path): ...here.
14760 (debug_all_paths): Move...
14761 (jump_thread_path_registry::dump): ..here.
14762 (rewire_first_differing_edge): Move...
14763 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
14764 (adjust_paths_after_duplication): Move...
14765 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
14766 (duplicate_thread_path): Move...
14767 (jump_thread_path_registry::duplicate_thread_path): ..here.
14768 (remove_jump_threads_including): Move...
14769 (jump_thread_path_registry::remove_jump_threads_including): ...here.
14770 (thread_through_all_blocks): Move to...
14771 (jump_thread_path_registry::thread_through_all_blocks): ...here.
14772 (delete_jump_thread_path): Remove.
14773 (register_jump_thread): Move...
14774 (jump_thread_path_registry::register_jump_thread): ...here.
14775 * tree-ssa-threadupdate.h: Move externally facing functions...
14776 (class jump_thread_path_allocator): ...here...
14777 (class jump_thread_path_registry): ...and here.
14778 (thread_through_all_blocks): Remove.
14779 (struct removed_edges): New.
14780 (register_jump_thread): Remove.
14781 (remove_jump_threads_including): Remove.
14782 (delete_jump_thread_path): Remove.
14783 (remove_ctrl_stmt_and_useless_edges): Remove.
14784 (free_dom_edge_info): New prototype.
14785 * tree-vrp.c: Remove x_vr_values hack.
14786 (class vrp_jump_threader_simplifier): New.
14787 (vrp_jump_threader_simplifier::simplify): New.
14788 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
14789 Remove m_dummy_cond.
14790 Instantiate m_simplifier and m_threader.
14791 (vrp_jump_threader::thread_through_all_blocks): New.
14792 (vrp_jump_threader::simplify_stmt): Remove.
14793 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
14794 Remove x_vr_values hack.
14795 (execute_vrp): Adjust for thread_through_all_blocks being in a
14798 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
14800 * genflags.c (gen_insn): Print failed expansion string.
14802 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
14804 * expr.c (alignment_for_piecewise_move): Call mode_for_size
14805 without limit to MAX_FIXED_MODE_SIZE.
14807 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
14809 PR middle-end/90773
14810 * builtins.c (builtin_memset_gen_str): Don't use return from
14811 simplify_gen_subreg.
14813 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
14816 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
14817 (*addsi3_carry_zext_0r): Ditto.
14818 (*sub<mode>3_carry_0): Ditto.
14819 (*subsi3_carry_zext_0r): Ditto.
14820 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
14822 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
14823 Also consider ix86_carry_flag_unset_operator to calculate
14824 the cost of adc/sbb insn.
14826 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
14828 PR rtl-optimization/100225
14829 PR rtl-optimization/84878
14830 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
14831 where we have an instruction which touches (writes) any hard
14832 register from df->regular_block_artificial_uses set.
14833 Allow not-single-set instruction only right before basic block
14836 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
14838 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
14840 2021-04-30 LevyHsu <admin@levyhsu.com>
14842 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
14843 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
14844 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
14845 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
14847 2021-04-29 Alexandre Oliva <oliva@adacore.com>
14849 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
14851 2021-04-29 Alexandre Oliva <oliva@adacore.com>
14853 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
14854 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
14855 * config/i386/i386.c: Adjust.
14856 * config/i386/i386.md: Adjust.
14857 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
14858 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14859 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14860 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14861 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14862 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14863 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14864 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14865 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14866 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14867 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
14869 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
14871 * config/i386/i386-expand.c (ix86_expand_int_compare):
14872 Swap operands of GTU and LEU comparison to emit carry flag comparison.
14873 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
14874 predicate to allow more combine opportunities with memory operands.
14875 (*sub<mode>3_carry_0): Ditto.
14877 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
14879 PR rtl-optimization/100303
14880 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
14881 boolean that indicates whether the use will only be used in
14882 debug instructions. Treat it in the same way that existing
14883 cross-EBB debug references would be handled if so.
14884 (function_info::make_uses_available): Likewise.
14885 * rtl-ssa/functions.h (function_info::make_uses_available): Update
14886 prototype accordingly.
14887 (function_info::make_uses_available): Likewise.
14888 * fwprop.c (try_fwprop_subst): Update call accordingly.
14890 2021-04-29 Jeff Law <jlaw@tachyum.com>
14892 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
14895 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
14896 Richard Biener <rguenther@suse.de>
14899 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
14900 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
14901 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
14902 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
14903 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
14904 to PURE_ARGS category.
14905 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
14906 Handle PURE_ARGS category.
14907 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
14909 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
14911 * configure.ac: Check for the presence of sys/locking.h header and
14912 for whether _LK_LOCK is supported by _locking.
14913 * configure: Regenerate.
14914 * config.in: Likewise.
14915 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
14916 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
14917 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
14919 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
14921 * config/i386/predicates.md (fcmov_comparison_operator):
14922 Do not check for trivial FP comparison operator.
14923 <case GEU, case LTU>: Allow CCGZmode.
14924 <case GTU, case LEU>: Do not allow CCCmode.
14925 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
14926 (ix86_carry_flag_operator): Match only LTU and UNLT code.
14927 Do not check for trivial FP comparison operator. Allow CCGZmode.
14929 2021-04-29 Tom de Vries <tdevries@suse.de>
14931 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
14932 fd->loop.step by either step or orig_step.
14934 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
14936 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
14937 (load_got_register): Do the PIC dance here.
14938 (sparc_legitimize_tls_address): Simplify.
14939 (sparc_emit_probe_stack_range): Likewise.
14940 (sparc32_initialize_trampoline): Likewise.
14941 (sparc64_initialize_trampoline): Likewise.
14942 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
14943 (probe_stack_range<P:mode>): Likewise.
14944 (flush<P:mode>): Likewise.
14945 (tgd_hi22<P:mode>): Likewise.
14946 (tgd_lo10<P:mode>): Likewise.
14947 (tgd_add<P:mode>): Likewise.
14948 (tgd_call<P:mode>): Likewise.
14949 (tldm_hi22<P:mode>): Likewise.
14950 (tldm_lo10<P:mode>): Likewise.
14951 (tldm_add<P:mode>): Likewise.
14952 (tldm_call<P:mode>): Likewise.
14953 (tldo_hix22<P:mode>): Likewise.
14954 (tldo_lox10<P:mode>): Likewise.
14955 (tldo_add<P:mode>): Likewise.
14956 (tie_hi22<P:mode>): Likewise.
14957 (tie_lo10<P:mode>): Likewise.
14958 (tie_add<P:mode>): Likewise.
14959 (tle_hix22<P:mode>): Likewise.
14960 (tle_lox10<P:mode>): Likewise.
14961 (stack_protect_setsi): Rename to...
14962 (stack_protect_set32): ...this.
14963 (stack_protect_setdi): Rename to...
14964 (stack_protect_set64): ...this.
14965 (stack_protect_set): Adjust calls to above.
14966 (stack_protect_testsi): Rename to...
14967 (stack_protect_test32): ...this.
14968 (stack_protect_testdi): Rename to...
14969 (stack_protect_test64): ...this.
14970 (stack_protect_test): Adjust calls to above.
14972 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
14974 PR middle-end/90773
14975 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
14976 (builtin_strncpy_read_str): Likewise.
14977 (builtin_memset_read_str): Add an argument for the previous RTL
14978 information and generate the new RTL from the previous RTL info.
14979 (builtin_memset_gen_str): Likewise.
14980 * builtins.h (builtin_strncpy_read_str): Update the prototype.
14981 (builtin_memset_read_str): Likewise.
14982 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
14983 returns true, round up size and alignment to the widest integer
14984 mode for maximum size.
14985 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
14986 and pass it to m_constfn.
14987 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
14988 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
14989 initialize m_push. Initialize m_overlap_op_by_pieces with
14990 targetm.overlap_op_by_pieces_p ().
14991 (op_by_pieces_d::run): Pass the previous RTL information to
14992 pieces_addr::adjust and generate overlapping operations if
14993 m_overlap_op_by_pieces is true.
14995 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
14997 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
14999 (can_store_by_pieces): Use by_pieces_constfn on constfun.
15000 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
15001 for op_by_pieces_d change.
15002 (clear_by_pieces_1): Add a dummy argument.
15003 (clear_by_pieces): Updated for op_by_pieces_d change.
15004 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
15005 (string_cst_read_str): Add a dummy argument.
15006 * expr.h (by_pieces_constfn): Add a dummy argument.
15007 (by_pieces_prev): New.
15008 * target.def (overlap_op_by_pieces_p): New target hook.
15009 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
15010 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
15011 * doc/tm.texi: Regenerated.
15013 2021-04-29 Richard Biener <rguenther@suse.de>
15015 PR tree-optimization/100253
15016 * tree-vect-stmts.c (vectorizable_load): Do not assume
15017 element alignment when DR_MISALIGNMENT is -1.
15018 (vectorizable_store): Likewise.
15020 2021-04-29 Jakub Jelinek <jakub@redhat.com>
15023 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
15024 absu_hwi instead of abs_hwi.
15026 2021-04-29 Richard Biener <rguenther@suse.de>
15028 PR middle-end/38474
15029 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
15030 forwarding when indirect forwarding through ESCAPED
15033 2021-04-29 Tom de Vries <tdevries@suse.de>
15036 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
15037 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
15038 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
15039 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
15041 2021-04-29 Richard Biener <rguenther@suse.de>
15043 PR tree-optimization/99912
15044 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
15045 (dse_dom_walker::todo): Likewise.
15046 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
15048 (dse_dom_walker::before_dom_children): Remove trivially
15049 dead SSA defs and schedule CFG cleanup if we removed all
15051 (pass_dse::execute): Get TODO as computed by the DOM walker
15052 and return it. Wipe dominator info earlier.
15054 2021-04-29 Richard Biener <rguenther@suse.de>
15057 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
15058 Track blocks to cleanup EH in new m_need_eh_cleanup.
15059 (ipcp_modif_dom_walker::cleanup_eh): New.
15060 (ipcp_transform_function): Release dominator info before
15063 2021-04-29 Martin Sebor <msebor@redhat.com>
15065 PR middle-end/100250
15066 * attribs.c (attr_access::array_as_string): Avoid dereferencing
15067 a pointer when it's null.
15069 2021-04-29 Martin Sebor <msebor@redhat.com>
15071 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
15072 * ipa-free-lang-data.cc: New file.
15073 * tree.c: Move pass free_lang_data to file above.
15074 (build_array_type_1): Declare extern.
15075 * tree.h (build_array_type_1): Declare.
15077 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15079 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
15080 make consistent with updated RTL pattern.
15081 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
15082 Implement using ss_truncate and us_truncate rather than
15084 * config/aarch64/iterators.md: Remove redundant unspecs and
15085 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
15087 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15089 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
15090 attributes consistent with those defined in arm_neon.h.
15092 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15094 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
15095 attributes consistent with those defined in arm_neon.h.
15097 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15099 * config/aarch64/aarch64-simd-builtins.def: Add
15100 float_trunc_rodd builtin generator macros.
15101 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
15103 (aarch64_float_trunc_rodd_lo_v2sf): Define.
15104 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
15105 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
15106 (aarch64_float_trunc_rodd_hi_v4sf): Define.
15107 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
15108 instead of inline asm.
15109 (vcvtx_high_f32_f64): Likewise.
15110 (vcvtxd_f32_f64): Likewise.
15111 * config/aarch64/iterators.md: Add FCVTXN unspec.
15113 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15115 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
15117 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
15119 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
15120 instead of inline asm.
15121 (vqtbx1_u8): Likewise.
15122 (vqtbx1_p8): Likewise.
15123 (vqtbx1q_s8): Likewise.
15124 (vqtbx1q_u8): Likewise.
15125 (vqtbx1q_p8): Likewise.
15126 (vtbx2_s8): Likewise.
15127 (vtbx2_u8): Likewise.
15128 (vtbx2_p8): Likewise.
15130 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15132 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
15134 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
15135 instead of inline asm.
15136 (vqtbl1_s8): Likewise.
15137 (vqtbl1_u8): Likewise.
15138 (vqtbl1q_p8): Likewise.
15139 (vqtbl1q_s8): Likewise.
15140 (vqtbl1q_u8): Likewise.
15141 (vtbl1_s8): Likewise.
15142 (vtbl1_u8): Likewise.
15143 (vtbl1_p8): Likewise.
15144 (vtbl2_s8): Likewise.
15145 (vtbl2_u8): Likewise.
15146 (vtbl2_p8): Likewise.
15148 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15150 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
15151 ssri_n buitin generator macro.
15152 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
15153 instead of inline asm.
15154 (vsri_n_p16): Likewise.
15155 (vsri_n_p64): Likewise.
15156 (vsriq_n_p8): Likewise.
15157 (vsriq_n_p16): Likewise.
15158 (vsriq_n_p64): Likewise.
15160 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15162 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
15163 iterator for polynomial ssli_n builtin generator macro.
15164 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
15165 instead of inline asm.
15166 (vsli_n_p16): Likewise.
15167 (vsliq_n_p8): Likewise.
15168 (vsliq_n_p16): Likewise.
15169 * config/aarch64/iterators.md: Define VALLP mode iterator.
15171 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15173 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
15174 iterator to generate [su]adalp RTL builtins.
15175 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
15176 [su]adalp RTL pattern.
15177 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
15178 instead of inline asm.
15179 (vpadal_u32): Likewise.
15181 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15183 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
15184 builtin generator macros.
15185 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
15187 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
15188 instead of inline asm.
15189 (vpaddl_s16): Likewise.
15190 (vpaddl_s32): Likewise.
15191 (vpaddl_u8): Likewise.
15192 (vpaddl_u16): Likewise.
15193 (vpaddl_u32): Likewise.
15194 (vpaddlq_s8): Likewise.
15195 (vpaddlq_s16): Likewise.
15196 (vpaddlq_s32): Likewise.
15197 (vpaddlq_u8): Likewise.
15198 (vpaddlq_u16): Likewise.
15199 (vpaddlq_u32): Liwewise.
15200 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
15201 appropriate attributes.
15203 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15205 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
15206 for aarch64_addp<mode> builtin macro generator.
15207 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
15208 aarch64_addp<mode> RTL pattern.
15209 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
15210 instead of inline asm.
15211 (vpaddq_s16): Likewise.
15212 (vpaddq_s32): Likewise.
15213 (vpaddq_s64): Likewise.
15214 (vpaddq_u8): Likewise.
15215 (vpaddq_u16): Likewise.
15216 (vpaddq_u32): Likewise.
15217 (vpaddq_u64): Likewise.
15219 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
15221 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
15222 builtin generator macros.
15223 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
15225 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
15226 instead of inline asm.
15227 (vqdmulh_n_s32): Likewise.
15228 (vqdmulhq_n_s16): Likewise.
15229 (vqdmulhq_n_s32): Likewise.
15230 (vqrdmulh_n_s16): Likewise.
15231 (vqrdmulh_n_s32): Likewise.
15232 (vqrdmulhq_n_s16): Likewise.
15233 (vqrdmulhq_n_s32): Likewise.
15235 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
15237 * doc/install.texi (--enable-offload-defaulted): Document.
15239 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
15241 * config/avr/avr-dimode.md: Turn existing patterns into
15242 define_insn_and_split style patterns where the splitter
15243 adds a clobber of the condition code register. Drop "cc"
15244 attribute. Add new patterns to match output of
15246 * config/avr/avr-fixed.md: Likewise.
15247 * config/avr/avr.c (cc_reg_rtx): New.
15248 (avr_parallel_insn_from_insns): Adjust insn count
15249 for removal of set of cc0.
15250 (avr_is_casesi_sequence): Likewise.
15251 (avr_casei_sequence_check_operands): Likewise.
15252 (avr_optimize_casesi): Likewise. Also insert
15253 new insns after jump_insn.
15254 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
15255 for removal of set of cc0.
15256 (avr_init_expanders): Initialize cc_reg_rtx.
15257 (avr_regno_reg_class): Handle REG_CC.
15258 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
15259 (avr_notice_update_cc): Remove function.
15260 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
15261 (compare_condition): Adjust for PARALLEL with
15263 (out_shift_with_cnt): Likewise.
15264 (ashlhi3_out): Likewise.
15265 (ashrhi3_out): Likewise.
15266 (lshrhi3_out): Likewise.
15267 (avr_class_max_nregs): Return single reg for REG_CC.
15268 (avr_compare_pattern): Check for REG_CC instead
15270 (avr_reorg_remove_redundant_compare): Likewise.
15271 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
15272 (avr_hard_regno_nregs): Return single reg for REG_CC.
15273 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
15274 (avr_md_asm_adjust): Clobber REG_CC.
15275 (TARGET_HARD_REGNO_NREGS): Define.
15276 (TARGET_CLASS_MAX_NREGS): Define.
15277 (TARGET_MD_ASM_ADJUST): Define.
15278 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
15280 (enum reg_class): Add CC_REG class.
15281 (NOTICE_UPDATE_CC): Remove.
15282 (CC_OVERFLOW_UNUSABLE): Remove.
15283 (CC_NO_CARRY): Remove.
15284 * config/avr/avr.md: Turn existing patterns into
15285 define_insn_and_split style patterns where the splitter
15286 adds a clobber of the condition code register. Drop "cc"
15287 attribute. Add new patterns to match output of
15289 (sez): Remove unused pattern.
15291 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
15294 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
15297 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
15300 * config/aarch64/constraints.md (Utq): Require the address to
15301 be valid for both the element mode and for V2DImode.
15303 2021-04-28 Jakub Jelinek <jakub@redhat.com>
15304 Tobias Burnus <tobias@codesourcery.com>
15306 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
15307 * gcc.c (process_command): New variable.
15308 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
15309 set it if -foffload is defaulted.
15310 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
15311 (compile_offload_image): If OFFLOAD_DEFAULTED and
15312 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
15313 if corresponding mkoffload can't be found.
15314 (compile_images_for_offload_targets): Likewise. Free and clear
15315 offload_names if no valid offload is found.
15316 * config.in: Regenerate.
15317 * configure: Regenerate.
15319 2021-04-28 Richard Biener <rguenther@suse.de>
15321 PR tree-optimization/100292
15322 * tree-vect-generic.c (expand_vector_condition): Do not fold
15325 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
15327 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
15328 * config/rs6000/aix64.opt (m64): New.
15331 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
15333 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
15334 (index_term_p): Handle ASHIFT too.
15336 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
15338 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
15339 (sync_lock_test_and_set<mode>): Adjust accordingly.
15340 (sync_lock_release<mode>): Likewise.
15342 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
15344 * config/vax/vax-protos.h (adjacent_operands_p): Remove
15346 * config/vax/vax.c (adjacent_operands_p): Remove.
15348 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
15350 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
15351 through to the non-conditional execution case if getting the
15352 condition for conditional execution has failed.
15354 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
15356 PR middle-end/100284
15357 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
15358 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
15359 than asserting on it.
15361 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
15363 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
15364 with TARGET_AIX_OS.
15366 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
15369 * calls.c (precompute_register_parameters): Additionally test
15370 targetm.precompute_tls_p to pre-compute argument.
15371 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
15372 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
15373 * target.def (precompute_tls_p): New.
15374 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
15375 * doc/tm.texi: Regenerated.
15377 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15380 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
15381 back to HOST_WIDE_INT.
15383 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15386 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
15387 memory alignment for the outer mode.
15389 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
15391 PR middle-end/90773
15392 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
15393 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
15395 2021-04-27 Alex Coplan <alex.coplan@arm.com>
15398 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
15399 with negative immediates: ensure we expand cbranchsi4_scratch
15400 correctly and ensure we satisfy its constraints.
15401 * config/arm/sync.md
15402 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
15403 attempt to tie two output operands together with constraints;
15404 collapse two alternatives.
15405 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
15406 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
15408 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15411 * config/aarch64/predicates.md (aarch64_sub_immediate,
15412 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
15413 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
15414 * config/aarch64/aarch64.c (aarch64_print_operand,
15415 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
15417 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15419 PR tree-optimization/100239
15420 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
15421 permutations with all indices from the first zero element as vec_shl.
15423 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15425 PR rtl-optimization/100254
15426 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
15427 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
15429 2021-04-27 Richard Biener <rguenther@suse.de>
15431 PR tree-optimization/99912
15432 * passes.def: Add comment about new TODO_remove_unused_locals.
15433 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
15436 2021-04-27 Richard Biener <rguenther@suse.de>
15438 PR tree-optimization/99912
15439 * passes.def (pass_all_optimizations): Add pass_dse before
15440 the first pass_dce, move the first pass_dse before the
15441 pass_dce following pass_pre.
15443 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15445 PR tree-optimization/95527
15446 * generic-match-head.c: Include tm.h.
15447 * gimple-match-head.c: Include tm.h.
15448 * match.pd (CLZ == INTEGER_CST): Don't use
15449 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
15450 if clz == CFN_CLZ. Add missing val declaration.
15451 (CTZ cmp CST): New simplifications.
15453 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15455 PR tree-optimization/96696
15456 * expr.c (expand_expr_divmod): New function.
15457 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
15458 divisions. Formatting fixes.
15459 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
15462 2021-04-27 Martin Jambor <mjambor@suse.cz>
15465 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
15466 If removing a call statement LHS SSA name, release it.
15468 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
15471 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
15472 is valid before including it in the mask.
15474 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
15477 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
15480 2021-04-27 Richard Biener <rguenther@suse.de>
15482 PR tree-optimization/100051
15483 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
15484 disambiguator based on access size vs. decl size.
15486 2021-04-27 Richard Biener <rguenther@suse.de>
15488 PR tree-optimization/100278
15489 * tree-ssa-pre.c (compute_avail): Give up when we cannot
15490 adjust TBAA beacuse of mismatching bases.
15492 2021-04-27 Jakub Jelinek <jakub@redhat.com>
15495 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
15496 For any_rotate define_insn_split and following splitters, use
15497 SWI iterator instead of SWI48.
15499 2021-04-27 Richard Biener <rguenther@suse.de>
15501 PR tree-optimization/99776
15502 * match.pd (bit_field_ref (ctor)): Relax element extract
15503 type compatibility checks.
15505 2021-04-27 Cui,Lili <lili.cui@intel.com>
15507 * common/config/i386/i386-common.c (processor_names):
15508 Sync processor_names with processor_type.
15509 * config/i386/i386-options.c (processor_cost_table):
15510 Sync processor_cost_table with processor_type.
15512 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
15514 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
15515 (irange::set): Call irange_set_1bit_anti_range for handling all
15516 1-bit ranges. Fall through on ~[MIN,MAX].
15518 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
15520 * value-range.cc (irange::legacy_num_pairs): Remove.
15521 (irange::invert): Change gcc_assert to gcc_checking_assert.
15522 * value-range.h (irange::num_pairs): Adjust for a cached
15523 num_pairs(). Also, rename all gcc_assert's to
15524 gcc_checking_assert's.
15526 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
15528 * value-range.cc (irange::operator=): Set m_kind.
15529 (irange::copy_to_legacy): Handle varying and undefined sources
15530 as a legacy copy since they can be easily copied.
15531 (irange::irange_set): Set m_kind.
15532 (irange::irange_set_anti_range): Same.
15533 (irange::set): Rename normalize_min_max to normalize_kind.
15534 (irange::verify_range): Adjust for multi-ranges having the
15536 (irange::irange_union): Set m_kind.
15537 (irange::irange_intersect): Same.
15538 (irange::invert): Same.
15539 * value-range.h (irange::kind): Always return m_kind.
15540 (irange::varying_p): Rename to...
15541 (irange::varying_comptaible_p): ...this.
15542 (irange::undefined_p): Only look at m_kind.
15543 (irange::irange): Always set VR_UNDEFINED if applicable.
15544 (irange::set_undefined): Always set VR_UNDEFINED.
15545 (irange::set_varying): Always set m_kind to VR_VARYING.
15546 (irange::normalize_min_max): Rename to...
15547 (irange::normalize_kind): ...this.
15549 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
15551 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
15552 Adjust for constant_p including varying_p.
15553 * tree-vrp.c (vrp_prop::finalize): Same.
15554 (determine_value_range): Same.
15555 * vr-values.c (vr_values::range_of_expr): Same.
15556 * value-range.cc (irange::symbolic_p): Do not check varying_p.
15557 (irange::constant_p): Same.
15559 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
15561 * value-range.cc (irange::legacy_lower_bound): Replace
15562 !undefined_p check with num_ranges > 0.
15563 (irange::legacy_upper_bound): Same.
15564 * value-range.h (irange::type): Same.
15565 (irange::lower_bound): Same.
15566 (irange::upper_bound): Same.
15568 2021-04-26 Richard Biener <rguenther@suse.de>
15570 PR tree-optimization/99956
15571 * gimple-loop-interchange.cc (compute_access_stride):
15572 Try instantiating the access in a shallower loop nest
15573 if instantiating failed.
15574 (compute_access_strides): Pass adjustable loop_nest
15575 to compute_access_stride.
15577 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
15579 * doc/sourcebuild.texi (arm_cmse_hw): Document.
15581 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15583 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
15585 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
15586 Nathan Sidwell <nathan@codesourcery.com>
15587 Tom de Vries <vries@codesourcery.com>
15588 Julian Brown <julian@codesourcery.com>
15589 Kwok Cheung Yeung <kcy@codesourcery.com>
15591 * omp-offload.c (oacc_validate_dims): Implement
15592 '-Wopenacc-parallelism'.
15593 * doc/invoke.texi (-Wopenacc-parallelism): Document.
15595 2021-04-26 Richard Biener <rguenther@suse.de>
15597 * tree-cfg.h (gimplify_build1): Remove.
15598 (gimplify_build2): Likewise.
15599 (gimplify_build3): Likewise.
15600 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
15601 (gimplify_build2): Likewise.
15602 (gimplify_build3): Likewise.
15603 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
15605 (gimplify_build2): Likewise.
15606 (gimplify_build3): Likewise.
15607 (tree_vec_extract): Use resimplify with following SSA edges.
15608 (expand_vector_parallel): Avoid passing NULL size/bitpos
15609 to tree_vec_extract.
15610 * expr.c (store_constructor): Deal with zero-element CTORs.
15611 * match.pd (bit_field_ref <vector CTOR>): Make sure to
15612 produce vector constants when possible.
15614 2021-04-26 Richard Biener <rguenther@suse.de>
15616 * tree-complex.c: Include gimple-fold.h.
15617 (expand_complex_addition): Use gimple_build.
15618 (expand_complex_multiplication_components): Likewise.
15619 (expand_complex_multiplication): Likewise.
15620 (expand_complex_div_straight): Likewise.
15621 (expand_complex_div_wide): Likewise.
15622 (expand_complex_division): Likewise.
15623 (expand_complex_conjugate): Likewise.
15624 (expand_complex_comparison): Likewise.
15626 2021-04-26 Richard Biener <rguenther@suse.de>
15628 * tree-ssa-phiopt.c (two_value_replacement): Remove use
15629 of legacy gimplify_buildN API.
15631 2021-04-26 Richard Biener <rguenther@suse.de>
15633 PR tree-optimization/99473
15634 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
15637 2021-04-26 Richard Biener <rguenther@suse.de>
15639 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
15640 Use replace_call_with_value.
15642 2021-04-26 Richard Biener <rguenther@suse.de>
15644 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
15645 (update_gimple_call): Likewise.
15646 (update_call_from_tree): Likewise.
15647 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
15648 (valid_gimple_call_p): Likewise.
15649 (move_ssa_defining_stmt_for_defs): Likewise.
15650 (finish_update_gimple_call): Likewise.
15651 (update_gimple_call): Likewise.
15652 (update_call_from_tree): Likewise.
15653 (propagate_tree_value_into_stmt): Use replace_call_with_value.
15654 * gimple-fold.h (update_gimple_call): Declare.
15655 * gimple-fold.c (valid_gimple_rhs_p): Move here from
15656 tree-ssa-propagate.c.
15657 (update_gimple_call): Likewise.
15658 (valid_gimple_call_p): Likewise.
15659 (finish_update_gimple_call): Likewise, and simplify.
15660 (gimplify_and_update_call_from_tree): Implement
15661 update_call_from_tree functionality, avoid excessive
15662 push/pop_gimplify_context.
15663 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
15664 (gimple_fold_call): Likewise.
15665 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
15666 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
15667 (pass_fold_builtins::execute): Likewise.
15668 (optimize_stack_restore): Use replace_call_with_value.
15669 * tree-cfg.c (fold_loop_internal_call): Likewise.
15670 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
15671 only gimplify_and_update_call_from_tree.
15672 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
15673 (handle_builtin_strchr): Likewise.
15674 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
15676 2021-04-26 Jakub Jelinek <jakub@redhat.com>
15679 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
15680 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
15683 2021-04-25 liuhongt <hongtao.liu@intel.com>
15686 * config/i386/i386-builtin.def (BDESC): Change the icode of
15687 the following builtins to CODE_FOR_nothing.
15688 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
15689 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
15690 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
15691 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
15692 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
15693 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
15694 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
15695 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
15696 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
15697 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
15698 (sse2_eq<mode>3): Ditto.
15699 (sse4_1_eqv2di3): Ditto.
15700 (sse2_gt<mode>3): Rename to ..
15701 (*sse2_gt<mode>3): .. this.
15703 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
15706 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
15709 * config/darwin.c (darwin_binds_local_p): Assume that any
15710 public symbol might be interposed for PIC code. Update function
15711 header comment to reflect current Darwin capability.
15713 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
15716 * config/darwin.c (darwin_binds_local_p): Assume that any
15717 public symbol might be interposed for PIC code. Update function
15718 header comment to reflect current Darwin capability.
15720 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
15722 * doc/sourcebuild.texi: Document no-opts and any-opts target
15725 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
15727 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
15729 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
15731 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
15733 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
15736 * config/i386/i386-options.c (ix86_option_override_internal):
15737 Error out when -m96bit-long-double is used with 64bit targets.
15738 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
15740 2021-04-23 Martin Liska <mliska@suse.cz>
15742 * lto-wrapper.c: Remove FIXME about usage of
15743 hardware_concurrency. The function is not on par with
15746 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
15749 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
15750 Copy operand 3 to operand 4. Use sse_reg_operand
15751 as operand 3 predicate.
15752 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
15753 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
15754 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
15755 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
15756 Copy operand 1 to operand 0.
15757 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
15758 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
15759 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
15761 2021-04-23 Alex Coplan <alex.coplan@arm.com>
15763 PR rtl-optimization/100230
15764 * early-remat.c (early_remat::sort_candidates): Use delete[]
15765 instead of delete for array allocated with new[].
15767 2021-04-23 Richard Biener <rguenther@suse.de>
15769 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
15770 (capture_info::capture_info): Likewise.
15771 (capture_info::walk_match): Likewise.
15772 (expr::gen_transform): Likewise.
15773 (dt_simplify::gen_1): Likewise.
15774 * gimple-match-head.c (maybe_resimplify_conditional_op):
15775 Remove VEC_COND_EXPR special-casing.
15776 (gimple_simplify): Likewise.
15777 * gimple.c (gimple_could_trap_p_1): Adjust.
15778 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
15779 to participate in PRE.
15781 2021-04-23 Richard Biener <rguenther@suse.de>
15783 * cfganal.c (connect_infinite_loops_to_exit): First call
15784 add_noreturn_fake_exit_edges.
15785 * ipa-sra.c (process_scan_results): Do not call the now redundant
15786 add_noreturn_fake_exit_edges.
15787 * predict.c (tree_estimate_probability): Likewise.
15788 (rebuild_frequencies): Likewise.
15789 * store-motion.c (one_store_motion_pass): Likewise.
15791 2021-04-23 Richard Biener <rguenther@suse.de>
15793 PR tree-optimization/100222
15794 * predict.c (pass_profile::execute): Remove redundant call to
15795 mark_irreducible_loops.
15796 (report_predictor_hitrates): Likewise.
15798 2021-04-23 Richard Biener <rguenther@suse.de>
15800 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15801 valid_gimple_rhs_p by instead gimplifying to one.
15803 2021-04-23 Richard Biener <rguenther@suse.de>
15805 PR tree-optimization/99971
15806 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
15807 Always use TBAA for loads.
15809 2021-04-23 liuhongt <hongtao.liu@intel.com>
15812 * config/i386/i386-options.c (ix86_option_override_internal):
15813 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
15814 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
15815 by target attribute.
15817 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
15819 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
15821 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
15823 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
15825 * config.gcc (powerpc-ibm-aix6.*): Remove.
15826 * config/rs6000/aix61.h: Delete.
15828 2021-04-22 Martin Liska <mliska@suse.cz>
15830 PR testsuite/100159
15831 PR testsuite/100192
15832 * builtins.c (expand_builtin): Fix typos and missing comments.
15833 * dwarf2out.c (gen_subprogram_die): Likewise.
15834 (gen_struct_or_union_type_die): Likewise.
15836 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
15839 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
15840 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
15842 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
15844 * config/i386/darwin.h (TARGET_64BIT): Remove definition
15845 based on TARGET_ISA_64BIT.
15846 (TARGET_64BIT_P): Remove definition based on
15847 TARGET_ISA_64BIT_P().
15849 2021-04-21 Martin Liska <mliska@suse.cz>
15852 2021-04-21 Martin Liska <mliska@suse.cz>
15854 * lto-wrapper.c (cpuset_popcount): Remove.
15855 (init_num_threads): Remove and use hardware_concurrency.
15857 2021-04-21 Martin Liska <mliska@suse.cz>
15860 * main.c (main): Call toplev::finalize in CHECKING_P mode.
15861 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
15862 when incremental LTO linking happens.
15864 2021-04-21 Martin Liska <mliska@suse.cz>
15866 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
15867 makeserver cannot be detected, then use -flto=N fallback.
15869 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
15871 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
15872 default to yes for aarch64-linux-gnu.
15873 * configure: Regenerate.
15875 2021-04-21 Martin Liska <mliska@suse.cz>
15877 * lto-wrapper.c (cpuset_popcount): Remove.
15878 (init_num_threads): Remove and use hardware_concurrency.
15880 2021-04-21 Martin Liska <mliska@suse.cz>
15882 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
15883 which remains to be '(... || 0)' and clang complains about it.
15884 * dwarf2out.c (AT_vms_delta): Declare conditionally.
15885 (add_AT_vms_delta): Likewise.
15886 * tree.c (fld_simplified_type): Use rather more common pattern
15887 for disabling of something (#if 0).
15888 (get_tree_code_name): Likewise.
15889 (verify_type_variant): Likewise.
15891 2021-04-21 Martin Liska <mliska@suse.cz>
15893 * config/i386/i386-expand.c (decide_alignment): Use newly named
15894 macro TARGET_CPU_P.
15895 * config/i386/i386.c (ix86_decompose_address): Likewise.
15896 (ix86_address_cost): Likewise.
15897 (ix86_lea_outperforms): Likewise.
15898 (ix86_avoid_lea_for_addr): Likewise.
15899 (ix86_add_stmt_cost): Likewise.
15900 * config/i386/i386.h (TARGET_*): Remove.
15901 (TARGET_CPU_P): New macro.
15902 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
15903 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
15904 (swap_top_of_ready_list): Likewise.
15905 (ix86_atom_sched_reorder): Likewise.
15906 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
15907 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
15909 2021-04-21 Martin Liska <mliska@suse.cz>
15911 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
15913 (SET_TARGET_NO_SAHF): Likewise.
15914 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
15915 (SET_TARGET_PREFETCH_SSE): Likewise.
15916 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
15917 (SET_TARGET_NO_TUNE): Likewise.
15918 (TARGET_EXPLICIT_NO_80387_P): Likewise.
15919 (SET_TARGET_NO_80387): Likewise.
15921 * config/i386/i386.h (TARGET_*): Remove.
15922 * opth-gen.awk: Generate new used macros.
15924 2021-04-21 Martin Liska <mliska@suse.cz>
15926 * config/i386/i386.h (PTA_*): Remove.
15927 (enum pta_flag): New.
15928 (DEF_PTA): Generate PTA_* values from i386-isa.def.
15929 * config/i386/i386-isa.def: New file.
15931 2021-04-21 Alex Coplan <alex.coplan@arm.com>
15934 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
15935 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
15936 jump table targets.
15938 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
15940 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
15941 x86_64-*-* targets.
15942 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
15944 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
15945 (ix86_handle_option): Handle -mmwait.
15946 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
15947 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
15948 __builtin_ia32_monitor and __builtin_ia32_mwait.
15949 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
15950 (ix86_valid_target_attribute_inner_p): Likewise.
15951 (ix86_option_override_internal): Enable mwait/monitor
15952 instructions for -msse3.
15953 * config/i386/i386.h (TARGET_MWAIT): New.
15954 (TARGET_MWAIT_P): Likewise.
15955 * config/i386/i386.opt: Add -mmwait.
15956 * config/i386/mwaitintrin.h: New file.
15957 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
15958 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
15960 (@sse3_monitor_<mode>): Likewise.
15961 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
15962 * doc/extend.texi: Document mwait target attribute.
15963 * doc/invoke.texi: Document -mmwait.
15965 2021-04-21 Martin Liska <mliska@suse.cz>
15967 * config/i386/i386-options.c (DEF_ENUM): Remove it.
15968 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
15969 * config/i386/stringop.def (DEF_ENUM): Likewise.
15971 2021-04-21 Martin Liska <mliska@suse.cz>
15973 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
15974 of print_generic_expr.
15976 2021-04-21 Jakub Jelinek <jakub@redhat.com>
15978 PR rtl-optimization/100148
15979 * cprop.c (constprop_register): Use next_nondebug_insn instead of
15982 2021-04-21 Martin Liska <mliska@suse.cz>
15985 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
15986 free_dominance_info calls.
15988 2021-04-21 Richard Biener <rguenther@suse.de>
15990 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
15991 parameter (and assume it to be false).
15992 (fold_gimple_assign): Adjust, remove all callers of
15993 maybe_fold_reference calling it with is_lhs true.
15994 (gimple_fold_call): Likewise.
15995 (fold_stmt_1): Likewise.
15997 2021-04-21 Richard Biener <rguenther@suse.de>
15999 * fold-const.c (pedantic_non_lvalue_loc): Remove.
16000 (fold_binary_loc): Adjust.
16001 (fold_ternary_loc): Likewise.
16003 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
16005 PR middle-end/100130
16006 * varasm.c (get_block_for_decl): Make sure that any use of the
16007 retain attribute matches the section's retain flag.
16008 (switch_to_section): Check for retain mismatches even when
16009 changing sections, but do not warn if the given decl is the
16010 section's named.decl.
16011 (output_object_block): Pass the first decl in the block (if any)
16012 to switch_to_section.
16014 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
16016 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16017 __CRC32__ for -mcrc32.
16018 * config/i386/i386-options.c (ix86_option_override_internal):
16019 Enable crc32 instruction for -msse4.2.
16020 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
16022 (sse4_2_crc32di): Likewise.
16023 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
16026 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
16029 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
16032 2021-04-20 Martin Liska <mliska@suse.cz>
16034 * doc/invoke.texi: Fix typo.
16035 * params.opt: Likewise.
16037 2021-04-20 Martin Liska <mliska@suse.cz>
16039 * doc/invoke.texi: Document new param.
16041 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
16043 PR tree-optimization/100081
16044 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
16045 rather than gori_compute_cache.
16046 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
16047 (range_def_chain::m_logical_depth): New member.
16048 (range_def_chain::range_def_chain): Initialize m_logical_depth.
16049 (range_def_chain::get_def_chain): Don't build defchains through more
16050 than LOGICAL_LIMIT logical expressions.
16051 * params.opt (param_ranger_logical_depth): New.
16053 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
16056 * config/arm/arm.c (arm_configure_build_target): Do not strip
16057 extended FPU/SIMD feature bits from the target ISA when -mfpu
16058 is specified (partial revert of r11-8168).
16060 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
16062 * params.opt (-param=openacc-kernels=): Add.
16063 * omp-oacc-kernels-decompose.cc
16064 (pass_omp_oacc_kernels_decompose::gate): Use it.
16065 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
16066 (--param): ... here, 'openacc-kernels'.
16068 2021-04-19 Martin Liska <mliska@suse.cz>
16071 * gengtype.c (finish_root_table): Align function arguments
16072 in between declaration and definition.
16074 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
16076 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
16077 frames larger than the SEH maximum frame size.
16079 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
16081 PR rtl-optimization/99927
16082 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
16083 is dead, just drop it.
16085 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
16088 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
16089 * doc/tm.texi: Regenerate.
16090 * doc/tm.texi.in (D language and ABI): Add @hook for
16091 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
16093 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
16095 * config/darwin-d.c (darwin_d_handle_target_object_format): New
16097 (darwin_d_register_target_info): New function.
16098 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16099 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
16101 (dragonfly_d_register_target_info): New function.
16102 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16103 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
16105 (freebsd_d_register_target_info): New function.
16106 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16107 * config/glibc-d.c (glibc_d_handle_target_object_format): New
16109 (glibc_d_register_target_info): New function.
16110 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16111 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
16113 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
16114 as handler for objectFormat key.
16115 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
16117 (winnt_d_register_target_info): New function.
16118 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16119 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
16121 (netbsd_d_register_target_info): New function.
16122 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16123 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
16125 (openbsd_d_register_target_info): New function.
16126 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16127 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
16128 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
16129 handler for objectFormat key.
16130 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
16132 (rs6000_d_register_target_info): Add
16133 rs6000_d_handle_target_object_format as handler for objectFormat key.
16134 * config/sol2-d.c (solaris_d_handle_target_object_format): New
16136 (solaris_d_register_target_info): New function.
16137 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
16139 2021-04-16 Jakub Jelinek <jakub@redhat.com>
16142 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
16143 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
16145 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
16146 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
16147 the old and new alignment after applying MIN/MAX to it is different.
16149 2021-04-16 Tamar Christina <tamar.christina@arm.com>
16152 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
16153 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
16155 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
16157 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
16159 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
16160 this section and its subsections.
16162 2021-04-16 Jakub Jelinek <jakub@redhat.com>
16165 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
16166 define_insn patterns.
16168 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
16170 PR rtl-optimization/98689
16171 * reg-notes.def (UNTYPED_CALL): New note.
16172 * combine.c (distribute_notes): Handle it.
16173 * emit-rtl.c (try_split): Likewise.
16174 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
16175 that calls with the note implicitly set all return value registers.
16176 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
16179 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
16181 PR rtl-optimization/99596
16182 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
16183 register accesses for const calls. Assume that pure functions
16184 can only read from global registers. Ignore cases in which
16185 the stack pointer has been marked global.
16187 2021-04-16 Jakub Jelinek <jakub@redhat.com>
16190 * tree-vect-loop.c (vect_transform_loop): Don't remove just
16191 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
16192 them by their last argument.
16194 2021-04-15 Martin Liska <mliska@suse.cz>
16196 * doc/invoke.texi: Other params don't use it, remove it.
16198 2021-04-15 Richard Biener <rguenther@suse.de>
16200 * gimple-builder.h: Add deprecation note.
16202 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
16205 * attribs.h (restrict_type_identity_attributes_to): Declare.
16206 * attribs.c (restrict_type_identity_attributes_to): New function.
16208 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
16211 * attribs.h (affects_type_identity_attributes): Declare.
16212 * attribs.c (remove_attributes_matching): New function.
16213 (affects_type_identity_attributes): Likewise.
16215 2021-04-15 Jakub Jelinek <jakub@redhat.com>
16218 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
16219 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
16220 ZERO_EXTEND, SIGN_EXTEND or AND.
16222 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
16224 PR rtl-optimization/99929
16225 * rtl.h (same_vector_encodings_p): New function.
16226 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
16227 * cselib.c (rtx_equal_for_cselib_1): Likewise.
16228 * jump.c (rtx_renumbered_equal_p): Likewise.
16229 * lra-constraints.c (operands_match_p): Likewise.
16230 * reload.c (operands_match_p): Likewise.
16231 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
16233 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
16235 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
16236 more information about variable-length CONST_VECTORs.
16238 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
16240 PR rtl-optimization/100066
16241 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
16242 ordered modes when choosing splitting mode for hard reg.
16244 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
16247 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
16249 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
16251 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
16253 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
16254 for mask operand types.
16255 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
16256 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
16258 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
16260 * config/s390/s390.c (s390_const_operand_ok): Check the new
16261 operand types and generate a list of valid values.
16263 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
16265 * doc/tm.texi: Regenerate.
16266 * doc/tm.texi.in (D language and ABI): Add @hook for
16267 TARGET_D_REGISTER_OS_TARGET_INFO.
16269 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
16271 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
16273 (aarch64_d_register_target_info): New function.
16274 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
16276 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
16278 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
16279 (arm_d_register_target_info): New function.
16280 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
16281 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16282 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
16283 (ix86_d_register_target_info): New function.
16284 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
16285 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16286 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
16287 (mips_d_register_target_info): New function.
16288 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
16289 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16290 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
16291 (pa_d_register_target_info): New function.
16292 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
16293 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16294 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
16296 (riscv_d_register_target_info): New function.
16297 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
16298 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16299 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
16301 (rs6000_d_register_target_info): New function.
16302 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
16304 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16305 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
16306 (s390_d_register_target_info): New function.
16307 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
16308 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16309 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
16311 (sparc_d_register_target_info): New function.
16312 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
16313 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
16314 * doc/tm.texi: Regenerate.
16315 * doc/tm.texi.in (D language and ABI): Add @hook for
16316 TARGET_D_REGISTER_CPU_TARGET_INFO.
16318 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
16320 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
16321 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
16322 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
16323 * doc/tm.texi: Regenerate.
16324 * doc/tm.texi.in (D language and ABI): Add @hook for
16325 TARGET_D_HAS_STDCALL_CONVENTION.
16327 2021-04-14 Richard Biener <rguenther@suse.de>
16329 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
16330 VEC_COND_EXPRs have a gimple_val condition.
16331 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
16332 can no longer have a GENERIC condition.
16334 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
16337 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
16338 from the isa_delta when -mfpu has been used.
16339 (arm_options_perform_arch_sanity_checks): It's the architecture that
16340 lacks an FPU not the processor.
16342 2021-04-13 Richard Biener <rguenther@suse.de>
16344 PR tree-optimization/100053
16345 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
16346 not use optimistic dominance queries for backedges to validate
16348 (dominated_by_p_w_unex): Add parameter to ignore executable
16349 state on backedges.
16350 (rpo_elim::eliminate_avail): Adjust.
16352 2021-04-13 Jakub Jelinek <jakub@redhat.com>
16355 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
16356 *aarch64_bfxilsi_extrdi): New define_insn patterns.
16358 2021-04-13 Jakub Jelinek <jakub@redhat.com>
16361 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
16362 outermode, return NULL if the result doesn't encode back to the
16363 original byte sequence.
16364 (simplify_gen_subreg): Don't create SUBREGs from constants to
16365 MODE_COMPOSITE_P outermode.
16367 2021-04-12 Jakub Jelinek <jakub@redhat.com>
16369 PR rtl-optimization/99905
16370 * combine.c (expand_compound_operation): If pos + len > modewidth,
16371 perform the right shift by pos in inner_mode and then convert to mode,
16372 instead of trying to simplify a shift of rtx with inner_mode by pos
16373 as if it was a shift in mode.
16375 2021-04-12 Jakub Jelinek <jakub@redhat.com>
16378 * combine.c (simplify_and_const_int_1): Don't optimize varop
16379 away if it has side-effects.
16381 2021-04-12 Martin Liska <mliska@suse.cz>
16383 * doc/extend.texi: Escape @smallexample content.
16385 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
16387 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
16388 alternative in order to load a DFP zero.
16390 2021-04-12 Martin Liska <mliska@suse.cz>
16392 * doc/extend.texi: Be more precise in documentation
16393 of symver attribute.
16395 2021-04-12 Martin Liska <mliska@suse.cz>
16398 * gimplify.c (gimplify_expr): Right now, we unpoison all
16399 variables before a goto <dest>. We should not do it if we are
16402 2021-04-12 Cui,Lili <lili.cui@intel.com>
16404 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
16406 * common/config/i386/i386-common.c (processor_names): Add
16408 (processor_alias_table): Add rocketlake.
16409 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
16410 INTEL_COREI7_ROCKETLAKE.
16411 * config.gcc: Add -march=rocketlake.
16412 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16414 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
16415 (processor_cost_table): Add rocketlake cost.
16416 * config/i386/i386.h (ix86_size_cost) : Define
16418 (processor_type) : Add PROCESSOR_ROCKETLAKE.
16419 (PTA_ROCKETLAKE): Ditto.
16420 * doc/extend.texi: Add rocketlake.
16421 * doc/invoke.texi: Add rocketlake.
16423 2021-04-12 Cui,Lili <lili.cui@intel.com>
16425 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
16426 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
16427 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
16428 * doc/invoke.texi: Change alderlake ISA list.
16430 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
16432 PR middle-end/98088
16433 * omp-expand.c (expand_oacc_collapse_init): Update condition in
16436 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
16439 * config/i386/serializeintrin.h (_serialize): Defined as macro.
16441 2021-04-10 Jakub Jelinek <jakub@redhat.com>
16444 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
16445 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
16447 2021-04-10 Jakub Jelinek <jakub@redhat.com>
16449 PR middle-end/99989
16450 * gimple-ssa-warn-alloca.c
16451 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
16452 0 with integer precision unconditionally.
16454 2021-04-10 Jakub Jelinek <jakub@redhat.com>
16456 PR rtl-optimization/98601
16457 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
16458 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
16459 unaligned_mems handle VOIDmode like BLKmode.
16461 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
16464 * tree.c (free_lang_data_in_decl): Do not release body of
16465 declare_variant_alt.
16467 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
16469 * config/aarch64/aarch64.c (aarch64_option_restore): If the
16470 architecture was specified explicitly and the tuning wasn't,
16471 tune for the architecture rather than the configured default CPU.
16473 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
16475 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
16476 as the temporary register.
16478 2021-04-09 Martin Liska <mliska@suse.cz>
16480 * doc/extend.texi: Move non-target attributes on the top level.
16482 2021-04-09 Martin Liska <mliska@suse.cz>
16484 * doc/invoke.texi: Document minimum and maximum value of the
16485 argument for both supported compression algorithms.
16487 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
16489 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
16490 TLS BSS before TLS data.
16491 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
16493 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
16495 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
16497 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
16499 * match.pd: Extend vec_cond folds to handle shifts.
16501 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
16503 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
16506 2021-04-08 Alex Coplan <alex.coplan@arm.com>
16509 * config/arm/iterators.md (MVE_vecs): New.
16510 (V_elem): Also handle V2DF.
16511 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
16512 (*mve_vdup<mode>): ... this. Remove second alternative since
16513 vec_duplicate of const_int is not canonical RTL, and we don't
16514 want to match symbol_refs.
16515 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
16517 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
16519 * fold-const.c (fold_single_bit_test): Fix typo.
16520 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
16523 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
16525 PR tree-optimization/97513
16526 * tree-vect-slp.c (vect_add_slp_permutation): New function,
16528 (vectorizable_slp_permutation): ...here. Detect cases in which
16529 all VEC_PERM_EXPRs are guaranteed to have the same stepped
16530 permute vector and only generate one permute vector for that case.
16531 Extend that case to handle variable-length vectors.
16533 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
16535 PR tree-optimization/99873
16536 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
16537 (vect_build_slp_instance): Don't split store groups that could
16538 use IFN_STORE_LANES.
16540 2021-04-07 Jakub Jelinek <jakub@redhat.com>
16543 * varasm.c (output_constant_pool_contents): Don't strip name encoding
16544 from XSTR (desc->sym, 0) or from label before passing those to
16547 2021-04-07 Richard Biener <rguenther@suse.de>
16549 PR tree-optimization/99954
16550 * tree-loop-distribution.c: Include tree-affine.h.
16551 (generate_memcpy_builtin): Try using tree-affine to prove
16553 (loop_distribution::classify_builtin_ldst): Always classify
16556 2021-04-07 Richard Biener <rguenther@suse.de>
16558 PR tree-optimization/99947
16559 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
16560 steps vector to avoid pushing elements from the reallocated
16563 2021-04-07 Richard Biener <rguenther@suse.de>
16565 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
16566 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
16568 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
16570 (debug_vn_reference_ops): New.
16572 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
16574 PR tree-optimization/98736
16575 * tree-loop-distribution.c
16576 * (loop_distribution::bb_top_order_init):
16577 Compute RPO with programing order preserved by calling function
16578 rev_post_order_and_mark_dfs_back_seme.
16580 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
16583 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
16584 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
16586 (process_bb_lives): Don't update biggest mode of hard reg for
16587 implicit in multi-register group. Use the new functions for
16588 updating dead_set and unused_set by register notes.
16590 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
16592 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
16595 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
16597 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
16598 (skylake_memset): Likewise.
16599 (skylake_cost): Change CLEAR_RATIO to 17.
16600 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
16601 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
16602 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
16604 2021-04-06 Richard Biener <rguenther@suse.de>
16606 PR tree-optimization/99880
16607 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
16608 set vectorized defs of relevant PHIs.
16610 2021-04-06 Richard Biener <rguenther@suse.de>
16612 PR tree-optimization/99924
16613 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
16614 nodes w/o scalar stmts as visited.
16616 2021-04-06 Alex Coplan <alex.coplan@arm.com>
16619 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
16620 PCS for [su]fix_optab.
16622 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
16624 * config/darwin.c (machopic_legitimize_pic_address): Check
16625 that the current pic register is one of the hard reg set
16626 before setting liveness.
16628 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
16630 * config/darwin.c (machopic_legitimize_pic_address): Fix
16631 whitespace, remove unused code.
16633 2021-04-03 Jakub Jelinek <jakub@redhat.com>
16635 PR tree-optimization/99882
16636 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
16639 2021-04-03 Jakub Jelinek <jakub@redhat.com>
16641 PR rtl-optimization/99863
16642 * dse.c (replace_read): Drop regs_live argument. Instead of
16643 regs_live, use store_insn->fixed_regs_live if non-NULL,
16644 otherwise punt if insns sequence clobbers or sets any hard
16647 2021-04-03 Jakub Jelinek <jakub@redhat.com>
16650 * targhooks.h (default_print_patchable_function_entry_1): Declare.
16651 * targhooks.c (default_print_patchable_function_entry_1): New function,
16652 copied from default_print_patchable_function_entry with an added flags
16654 (default_print_patchable_function_entry): Rewritten into a small
16655 wrapper around default_print_patchable_function_entry_1.
16656 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
16658 (rs6000_print_patchable_function_entry): New function.
16660 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
16662 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
16664 2021-04-01 Jason Merrill <jason@redhat.com>
16667 * common.opt: Document v15 and v16.
16669 2021-04-01 Richard Biener <rguenther@suse.de>
16671 PR tree-optimization/99863
16672 * gimplify.c (gimplify_init_constructor): Recompute vector
16675 2021-04-01 Jakub Jelinek <jakub@redhat.com>
16677 * doc/extend.texi (symver attribute): Fix up syntax errors
16680 2021-04-01 Jakub Jelinek <jakub@redhat.com>
16682 PR tree-optimization/96573
16683 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
16684 also pointer types.
16686 2021-04-01 Richard Biener <rguenther@suse.de>
16688 PR tree-optimization/99856
16689 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
16690 precision to vector element precision.
16692 2021-04-01 Martin Jambor <mjambor@suse.cz>
16694 PR tree-optimization/97009
16695 * tree-sra.c (access_or_its_child_written): New function.
16696 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
16699 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
16702 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
16704 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
16707 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
16708 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
16709 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
16710 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
16711 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
16712 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
16714 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
16715 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
16716 (define_attr "prefixed"): Update initializer.
16718 2021-03-31 Jakub Jelinek <jakub@redhat.com>
16721 * dwarf2out.c (debug_ranges_dwo_section): New variable.
16722 (DW_RANGES_IDX_SKELETON): Define.
16723 (struct dw_ranges): Add begin_entry and end_entry members.
16724 (DEBUG_DWO_RNGLISTS_SECTION): Define.
16725 (add_ranges_num): Adjust r initializer for addition of *_entry
16727 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
16728 set idx to DW_RANGES_IDX_SKELETON.
16729 (use_distinct_base_address_for_range): New function.
16730 (index_rnglists): Don't set r->idx if it is equal to
16731 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
16732 r->end_entry for -gsplit-dwarf if those will be needed by
16734 (output_rnglists): Add DWO argument. If true, switch to
16735 debug_ranges_dwo_section rather than debug_ranges_section.
16736 Adjust l1/l2 label indexes. Only output the offset table when
16737 dwo is true and don't include in there the skeleton range
16738 entry if present. For -gsplit-dwarf, skip ranges that belong
16739 to the other rnglists section. Change return type from void
16740 to bool and return true if there are any range entries for
16741 the other section. For dwarf_split_debug_info use
16742 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
16743 entries instead of DW_RLE_start_end, DW_RLE_start_length and
16744 DW_RLE_base_address. Use use_distinct_base_address_for_range.
16745 (init_sections_and_labels): Initialize debug_ranges_dwo_section
16746 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
16747 and range_base_label indexes.
16748 (dwarf2out_finish): Call index_rnglists earlier before finalizing
16749 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
16750 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
16751 with different dwo arguments.
16752 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
16754 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
16756 PR tree-optimization/98268
16757 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
16758 recompute_tree_invariant_for_addr_expr after successfully
16759 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
16761 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
16763 PR tree-optimization/99726
16764 * tree-data-ref.c (create_intersect_range_checks_index): Bail
16765 out if there is more than one access function SCEV for the loop
16768 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
16770 PR rtl-optimization/97141
16771 PR rtl-optimization/98726
16772 * emit-rtl.c (valid_for_const_vector_p): Return true for
16774 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
16775 poly_wide_int instead of a wide_int.
16776 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
16778 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
16779 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
16780 false for CONST_VECTORs that cannot be forced to memory.
16781 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
16782 is too complex to force to memory, build it up from individual
16785 2021-03-31 Jan Hubicka <jh@suse.cz>
16788 * cgraph.c (cgraph_node::release_body): Fix overactive check.
16790 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
16793 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
16796 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
16798 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
16799 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
16801 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
16802 "rep movsb/stosb" only for known sizes.
16803 * config/i386/i386-options.c (processor_cost_table): Use Ice
16804 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
16805 Rapids and Alder Lake.
16806 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
16807 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
16808 (icelake_memset): Likewise.
16809 (icelake_cost): Likewise.
16810 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
16813 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
16816 * config/aarch64/aarch64.c
16817 (aarch64_vectorize_preferred_vector_alignment): Query the size
16818 of the provided SVE vector; do not assume that all SVE vectors
16819 have the same size.
16821 2021-03-31 Jan Hubicka <jh@suse.cz>
16824 * cgraph.c (cgraph_node::release_body): Remove all callers and
16826 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
16827 * cgraphunit.c (cgraph_node::expand): And here.
16829 2021-03-31 Martin Liska <mliska@suse.cz>
16831 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
16832 and one negated condition.
16834 2021-03-31 Jakub Jelinek <jakub@redhat.com>
16835 Richard Sandiford <richard.sandiford@arm.com>
16838 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
16839 constraints on operands[2] and similarly 0 and rk constraints
16840 on operands[1] corresponding to that.
16842 2021-03-31 Jakub Jelinek <jakub@redhat.com>
16845 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
16846 linker doesn't support DWARF sections new in DWARF5.
16847 * config/i386/i386-options.c (ix86_option_override_internal): Default
16848 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
16850 * config.in: Regenerated.
16851 * configure: Regenerated.
16853 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16856 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
16857 available issue_info before using it.
16859 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16862 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
16865 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
16868 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
16869 (altivec_lvsl_reg_<mode>): ... this.
16870 (altivec_lvsr_reg): Change to ...
16871 (altivec_lvsr_reg_<mode>): ... this.
16872 * config/rs6000/predicates.md (vec_set_index_operand): New.
16873 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16874 Enable 32bit variable vec_insert for all TARGET_VSX.
16875 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
16876 Enable 32bit variable vec_insert for p9 and above.
16877 (rs6000_expand_vector_set_var_p8): Rename to ...
16878 (rs6000_expand_vector_set_var_p7): ... this.
16879 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
16881 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
16882 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
16883 gen_altivec_lvsr_reg_di.
16885 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
16888 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
16889 (__rdtscp): Likewise.
16891 2021-03-30 Tamar Christina <tamar.christina@arm.com>
16893 PR tree-optimization/99825
16894 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
16895 Reject non-mult 2 lanes.
16897 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
16900 * config/arm/arm.c (arm_file_start): Fix emission of
16901 Tag_ABI_VFP_args attribute.
16903 2021-03-30 Richard Biener <rguenther@suse.de>
16905 PR tree-optimization/99824
16906 * stor-layout.c (set_min_and_max_values_for_integral_type):
16907 Assert the precision is within the bounds of
16908 WIDE_INT_MAX_PRECISION.
16909 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
16910 the outermost component ref only to lower the access size
16911 and initialize that from the access type.
16913 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
16916 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
16917 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
16919 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
16921 * config/aarch64/aarch64.md
16922 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
16923 attribute to disambiguate between SIMD and FP variants of the
16926 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
16928 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
16929 (analyze_ssa_name_flags): Fix typo in comment.
16931 2021-03-29 Alex Coplan <alex.coplan@arm.com>
16934 * config/aarch64/aarch64-sve-builtins.cc
16935 (function_builder::add_function): Add placeholder_p argument, use
16936 placeholder decls if this is set.
16937 (function_builder::add_unique_function): Instead of conditionally adding
16938 direct overloads, unconditionally add either a direct overload or a
16940 (function_builder::add_overloaded_function): Set placeholder_p if we're
16941 using C++ overloads. Use the obstack for string storage instead
16942 of relying on the tree nodes.
16943 (function_builder::add_overloaded_functions): Don't return early for
16944 m_direct_overloads: we need to add placeholders.
16945 * config/aarch64/aarch64-sve-builtins.h
16946 (function_builder::add_function): Add placeholder_p argument.
16948 2021-03-29 Richard Biener <rguenther@suse.de>
16950 PR tree-optimization/99807
16951 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
16952 assert below VEC_PERM handling.
16954 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16957 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
16958 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
16959 matching const_int 0.
16960 (move_lo_quad_internal_be_<mode>): Likewise.
16961 (move_lo_quad_<mode>): Update for the above.
16962 * config/aarch64/iterators.md (VQ_2E): Delete.
16964 2021-03-29 Jakub Jelinek <jakub@redhat.com>
16966 PR tree-optimization/99777
16967 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
16968 types other than scalar integral types.
16970 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
16972 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
16973 XCOFF TLS reloc decorations.
16975 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
16977 * doc/analyzer.texi (Analyzer Internals): Update link to
16978 "A Memory Model for Static Analysis of C Programs".
16980 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
16982 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
16983 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
16985 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
16986 (rs6000_special_round_type_align): Recursively check innermost first
16989 2021-03-26 Jakub Jelinek <jakub@redhat.com>
16992 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
16993 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
16994 assignment with drap_reg active, queue reg save for hfp with offset 0
16995 and flush queued reg saves. When handling a push with rule18,
16996 defer queueing reg save for hfp and just assert the offset is 0.
16997 (scan_trace): Assert that fde->rule18 is false.
16999 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
17002 * ira-costs.c (record_reg_classes): Put case with
17003 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
17004 * ira.c (ira_setup_alts): Ditto.
17005 * lra-constraints.c (process_alt_operands): Ditto.
17006 * recog.c (asm_operand_ok): Ditto.
17007 * reload.c (find_reloads): Ditto.
17009 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17011 * config/aarch64/aarch64-protos.h
17012 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
17013 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
17014 * config/aarch64/aarch64.c (generic_addrcost_table): Update
17015 accordingly, using the same costs as for post_modify.
17016 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
17017 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
17018 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
17019 (a64fx_addrcost_table): Likewise.
17020 (neoversev1_addrcost_table): New.
17021 (neoversev1_tunings): Use neoversev1_addrcost_table.
17022 (aarch64_address_cost): Use the new post_modify costs for CImode
17025 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17027 * config/aarch64/aarch64.opt
17028 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
17029 * doc/invoke.texi: Document it.
17030 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
17031 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
17032 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
17033 (aarch64_vec_issue_info): New structures.
17034 (cpu_vector_cost): Write comments above the variables rather
17036 (cpu_vector_cost::issue_info): New member variable.
17037 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
17038 and tree-ssa-loop-niter.h.
17039 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
17040 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
17041 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
17042 (thunderx3t110_vector_cost): Initialize issue_info to null.
17043 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
17044 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
17045 (neoversev1_vector_cost): Use them.
17046 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
17047 (aarch64_vector_costs::saw_sve_only_op): New member variable.
17048 (aarch64_vector_costs::num_vector_iterations): Likewise.
17049 (aarch64_vector_costs::scalar_ops): Likewise.
17050 (aarch64_vector_costs::advsimd_ops): Likewise.
17051 (aarch64_vector_costs::sve_ops): Likewise.
17052 (aarch64_vector_costs::seen_loads): Likewise.
17053 (aarch64_simd_vec_costs_for_flags): New function.
17054 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
17055 Count the number of predicate operations required by SVE WHILE
17057 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
17058 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
17059 (aarch64_count_ops): Likewise.
17060 (aarch64_add_stmt_cost): Record whether see an SVE operation
17061 that cannot currently be implementing using Advanced SIMD.
17062 Record issue information about the scalar, Advanced SIMD
17063 and (where relevant) SVE versions of a loop.
17064 (aarch64_vec_op_count::dump): New function.
17065 (aarch64_sve_op_count::dump): Likewise.
17066 (aarch64_estimate_min_cycles_per_iter): Likewise.
17067 (aarch64_adjust_body_cost): If issue information is available,
17068 try to compare the issue rates of the various loop implementations
17069 and increase or decrease the vector body cost accordingly.
17071 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17073 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
17074 Assume a zero cost for induction phis.
17076 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17078 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
17080 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
17081 vector comparisons.
17083 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17085 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
17087 (aarch64_add_stmt_cost): Call it.
17089 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17091 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
17092 New tuning parameter.
17093 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
17094 (aarch64_estimated_sve_vq): New function.
17095 (aarch64_vector_costs::analyzed_vinfo): New member variable.
17096 (aarch64_vector_costs::is_loop): Likewise.
17097 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
17098 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
17099 (aarch64_record_potential_advsimd_unrolling): New function.
17100 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
17101 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
17102 aarch64_analyze_bb_vinfo on the first use of a costs structure.
17103 Detect whether we're vectorizing a loop for SVE that might be
17104 completely unrolled if it used Advanced SIMD instead.
17105 (aarch64_adjust_body_cost_for_latency): New function.
17106 (aarch64_finish_cost): Call it.
17108 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17110 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
17111 (aarch64_init_cost): New function.
17112 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
17113 the default unsigned[3].
17114 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
17115 (TARGET_VECTORIZE_INIT_COST): Override.
17116 (TARGET_VECTORIZE_FINISH_COST): Likewise.
17117 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
17119 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17121 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
17122 (neoversev1_sve_vector_cost): New cost structures.
17123 (neoversev1_vector_cost): Likewise.
17124 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
17126 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17128 * config/aarch64/aarch64-protos.h
17129 (sve_vec_cost::scatter_store_elt_cost): New member variable.
17130 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
17131 accordingly, taking the cost from the cost of a scalar_store.
17132 (a64fx_sve_vector_cost): Likewise.
17133 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
17135 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17137 * config/aarch64/aarch64-protos.h
17138 (simd_vec_cost::store_elt_extra_cost): New member variable.
17139 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
17140 accordingly, using the vec_to_scalar cost for the new field.
17141 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
17142 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
17143 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
17144 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
17145 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
17146 (thunderx3t110_advsimd_vector_cost): Likewise.
17147 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
17149 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17151 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
17152 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
17153 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
17154 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
17155 accordingly, using zero for the new costs.
17156 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
17157 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
17158 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
17159 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
17160 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
17161 (thunderx3t110_advsimd_vector_cost): Likewise.
17162 (aarch64_ld234_st234_vectors): New function.
17163 (aarch64_adjust_stmt_cost): Likewise.
17164 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
17165 the new vector costs.
17167 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17169 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
17170 derived class of simd_vec_cost. Add information about CLAST[AB]
17171 and FADDA instructions.
17172 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
17173 accordingly, using the vec_to_scalar costs for the new fields.
17174 (a64fx_sve_vector_cost): Likewise.
17175 (aarch64_reduc_type): New function.
17176 (aarch64_sve_in_loop_reduction_latency): Likewise.
17177 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
17178 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
17179 that occur in the loop body.
17180 (aarch64_add_stmt_cost): Update call accordingly.
17182 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17184 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
17186 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
17187 above the fields rather than to the right.
17188 (simd_vec_cost::reduc_i8_cost): New member variable.
17189 (simd_vec_cost::reduc_i16_cost): Likewise.
17190 (simd_vec_cost::reduc_i32_cost): Likewise.
17191 (simd_vec_cost::reduc_i64_cost): Likewise.
17192 (simd_vec_cost::reduc_f16_cost): Likewise.
17193 (simd_vec_cost::reduc_f32_cost): Likewise.
17194 (simd_vec_cost::reduc_f64_cost): Likewise.
17195 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
17196 accordingly, using the vec_to_scalar_cost for the new fields.
17197 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
17198 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
17199 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
17200 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
17201 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
17202 (thunderx3t110_advsimd_vector_cost): Likewise.
17203 (aarch64_use_new_vector_costs_p): New function.
17204 (aarch64_simd_vec_costs): New function, split out from...
17205 (aarch64_builtin_vectorization_cost): ...here.
17206 (aarch64_is_reduction): New function.
17207 (aarch64_detect_vector_stmt_subtype): Likewise.
17208 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
17209 using the new vector costs.
17211 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
17214 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
17215 TLS declarations as public.
17217 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
17219 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
17220 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
17221 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
17222 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
17223 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
17224 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
17225 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
17226 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
17227 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
17229 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
17232 * config.gcc (*-*-cygwin*): Add winnt-d.o
17233 (*-*-mingw*): Likewise.
17234 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
17235 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
17236 * config/i386/t-cygming: Add winnt-d.o.
17237 * config/i386/winnt-d.c: New file.
17239 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
17241 * config/freebsd-d.c: Include memmodel.h.
17243 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
17246 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
17247 * config/t-openbsd: Add openbsd-d.o.
17248 * config/openbsd-d.c: New file.
17250 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
17252 PR tree-optimization/96974
17253 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
17254 with graceful exit.
17256 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
17259 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
17263 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
17264 always_inline in system headers.
17266 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
17268 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
17270 2021-03-25 Jakub Jelinek <jakub@redhat.com>
17273 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
17274 * fold-const.c (operand_compare::operand_equal_p): Don't compare
17275 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
17277 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
17281 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
17282 always_inline in system headers.
17284 2021-03-25 Richard Biener <rguenther@suse.de>
17286 PR tree-optimization/99746
17287 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
17288 the scalar stmt as patterned. Instead set up required things
17291 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
17293 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
17296 2021-03-24 Martin Liska <mliska@suse.cz>
17299 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
17301 * config/i386/i386-options.c (ix86_option_override_internal):
17302 Add run-time assert.
17304 2021-03-24 Martin Jambor <mjambor@suse.cz>
17307 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
17308 parameters with unknown type.
17309 (ipacp_value_safe_for_type): New function.
17310 (propagate_vals_across_arith_jfunc): Verify that the constant type
17311 can be used for a type of the formal parameter.
17312 (propagate_vals_across_ancestor): Likewise.
17313 (propagate_scalar_across_jump_function): Likewise. Pass the type
17314 also to propagate_vals_across_ancestor.
17316 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
17319 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
17321 (movmisalign<mode>_mve_load): Likewise.
17323 2021-03-24 Jakub Jelinek <jakub@redhat.com>
17326 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
17327 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
17329 2021-03-24 Alexandre Oliva <oliva@adacore.com>
17331 * doc/sourcebuild.texi (sysconf): New effective target.
17333 2021-03-24 Alexandre Oliva <oliva@adacore.com>
17335 * config/i386/predicates.md (reg_or_const_vec_operand): New.
17336 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
17337 the now *-prefixed insn_and_split, turn the splitter const vec
17338 into an input for the insn, making it an ignored immediate for
17339 non-split cases, and loaded into the scratch register
17342 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
17345 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
17346 Use define_relaxed_memory_constraint for them.
17348 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
17351 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
17352 colon to the diagnostic message.
17354 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
17356 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
17358 (try_fwprop_subst_note): Use set_info instead of insn_info.
17359 (try_fwprop_subst_pattern): Likewise.
17360 (try_fwprop_subst_notes): Likewise.
17361 (try_fwprop_subst): Likewise.
17362 (forward_propagate_subreg): Likewise.
17363 (forward_propagate_and_simplify): Likewise.
17364 (forward_propagate_into): Likewise.
17365 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
17367 (set_info::single_nondebug_insn_use): Likewise.
17368 (set_info::single_phi_use): Likewise.
17369 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
17371 (set_info::single_nondebug_insn_use): Likewise.
17372 (set_info::single_phi_use): Likewise.
17374 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
17376 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
17378 2021-03-23 Jakub Jelinek <jakub@redhat.com>
17381 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
17382 expand_mult to perform an unsigned rather than a signed
17385 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
17388 * config/i386/cpuid.h (__cpuid): Add __volatile__.
17389 (__cpuid_count): Likewise.
17391 2021-03-23 Richard Biener <rguenther@suse.de>
17393 PR tree-optimization/99721
17394 * tree-vect-slp.c (vect_slp_analyze_node_operations):
17395 Make sure we can schedule the node.
17397 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
17399 * config/riscv/riscv.c (riscv_subword): Take endianness into
17400 account when calculating the byte offset.
17402 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
17404 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
17405 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
17406 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
17407 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
17408 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
17409 new predicate "subreg_lowpart_operator"
17411 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
17413 * config/riscv/riscv.c (riscv_swap_instruction): New function
17414 to byteswap an SImode rtx containing an instruction.
17415 (riscv_trampoline_init): Byteswap the generated instructions
17418 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
17420 * common/config/riscv/riscv-common.c
17421 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
17422 * config.gcc (riscv32be-*, riscv64be-*): Set
17423 TARGET_BIG_ENDIAN_DEFAULT to 1.
17424 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
17425 depending on default endianness.
17426 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
17427 * config/riscv/linux.h (LINK_SPEC): Likewise.
17428 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
17429 default endianness.
17430 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
17432 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
17434 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
17435 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
17436 * config/riscv/linux.h (LINK_SPEC): Likewise.
17437 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
17439 (BYTES_BIG_ENDIAN): Handle big endian.
17440 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
17441 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
17443 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
17445 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
17447 * regcprop.c (find_oldest_value_reg): Ask target whether
17448 different mode is fine for replacement register.
17450 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
17452 PR tree-optimization/99296
17453 * value-range.cc (irange::irange_set_1bit_anti_range): New.
17454 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
17455 * value-range.h (irange::irange_set_1bit_anti_range): New.
17457 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
17460 * config/aarch64/constraints.md (UtQ): Use
17461 define_relaxed_memory_constraint for it.
17462 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
17463 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
17464 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
17465 (have_relaxed_memory_constraints): New static var.
17466 (relaxed_memory_start, relaxed_memory_end): Ditto.
17467 (add_constraint): Add arg is_relaxed_memory. Check name for
17468 relaxed memory. Set up is_relaxed_memory in constraint_data and
17469 have_relaxed_memory_constraints. Adjust calls.
17470 (choose_enum_order): Process relaxed memory.
17471 (write_tm_preds_h): Ditto.
17472 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
17473 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
17474 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
17475 * ira-lives.c (single_reg_class): Use
17476 insn_extra_relaxed_memory_constraint.
17477 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
17478 * lra-constraints.c (valid_address_p): Use
17479 insn_extra_relaxed_memory_constraint instead of other memory
17481 (process_alt_operands): Process CT_RELAXED_MEMORY.
17482 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
17483 * recog.c (asm_operand_ok, preprocess_constraints): Process
17485 * reload.c (find_reloads): Ditto.
17486 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
17487 * stmt.c (parse_input_constraint): Use
17488 insn_extra_relaxed_memory_constraint.
17490 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
17493 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
17496 2021-03-22 Alex Coplan <alex.coplan@arm.com>
17499 * config/arm/arm-protos.h (neon_make_constant): Add generate
17500 argument to guard emitting insns, default to true.
17501 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
17502 CONST_VECTORs which neon_make_constant can't handle.
17503 (neon_vdup_constant): Add generate argument, avoid emitting
17504 insns if it's not set.
17505 (neon_make_constant): Plumb new generate argument through.
17506 * config/arm/constraints.md (Ui): New. Use it...
17507 * config/arm/mve.md (*mve_mov<mode>): ... here.
17508 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
17509 synthesize constants.
17511 2021-03-22 Richard Biener <rguenther@suse.de>
17513 * debug.h: Add deprecation warning.
17515 2021-03-22 Richard Biener <rguenther@suse.de>
17517 PR tree-optimization/99694
17518 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
17521 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
17524 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
17525 after type checking.
17527 2021-03-22 Jakub Jelinek <jakub@redhat.com>
17531 * dwarf2out.c (get_full_len): Use get_precision rather than
17533 (add_const_value_attribute): Make sure add_AT_wide argument has
17534 precision prec rather than some very wide one.
17536 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
17538 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
17539 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
17540 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
17541 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
17542 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
17543 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
17544 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
17545 *fix_trunc<mode>si2_internal): Fix empty split condition.
17546 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
17547 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
17548 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
17549 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
17551 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
17554 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
17555 Convert idx to DImode.
17556 (rs6000_expand_vector_set_var_p8): Likewise.
17558 2021-03-21 Jakub Jelinek <jakub@redhat.com>
17561 * dwarf2out.c (insert_float): Change return type from void to
17562 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
17563 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
17566 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
17569 * config/i386/i386.c (construct_container): Check cfun != NULL
17570 before accessing silent_p.
17572 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
17574 * asan.c: Fix typos in comments.
17576 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
17578 PR rtl-optimization/99680
17579 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
17580 (process_address_1): Check empty constraint before using
17583 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
17585 * config/rs6000/rs6000.c (power10_cost): New.
17586 (rs6000_option_override_internal): Set Power10 costs.
17587 (rs6000_issue_rate): Set Power10 issue rate.
17588 * config/rs6000/power10.md: Rewrite for Power10.
17590 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
17593 * lra-constraints.c (process_address_1): Don't use unknown
17594 constraint for address constraint.
17596 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
17599 * config.gcc (powerpc-*-darwin8): Delete the reference to
17600 the now removed darwin8.h.
17602 2021-03-19 Olivier Hainque <hainque@adacore.com>
17605 * config/vxworksae.h (VX_CPU_PREFIX): Define.
17607 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
17609 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
17611 2021-03-19 Tamar Christina <tamar.christina@arm.com>
17613 PR tree-optimization/99656
17614 * tree-vect-slp-patterns.c (linear_loads_p,
17615 complex_add_pattern::matches, is_eq_or_top,
17616 vect_validate_multiplication, complex_mul_pattern::matches,
17617 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
17618 * tree-vectorizer.h: (complex_load_perm_t): Removed.
17619 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
17620 complex_load_perm_t.
17622 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
17625 * config/i386/i386-options.c (ix86_init_machine_status): Set
17627 * config/i386/i386.c (init_cumulative_args): Set silent_p to
17629 (construct_container): Return early for return and argument
17630 errors if silent_p is true.
17631 * config/i386/i386.h (machine_function): Add silent_p.
17633 2021-03-19 Jakub Jelinek <jakub@redhat.com>
17636 * config/arm/constraints.md (Ds): New constraint.
17637 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
17638 constraint instead of w,Dm.
17640 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
17642 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
17645 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
17647 PR middle-end/99641
17648 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
17649 array type, do the computation of the current position in sizetype.
17651 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
17654 * lra-constraints.c (process_address_1): Use lookup_constraint
17655 only for a single constraint.
17657 2021-03-18 Martin Sebor <msebor@redhat.com>
17659 PR middle-end/99502
17660 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
17661 (inbounds_memaccess_p): ...to this. Check the ending offset of
17662 the accessed member.
17664 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
17666 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
17667 %> quote markers to error messages.
17668 (gcn_goacc_validate_dims): Likewise.
17669 (gcn_conditional_register_usage): Remove exclaimation mark from error
17671 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
17673 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
17675 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
17678 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
17679 Kito Cheng <kito.cheng@sifive.com>
17681 * config/riscv/riscv.c (riscv_block_move_straight): Change type
17682 to unsigned HOST_WIDE_INT for parameter and local variable with
17683 HOST_WIDE_INT type.
17684 (riscv_adjust_block_mem): Ditto.
17685 (riscv_block_move_loop): Ditto.
17686 (riscv_expand_block_move): Ditto.
17688 2021-03-18 Nick Clifton <nickc@redhat.com>
17690 * config/v850/v850.c (construct_restore_jr): Increase static
17692 (construct_save_jarl): Likewise.
17693 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
17695 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17697 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
17698 (aarch64_override_options_internal): Use it.
17699 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
17702 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
17704 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
17705 error message format issues.
17706 (nios2_option_override): Likewise.
17707 (nios2_expand_fpu_builtin): Likewise.
17708 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
17709 truncation warning.
17710 (nios2_expand_custom_builtin): More error message format fixes.
17711 (nios2_expand_rdwrctl_builtin): Likewise.
17712 (nios2_expand_rdprs_builtin): Likewise.
17713 (nios2_expand_eni_builtin): Likewise.
17714 (nios2_expand_builtin): Likewise.
17715 (nios2_register_custom_code): Likewise.
17716 (nios2_valid_target_attribute_rec): Likewise.
17717 (nios2_add_insn_asm): Fix uninitialized variable warning.
17719 2021-03-17 Jan Hubicka <jh@suse.cz>
17721 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
17722 of gather to match reality.
17723 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
17725 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17727 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
17728 to compare against CC_REG rather than NE.
17730 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
17733 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
17734 inline assembly statements.
17735 (ix86_print_operand): Update 'P' handling for -fno-plt.
17737 2021-03-17 Tamar Christina <tamar.christina@arm.com>
17740 * config/aarch64/aarch64.c
17741 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
17743 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
17746 * config/rs6000/predicates.md (branch_comparison_operator): Allow
17747 ordered and unordered for CCFPmode, if flag_finite_math_only.
17749 2021-03-16 Jakub Jelinek <jakub@redhat.com>
17752 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
17753 rather than ASHIFT.
17754 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
17756 2021-03-16 Martin Liska <mliska@suse.cz>
17759 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
17760 cl_optimization_compare function.
17762 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
17764 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
17767 2021-03-16 Jakub Jelinek <jakub@redhat.com>
17770 * config/i386/i386.h (struct machine_function): Add
17771 has_explicit_vzeroupper bitfield.
17772 * config/i386/i386-expand.c (ix86_expand_builtin): Set
17773 cfun->machine->has_explicit_vzeroupper when expanding
17774 IX86_BUILTIN_VZEROUPPER.
17775 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
17776 Do the mode switching only when TARGET_VZEROUPPER, expensive
17777 optimizations turned on and not optimizing for size.
17778 (pass_insert_vzeroupper::gate): Enable even when
17779 cfun->machine->has_explicit_vzeroupper is set.
17781 2021-03-16 Jakub Jelinek <jakub@redhat.com>
17784 * config/aarch64/aarch64.c
17785 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
17786 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
17787 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
17789 2021-03-15 Richard Biener <rguenther@suse.de>
17791 PR tree-optimization/98834
17792 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
17793 subsetting by truncating the access size.
17795 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
17797 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
17798 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
17801 2021-03-15 Martin Liska <mliska@suse.cz>
17803 * spellcheck.c: Add missing comma in initialization.
17805 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
17807 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
17808 alternative 2 and alternative 1 with alternative 3 using
17809 YW register constraint.
17810 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
17811 using YW register constraint.
17812 (*vec_extractv16qi_zext): Ditto.
17813 (*vec_extractv4si): Merge alternatives 4 and 5
17814 using Yw register constraint.
17815 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
17817 2021-03-13 Martin Sebor <msebor@redhat.com>
17819 PR tree-optimization/99489
17820 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
17821 is not a call statement.
17823 2021-03-13 Jakub Jelinek <jakub@redhat.com>
17825 PR tree-optimization/99544
17826 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
17827 if for vector types multiplication can't be done in type's mode.
17829 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
17832 * config/sparc/constraints.md (w): Rename to...
17833 (W): ... this and ditch previous implementation.
17834 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
17835 (*movdf_insn_sp64): Likewise.
17836 (*mov<VM64:mode>_insn_sp64): Likewise.
17837 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
17839 (atomic_compare_and_swap_leon3_1): Likewise.
17840 (*atomic_compare_and_swapdi_v8plus): Likewise.
17841 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
17842 architecture and add missing address validity check during LRA.
17844 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
17847 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
17848 occuring for assumed-size arrays in use_device_{ptr,addr}.
17850 2021-03-12 Jakub Jelinek <jakub@redhat.com>
17853 * config/i386/constraints.md (YW): New internal constraint.
17854 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
17855 (*<sse2_avx2>_<insn><mode>3<mask_name>,
17856 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
17857 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
17859 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
17860 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
17861 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
17862 into one, use Yw instead of former x,v.
17863 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
17864 the last alternative.
17865 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
17866 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
17867 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
17868 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
17869 into one, use <v_Yw> instead of former x,v.
17870 (avx2_interleave_highv32qi<mask_name>,
17871 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
17872 constraints. Add && <mask_avx512bw_condition> to condition.
17873 (avx2_interleave_lowv32qi<mask_name>,
17874 vec_interleave_lowv16qi<mask_name>,
17875 avx2_interleave_highv16hi<mask_name>,
17876 vec_interleave_highv8hi<mask_name>,
17877 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
17878 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
17879 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
17880 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
17881 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
17882 Yw instead of v in constraints.
17883 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
17884 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
17885 instead of Yv in constraints.
17886 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
17887 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
17888 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
17889 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
17890 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
17892 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
17893 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
17894 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
17895 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
17896 two, one with just x, another isa avx512vl with v.
17898 2021-03-12 Martin Liska <mliska@suse.cz>
17900 * doc/invoke.texi: Add missing param documentation.
17902 2021-03-11 David Malcolm <dmalcolm@redhat.com>
17905 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
17906 analyzer/trimmed-graph.o.
17907 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
17908 feasibility checking to reflect new implementation.
17909 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
17911 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
17913 2021-03-11 David Malcolm <dmalcolm@redhat.com>
17915 * digraph.cc (selftest::test_shortest_paths): Update
17916 shortest_paths init for new param. Add test of
17917 SPS_TO_GIVEN_TARGET.
17918 * shortest-paths.h (enum shortest_path_sense): New.
17919 (shortest_paths::shortest_paths): Add "sense" param.
17920 Update for renamings. Generalize to use "sense" param.
17921 (shortest_paths::get_shortest_path): Rename param.
17922 (shortest_paths::m_sense): New field.
17923 (shortest_paths::m_prev): Rename...
17924 (shortest_paths::m_best_edge): ...to this.
17925 (shortest_paths::get_shortest_path): Update for renamings.
17926 Conditionalize flipping of path on sense of traversal.
17928 2021-03-11 David Malcolm <dmalcolm@redhat.com>
17930 * digraph.cc (selftest::test_shortest_paths): Add test coverage
17931 for paths from B and C.
17932 * shortest-paths.h (shortest_paths::shortest_paths): Handle
17933 unreachable nodes, rather than asserting.
17935 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
17938 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
17939 xcoff_tbss_section_name.
17940 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
17941 * xcoffout.c (xcoff_tbss_section_name): Delete.
17942 * xcoffout.h (xcoff_tbss_section_name): Delete.
17944 2021-03-11 Richard Biener <rguenther@suse.de>
17946 PR tree-optimization/99523
17947 * tree-cfg.c (dump_function_to_file): Dump SSA names
17948 w/o identifier to the decls section as well, not only those
17949 without a VAR_DECL.
17951 2021-03-11 Jakub Jelinek <jakub@redhat.com>
17954 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
17955 function calls with lhs fail if the lhs don't have compatible types.
17957 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
17959 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
17960 Change FRAME_POINTER_REGNUM to correspond to a new faked
17961 register faked_fp, part of GENNONACR_REGS like faked_ap.
17962 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
17963 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
17964 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
17965 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
17966 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
17968 (CRIS_REAL_FP_REGNUM): New constant.
17969 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
17970 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
17971 (cris_initial_elimination_offset): Handle elimination changes
17972 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
17973 and add one from FRAME_POINTER_REGNUM to
17974 HARD_FRAME_POINTER_REGNUM.
17975 (cris_expand_prologue, cris_expand_epilogue): Emit code for
17976 hard_frame_pointer_rtx instead of frame_pointer_rtx.
17978 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
17981 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
17982 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
17984 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
17987 * lra-constraints.c (process_address_1): Don't check unknown
17988 constraint, use X for empty constraint.
17990 2021-03-10 Alex Coplan <alex.coplan@arm.com>
17992 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
17993 Fix typo in comment describing "is_ha" argument.
17995 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
17997 * doc/sourcebuild.texi: Document LRA target selector.
17999 2021-03-10 David Malcolm <dmalcolm@redhat.com>
18001 * doc/ux.texi: Add subsection contrasting interactive versus
18002 batch usage of GCC.
18004 2021-03-10 Joel Hutton <joel.hutton@arm.com>
18007 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
18009 (vectorizable_load): Fix gather load mask check condition.
18011 2021-03-10 Richard Biener <rguenther@suse.de>
18013 PR tree-optimization/99510
18014 * tree.c (check_aligned_type): Check that the candidate
18015 has TYPE_USER_ALIGN set instead of matching with the
18018 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
18020 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
18021 float and vector integer modes only if the mode is not larger.
18023 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
18025 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
18027 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
18029 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
18031 * ira-lives.c (single_reg_class): Ditto.
18033 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18035 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
18036 the architecture-specific rtems.h.
18037 (aarch64-*-rtems*): Likewise.
18038 (arm*-*-rtems*): Likewise.
18039 (epiphany-*-rtems*): Likewise.
18040 (riscv*-*-rtems*): Likewise.
18042 2021-03-09 Jakub Jelinek <jakub@redhat.com>
18044 PR tree-optimization/99305
18045 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
18046 before integer_all_onesp instead of vice versa.
18048 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
18050 * common/config/arm/arm-common.c (arm_config_default): Change type
18051 of 'i' to unsigned.
18053 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
18056 * lra-constraints.c (process_address_1): Process constraint 'g'
18057 separately and digital constraints containing more one digit.
18059 2021-03-09 Nick Clifton <nickc@redhat.com>
18061 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
18062 (DWARF"_DEBUGGING_INFO): Define.
18064 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
18067 * calls.c (initialize_argument_information): When the argument
18068 is passed by reference, do not make a copy in a thunk only if
18069 the argument is already in memory. Remove redundant test for
18070 the case of callee copy.
18072 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
18075 * lra-constraints.c (process_address_1): Process 0..9 constraints
18076 in process_address_1.
18078 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
18080 * config/s390/s390.c (struct s390_processor processor_table):
18081 Binutils name string must not be empty.
18083 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
18085 * config/arc/arc.c (arc_attr_type): Remove function.
18087 2021-03-09 Martin Liska <mliska@suse.cz>
18090 * config/i386/i386-options.c (ix86_option_override_internal):
18091 Set isa_flags for OPTS argument and not for the global
18094 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18096 * config/rs6000/predicates.md (ds_form_mem_operand): Check
18099 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18102 * config/rs6000/predicates.md (ds_form_mem_operand) New
18104 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
18105 ds_form_mem_operand in ld/lwa patterns.
18106 * config/rs6000/fusion.md: Regenerate file.
18108 2021-03-08 Martin Sebor <msebor@redhat.com>
18110 PR middle-end/98266
18111 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
18112 (array_bounds_checker::check_array_bounds): Call it.
18114 2021-03-08 Martin Sebor <msebor@redhat.com>
18116 PR middle-end/97631
18117 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
18118 (handle_builtin_stxncpy_strncat): Rename locals. Determine
18119 destination size from allocation calls. Issue a more appropriate
18121 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
18122 (handle_builtin_memset): Same.
18124 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
18127 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
18128 to ensure we do not have an Altivec style address.
18129 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
18130 an Altivec style address.
18131 (*vsx_le_perm_store_<mode>): Likewise.
18132 (splitters after *vsx_le_perm_store_<mode>): Likewise.
18133 (vsx_load_<mode>): Disable special expander if passed an Altivec
18135 (vsx_store_<mode>): Likewise.
18137 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18140 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
18141 (aarch64_simd_shift_imm_vec_hi): Likewise.
18142 (aarch64_simd_shift_imm_vec_si): Likewise.
18143 (aarch64_simd_shift_imm_vec_di): Likewise.
18144 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
18145 predicate from above.
18146 (aarch64_shrn<mode>_insn_be): Likewise.
18147 (aarch64_rshrn<mode>_insn_le): Likewise.
18148 (aarch64_rshrn<mode>_insn_be): Likewise.
18149 (aarch64_shrn2<mode>_insn_le): Likewise.
18150 (aarch64_shrn2<mode>_insn_be): Likewise.
18151 (aarch64_rshrn2<mode>_insn_le): Likewise.
18152 (aarch64_rshrn2<mode>_insn_be): Likewise.
18154 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
18157 * lra-constraints.c (skip_contraint_modifiers): New function.
18158 (process_address_1): Use it before lookup_constraint call.
18160 2021-03-08 Martin Liska <mliska@suse.cz>
18163 * config/i386/i386-options.c (ix86_option_override_internal):
18164 Enable UINTR and HRESET for -march that supports it.
18166 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
18168 * config/s390/s390.c (f_constraint_p): New function.
18169 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
18170 (TARGET_MD_ASM_ADJUST): Likewise.
18172 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
18175 * tree-nested.c (convert_local_reference_stmt): Avoid calling
18176 lookup_field_for_decl for Fortran module (= namespace context).
18178 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
18180 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
18181 comparison with arithmetic right shift.
18182 (s390_expand_vcond): No need for a force_reg anymore.
18183 s390_vec_compare will do it.
18184 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
18185 immediate operands.
18187 2021-03-07 Jakub Jelinek <jakub@redhat.com>
18190 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
18191 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
18193 * config/i386/sse.md (v_Yw): New define_mode_attr.
18194 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
18195 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
18197 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
18198 xYw in constraints.
18200 2021-03-06 Julian Brown <julian@codesourcery.com>
18202 * tree-pretty-print.c (dump_generic_node): Emit non-generic
18203 address space info for aggregates.
18205 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
18207 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
18209 2021-03-05 Jakub Jelinek <jakub@redhat.com>
18211 PR middle-end/99322
18212 * tree-cfg.c (bb_to_omp_idx): New variable.
18213 (execute_build_cfg): Release the bb_to_omp_idx vector after
18214 cleanup_tree_cfg returns.
18215 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
18216 for bb_to_omp_idx being a vec<int> instead of pointer to array
18218 (make_edges): Remove bb_to_omp_idx local variable, don't pass
18219 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
18220 vec<int> instead of pointer to array of ints and don't free/release
18222 (remove_bb): When removing a bb and placing forced label somewhere
18223 else, ensure it is put into the same OpenMP region during cfg
18224 pass if possible or to entry successor as fallback. Unregister
18225 bb from bb_to_omp_idx.
18227 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
18230 * lra-constraints.c (process_address_1): Skip decomposing address
18231 for asm insn operand with unknown constraint.
18233 2021-03-05 Martin Jambor <mjambor@suse.cz>
18236 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
18237 corresponding speculative edges if we are about to resolve
18238 sepculation. Make edge direct (and so resolve speculations) before
18239 removing it from call_site_hash.
18240 (cgraph_edge::make_direct): Relax the initial assert to allow calling
18241 the function on speculative direct edges.
18243 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
18245 PR rtl-optimization/99376
18246 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
18247 of low-order zero bits is too large, set the result to 0 directly.
18249 2021-03-04 Jakub Jelinek <jakub@redhat.com>
18251 PR middle-end/93235
18252 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
18253 SUBREG and a SUBREG to op_mode can't be created.
18255 2021-03-04 Alex Coplan <alex.coplan@arm.com>
18258 * config/aarch64/aarch64-sve-builtins.cc
18259 (function_resolver::require_vector_type): Handle error_mark_node.
18261 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
18263 * cfgexpand.c (expand_asm_loc): Pass new parameter.
18264 (expand_asm_stmt): Likewise.
18265 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
18267 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
18268 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
18269 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
18270 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
18271 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
18272 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
18273 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
18274 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
18275 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
18276 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
18277 * doc/tm.texi (md_asm_adjust): Likewise.
18278 * target.def (md_asm_adjust): Likewise.
18280 2021-03-04 Richard Biener <rguenther@suse.de>
18282 PR middle-end/97855
18283 * tree-pretty-print.c: Poison pp_printf.
18284 (dump_decl_name): Avoid use of pp_printf.
18285 (dump_block_node): Likewise.
18286 (dump_generic_node): Likewise.
18288 2021-03-04 Martin Sebor <msebor@redhat.com>
18290 PR middle-end/96963
18291 PR middle-end/94655
18292 * builtins.c (handle_array_ref): New helper.
18293 (handle_mem_ref): New helper.
18294 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
18295 into new helper functions. Correct a workaround for vectorized
18298 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
18300 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
18301 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
18302 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
18303 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
18304 attribute for Power10.
18305 * config/rs6000/mma.md (*movoo): Likewise.
18306 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
18307 (define_mode_attr bits): Add DD/TD modes.
18308 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
18309 store_conditionalpti): Update size attribute for Power10.
18311 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18314 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
18315 -Wuninitialized, -Wmaybe-uninitialized.
18316 (wide-int.o-warn): Likewise.
18318 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
18320 * common/config/arm/arm-common.c: Include configargs.h.
18321 (arm_config_default): New function.
18322 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
18323 processors that do not support Thumb. Take into account the
18324 --with-mode configuration setting for selecting the default.
18325 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
18326 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
18328 2021-03-03 Martin Liska <mliska@suse.cz>
18330 PR gcov-profile/97461
18331 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
18333 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
18336 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
18337 point back the hard frame pointer to its default location when the
18338 frame is larger than SEH_MAX_FRAME_SIZE.
18340 2021-03-03 Jakub Jelinek <jakub@redhat.com>
18343 * config/i386/predicates.md (logic_operator): New define_predicate.
18344 * config/i386/i386.md (mov + mem using comm arith peephole2):
18345 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
18346 and the inner mode is [QH]Imode.
18348 2021-03-03 Jakub Jelinek <jakub@redhat.com>
18351 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
18352 (new_loc_list): Clear end_entry.
18353 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
18354 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
18356 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
18357 initialize also end_entry.
18359 2021-03-03 Jakub Jelinek <jakub@redhat.com>
18362 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
18363 partitions, if in non-layout mode after reorder_blocks also move
18364 affected blocks to ensure a single partition transition.
18366 2021-03-03 Jason Merrill <jason@redhat.com>
18369 * cgraphunit.c (process_function_and_variable_attributes): Don't
18370 warn about flatten on an alias if the target also has it.
18371 * cgraph.h (symtab_node::get_alias_target_tree): New.
18373 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
18375 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
18376 period to symbol name.
18377 (tls_get_addr_internal<mode>): Same.
18379 2021-03-02 David Malcolm <dmalcolm@redhat.com>
18382 * diagnostic-show-locus.c
18383 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
18386 2021-03-02 Martin Sebor <msebor@redhat.com>
18388 PR middle-end/99276
18389 * builtins.c (warn_for_access): Remove stray warning text.
18391 2021-03-02 Martin Sebor <msebor@redhat.com>
18393 PR middle-end/99295
18394 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
18397 2021-03-02 Jakub Jelinek <jakub@redhat.com>
18400 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
18401 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
18402 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
18403 DW_MACRO_define_strx and DW_MACRO_undef_strx.
18404 (save_macinfo_strings): Use DW_MACRO_*_str* even with
18405 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
18406 DW_MACRO_undef_strx.
18408 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
18410 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
18412 (BT_FN_V8HI_V8HI_UINT): Likewise.
18413 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
18414 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
18415 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
18416 New builtin definitions.
18417 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
18418 vector extension version.
18419 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
18420 available with current -march level.
18421 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
18422 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
18423 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
18424 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
18425 (vec_extend_to_fp32_lo): Likewise.
18426 (vec_round_from_fp32): Likewise.
18427 (vec_convert_to_fp16): Likewise.
18428 (vec_convert_from_fp16): Likewise.
18429 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
18430 (vclfnls_v8hi): Likewise.
18431 (vcrnfs_v8hi): Likewise.
18432 (vcfn_v8hi): Likewise.
18433 (vcnf_v8hi): Likewise.
18435 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
18437 * common/config/s390/s390-common.c (processor_flags_table): New entry.
18438 * config.gcc: Enable arch14 for --with-arch and --with-tune.
18439 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
18440 arch14 for unknown CPU models.
18441 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
18442 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
18443 (s390_get_sched_attrmask): Likewise.
18444 (s390_get_unit_mask): Likewise.
18445 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
18446 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
18447 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
18448 (TARGET_NNPA_P): New macro definitions.
18449 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
18450 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
18452 2021-03-02 Jakub Jelinek <jakub@redhat.com>
18454 PR middle-end/95757
18455 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
18456 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
18457 != 1 comparisons if name is lhs of a comparison.
18459 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
18463 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
18464 * config/darwin.c (darwin_should_restore_cfa_state): New.
18465 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
18466 * doc/tm.texi: Regenerated.
18467 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
18468 * dwarf2cfi.c (connect_traces): If the target requests, restore
18469 the CFA expression after a DW_CFA_restore.
18470 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
18472 2021-03-01 Martin Liska <mliska@suse.cz>
18475 * optc-save-gen.awk: Add 4 more exceptions.
18477 2021-03-01 Nathan Sidwell <nathan@acm.org>
18480 * tree.h (TYPE_ALIGN_RAW): New accessor.
18481 (TYPE_ALIGN): Use it.
18483 2021-03-01 Jan Hubicka <jh@suse.cz>
18486 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
18488 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
18491 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
18492 point the hard frame pointer to the SSE register save area instead
18493 of the general register save area. Perform only minimal adjustment
18494 for small frames if it is initially not correctly aligned.
18495 (ix86_expand_prologue): Remove early saves for a SEH target.
18496 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
18498 2021-02-28 Jakub Jelinek <jakub@redhat.com>
18501 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
18502 typo - referneced -> referenced.
18503 * tree.c (component_ref_size): Fix comment typo -
18504 refernce -> reference.
18505 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
18506 traling -> trailing.
18507 (aliasing_component_refs_p): Fix comment typos -
18508 refernce -> reference and refernece -> reference and
18509 traling -> trailing.
18510 (nonoverlapping_refs_since_match_p): Fix comment typo -
18511 referneces -> references.
18512 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
18513 referneces -> references.
18515 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
18517 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
18518 diagnostic message to avoid use of a contraction and format
18521 2021-02-27 Jakub Jelinek <jakub@redhat.com>
18524 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
18525 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
18526 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
18527 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
18530 2021-02-26 Richard Biener <rguenther@suse.de>
18532 PR middle-end/99281
18533 * expr.c (store_field): For calls with return-slot optimization
18534 and addressable return type expand the store directly.
18536 2021-02-26 Richard Biener <rguenther@suse.de>
18539 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
18541 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
18544 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
18547 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
18549 * config.gcc: Add rs6000-pcrel-opt.o.
18550 * config/rs6000/rs6000-pcrel-opt.c: New file.
18551 * config/rs6000/pcrel-opt.md: New file.
18552 * config/rs6000/predicates.md: Add d_form_memory predicate.
18553 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
18554 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
18555 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
18556 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
18557 and make_pass_pcrel_opt().
18558 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
18559 (rs6000_option_override_internal): Add pcrel-opt.
18560 (rs6000_delegitimize_address): Support pcrel-opt.
18561 (rs6000_opt_masks): Add pcrel-opt.
18562 (pcrel_opt_valid_mem_p): New function.
18563 (reg_to_non_prefixed): Make global.
18564 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
18565 (output_pcrel_opt_reloc): New function.
18566 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
18567 (pcrel_extern_addr): Set loads_extern_addr.
18568 Add include for pcrel-opt.md.
18569 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
18570 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
18573 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
18576 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
18577 If TARGET_64BIT and dest is SUBREG, we check the width, if it
18578 equal to SImode, we use SImode operation, just like what we are
18581 2021-02-26 Marek Polacek <polacek@redhat.com>
18583 * builtins.c (warn_for_access): Fix typos.
18585 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
18587 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
18588 mark in front of the immediate quantity.
18589 (<optab>_rolsi3_uxtw): Likewise.
18591 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
18594 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
18595 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
18596 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
18597 address and disable when the FPCXT is not available.
18598 (nonsecure_call_value_reg_thumb2): Likewise.
18600 2021-02-25 Nathan Sidwell <nathan@acm.org>
18603 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
18605 2021-02-25 Tamar Christina <tamar.christina@arm.com>
18607 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
18609 2021-02-25 Richard Biener <rguenther@suse.de>
18611 PR tree-optimization/99253
18612 * tree-vect-loop.c (check_reduction_path): First compute
18613 code, then verify out-of-loop uses.
18615 2021-02-25 Jakub Jelinek <jakub@redhat.com>
18618 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
18620 2021-02-25 Jakub Jelinek <jakub@redhat.com>
18622 PR tree-optimization/80635
18623 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
18624 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
18625 has mode precision.
18627 2021-02-25 Richard Biener <rguenther@suse.de>
18629 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
18630 load_map population.
18631 (vect_match_slp_patterns_2): Revert part of last change.
18632 (vect_analyze_slp): Do not interleave optimize_load_redistribution
18633 with pattern detection but do it afterwards. Dump the
18634 whole SLP graph after pattern recognition and load
18635 redistribution optimization finished.
18637 2021-02-24 Jakub Jelinek <jakub@redhat.com>
18640 * omp-low.c (struct omp_context): Add teams_nested_p and
18641 nonteams_nested_p members.
18642 (scan_omp_target): Diagnose teams nested inside of target with other
18643 directives strictly nested inside of the same target.
18644 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
18645 ctx->nonteams_nested_p as needed.
18647 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
18649 PR inline-asm/99123
18650 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
18652 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
18654 * config/cris/cris.c (cris_expand_prologue): Set
18655 current_function_static_stack_size, if flag_stack_usage_info.
18657 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
18659 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
18660 (rs6000_final_prescan_insn): Adjust.
18661 (rs6000_asm_output_opcode): Likewise.
18663 2021-02-24 Martin Sebor <msebor@redhat.com>
18665 PR middle-end/97172
18666 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
18667 from function arguments.
18669 2021-02-24 Tamar Christina <tamar.christina@arm.com>
18671 PR tree-optimization/99220
18672 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
18673 node from cache when it's about to be deleted.
18675 2021-02-24 Jakub Jelinek <jakub@redhat.com>
18677 PR tree-optimization/99225
18678 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
18679 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
18680 build_int_cst (..., 1). Formatting fixes.
18682 2021-02-24 Tamar Christina <tamar.christina@arm.com>
18684 PR tree-optimization/99149
18685 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
18687 (vect_slp_reset_pattern): Remove.
18688 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
18689 (complex_mul_pattern::build, complex_fma_pattern::build,
18690 complex_fms_pattern::build): Fix ref counts.
18691 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
18692 when node is being deleted.
18693 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
18694 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
18696 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
18698 2021-02-24 Matthias Klose <doko@ubuntu.com>
18701 2020-12-07 Matthias Klose <doko@ubuntu.com>
18703 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
18704 and ENABLE_RTL_FLAG_CHECKING.
18706 2021-02-24 Richard Biener <rguenther@suse.de>
18709 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
18711 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
18713 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
18714 (vsx_assemble_pair): ...to this.
18715 (*mma_assemble_pair): Rename from this...
18716 (*vsx_assemble_pair): ...to this.
18717 (mma_disassemble_pair): Rename from this...
18718 (vsx_disassemble_pair): ...to this.
18719 (*mma_disassemble_pair): Rename from this...
18720 (*vsx_disassemble_pair): ...to this.
18721 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
18722 BU_COMPAT): New macros.
18723 (mma_assemble_pair): Rename from this...
18724 (vsx_assemble_pair): ...to this.
18725 (mma_disassemble_pair): Rename from this...
18726 (vsx_disassemble_pair): ...to this.
18727 (mma_assemble_pair): New compatibility built-in.
18728 (mma_disassemble_pair): Likewise.
18729 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
18730 (RS6000_BUILTIN_COMPAT): Define.
18731 (bdesc_compat): New.
18732 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
18733 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
18734 and VSX_BUILTIN_ASSEMBLE_PAIR.
18735 (rs6000_init_builtins): Register compatibility built-ins.
18736 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
18737 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
18738 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
18739 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
18740 (__builtin_vsx_assemble_pair): ...to this.
18741 (__builtin_mma_disassemble_pair): Rename from this...
18742 (__builtin_vsx_disassemble_pair): ...to this.
18744 2021-02-23 Martin Liska <mliska@suse.cz>
18747 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
18748 with different alignment. That leads to an invalid red zone
18749 size allocated in runtime.
18751 2021-02-23 Jakub Jelinek <jakub@redhat.com>
18753 PR tree-optimization/99204
18754 * fold-const.c (fold_read_from_constant_string): Check that
18755 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
18757 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
18758 Kewen Lin <linkw@gcc.gnu.org>
18760 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
18761 (rotl<mode>3_insert_3): ...this.
18762 (plus_ior_xor): New code_iterator.
18763 (define_split for GPR rl*imi): New splitter.
18764 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
18765 for integer merging.
18767 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18769 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
18771 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
18772 into a register when the above is enabled.
18773 * config/aarch64/aarch64.c (neoversev1_tunings):
18774 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
18775 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
18777 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
18779 * config/cris/cris.c (cris_print_operand) <'T'>: Change
18780 valid operand from is now an addi mult-value to shift-value.
18781 * config/cris/cris.md (*addi): Change expression of scaled
18782 operand from mult to ashift.
18783 * config/cris/cris.md (*addi_reload): New insn_and_split.
18785 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
18788 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
18789 hook_bool_const_tree_hwi_hwi_const_tree_true.
18790 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
18792 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
18794 PR rtl-optimization/98791
18795 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
18796 for unordered modes.
18798 2021-02-22 Martin Liska <mliska@suse.cz>
18800 * tree-inline.c (inline_forbidden_p): Set
18801 inline_forbidden_reason.
18803 2021-02-22 Richard Biener <rguenther@suse.de>
18805 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
18808 2021-02-22 Richard Biener <rguenther@suse.de>
18810 PR tree-optimization/99165
18811 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
18812 Accumulate changed to ret.
18814 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
18817 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
18819 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
18821 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
18824 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
18826 (trunctf<DFP_ALL:mode>2): Likewise.
18827 (trunctdtf2_vr): Likewise.
18828 (trunctdtf2): Likewise.
18829 (extend<DFP_ALL:mode>tf2_vr): Likewise.
18830 (extend<DFP_ALL:mode>tf2): Likewise.
18831 (extendtftd2_vr): Likewise.
18832 (extendtftd2): Likewise.
18834 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
18836 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
18837 add memory alternative.
18838 (tf_to_fprx2): New pattern.
18840 2021-02-19 Martin Sebor <msebor@redhat.com>
18843 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
18844 (attr_access::free_lang_data): Remove a spurious test.
18846 2021-02-19 Nathan Sidwell <nathan@acm.org>
18848 * doc/invoke.texi (flang-info-module-read): Document.
18850 2021-02-19 Martin Liska <mliska@suse.cz>
18852 PR translation/99167
18853 * params.opt: Fix typo.
18855 2021-02-19 Richard Biener <rguenther@suse.de>
18857 PR middle-end/99122
18858 * tree-inline.c (inline_forbidden_p): Do not inline functions
18859 with VLA arguments or return value.
18861 2021-02-19 Jakub Jelinek <jakub@redhat.com>
18864 * config/arm/arm.md (*stack_protect_combined_set_insn,
18865 *stack_protect_combined_test_insn): If force_const_mem result
18866 is not valid general operand, force its address into the destination
18869 2021-02-19 Jakub Jelinek <jakub@redhat.com>
18872 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
18873 pad or non-local label, put FORCED_LABELs from bb b after that label
18874 rather than before it.
18876 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
18879 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
18880 expand_vector_broadcast' to emit the vec_duplicate operand.
18882 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
18884 PR rtl-optimization/96264
18885 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
18888 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
18891 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
18892 looking up the retain attribute.
18893 (resolve_unique_section): Likewise.
18894 (get_variable_section): Likewise.
18895 (switch_to_section): Likewise. Warn when a symbol without the
18896 retain attribute and a symbol with the retain attribute are
18897 placed in the section with the same name, instead of the used
18899 * doc/extend.texi: Document the "retain" attribute.
18901 2021-02-18 Nathan Sidwell <nathan@acm.org>
18904 * doc/invoke.texi (flang-info-include-translate): Document header
18907 2021-02-18 Richard Biener <rguenther@suse.de>
18909 PR middle-end/99122
18910 * ipa-fnsummary.c (analyze_function_body): Set
18911 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
18912 * tree-inline.c (insert_init_debug_bind): Pass NULL for
18913 error_mark_node values.
18914 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
18916 (setup_one_parameter): Delay force_value_to_type until when
18919 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
18921 PR tree-optimization/99142
18922 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
18924 2021-02-18 Jakub Jelinek <jakub@redhat.com>
18926 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
18927 wide_int_bitmask::wide_int_bitmask (uint64_t),
18928 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
18929 wide_int_bitmask::operator ~ () const,
18930 wide_int_bitmask::operator | (wide_int_bitmask) const,
18931 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
18933 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
18934 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
18935 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
18936 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
18937 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
18938 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
18939 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
18940 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
18941 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
18942 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
18943 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
18944 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
18945 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
18946 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
18947 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
18948 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
18949 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
18950 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
18951 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
18952 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
18953 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
18954 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
18955 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
18956 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
18958 2021-02-18 Jakub Jelinek <jakub@redhat.com>
18960 PR middle-end/99109
18961 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
18962 (build_printable_array_type): ... this. Add nelts argument. For
18963 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
18964 nelts, call build_array_type_nelts.
18965 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
18966 instead of build_zero_elt_array_type and build_array_type_nelts.
18968 2021-02-18 Jakub Jelinek <jakub@redhat.com>
18971 * config/i386/i386.c (distance_non_agu_define): Don't call
18972 extract_insn_cached here.
18973 (ix86_lea_outperforms): Save and restore recog_data around call
18974 to distance_non_agu_define and distance_agu_use.
18975 (ix86_ok_to_clobber_flags): Remove.
18976 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
18977 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
18978 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
18979 into define_insn. Move the splitting to define_peephole2 and
18980 check there using peep2_regno_dead_p if FLAGS_REG is dead.
18982 2021-02-17 Julian Brown <julian@codesourcery.com>
18984 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
18987 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
18990 * config/mips/mips.c (mips_symbol_insns): Do not use
18991 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
18993 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
18995 PR inline-asm/98096
18996 * stmt.c (resolve_operand_name_1): Take inout operands into account
18997 for access to labels by names.
18998 * doc/extend.texi: Describe counting operands for accessing labels.
19000 2021-02-16 Richard Biener <rguenther@suse.de>
19002 PR tree-optimization/38474
19003 * tree-ssa-structalias.c (variable_info::address_taken): New.
19004 (new_var_info): Initialize address_taken.
19005 (process_constraint): Set address_taken.
19006 (solve_constraints): Use the new address_taken flag rather
19007 than is_reg_var for sorting variables.
19008 (dump_constraint): Dump the variable number if the name
19011 2021-02-16 Jakub Jelinek <jakub@redhat.com>
19014 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
19015 multiply by 4096 and for inbranch by 8192.
19016 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
19017 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
19019 2021-02-15 Maya Rashish <coypu@sdf.org>
19021 * config/aarch64/aarch64.c (aarch64_init_builtins):
19022 Call SUBTARGET_INIT_BUILTINS.
19024 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
19026 PR rtl-optimization/98872
19027 * init-regs.c (initialize_uninitialized_regs): Skip initialization
19028 if CONST0_RTX is NULL.
19030 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
19032 PR rtl-optimization/98863
19033 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
19034 (function_info::build_info): Turn into a declaration, moving the
19035 definition to internals.h.
19036 (function_info::bb_walker): Declare.
19037 (function_info::create_reg_use): Likewise.
19038 (function_info::calculate_potential_phi_regs): Take a build_info
19040 (function_info::place_phis, function_info::create_ebbs): Declare.
19041 (function_info::calculate_ebb_live_in_for_debug): Likewise.
19042 (function_info::populate_backedge_phis): Delete.
19043 (function_info::start_block, function_info::end_block): Declare.
19044 (function_info::populate_phi_inputs): Delete.
19045 (function_info::m_potential_phi_regs): Move information to build_info.
19046 * rtl-ssa/internals.h: New file.
19047 (function_info::bb_phi_info): New class.
19048 (function_info::build_info): Moved from functions.h.
19049 Add a constructor and destructor.
19050 (function_info::build_info::ebb_use): Delete.
19051 (function_info::build_info::ebb_def): Likewise.
19052 (function_info::build_info::bb_live_out): Likewise.
19053 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
19054 (function_info::build_info::potential_phi_regs): Likewise.
19055 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
19056 (function_info::build_info::ebb_def_regs): Likewise.
19057 (function_info::build_info::bb_phis): Likewise.
19058 (function_info::build_info::bb_mem_live_out): Likewise.
19059 (function_info::build_info::bb_to_rpo): Likewise.
19060 (function_info::build_info::def_stack): Likewise.
19061 (function_info::build_info::old_def_stack_limit): Likewise.
19062 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
19063 Remove the regno argument. Push the previous definition onto the
19064 definition stack where necessary.
19065 * rtl-ssa/accesses.cc: Include internals.h.
19066 * rtl-ssa/changes.cc: Likewise.
19067 * rtl-ssa/blocks.cc: Likewise.
19068 (function_info::build_info::build_info): Define.
19069 (function_info::build_info::~build_info): Likewise.
19070 (function_info::bb_walker): New class.
19071 (function_info::bb_walker::bb_walker): Define.
19072 (function_info::add_live_out_use): Convert a logarithmic-complexity
19073 test into a linear one. Allow the same definition to be passed
19075 (function_info::calculate_potential_phi_regs): Moved from
19076 functions.cc. Take a build_info parameter and store the
19077 information there instead.
19078 (function_info::place_phis): New function.
19079 (function_info::add_entry_block_defs): Update call to record_reg_def.
19080 (function_info::calculate_ebb_live_in_for_debug): New function.
19081 (function_info::add_phi_nodes): Use bb_phis to decide which
19082 registers need phi nodes and initialize ebb_def_regs accordingly.
19083 Do not add degenerate phis here.
19084 (function_info::add_artificial_accesses): Use create_reg_use.
19085 Assert that all definitions are listed in the DF LR sets.
19086 Update call to record_reg_def.
19087 (function_info::record_block_live_out): Record live-out register
19088 values in the phis of successor blocks. Use the live-out set
19089 when processing the last block in an EBB, instead of always
19090 using the live-in sets of successor blocks. AND the live sets
19091 with the set of registers that have been defined in the EBB,
19092 rather than with all potential phi registers. Cope correctly
19093 with branches back to the start of the current EBB.
19094 (function_info::start_block): New function.
19095 (function_info::end_block): Likewise.
19096 (function_info::populate_phi_inputs): Likewise.
19097 (function_info::create_ebbs): Likewise.
19098 (function_info::process_all_blocks): Rewrite into a multi-phase
19100 * rtl-ssa/functions.cc: Include internals.h.
19101 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
19102 (function_info::init_function_data): Remove caller.
19103 * rtl-ssa/insns.cc: Include internals.h
19104 (function_info::create_reg_use): New function. Lazily any
19105 degenerate phis needed by the linear RPO view.
19106 (function_info::record_use): Use create_reg_use. When processing
19107 debug uses, use potential_phi_regs and test it before checking
19108 whether the register is live on entry to the current EBB. Lazily
19109 calculate ebb_live_in_for_debug.
19110 (function_info::record_call_clobbers): Update call to record_reg_def.
19111 (function_info::record_def): Likewise.
19113 2021-02-15 Martin Liska <mliska@suse.cz>
19115 * toplev.c (init_asm_output): Free output of
19116 gen_command_line_string function.
19117 (process_options): Likewise.
19119 2021-02-15 Martin Liska <mliska@suse.cz>
19121 * params.opt: Add 2 missing Param keywords.
19123 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
19125 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
19127 2021-02-15 Jakub Jelinek <jakub@redhat.com>
19129 PR tree-optimization/99079
19130 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
19131 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
19132 require both type and TREE_TYPE (@1) to be integral types and either
19133 type having smaller or equal precision, or TREE_TYPE (@1) being
19134 unsigned type, or type being signed type. If TREE_TYPE (@1)
19135 doesn't have wrapping overflow, perform the subtraction of one in
19138 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
19139 Richard Biener <rguether@suse.de>
19142 * ipa-reference.c (ipa_init): Only conditinally initialize
19143 reference_vars_to_consider.
19144 (propagate): Conditionally deninitialize reference_vars_to_consider.
19145 (ipa_reference_write_optimization_summary): Sanity check that
19146 reference_vars_to_consider is not allocated.
19148 2021-02-13 Levy Hsu <admin@levyhsu.com>
19151 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
19152 extend parameter to get_si_mem_base_reg declaration.
19153 (get_si_mem_base_reg): Add extend parameter. Set it.
19154 (analyze): Pass extend arg to get_si_mem_base_reg.
19155 (transform): Likewise. Use it when rewriting mems.
19156 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
19157 loads and emit sign/zero extending load followed by subreg move.
19159 2021-02-13 Jim Wilson <jimw@sifive.com>
19162 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
19163 exit when !reload_completed. Only perform check for compressed reg
19164 if reload_completed.
19165 (riscv_rtx_costs): In MEM case, when optimizing for size and
19166 shorten memrefs, if not compressible, then increase cost.
19168 2021-02-13 Jakub Jelinek <jakub@redhat.com>
19170 PR rtl-optimization/98439
19171 * recog.c (pass_split_before_regstack::gate): Enable even when
19172 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
19175 2021-02-13 Jakub Jelinek <jakub@redhat.com>
19178 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
19179 swap of V2SImode elements in memory into DImode memory rotate by 32.
19181 2021-02-12 Martin Sebor <msebor@redhat.com>
19183 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
19185 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
19187 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
19188 m_temp_obstack rather than m_obstack to allocate the temporary use.
19190 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
19192 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
19193 as read-modify operations.
19195 2021-02-12 Richard Biener <rguenther@suse.de>
19197 PR middle-end/38474
19198 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
19199 fbi->aa_walk_budget is bigger than zero. Update
19200 fbi->aa_walk_budget.
19201 (param_change_prob): Likewise.
19202 * ipa-prop.c (detect_type_change_from_memory_writes):
19203 Properly account walk_aliased_vdefs.
19204 (parm_preserved_before_stmt_p): Canonicalize updates.
19205 (parm_ref_data_preserved_p): Likewise.
19206 (parm_ref_data_pass_through_p): Likewise.
19207 (determine_known_aggregate_parts): Account own alias queries.
19209 2021-02-12 Martin Liska <mliska@suse.cz>
19211 * opts-common.c (decode_cmdline_option): Release werror_arg.
19212 * opts.c (gen_producer_string): Release output of
19213 gen_command_line_string.
19215 2021-02-12 Richard Biener <rguenther@suse.de>
19217 PR tree-optimization/38474
19218 * params.opt (-param=max-store-chains-to-track=): New param.
19219 (-param=max-stores-to-track=): Likewise.
19220 * doc/invoke.texi (max-store-chains-to-track): Document.
19221 (max-stores-to-track): Likewise.
19222 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
19224 (pass_store_merging::m_n_stores): Likewise.
19225 (pass_store_merging::terminate_and_process_chain): Update
19226 m_n_stores and m_n_chains.
19227 (pass_store_merging::process_store): Likewise. Terminate
19228 oldest chains if the number of stores or chains get too large.
19229 (imm_store_chain_info::terminate_and_process_chain): Dump
19232 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
19234 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
19235 the cold section, emit a nop before the directive if the previous
19236 active instruction can throw.
19238 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
19241 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
19242 memory addresses that are legal for quad word accesses.
19244 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
19247 * config/arm/thumb2.md (*doloop_end_internal): Generate
19248 alternative sequence to handle long range branches.
19250 2021-02-11 Joel Hutton <joel.hutton@arm.com>
19252 PR tree-optimization/98772
19253 * optabs-tree.c (supportable_half_widening_operation): New function
19254 to check for supportable V8QI->V8HI widening patterns.
19255 * optabs-tree.h (supportable_half_widening_operation): New function.
19256 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
19257 to create promotion stmts for V8QI->V8HI widening patterns.
19258 (vectorizable_conversion): Add case for V8QI->V8HI.
19260 2021-02-11 Richard Biener <rguenther@suse.de>
19262 * sparseset.h (SPARSESET_ELT_BITS): Remove.
19263 (SPARSESET_ELT_TYPE): Use unsigned int.
19264 * fwprop.c: Do not include sparseset.h.
19266 2021-02-10 Jakub Jelinek <jakub@redhat.com>
19269 * varasm.c (declare_weak): For -fsyntax-only, allow even
19270 TREE_ASM_WRITTEN function decls.
19272 2021-02-10 Jakub Jelinek <jakub@redhat.com>
19275 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
19276 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
19277 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
19278 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
19279 calling simplify_gen_subreg on it.
19281 2021-02-10 Martin Liska <mliska@suse.cz>
19283 * config/nvptx/nvptx.c (nvptx_option_override): Use
19284 flag_patchable_function_entry instead of the removed
19285 function_entry_patch_area_size.
19287 2021-02-10 Martin Liska <mliska@suse.cz>
19289 PR tree-optimization/99002
19290 PR tree-optimization/99026
19291 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
19292 leak when adjacent cases are merged.
19293 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
19295 (make_pass_lower_switch): Remove trailing whitespace.
19296 * tree-switch-conversion.h (release_clusters): New.
19298 2021-02-10 Richard Biener <rguenther@suse.de>
19300 PR rtl-optimization/99054
19301 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
19302 (fixup_partitions): Adjust.
19303 (rtl_verify_edges): Likewise.
19305 2021-02-10 Jakub Jelinek <jakub@redhat.com>
19307 PR middle-end/99007
19308 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
19309 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
19312 2021-02-10 Richard Biener <rguenther@suse.de>
19315 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
19318 2021-02-10 Richard Biener <rguenther@suse.de>
19320 PR tree-optimization/99024
19321 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
19322 clear loop->aux if it is associated with the destroyed loop_vinfo.
19324 2021-02-10 Martin Liska <mliska@suse.cz>
19326 PR tree-optimization/99002
19327 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
19330 2021-02-10 Martin Liska <mliska@suse.cz>
19333 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
19334 a reference exists.
19336 2021-02-10 Jakub Jelinek <jakub@redhat.com>
19339 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
19340 at class scope for DWARF5+.
19342 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
19344 PR rtl-optimization/96015
19345 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
19346 (relax_delay_slots): When deleting a jump to the next active
19347 instruction over a barrier, first delete the barrier if the
19348 jump is the only way to reach the target label.
19350 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
19352 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
19353 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
19354 vector multiplies and vect.alu for SSRA.
19355 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
19356 vect.mul cost field.
19357 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
19358 * config/arm/arm.c: Likewise.
19360 2021-02-09 Richard Biener <rguenther@suse.de>
19362 PR tree-optimization/98863
19363 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
19364 * tree-ssa-sccvn.c (last_pushed_avail): New global.
19365 (rpo_elim::eliminate_push_avail): Chain pushed avails.
19366 (unwind_state::avail_top): Add.
19367 (do_unwind): Rewrite unwinding of avail entries.
19368 (do_rpo_vn): Initialize last_pushed_avail and
19369 avail_top of the undo state.
19371 2021-02-09 Jakub Jelinek <jakub@redhat.com>
19373 PR middle-end/99004
19374 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
19375 const char * to char * and free those pointers after use.
19377 2021-02-09 Richard Biener <rguenther@suse.de>
19379 PR tree-optimization/99017
19380 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
19381 zero vector cost entries.
19383 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
19385 PR middle-end/98974
19386 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
19387 parameter in vectorizable_condition.
19389 2021-02-08 Richard Biener <rguenther@suse.de>
19392 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
19394 2021-02-08 Martin Liska <mliska@suse.cz>
19397 * cfgexpand.c (pass_expand::execute): Parse per-function option
19398 flag_patchable_function_entry and use it.
19399 * common.opt: Remove function_entry_patch_area_size and
19400 function_entry_patch_area_start global variables.
19401 * opts.c (parse_and_check_patch_area): New function.
19402 (common_handle_option): Use it.
19403 * opts.h (parse_and_check_patch_area): New function.
19404 * toplev.c (process_options): Parse and use
19405 function_entry_patch_area_size.
19407 2021-02-08 Martin Sebor <msebor@redhat.com>
19409 * doc/extend.texi (attribute malloc): Correct typos.
19411 2021-02-05 Nathan Sidwell <nathan@acm.org>
19414 * gcc.c (driver::maybe_run_linker): Check for input file
19415 accessibility if not linking.
19417 2021-02-05 Richard Biener <rguenther@suse.de>
19419 PR tree-optimization/98855
19420 * tree-vectorizer.h (add_stmt_cost): New overload.
19421 * tree-vect-slp.c (li_cost_vec_cmp): New.
19422 (vect_bb_slp_scalar_cost): Cost individual loop regions
19423 separately. Account for the scalar instance root stmt.
19425 2021-02-05 Tom de Vries <tdevries@suse.de>
19428 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
19430 (bit_test_cluster::emit): Reuse location_t for newly created
19432 (switch_decision_tree::try_switch_expansion): Preserve
19434 * tree-switch-conversion.h: Change function signatures.
19436 2021-02-05 Jakub Jelinek <jakub@redhat.com>
19439 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
19440 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
19441 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
19442 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
19444 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19446 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
19447 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
19448 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
19449 (vget_high_f16): Reimplement using new builtin.
19450 (vget_high_f32): Likewise.
19451 (vget_high_f64): Likewise.
19452 (vget_high_p8): Likewise.
19453 (vget_high_p16): Likewise.
19454 (vget_high_p64): Likewise.
19455 (vget_high_s8): Likewise.
19456 (vget_high_s16): Likewise.
19457 (vget_high_s32): Likewise.
19458 (vget_high_s64): Likewise.
19459 (vget_high_u8): Likewise.
19460 (vget_high_u16): Likewise.
19461 (vget_high_u32): Likewise.
19462 (vget_high_u64): Likewise.
19464 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19466 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
19467 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
19468 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
19469 (vget_low_f16): Reimplement using new builtin.
19470 (vget_low_f32): Likewise.
19471 (vget_low_f64): Likewise.
19472 (vget_low_p8): Likewise.
19473 (vget_low_p16): Likewise.
19474 (vget_low_p64): Likewise.
19475 (vget_low_s8): Likewise.
19476 (vget_low_s16): Likewise.
19477 (vget_low_s32): Likewise.
19478 (vget_low_s64): Likewise.
19479 (vget_low_u8): Likewise.
19480 (vget_low_u16): Likewise.
19481 (vget_low_u32): Likewise.
19482 (vget_low_u64): Likewise.
19484 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
19486 * gcc.c (print_multilib_info): Check all required argument is provided
19489 2021-02-05 liuhongt <hongtao.liu@intel.com>
19492 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
19493 generate integer mask comparison for 128/256-bits vector when
19494 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
19495 delete redundant !maskcmp condition.
19496 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
19498 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
19499 condition directly to if (maskcmp), add extra check for
19500 cmpmode, it should be MODE_INT.
19501 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
19502 parameters op_true/op_false.
19503 (ix86_use_mask_cmp_p): New.
19505 2021-02-05 liuhongt <hongtao.liu@intel.com>
19508 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
19509 Remove m_GENERIC from ~list.
19510 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
19512 2021-02-04 David Malcolm <dmalcolm@redhat.com>
19515 * diagnostic-show-locus.c (compatible_locations_p): Require
19516 locations in the same macro map to be either both from the
19517 macro definition, or both from the macro arguments.
19519 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
19521 * config/aarch64/aarch64-simd-builtins.def: Add
19522 [su]mull_hi_lane[q] builtin generator macros.
19523 * config/aarch64/aarch64-simd.md
19524 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
19525 (aarch64_<su>mull_hi_lane<mode>): Define.
19526 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
19527 (aarch64_<su>mull_hi_laneq<mode>): Define.
19528 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
19529 builtin instead of inline asm.
19530 (vmull_high_lane_s32): Likewise.
19531 (vmull_high_lane_u16): Likewise.
19532 (vmull_high_lane_u32): Likewise.
19533 (vmull_high_laneq_s16): Likewise.
19534 (vmull_high_laneq_s32): Likewise.
19535 (vmull_high_laneq_u16): Likewise.
19536 (vmull_high_laneq_u32): Liekwise.
19538 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
19540 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
19541 builtin generator macros.
19542 * config/aarch64/aarch64-simd.md
19543 (aarch64_<su>mull_hi_n<mode>_insn): Define.
19544 (aarch64_<su>mull_hi_n<mode>): Define.
19545 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
19546 instead of inline asm.
19547 (vmull_high_n_s32): Likewise.
19548 (vmull_high_n_u16): Likewise.
19549 (vmull_high_n_u32): Likewise.
19551 2021-02-04 Richard Biener <rguenther@suse.de>
19553 PR tree-optimization/98855
19554 * tree-vect-loop.c (vectorizable_phi): Do not cost
19555 single-argument PHIs.
19556 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
19557 * tree-vect-stmts.c (vectorizable_bswap): Also perform
19558 costing for SLP operation.
19560 2021-02-04 Martin Liska <mliska@suse.cz>
19562 * doc/extend.texi: Mention -mprefer-vector-width in target
19565 2021-02-03 Martin Sebor <msebor@redhat.com>
19567 PR tree-optimization/98937
19568 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
19569 Flush pointer_query cache.
19571 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19573 * config/rs6000/genfusion.pl (gen_2logical): Add missing
19574 fixes based on patch review.
19575 * config/rs6000/fusion.md: Regenerate file.
19577 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19579 * config/rs6000/t-rs6000: Comment out auto generation of
19582 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
19584 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
19585 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
19586 (output_file_start): Add gfx908.
19587 * config/gcn/gcn.opt (gpu_type): Add gfx908.
19588 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
19589 (MULTILIB_DIRNAMES): Add gfx908.
19590 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
19591 (main): Recognize gfx908.
19592 * config/gcn/t-omp-device: Add gfx908.
19594 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
19596 * config/aarch64/aarch64-simd-builtins.def: Add
19597 [su]mlsl_hi_lane[q] builtin macro generators.
19598 * config/aarch64/aarch64-simd.md
19599 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
19600 (aarch64_<su>mlsl_hi_lane<mode>): Define.
19601 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
19602 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
19603 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
19604 builtin instead of inline asm.
19605 (vmlsl_high_lane_s32): Likewise.
19606 (vmlsl_high_lane_u16): Likewise.
19607 (vmlsl_high_lane_u32): Likewise.
19608 (vmlsl_high_laneq_s16): Likewise.
19609 (vmlsl_high_laneq_s32): Likewise.
19610 (vmlsl_high_laneq_u16): Likewise.
19611 (vmlsl_high_laneq_u32): Likewise.
19612 (vmlal_high_laneq_u32): Likewise.
19614 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
19616 * config/aarch64/aarch64-simd-builtins.def: Add
19617 [su]mlal_hi_lane[q] builtin generator macros.
19618 * config/aarch64/aarch64-simd.md
19619 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
19620 (aarch64_<su>mlal_hi_lane<mode>): Define.
19621 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
19622 (aarch64_<su>mlal_hi_laneq<mode>): Define.
19623 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
19624 builtin instead of inline asm.
19625 (vmlal_high_lane_s32): Likewise.
19626 (vmlal_high_lane_u16): Likewise.
19627 (vmlal_high_lane_u32): Likewise.
19628 (vmlal_high_laneq_s16): Likewise.
19629 (vmlal_high_laneq_s32): Likewise.
19630 (vmlal_high_laneq_u16): Likewise.
19631 (vmlal_high_laneq_u32): Likewise.
19633 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
19635 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
19636 builtin generator macros.
19637 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
19639 (aarch64_<su>mlsl_hi_n<mode>): Define.
19640 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
19641 instead of inline asm.
19642 (vmlsl_high_n_s32): Likewise.
19643 (vmlsl_high_n_u16): Likewise.
19644 (vmlsl_high_n_u32): Likewise.
19646 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
19648 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
19649 builtin generator macros.
19650 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
19652 (aarch64_<su>mlal_hi_n<mode>): Define.
19653 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
19654 instead of inline asm.
19655 (vmlal_high_n_s32): Likewise.
19656 (vmlal_high_n_u16): Likewise.
19657 (vmlal_high_n_u32): Likewise.
19659 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
19661 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
19663 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
19665 (aarch64_<su>mlal_hi<mode>_insn): This.
19666 (aarch64_<su>mlal_hi<mode>): Define.
19667 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
19668 instead of inline asm.
19669 (vmlal_high_s16): Likewise.
19670 (vmlal_high_s32): Likewise.
19671 (vmlal_high_u8): Likewise.
19672 (vmlal_high_u16): Likewise.
19673 (vmlal_high_u32): Likewise.
19675 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
19677 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
19678 after calling alter_subreg() on a (mem).
19680 2021-02-03 Martin Liska <mliska@suse.cz>
19683 * lto-streamer-out.c (produce_lto_section): Fill up missing
19685 * lto-streamer.h (struct lto_section): Add _padding field.
19687 2021-02-03 Richard Biener <rguenther@suse.de>
19689 * lto-streamer.c (lto_get_section_name): Free temporary
19691 * tree-loop-distribution.c
19692 (loop_distribution::merge_dep_scc_partitions): Free edge data.
19694 2021-02-03 Jakub Jelinek <jakub@redhat.com>
19696 PR middle-end/97487
19697 * ifcvt.c (noce_can_force_operand): New function.
19698 (noce_emit_move_insn): Use it.
19699 (noce_try_sign_mask): Likewise. Formatting fix.
19701 2021-02-03 Jakub Jelinek <jakub@redhat.com>
19703 PR middle-end/97971
19704 * lra-constraints.c (process_alt_operands): For inline asm, don't call
19705 fatal_insn, but instead return false.
19707 2021-02-03 Jakub Jelinek <jakub@redhat.com>
19709 PR tree-optimization/98287
19710 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
19713 2021-02-03 Tamar Christina <tamar.christina@arm.com>
19715 PR tree-optimization/98928
19716 * tree-vect-loop.c (vect_analyze_loop_2): Change
19717 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
19718 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
19719 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
19720 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
19722 2021-02-02 Richard Biener <rguenther@suse.de>
19724 * gimple-loop-interchange.cc (prepare_data_references):
19726 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
19727 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
19728 * tree-vect-stmts.c (vectorizable_condition): Do not
19730 (vectorizable_comparison): Likewise.
19732 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19734 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
19735 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
19736 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
19737 (vrsqrteq_u32): Likewise.
19739 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19741 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
19742 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
19743 (aarch64_sqxtun2<mode>_be): Likewise.
19744 (aarch64_sqxtun2<mode>): Likewise.
19745 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
19746 (vqmovun_high_s32): Likewise.
19747 (vqmovun_high_s64): Likewise.
19748 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
19750 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19752 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
19754 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
19756 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19758 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
19759 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19760 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
19761 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
19762 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
19763 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
19764 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
19765 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
19767 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19769 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
19770 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
19771 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
19773 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19775 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
19776 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
19778 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19780 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
19781 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
19782 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
19783 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
19784 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
19785 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
19786 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
19787 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
19788 NONE builtin flags.
19790 2021-02-02 Jakub Jelinek <jakub@redhat.com>
19792 PR tree-optimization/98848
19793 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
19794 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
19796 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
19799 * expr.c: Check mode before calling store_expr.
19801 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
19803 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
19805 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
19806 instruction using expression ior.
19807 (mve_vornq_u<mode>): New expander.
19808 (mve_vornq_f<mode>): Use ior code instead of unspec.
19809 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
19811 2021-02-02 Alexandre Oliva <oliva@adacore.com>
19813 * tree-nested.c (convert_nonlocal_reference_op): Move
19814 current_function_decl restore after re-gimplification.
19815 (convert_local_reference_op): Likewise.
19817 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19819 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
19821 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
19823 (aarch64_rshrn<mode>_insn_be): Likewise.
19824 (aarch64_rshrn<mode>): Likewise.
19825 (aarch64_rshrn2<mode>_insn_le): Likewise.
19826 (aarch64_rshrn2<mode>_insn_be): Likewise.
19827 (aarch64_rshrn2<mode>): Likewise.
19828 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
19829 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
19831 (vrshrn_high_n_s32): Likewise.
19832 (vrshrn_high_n_s64): Likewise.
19833 (vrshrn_high_n_u16): Likewise.
19834 (vrshrn_high_n_u32): Likewise.
19835 (vrshrn_high_n_u64): Likewise.
19836 (vrshrn_n_s16): Likewise.
19837 (vrshrn_n_s32): Likewise.
19838 (vrshrn_n_s64): Likewise.
19839 (vrshrn_n_u16): Likewise.
19840 (vrshrn_n_u32): Likewise.
19841 (vrshrn_n_u64): Likewise.
19843 2021-02-01 Sergei Trofimovich <siarheit@google.com>
19845 PR tree-optimization/98499
19846 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
19847 conservatively and assume all possible side-effects.
19849 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19851 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
19852 vec_unpacku_hi_): Define builtins.
19853 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
19855 (vmovl_high_s16): Likewise.
19856 (vmovl_high_s32): Likewise.
19857 (vmovl_high_u8): Likewise.
19858 (vmovl_high_u16): Likewise.
19859 (vmovl_high_u32): Likewise.
19861 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19863 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
19865 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
19867 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
19869 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
19871 (vabdl_s16): Likewise.
19872 (vabdl_s32): Likewise.
19873 (vabdl_u8): Likewise.
19874 (vabdl_u16): Likewise.
19875 (vabdl_u32): Likewise.
19876 * config/aarch64/iterators.md (ABDL): New int iterator.
19877 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
19879 2021-02-01 Martin Sebor <msebor@redhat.com>
19881 * tree.h (BLOCK_VARS): Add comment.
19882 (BLOCK_SUBBLOCKS): Same.
19883 (BLOCK_SUPERCONTEXT): Same.
19884 (BLOCK_ABSTRACT_ORIGIN): Same.
19885 (inlined_function_outer_scope_p): Same.
19887 2021-02-01 Martin Sebor <msebor@redhat.com>
19889 PR middle-end/97172
19890 * attribs.c (attr_access::free_lang_data): Define new function.
19891 * attribs.h (attr_access::free_lang_data): Declare new function.
19893 2021-02-01 Richard Biener <rguenther@suse.de>
19895 * vec.h (auto_vec::auto_vec): Add memory stat parameters
19897 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
19899 2021-02-01 Tamar Christina <tamar.christina@arm.com>
19901 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
19902 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
19904 2021-02-01 Richard Biener <rguenther@suse.de>
19906 PR rtl-optimization/98863
19907 * config/i386/i386-features.c (convert_scalars_to_vector):
19908 Set DF_RD_PRUNE_DEAD_DEFS.
19910 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
19912 * system.h (SIZE_MAX): Define if not already defined.
19914 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
19916 * config/rs6000/genfusion.pl (gen_2logical): New function to
19917 generate patterns for logical-logical fusion.
19918 * config/rs6000/fusion.md: Regenerated patterns.
19919 * config/rs6000/rs6000-cpus.def: Add
19920 OPTION_MASK_P10_FUSION_2LOGICAL.
19921 * config/rs6000/rs6000.c (rs6000_option_override_internal):
19922 Enable logical-logical fusion for p10.
19923 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
19925 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
19927 * config/rs6000/rs6000.opt: Add periods to new AIX options.
19929 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
19931 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
19932 (mabi=vec-default): New.
19933 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
19934 __EXTABI__ for AIX Vector extended ABI.
19935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
19937 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
19939 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
19941 2021-01-30 Jakub Jelinek <jakub@redhat.com>
19943 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
19944 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
19946 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
19949 * lra-constraints.c (in_class_p): Don't narrow class only for REG
19952 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
19954 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
19955 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
19956 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
19958 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
19960 PR tree-optimization/98866
19961 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
19962 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
19963 (gori_map::m_maybe_invariant): Rename from all_outgoing.
19964 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
19965 (gori_map::is_export_p): Ditto.
19966 (gori_map::calculate_gori): Ditto.
19967 (gori_compute::set_range_invariant): New.
19968 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
19969 invariant for pointers evaluating to [1, +INF].
19971 2021-01-29 Richard Biener <rguenther@suse.de>
19973 PR rtl-optimization/98863
19974 * config/i386/i386-features.c (remove_partial_avx_dependency):
19975 Do not perform DF analysis.
19976 (pass_data_remove_partial_avx_dependency): Remove
19979 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
19981 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
19982 builtin generator macros.
19983 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
19985 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
19986 instead of inline asm.
19987 (vmull_n_s32): Likewise.
19988 (vmull_n_u16): Likewise.
19989 (vmull_n_u32): Likewise.
19991 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19993 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
19995 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
19997 (aarch64_<sur>abdl2<mode>): ... This.
19998 (<sur>sadv16qi): Adjust use of above.
19999 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
20001 (vabdl_high_s16): Likewise.
20002 (vabdl_high_s32): Likewise.
20003 (vabdl_high_u8): Likewise.
20004 (vabdl_high_u16): Likewise.
20005 (vabdl_high_u32): Likewise.
20007 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20009 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
20011 (uabal2): Likewise.
20012 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
20014 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
20016 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
20018 (vabal_high_s16): Likewise.
20019 (vabal_high_s32): Likewise.
20020 (vabal_high_u8): Likewise.
20021 (vabal_high_u16): Likewise.
20022 (vabal_high_u32): Likewise.
20023 * config/aarch64/iterators.md (ABAL2): New mode iterator.
20024 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
20026 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20028 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
20031 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
20033 (aarch64_<sur>abal<mode>): ... This
20034 (<sur>sadv16qi): Adust use of the above.
20035 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
20037 (vabal_s16): Likewise.
20038 (vabal_s32): Likewise.
20039 (vabal_u8): Likewise.
20040 (vabal_u16): Likewise.
20041 (vabal_u32): Likewise.
20043 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20045 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
20047 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
20049 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
20051 (vaddlv_s16): Likewise.
20052 (vaddlv_u8): Likewise.
20053 (vaddlv_u16): Likewise.
20054 (vaddlvq_s8): Likewise.
20055 (vaddlvq_s16): Likewise.
20056 (vaddlvq_s32): Likewise.
20057 (vaddlvq_u8): Likewise.
20058 (vaddlvq_u16): Likewise.
20059 (vaddlvq_u32): Likewise.
20060 (vaddlv_s32): Likewise.
20061 (vaddlv_u32): Likewise.
20062 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
20063 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
20064 (Vwstype): New mode attribute.
20066 (VWIDE_S): Likewise.
20067 (USADDLV): New int iterator.
20068 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
20070 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
20072 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
20073 builtin generator macros.
20074 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
20076 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
20077 instead of inline asm.
20078 (vmlsl_lane_s32): Likewise.
20079 (vmlsl_lane_u16): Likewise.
20080 (vmlsl_lane_u32): Likewise.
20081 (vmlsl_laneq_s16): Likewise.
20082 (vmlsl_laneq_s32): Likewise.
20083 (vmlsl_laneq_u16): Likewise.
20084 (vmlsl_laneq_u32): Likewise.
20086 2021-01-29 Richard Biener <rguenther@suse.de>
20088 * doc/invoke.texi (--param max-gcse-memory): Document unit
20090 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
20091 * params.opt (--param max-gcse-memory): Adjust default and
20092 document unit of size.
20094 2021-01-29 Richard Biener <rguenther@suse.de>
20096 PR rtl-optimization/98863
20097 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
20098 HOST_WIDE_INT for the memory estimate.
20100 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
20101 Richard Biener <rguenther@suse.de>
20103 PR tree-optimization/97627
20104 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
20105 Do not analyze fake edges.
20107 2021-01-29 Richard Biener <rguenther@suse.de>
20109 PR rtl-optimization/98144
20110 * df.h (df_mir_bb_info): Add con_visited member.
20111 * df-problems.c (df_mir_alloc): Initialize con_visited,
20112 do not fully populate IN and OUT.
20113 (df_mir_reset): Likewise.
20114 (df_mir_confluence_0): Set con_visited.
20115 (df_mir_confluence_n): Properly handle implicitely
20116 fully populated IN and OUT as designated by con_visited
20117 and update con_visited accordingly.
20119 2021-01-29 Jakub Jelinek <jakub@redhat.com>
20122 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
20123 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
20124 && !TARGET_REALLY_IWMMXT to conditions.
20126 2021-01-29 Jakub Jelinek <jakub@redhat.com>
20129 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
20132 2021-01-28 Marek Polacek <polacek@redhat.com>
20135 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
20136 the main variant, maybe reset it in its variants too.
20137 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
20138 (check_aligned_type): Check if TYPE_USER_ALIGN match.
20140 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
20143 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
20144 of constant zero for comparisons.
20146 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
20148 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
20149 support for mapping built-in function names for long double
20150 built-in functions if long double is IEEE 128-bit.
20152 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
20154 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
20155 builtin generator macros.
20156 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
20158 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
20159 instead of inline asm.
20160 (vmlsl_n_s32): Likewise.
20161 (vmlsl_n_u16): Likewise.
20162 (vmlsl_n_u32): Likewise.
20164 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
20166 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
20167 builtin generator macros.
20168 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
20170 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
20171 instead of inline asm.
20172 (vmlal_n_s32): Likewise.
20173 (vmlal_n_u16): Likewise.
20174 (vmlal_n_u32): Likewise.
20176 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20178 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
20180 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
20182 (aarch64_shrn2<mode>_insn_be): Likewise.
20183 (aarch64_shrn2<mode>): Likewise.
20184 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
20186 (vshrn_high_n_s32): Likewise.
20187 (vshrn_high_n_s64): Likewise.
20188 (vshrn_high_n_u16): Likewise.
20189 (vshrn_high_n_u32): Likewise.
20190 (vshrn_high_n_u64): Likewise.
20192 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20194 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
20196 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
20198 (aarch64_shrn<mode>_insn_be): Likewise.
20199 (aarch64_shrn<mode>): Likewise.
20200 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
20202 (vshrn_n_s32): Likewise.
20203 (vshrn_n_s64): Likewise.
20204 (vshrn_n_u16): Likewise.
20205 (vshrn_n_u32): Likewise.
20206 (vshrn_n_u64): Likewise.
20207 * config/aarch64/iterators.md (vn_mode): New mode attribute.
20209 2021-01-28 Richard Biener <rguenther@suse.de>
20211 PR rtl-optimization/80960
20212 * dse.c (check_mem_read_rtx): Call get_addr on the
20215 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
20216 David Edelsohn <dje.gcc@gmail.com>
20219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20220 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
20222 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
20224 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
20225 wrapper call rs6000_expand_vector_set_var for cleanup. Call
20226 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
20228 (rs6000_expand_vector_set_var): Delete.
20229 (rs6000_expand_vector_set_var_p9): Make static.
20230 (rs6000_expand_vector_set_var_p8): Make static.
20232 2021-01-28 Xing GUO <higuoxing@gmail.com>
20234 * common/config/riscv/riscv-common.c
20235 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
20236 when `p` extension exists.
20238 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
20240 PR rtl-optimization/97684
20241 * ira.c (ira): Call ira_set_pseudo_classes before
20242 update_equiv_regs when it is necessary.
20244 2021-01-27 Jakub Jelinek <jakub@redhat.com>
20247 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
20248 %w0, %w1 and %2 instead of %0, %1 and %2.
20250 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20252 * config/rs6000/genfusion.pl: New script to generate
20253 define_insn_and_split patterns so combine can arrange fused
20254 instructions next to each other.
20255 * config/rs6000/fusion.md: New file, generated fused instruction
20256 patterns for combine.
20257 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
20258 (non_update_memory_operand): New predicate.
20259 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
20260 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
20262 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
20264 * config/rs6000/rs6000.c (rs6000_option_override_internal):
20265 Automatically set OPTION_MASK_P10_FUSION and
20266 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
20267 (rs600_opt_masks): Allow -mpower10-fusion
20268 in function attributes.
20269 (address_is_non_pfx_d_or_x): New function.
20270 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
20271 * config/rs6000/rs6000.md: Include fusion.md.
20272 * config/rs6000/rs6000.opt: Add -mpower10-fusion
20273 and -mpower10-fusion-ld-cmpi.
20274 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
20276 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
20278 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
20279 builtin generator macros.
20280 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
20282 (aarch64_<su>mlal<mode>): This.
20283 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
20284 instead of inline asm.
20285 (vmlal_s16): Likewise.
20286 (vmlal_s32): Likewise.
20287 (vmlal_u8): Likewise.
20288 (vmlal_u16): Likewise.
20289 (vmlal_u32): Likewise.
20291 2021-01-27 Richard Biener <rguenther@suse.de>
20293 PR tree-optimization/98854
20294 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
20295 PHIs from scalars when the number of CTORs matches the
20296 number of children.
20298 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
20300 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
20302 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
20304 (aarch64_mls_n<mode>): This.
20305 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
20307 (vmls_n_s32): Likewise.
20308 (vmls_n_u16): Likewise.
20309 (vmls_n_u32): Likewise.
20310 (vmlsq_n_s16): Likewise.
20311 (vmlsq_n_s32): Likewise.
20312 (vmlsq_n_u16): Likewise.
20313 (vmlsq_n_u32): Likewise.
20315 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
20317 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
20319 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
20321 (vmls_s16): Likewise.
20322 (vmls_s32): Likewise.
20323 (vmls_u8): Likewise.
20324 (vmls_u16): Likewise.
20325 (vmls_u32): Likewise.
20326 (vmlsq_s8): Likewise.
20327 (vmlsq_s16): Likewise.
20328 (vmlsq_s32): Likewise.
20329 (vmlsq_u8): Likewise.
20330 (vmlsq_u16): Likewise.
20331 (vmlsq_u32): Likewise.
20333 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
20335 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
20337 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
20339 (aarch64_mla_n<mode>): This.
20340 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
20342 (vmla_n_s32): Likewise.
20343 (vmla_n_u16): Likewise.
20344 (vmla_n_u32): Likewise.
20345 (vmlaq_n_s16): Likewise.
20346 (vmlaq_n_s32): Likewise.
20347 (vmlaq_n_u16): Likewise.
20348 (vmlaq_n_u32): Likewise.
20350 2021-01-27 liuhongt <hongtao.liu@intel.com>
20353 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
20354 (*sse2_eq<mode>3): Ditto.
20356 2021-01-27 Jakub Jelinek <jakub@redhat.com>
20358 * tree-pass.h (PROP_trees): Rename to ...
20359 (PROP_gimple): ... this.
20360 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
20361 * passes.c (execute_function_dump, execute_function_todo,
20362 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
20363 * varpool.c (ctor_for_folding): Likewise.
20365 2021-01-27 Jakub Jelinek <jakub@redhat.com>
20367 PR tree-optimization/97260
20368 * varpool.c: Include tree-pass.h.
20369 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
20370 non-TREE_SIDE_EFFECTS automatic variables.
20372 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
20374 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
20376 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
20377 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
20378 (gen_compile_unit_die): Recognise C++23.
20380 2021-01-26 Jakub Jelinek <jakub@redhat.com>
20383 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
20386 2021-01-26 Jakub Jelinek <jakub@redhat.com>
20389 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20390 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
20391 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
20393 2021-01-26 Richard Biener <rguenther@suse.de>
20395 * gimple-pretty-print.c (dump_binary_rhs): Handle
20396 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
20398 2021-01-26 Richard Biener <rguenther@suse.de>
20400 PR middle-end/98726
20401 * tree.h (vector_cst_int_elt): Remove.
20402 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
20405 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
20407 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
20408 for V64DFmode min/max reductions.
20410 2021-01-26 Jakub Jelinek <jakub@redhat.com>
20412 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
20413 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
20414 two halves, one with x and the other with const0_rtx, ordered
20415 depending on endianity.
20417 2021-01-26 Alexandre Oliva <oliva@adacore.com>
20419 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
20420 temporaries not seen in binding block, and not about to be
20421 added as gimple variables.
20423 2021-01-25 Martin Sebor <msebor@redhat.com>
20426 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
20428 2021-01-25 Martin Liska <mliska@suse.cz>
20430 * value-prof.c (get_nth_most_common_value): Use %s instead
20433 2021-01-25 Jakub Jelinek <jakub@redhat.com>
20436 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
20437 readelf -wi is able to read the emitted .debug_info back.
20438 * configure: Regenerated.
20440 2021-01-25 Martin Liska <mliska@suse.cz>
20442 PR gcov-profile/98739
20443 * common.opt: Add missing sign symbol.
20444 * value-prof.c (get_nth_most_common_value): Restore handling
20445 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
20446 PROFILE_REPRODUCIBILITY_MULTITHREADED.
20448 2021-01-25 Richard Biener <rguenther@suse.de>
20450 PR middle-end/98807
20451 * tree.c (vector_element_bits): Always use precision of
20452 the element type for boolean vectors.
20454 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
20456 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
20457 (ENDFILE_SPEC): Evaluate qnolinkcmds.
20459 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
20461 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
20462 nostartfiles handling since this is already done by
20463 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
20464 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
20465 is already done by LINK_COMMAND_SPEC.
20466 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
20467 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
20470 2021-01-25 Jakub Jelinek <jakub@redhat.com>
20473 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
20474 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
20475 value rather than host size_t.
20476 (fold_const_call): Change type of s2 from size_t to
20477 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
20478 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
20479 instead of s2 as last argument.
20481 2021-01-25 Tamar Christina <tamar.christina@arm.com>
20483 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
20484 VCMLA_OP, VCMUL_OP): New.
20485 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
20486 * config/arm/neon.md (cmul<conj_op><mode>3): New.
20487 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
20488 UNSPEC_VCMUL_CONJ): New.
20489 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
20490 cml<fcmac1><conj_op><mode>4): New.
20492 2021-01-23 Jakub Jelinek <jakub@redhat.com>
20495 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
20497 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
20499 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
20501 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
20503 (vmla_s16): Likewise.
20504 (vmla_s32): Likewise.
20505 (vmla_u8): Likewise.
20506 (vmla_u16): Likewise.
20507 (vmla_u32): Likewise.
20508 (vmlaq_s8): Likewise.
20509 (vmlaq_s16): Likewise.
20510 (vmlaq_s32): Likewise.
20511 (vmlaq_u8): Likewise.
20512 (vmlaq_u16): Likewise.
20513 (vmlaq_u32): Likewise.
20515 2021-01-22 David Malcolm <dmalcolm@redhat.com>
20517 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
20520 2021-01-22 Jakub Jelinek <jakub@redhat.com>
20523 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
20524 filenames to emit, still emit the required 0 index directory and
20525 filename entries that match DW_AT_comp_dir and DW_AT_name of the
20528 2021-01-22 Marek Polacek <polacek@redhat.com>
20531 * doc/invoke.texi: Update C++ ABI Version 15 description.
20533 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20535 PR tree-optimization/98766
20536 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
20537 comparing against type size with param_avoid_fma_max_bits.
20539 2021-01-22 Richard Biener <rguenther@suse.de>
20541 PR middle-end/98793
20542 * tree.c (vector_element_bits): Key single-bit bool vector on
20543 integer mode rather than not vector mode.
20545 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
20548 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20549 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
20551 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
20552 to call different path for P8 and P9.
20553 (rs6000_expand_vector_set_var_p9): New function.
20554 (rs6000_expand_vector_set_var_p8): New function.
20556 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
20560 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20561 Ajdust variable index vec_insert from address dereference to
20562 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
20563 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
20565 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
20567 2021-01-22 Martin Liska <mliska@suse.cz>
20569 PR gcov-profile/98739
20570 * profile.c (compute_value_histograms): Drop time profile for
20571 -fprofile-reproducible=multithreaded.
20573 2021-01-22 Nathan Sidwell <nathan@acm.org>
20575 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
20578 2021-01-22 Richard Biener <rguenther@suse.de>
20580 PR middle-end/98773
20581 * tree-data-ref.c (initalize_matrix_A): Revert previous
20582 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
20584 2021-01-22 Jakub Jelinek <jakub@redhat.com>
20586 PR tree-optimization/90248
20587 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
20588 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
20590 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
20591 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
20593 2021-01-22 Jakub Jelinek <jakub@redhat.com>
20595 PR tree-optimization/98255
20596 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
20597 extend index - low_bound from sizetype's precision rather than index
20599 (get_addr_base_and_unit_offset_1): Likewise.
20600 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
20601 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
20603 2021-01-22 Richard Biener <rguenther@suse.de>
20605 PR tree-optimization/98786
20606 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
20607 adding new uses of abnormals. Verify we deal with a conditional
20610 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20613 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
20615 2021-01-22 liuhongt <hongtao.liu@intel.com>
20619 * config/i386/sse.md (VI_128_256): New mode iterator.
20620 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
20621 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
20622 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
20623 define_insn_and_split to lower avx512 vector comparison to avx
20624 version when dest is vector.
20625 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
20626 define_insn_and_split for negating the comparison result.
20627 * config/i386/predicates.md (float_vector_all_ones_operand):
20629 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
20630 general NOT operator without UNSPEC_MASKOP.
20632 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
20634 PR rtl-optimization/98777
20635 * lra-int.h (lra_pmode_pseudo): New extern.
20636 * lra.c (lra_pmode_pseudo): New global.
20638 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
20640 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
20642 * fwprop.c (fwprop_propagation::classify_result): Allow
20643 (subreg (mem)) simplifications.
20645 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20647 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
20649 (aarch64_sqdmlal<mode>): ... This...
20650 (aarch64_sqdmlsl<mode>): ... And this.
20651 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
20652 (aarch64_sqdmlal_lane<mode>): ... This...
20653 (aarch64_sqdmlsl_lane<mode>): ... And this.
20654 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
20655 (aarch64_sqdmlsl_laneq<mode>): ... This...
20656 (aarch64_sqdmlal_laneq<mode>): ... And this.
20657 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
20658 (aarch64_sqdmlsl_n<mode>): ... This...
20659 (aarch64_sqdmlal_n<mode>): ... And this.
20660 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
20661 (aarch64_sqdmlal2<mode>_internal): ... This...
20662 (aarch64_sqdmlsl2<mode>_internal): ... And this.
20664 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
20666 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
20668 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
20671 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
20673 2021-01-21 liuhongt <hongtao.liu@intel.com>
20675 PR rtl-optimization/98694
20676 * regcprop.c (copy_value): If SRC had been assigned a mode
20677 narrower than the copy, we can't link DEST into the chain even
20678 they have same hard_regno_nregs(i.e. HImode/SImode in i386
20681 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20683 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
20684 Convert to define_insn_and_split. Split into simple move when moving
20687 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
20689 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
20690 Adjust comment. Simplify code.
20692 2021-01-20 Jakub Jelinek <jakub@redhat.com>
20695 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
20696 with DW_FORM_line_strp form.
20697 (prune_unused_types_update_strings): Don't add into debug_str_hash
20698 indirect strings with DW_FORM_line_strp form.
20699 (adjust_name_comp_dir): New function.
20700 (dwarf2out_finish): Call it on CU DIEs after resetting
20701 debug_line_str_hash.
20703 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
20705 PR rtl-optimization/98722
20706 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
20707 has no 3-op add insn to transform insns containing two pluses.
20709 2021-01-20 Richard Biener <rguenther@suse.de>
20711 * hwint.h (add_hwi): New function.
20712 (mul_hwi): Likewise.
20713 * tree-data-ref.c (initialize_matrix_A): Properly translate
20714 tree constants and avoid HOST_WIDE_INT_MIN.
20715 (lambda_matrix_row_add): Avoid undefined integer overflow
20716 and return true on such overflow.
20717 (lambda_matrix_right_hermite): Handle overflow from
20718 lambda_matrix_row_add gracefully. Simplify previous fix.
20719 (analyze_subscript_affine_affine): Likewise.
20721 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
20723 PR tree-optimization/96674
20724 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
20725 x >= y && y != XXX_MIN --> x > y - 1
20727 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
20729 PR tree-optimization/98535
20730 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
20731 If the high and low permutes are the same, remove the high permutes
20732 from the working set and only continue with the low ones.
20734 2021-01-20 Jakub Jelinek <jakub@redhat.com>
20736 PR tree-optimization/98721
20737 * builtins.c (access_ref::inform_access): Don't assume
20738 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
20739 object whenever allocfn is NULL, rather than only when DECL_P
20740 is true. Use %qE instead of %qD for that. Formatting fixes.
20742 2021-01-20 Richard Biener <rguenther@suse.de>
20744 PR tree-optimization/98758
20745 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
20746 (lambda_matrix_right_hermite): Avoid undefinedness with
20747 signed integer abs and multiplication.
20748 (analyze_subscript_affine_affine): Use lambda_int.
20750 2021-01-20 David Malcolm <dmalcolm@redhat.com>
20753 * dwarf2out.c (output_line_info): Rename static variable
20754 "generation", moving it out of the function to...
20755 (output_line_info_generation): New.
20756 (init_sections_and_labels): Likewise, renaming the variable to...
20757 (init_sections_and_labels_generation): New.
20758 (dwarf2out_c_finalize): Reset the new variables.
20760 2021-01-19 Martin Sebor <msebor@redhat.com>
20762 PR middle-end/98664
20763 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
20764 all functions, even if they're not declared artificial or inline.
20765 * tree.c (tree_inlined_location): Use macro expansion location
20766 only if scope traversal fails to expose one.
20768 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
20770 PR rtl-optimization/92294
20771 * alias.c (compare_base_symbol_refs): Take an extra parameter
20772 and add the distance between two symbols to it. Enshrine in
20773 comments that -1 means "either 0 or 1, but we can't tell
20774 which at compile time".
20775 (memrefs_conflict_p): Update call accordingly.
20776 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
20779 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20781 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
20782 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
20783 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
20784 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
20785 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
20786 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
20787 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
20788 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
20789 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
20790 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
20791 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
20792 sqmovun): Use NONE flags.
20794 2021-01-19 Richard Biener <rguenther@suse.de>
20797 * ipa-modref.c (analyze_stmt): Only record a summary for a
20800 2021-01-19 Richard Biener <rguenther@suse.de>
20802 PR middle-end/98638
20803 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
20805 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
20807 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
20808 built-in define __FIX_LEON3FT_TN0018.
20810 2021-01-19 Richard Biener <rguenther@suse.de>
20813 * tree-inline.c (tree_function_versioning): Set input_location
20814 to UNKNOWN_LOCATION throughout the function.
20816 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
20819 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
20821 2021-01-19 Martin Jambor <mjambor@suse.cz>
20824 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
20825 whether non-call exceptions allow removal of a statement.
20826 (isra_analyze_call): Pass the appropriate function to
20827 ssa_name_only_returned_p.
20829 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
20831 * config/riscv/arch-canonicalize (longext_sort): New function for
20832 sorting 'multi-letter'.
20833 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
20834 'alts'. The 'arch' may not be the first of 'alts'.
20835 (_expand_combination): Add underline for the 'ext' without '*'.
20836 This is because, a single-letter extension can always be treated well
20837 with a '_' prefix, but it cannot be separated out if it is appended
20840 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
20843 * ira.c (ira): Skip abnormal critical edge splitting.
20845 2021-01-18 Jakub Jelinek <jakub@redhat.com>
20847 PR tree-optimization/98727
20848 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
20849 second .MUL_OVERFLOW operand for signed multiplication with overflow
20850 checking if the second operand of multiplication is not constant.
20852 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
20854 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
20855 defaults to version 4.
20857 2021-01-18 David Malcolm <dmalcolm@redhat.com>
20859 * attribs.h (fndecl_dealloc_argno): New decl.
20860 * builtins.c (call_dealloc_argno): Split out second half of
20862 (fndecl_dealloc_argno): New.
20863 * doc/extend.texi (Common Function Attributes): Document the
20864 interaction between the analyzer and the malloc attribute.
20865 * doc/invoke.texi (Static Analyzer Options): Likewise.
20867 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
20869 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
20870 dwarf_version to 4.
20871 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
20873 2021-01-17 Martin Jambor <mjambor@suse.cz>
20876 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
20879 2021-01-17 Mark Wielaard <mark@klomp.org>
20881 * common.opt (gdwarf-): Init(5).
20882 * doc/invoke.texi (-gdwarf): Document default to 5.
20884 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
20886 * builtin-types.def
20887 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
20889 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
20890 ...this. Add extra argument.
20891 * gimplify.c (omp_default_clause): Ensure that event handle is
20892 firstprivate in a task region.
20893 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
20894 (gimplify_adjust_omp_clauses): Likewise.
20895 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
20896 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
20897 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
20898 if detach clause specified. Add detach argument when generating
20900 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
20902 (finish_taskreg_scan): Move field for variable containing the event
20903 handle to the front of the struct.
20904 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
20906 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
20907 OMP_CLAUSE_DETACH clause.
20908 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
20909 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
20910 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
20912 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
20914 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
20916 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
20918 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
20919 multilib directory names. Use MULTILIB_REQUIRED instead of
20920 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
20921 -mcustom-fpu-cfg=fph2 multilib.
20923 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
20925 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
20926 (nios2_init_fpu_configs): Provide register values for new
20927 -mcustom-fpu-cfg=fph2 option variant.
20928 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
20931 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
20933 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
20934 custom instruction warnings.
20936 2021-01-16 Jakub Jelinek <jakub@redhat.com>
20938 PR tree-optimization/96669
20939 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
20941 2021-01-16 Jakub Jelinek <jakub@redhat.com>
20943 PR tree-optimization/96271
20944 * passes.def: Pass false argument to first two pass_cd_dce
20945 instances and true to last instance. Add comment that
20946 last instance rewrites no longer addressed locals.
20947 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
20949 (pass_cd_dce::set_pass_param): New method.
20950 (pass_cd_dce::execute): Return TODO_update_address_taken from
20951 last cd_dce instance.
20953 2021-01-15 Carl Love <cel@us.ibm.com>
20955 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
20957 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
20958 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
20959 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
20960 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
20961 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
20962 Add builtin define.
20963 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
20964 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
20965 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
20966 New overloaded definitions.
20967 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
20968 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
20969 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
20970 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
20971 P10V_BUILTIN_MULHU_V4SI]: Add case
20972 statement for builtins.
20973 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
20974 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
20975 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
20976 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
20977 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
20978 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
20979 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
20980 Add define_insn, mode is VIlong.
20981 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
20982 Add builtin descriptions.
20984 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
20986 * final.c (final_start_function_1): Reset force_source_line.
20988 2021-01-15 Jakub Jelinek <jakub@redhat.com>
20990 PR tree-optimization/96669
20991 * match.pd (((1 << A) & 1) != 0 -> A == 0,
20992 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
20993 possibly different power of two constants and to right shift too.
20995 2021-01-15 Jakub Jelinek <jakub@redhat.com>
20997 PR tree-optimization/96681
20998 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
20999 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
21000 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
21001 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
21003 2021-01-15 Alexandre Oliva <oliva@adacore.com>
21005 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
21007 2021-01-15 Tamar Christina <tamar.christina@arm.com>
21009 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
21010 cmul<conj_op><mode>3): New.
21011 * config/aarch64/iterators.md (UNSPEC_FCMUL,
21012 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
21013 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
21014 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
21015 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
21016 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
21017 (rot_op): Renamed to conj_op.
21018 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
21019 cmul<conj_op><mode>3): New.
21020 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
21021 cmul<conj_op><mode>3): New.
21023 2021-01-15 David Malcolm <dmalcolm@redhat.com>
21027 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
21028 Escape the tempfile name when constructing the expected output.
21030 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21032 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
21034 (aarch64_<su>mlsl_hi<mode>): ... This.
21035 (aarch64_<su>mlsl_hi<mode>): Define.
21036 (*aarch64_<su>mlsl<mode): Rename to...
21037 (aarch64_<su>mlsl<mode): ... This.
21038 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
21039 smlsl_hi, umlsl_hi): Define builtins.
21040 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
21041 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
21042 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
21043 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
21045 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
21047 * config/i386/i386-c.c (ix86_target_macros):
21048 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
21050 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
21053 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
21054 * Makefile.in (RTL_SSA_H): New variable.
21055 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
21056 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
21057 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
21059 * config/aarch64/aarch64-cc-fusion.cc: New file.
21061 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
21063 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
21064 calling cancel_changes for changes that no longer exist.
21066 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
21068 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
21069 (function_info::reg_defs): ...this.
21070 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
21071 (function_info::reg_defs): ...this.
21073 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21076 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
21078 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21081 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21084 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
21086 2021-01-15 Richard Biener <rguenther@suse.de>
21088 PR tree-optimization/96376
21089 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
21090 for VMAT_INVARIANT.
21092 2021-01-15 Martin Liska <mliska@suse.cz>
21094 * doc/install.texi: Document that some tests need pytest module.
21095 * doc/sourcebuild.texi: Likewise.
21097 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21100 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
21102 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21104 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
21105 (mve_vshrq_n_u<mode>_imm): Likewise.
21106 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
21107 * config/arm/vec-common.md: ... here.
21109 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
21111 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
21113 * config/arm/neon.md (vashl<mode>3): Delete.
21114 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
21115 (vasl<mode>3): New expander.
21117 2021-01-15 Richard Biener <rguenther@suse.de>
21119 PR tree-optimization/98685
21120 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
21121 of vector extern defs.
21123 2021-01-14 David Malcolm <dmalcolm@redhat.com>
21126 * diagnostic.c (diagnostic_kind_text): Break out this array
21128 (diagnostic_build_prefix): ...here.
21129 (fancy_abort): Detect when diagnostic_initialize has not yet been
21130 called and fall back to a minimal implementation of printing the
21131 ICE, rather than segfaulting in internal_error.
21133 2021-01-14 David Malcolm <dmalcolm@redhat.com>
21135 * diagnostic.c (diagnostic_initialize): Eliminate
21136 parseable_fixits_p in favor of initializing extra_output_kind from
21137 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
21138 (convert_column_unit): New function, split out from...
21139 (diagnostic_converted_column): ...this.
21140 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
21141 Use them to call convert_column_unit on the column values.
21142 (diagnostic_report_diagnostic): Eliminate conditional on
21143 parseable_fixits_p in favor of a switch statement on
21144 extra_output_kind, passing the appropriate values to the new
21145 params of print_parseable_fixits.
21146 (selftest::test_print_parseable_fixits_none): Update for new
21147 params of print_parseable_fixits.
21148 (selftest::test_print_parseable_fixits_insert): Likewise.
21149 (selftest::test_print_parseable_fixits_remove): Likewise.
21150 (selftest::test_print_parseable_fixits_replace): Likewise.
21151 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
21153 (selftest::diagnostic_c_tests): Call it.
21154 * diagnostic.h (enum diagnostics_extra_output_kind): New.
21155 (diagnostic_context::parseable_fixits_p): Delete field in favor
21157 (diagnostic_context::extra_output_kind): ...this new field.
21158 * doc/invoke.texi (Environment Variables): Add
21159 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
21160 * opts.c (common_handle_option): Update handling of
21161 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
21164 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21166 * tree-vect-slp-patterns.c (class complex_operations_pattern,
21167 complex_operations_pattern::matches,
21168 complex_operations_pattern::recognize,
21169 complex_operations_pattern::build): New.
21170 (slp_patterns): Use it.
21172 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21174 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
21175 * optabs.def (cmls_optab, cmls_conj_optab): New.
21176 * doc/md.texi: Document them.
21177 * tree-vect-slp-patterns.c (class complex_fms_pattern,
21178 complex_fms_pattern::matches, complex_fms_pattern::recognize,
21179 complex_fms_pattern::build): New.
21181 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21183 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
21184 * optabs.def (cmla_optab, cmla_conj_optab): New.
21185 * doc/md.texi: Document them.
21186 * tree-vect-slp-patterns.c (vect_match_call_p,
21187 class complex_fma_pattern, vect_slp_reset_pattern,
21188 complex_fma_pattern::matches, complex_fma_pattern::recognize,
21189 complex_fma_pattern::build): New.
21191 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21193 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
21194 * optabs.def (cmul_optab, cmul_conj_optab): New.
21195 * doc/md.texi: Document them.
21196 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
21197 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
21198 vect_build_combine_node, class complex_mul_pattern,
21199 complex_mul_pattern::matches, complex_mul_pattern::recognize,
21200 complex_mul_pattern::build): New.
21202 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21204 * tree-vect-slp.c (optimize_load_redistribution_1): New.
21205 (optimize_load_redistribution, vect_is_slp_load_node): New.
21206 (vect_match_slp_patterns): Use it.
21208 2021-01-14 Tamar Christina <tamar.christina@arm.com>
21210 * tree-vect-slp-patterns.c (complex_add_pattern::build):
21213 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
21215 * config/gcn/mkoffload.c (main): Create an offload image only in
21216 64-bit configurations.
21218 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
21221 * config/i386/i386-options.c (ix86_option_override_internal):
21222 Issue an error for -fcf-protection with CF_BRANCH when compiling
21223 for 32-bit non-TARGET_CMOV targets.
21225 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
21228 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
21229 Remove declaration and initialization of shadow variable "ret".
21230 (ix86_option_override_internal): Remove delcaration of
21231 shadow variable "i". Redeclare shadowed variable to unsigned.
21232 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
21233 * config/i386/i386-builtins.c (get_builtin_code_for_version):
21234 Update for redeclaration.
21235 * config/i386/i386.h (pta_size): Ditto.
21237 2021-01-14 Richard Biener <rguenther@suse.de>
21239 PR tree-optimization/98674
21240 * tree-data-ref.c (base_supports_access_fn_components_p): New.
21241 (initialize_data_dependence_relation): For two bases without
21242 possible access fns resort to type size equality when determining
21243 shape compatibility.
21245 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21248 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
21249 <=, >= operators in vcle and vcge intrinsics respectively.
21250 * config/arm/arm_neon_builtins.def: Remove entry for
21253 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
21256 * config/i386/i386-options.c (ix86_function_specific_save):
21257 Remove redundant assignment to opts->x_ix86_branch_cost.
21258 * config/i386/i386.c (ix86_prefetch_sse):
21259 Rename from x86_prefetch_sse. Update all uses.
21260 * config/i386/i386.h: Update for rename.
21261 * config/i386/i386-options.h: Ditto.
21263 2021-01-14 Jakub Jelinek <jakub@redhat.com>
21266 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
21267 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
21268 Use Bm instead of m for non-avx. Add isa attribute.
21270 2021-01-14 Jakub Jelinek <jakub@redhat.com>
21272 PR tree-optimization/96688
21273 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
21274 ~X can be simplified.
21276 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
21278 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
21279 IFN_LOAD_LANES results.
21281 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21283 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
21285 (aarch64_xtn<mode>): Likewise.
21286 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
21289 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
21291 (vmovl_s16): Likewise.
21292 (vmovl_s32): Likewise.
21293 (vmovl_u8): Likewise.
21294 (vmovl_u16): Likewise.
21295 (vmovl_u32): Likewise.
21296 (vmovn_s16): Likewise.
21297 (vmovn_s32): Likewise.
21298 (vmovn_s64): Likewise.
21299 (vmovn_u16): Likewise.
21300 (vmovn_u32): Likewise.
21301 (vmovn_u64): Likewise.
21303 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21305 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
21307 (aarch64_<su>qxtn2<mode>_be): Likewise.
21308 (aarch64_<su>qxtn2<mode>): Likewise.
21309 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
21311 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
21312 (su): Handle ss_truncate and us_truncate.
21313 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
21315 (vqmovn_high_s32): Likewise.
21316 (vqmovn_high_s64): Likewise.
21317 (vqmovn_high_u16): Likewise.
21318 (vqmovn_high_u32): Likewise.
21319 (vqmovn_high_u64): Likewise.
21321 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21323 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
21325 (aarch64_xtn2<mode>_be): Likewise.
21326 (aarch64_xtn2<mode>): Likewise.
21327 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
21329 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
21331 (vmovn_high_s32): Likewise.
21332 (vmovn_high_s64): Likewise.
21333 (vmovn_high_u16): Likewise.
21334 (vmovn_high_u32): Likewise.
21335 (vmovn_high_u64): Likewise.
21337 2021-01-13 Stafford Horne <shorne@gmail.com>
21339 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
21341 2021-01-13 Stafford Horne <shorne@gmail.com>
21343 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
21345 2021-01-13 Stafford Horne <shorne@gmail.com>
21347 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
21348 define for __or1k_hard_float__.
21350 2021-01-13 Stafford Horne <shorne@gmail.com>
21352 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
21353 (PROFILE_HOOK): Define to call _mcount.
21354 (FUNCTION_PROFILER): Change from abort to no-op.
21356 2021-01-13 Jakub Jelinek <jakub@redhat.com>
21358 PR tree-optimization/96691
21359 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
21360 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
21361 (~D ^ C) or (D ^ C) can be simplified.
21363 2021-01-13 Richard Biener <rguenther@suse.de>
21365 PR tree-optimization/92645
21366 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
21367 until after vector lowering.
21369 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
21371 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
21373 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
21374 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
21376 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
21378 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
21380 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
21381 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
21383 2021-01-13 Richard Biener <rguenther@suse.de>
21385 PR tree-optimization/92645
21386 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
21387 BIT_FIELD_REF argument.
21388 (vect_build_slp_tree_2): Record the desired vector type
21389 on the external vector def.
21390 (vectorizable_slp_permutation): Handle required punning
21391 of existing vector defs.
21393 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
21395 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
21397 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
21399 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
21401 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
21403 * config.gcc [$target == *-*-gnu*]: Enable
21404 'default_gnu_indirect_function'.
21406 2021-01-13 Jakub Jelinek <jakub@redhat.com>
21409 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
21410 registers before calling targetm.vectorize.vec_perm_const, only after
21412 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
21413 two argument permutation when one operand is zero vector and only
21414 after that force operands into registers.
21415 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
21416 define_insn_and_split pattern.
21417 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
21418 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
21419 (*avx2_zero_extendv8hiv8si2_1): Likewise.
21420 (*avx512f_zero_extendv8siv8di2_1): Likewise.
21421 (*avx2_zero_extendv4siv4di2_1): Likewise.
21422 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
21424 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
21425 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
21426 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
21427 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
21428 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
21429 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
21431 2021-01-13 Martin Liska <mliska@suse.cz>
21433 PR tree-optimization/98455
21434 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
21435 Record also virtual PHIs.
21436 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
21439 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
21441 * doc/invoke.texi (C++ Modules): Fix typos.
21443 2021-01-13 Richard Biener <rguenther@suse.de>
21445 PR tree-optimization/98640
21446 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
21447 handle plus or minus from a truncated operand to be
21450 2021-01-13 Jakub Jelinek <jakub@redhat.com>
21453 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
21454 define_insn_and_split patterns.
21455 (splitter after *btr<mode>_2): New splitter.
21457 2021-01-13 Martin Liska <mliska@suse.cz>
21460 * cgraphunit.c (analyze_functions): Remove dead code.
21462 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
21464 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
21465 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
21466 (a64fx_regmove_cost, a64fx_vector_cost): New.
21467 (a64fx_tunings): Use the new added cost tables.
21469 2021-01-13 Jakub Jelinek <jakub@redhat.com>
21472 * config/i386/predicates.md (pmovzx_parallel): New predicate.
21473 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
21474 define_insn_and_split pattern.
21475 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
21476 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
21478 2021-01-13 Julian Brown <julian@codesourcery.com>
21480 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
21481 to fix v0 register.
21483 2021-01-13 Julian Brown <julian@codesourcery.com>
21485 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
21488 2021-01-13 Julian Brown <julian@codesourcery.com>
21490 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
21491 for reciprocal-approximation instructions.
21492 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
21493 refinement and division result.
21494 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
21496 2021-01-13 Julian Brown <julian@codesourcery.com>
21498 * config/gcn/gcn-valu.md (subdf): Rename to...
21501 2021-01-12 Martin Liska <mliska@suse.cz>
21503 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
21505 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
21507 * function-abi.h: Fix typo.
21509 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
21513 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
21514 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
21515 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
21516 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
21517 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
21518 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
21519 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
21520 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
21521 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
21522 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
21523 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
21524 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
21525 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
21526 (ARM_HAVE_V2DI_LDST): Likewise.
21527 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
21528 (*movmisalign<mode>_mve_load): New pattern.
21529 * config/arm/neon.md (movmisalign<mode>): Move to ...
21530 * config/arm/vec-common.md: ... here.
21532 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
21535 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
21536 of pattern 'plus (plus (hard reg, const), pseudo)'.
21538 2021-01-12 Richard Biener <rguenther@suse.de>
21540 PR tree-optimization/98550
21541 * tree-vect-slp.c (vect_record_max_nunits): Check whether
21542 the group size is a multiple of the vector element count.
21543 (vect_build_slp_tree_1): When we need to fail because
21544 the vector type choosen causes unrolling do so lazily
21545 without affecting matches only at the end to guide group splitting.
21547 2021-01-12 Martin Liska <mliska@suse.cz>
21550 * optc-save-gen.awk: Compare also n_target_save vars with
21553 2021-01-12 Martin Liska <mliska@suse.cz>
21555 * gcov.c (source_info::debug): New.
21556 (print_usage): Add --debug (-D) option.
21557 (process_args): Likewise.
21558 (generate_results): Call src->debug after
21559 accumulate_line_counts.
21560 (read_graph_file): Properly assign id for EXIT_BLOCK.
21561 * profile.c (branch_prob): Dump function body before it is
21564 2021-01-12 Jakub Jelinek <jakub@redhat.com>
21566 PR tree-optimization/98629
21567 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
21568 unless returning non-zero.
21570 2021-01-12 Jakub Jelinek <jakub@redhat.com>
21572 PR tree-optimization/95731
21573 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
21574 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
21575 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
21576 only after optimize_range_tests_var_bound.
21578 2021-01-12 Jakub Jelinek <jakub@redhat.com>
21580 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
21581 * configure: Regenerated.
21583 2021-01-12 liuhongt <hongtao.liu@intel.com>
21586 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
21588 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
21591 2021-01-12 Alexandre Oliva <oliva@adacore.com>
21593 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
21595 (auto_end_imm_use_stmt_traverse): New struct.
21596 (FOR_EACH_IMM_USE_STMT): Use it.
21597 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
21599 * gimple-ssa-strength-reduction.c: ... here, ...
21600 * graphite-scop-detection.c: ... here, ...
21601 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
21602 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
21603 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
21604 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
21605 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
21606 * tree-vect-slp.c: ... and here, ...
21607 * doc/tree-ssa.texi: ... and the example here.
21609 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21611 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
21612 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
21613 (*sdiv_pow2<mode>3): New pattern.
21614 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
21615 Wrap the ASRD in an UNSPEC_PRED_X.
21616 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
21617 predicate with a constant PTRUE, if it isn't already.
21618 (*cond_<sve_int_op><mode>_z): Replace with...
21619 (*cond_<sve_int_op><mode>_any): ...this new pattern.
21621 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21623 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
21624 SVE_FULL_I to SVE_I.
21625 (*cond_bic<mode>_any): Likewise.
21627 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21629 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
21630 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
21633 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21635 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
21636 SVE_FULL_I to SVE_I.
21637 (*aarch64_cond_<su>abd<mode>_2): Likewise.
21638 (*aarch64_cond_<su>abd<mode>_any): Likewise.
21639 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
21640 for the max and min but not for the minus.
21641 (*aarch64_cond_<su>abd<mode>_3): New pattern.
21643 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21645 * config/aarch64/iterators.md (SVE_24I): New iterator.
21646 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
21647 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
21649 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21651 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
21652 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
21654 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
21655 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
21656 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
21657 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
21659 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21661 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
21662 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
21663 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
21666 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
21668 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
21669 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
21670 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
21672 2021-01-11 Martin Liska <mliska@suse.cz>
21675 * symtab-clones.h (clone_info::release): Release
21676 symtab::m_clones with ggc_delete as it's a GGC memory.
21678 2021-01-11 Matthias Klose <doko@ubuntu.com>
21680 * Makefile.in (LINK_PROGRESS): Show the link target.
21682 2021-01-11 Richard Biener <rguenther@suse.de>
21684 PR tree-optimization/91403
21685 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
21686 single-element interleaving group size at 4096 elements.
21688 2021-01-11 Richard Biener <rguenther@suse.de>
21690 PR tree-optimization/98526
21691 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
21692 of the actual reduction op for the regular case.
21693 (vectorizable_reduction): Cost the stmts
21694 vect_transform_reduction produces here.
21696 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
21698 * tree-ssa-forwprop.c (simplify_vector_constructor): For
21699 big-endian, use UNPACK[_FLOAT]_HI.
21701 2021-01-11 Tamar Christina <tamar.christina@arm.com>
21703 * tree-vect-slp-patterns.c (class complex_pattern,
21704 class complex_add_pattern): Add parameters to matches.
21705 (complex_add_pattern::build): Free memory.
21706 (complex_add_pattern::matches): Move validation end of match.
21707 (complex_add_pattern::recognize): Likewise.
21709 2021-01-11 Tamar Christina <tamar.christina@arm.com>
21711 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
21713 2021-01-11 Tamar Christina <tamar.christina@arm.com>
21715 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
21717 2021-01-11 Jakub Jelinek <jakub@redhat.com>
21719 PR tree-optimization/95867
21720 * tree-ssa-math-opts.h: New header.
21721 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
21722 (powi_as_mults): No longer static. Use build_one_cst instead of
21723 build_real. Formatting fix.
21724 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
21725 (attempt_builtin_powi): Handle multiplication reassociation without
21726 powi_fndecl using powi_as_mults.
21727 (reassociate_bb): For integral types don't require
21728 -funsafe-math-optimizations to call attempt_builtin_powi.
21730 2021-01-11 Jakub Jelinek <jakub@redhat.com>
21732 PR tree-optimization/95852
21733 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
21734 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
21735 allow in the bb any of the stmts in that vector, div_stmt and
21736 up to 3 cast stmts.
21737 (arith_cast_equal_p): New function.
21738 (arith_overflow_check_p): Add cast_stmt argument, handle signed
21739 multiply overflow checks.
21740 (match_arith_overflow): Adjust caller. Handle signed multiply
21743 2021-01-11 Jakub Jelinek <jakub@redhat.com>
21745 PR tree-optimization/95852
21746 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
21747 (uaddsub_overflow_check_p): Renamed to ...
21748 (arith_overflow_check_p): ... this. Handle also multiplication
21749 with overflow check.
21750 (match_uaddsub_overflow): Renamed to ...
21751 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
21752 also multiplication with overflow check. Adjust function comment.
21753 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
21754 match_arith_overflow also for MULT_EXPR.
21756 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21758 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
21759 __builtin_convertvector.
21760 (vmovl_s16): Likewise.
21761 (vmovl_s32): Likewise.
21762 (vmovl_u8): Likewise.
21763 (vmovl_u16): Likewise.
21764 (vmovl_u32): Likewise.
21765 (vmovn_s16): Likewise.
21766 (vmovn_s32): Likewise.
21767 (vmovn_s64): Likewise.
21768 (vmovn_u16): Likewise.
21769 (vmovn_u32): Likewise.
21770 (vmovn_u64): Likewise.
21772 2021-01-11 Martin Liska <mliska@suse.cz>
21774 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
21775 (if_chain::is_beneficial): Delete clusters
21776 (find_conditions): Make second argument of conditions_in_bbs a
21777 pointer so that we control over it's lifetime.
21778 (pass_if_to_switch::execute): Delete them.
21780 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
21782 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
21785 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
21787 * config/vax/vax.md (cc): Remove mode attribute.
21788 (subst_<cc>, subst_f<cc>): Rename to...
21789 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
21790 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
21791 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
21792 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
21794 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
21796 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
21797 `const_double_zero'.
21799 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
21801 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
21802 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
21805 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
21807 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
21809 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
21810 with `const_double_zero'.
21811 * doc/rtl.texi (Constant Expression Types): Document it.
21813 2021-01-09 Jakub Jelinek <jakub@redhat.com>
21816 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
21817 POINTER_DIFF_EXPR to be any integral type.
21819 2021-01-09 Jakub Jelinek <jakub@redhat.com>
21821 PR rtl-optimization/98603
21822 * function.c (instantiate_virtual_regs_in_insn): For asm goto
21823 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
21824 if any, set ASM_OPERANDS mode to VOIDmode and change
21825 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
21827 2021-01-09 Alexandre Oliva <oliva@gnu.org>
21830 * final.c (notice_source_line): Narrow down the condition to
21831 skip a line-0 marker.
21833 2021-01-08 Sergei Trofimovich <siarheit@google.com>
21835 * ipa-modref.c (merge_call_side_effects): Fix
21836 linebreak split by reordering two print calls.
21838 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
21840 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
21841 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
21842 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
21843 consistency, fix constraint.
21845 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
21847 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
21848 callables instead of mask values.
21849 (struct target_flag_set_p): New predicate.
21850 (s390_cpu_cpp_builtins_internal): Define or undefine
21851 __LONG_DOUBLE_VX__ macro.
21853 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
21856 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
21857 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
21860 2021-01-08 Richard Biener <rguenther@suse.de>
21862 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
21864 2021-01-08 Richard Biener <rguenther@suse.de>
21866 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
21867 (vect_build_slp_tree): On cache hit release the matched
21868 scalar stmts vector.
21869 * tree-vect-stmts.c (vectorizable_store): Properly free
21870 vec_oprnds before possibly gathering them again.
21872 2021-01-08 Richard Biener <rguenther@suse.de>
21874 PR tree-optimization/98544
21875 * tree-vect-slp.c (vect_optimize_slp): Always materialize
21876 permutes at a permute node.
21878 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
21881 * config/i386/i386.c (x86_function_profiler): Use R10 to call
21882 mcount in large model. Sorry for large model with PIC.
21884 2021-01-08 Jakub Jelinek <jakub@redhat.com>
21887 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
21888 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
21889 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
21890 TargetSave and initialize for variables with enum types.
21891 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
21892 mstack-protector-guard-symbol=): Add Save.
21893 * config/i386/i386-options.c (ix86_function_specific_save,
21894 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
21895 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
21896 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
21897 x_ix86_veclibabi_type.
21899 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
21901 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
21902 SVE_FULL_I to SVE_I.
21903 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
21905 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
21907 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
21908 SVE_FULL_I to SVE_I.
21909 (*cond_uxt<mode>_any): Likewise.
21911 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21913 * config/aarch64/iterators.md (Vwhalf): New iterator.
21914 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
21916 (aarch64_<sur>adalp<mode>): ... This. Make more
21918 (<sur>sadv16qi): Adjust callsite of the above.
21919 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
21921 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
21923 (vpadal_s16): Likewise.
21924 (vpadal_u8): Likewise.
21925 (vpadal_u16): Likewise.
21926 (vpadalq_s8): Likewise.
21927 (vpadalq_s16): Likewise.
21928 (vpadalq_s32): Likewise.
21929 (vpadalq_u8): Likewise.
21930 (vpadalq_u16): Likewise.
21931 (vpadalq_u32): Likewise.
21933 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21935 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
21937 (aarch64_<su>abd<mode>): ... This.
21938 (<sur>sadv16qi): Adjust callsite of the above.
21939 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
21941 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
21943 (vabd_s16): Likewise.
21944 (vabd_s32): Likewise.
21945 (vabd_u8): Likewise.
21946 (vabd_u16): Likewise.
21947 (vabd_u32): Likewise.
21948 (vabdq_s8): Likewise.
21949 (vabdq_s16): Likewise.
21950 (vabdq_s32): Likewise.
21951 (vabdq_u8): Likewise.
21952 (vabdq_u16): Likewise.
21953 (vabdq_u32): Likewise.
21955 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21957 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
21959 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
21960 (vaba_s16): Likewise.
21961 (vaba_s32): Likewise.
21962 (vaba_u8): Likewise.
21963 (vaba_u16): Likewise.
21964 (vaba_u32): Likewise.
21965 (vabaq_s8): Likewise.
21966 (vabaq_s16): Likewise.
21967 (vabaq_s32): Likewise.
21968 (vabaq_u8): Likewise.
21969 (vabaq_u16): Likewise.
21970 (vabaq_u32): Likewise.
21972 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21974 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
21975 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
21976 Change RTL pattern to match.
21978 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
21980 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
21981 * config/riscv/riscv-c.c (riscv-subset.h): New.
21982 (INCLUDE_STRING): Define.
21983 (riscv_cpu_cpp_builtins): Add new style architecture extension
21985 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
21986 (riscv_subset_list::end): New.
21987 (riscv_current_subset_list): New.
21989 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
21991 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
21992 Move to riscv-subset.h.
21993 (struct riscv_subset_t): Ditto.
21994 (class riscv_subset_list): Ditto.
21995 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
21996 from riscv-common.c.
21997 (struct riscv_subset_t): Ditto.
21998 (class riscv_subset_list): Ditto.
21999 * config/riscv/t-riscv ($(common_out_file)): Add file
22002 2021-01-07 Jakub Jelinek <jakub@redhat.com>
22005 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
22006 New define_insn patterns.
22008 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
22010 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
22011 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
22012 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
22014 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
22016 PR tree-optimization/98560
22017 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
22018 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
22020 (vec_cond_direct): Likewise argument 2.
22021 (vec_condu_direct, vec_condeq_direct): Delete.
22022 (expand_vect_cond_optab_fn): Rename to...
22023 (expand_vec_cond_optab_fn): ...this, replacing old macro.
22024 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
22025 (expand_vect_cond_mask_optab_fn): Rename to...
22026 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
22027 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
22029 (direct_vec_cond_optab_supported_p): Likewise.
22030 (direct_vec_condu_optab_supported_p): Delete.
22031 (direct_vec_condeq_optab_supported_p): Delete.
22032 * gimple-isel.cc: Include internal-fn.h.
22033 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
22036 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
22038 PR tree-optimization/98560
22039 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
22040 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
22042 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
22044 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
22045 rotate_insn and optab code attributes.
22046 Update all uses to merged code attribute.
22047 * config/i386/sse.md: Update all uses to merged code attribute.
22048 * config/i386/mmx.md: Update all uses to merged code attribute.
22050 2021-01-07 Jakub Jelinek <jakub@redhat.com>
22052 PR tree-optimization/98568
22053 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
22054 (bswap_replace): Use it.
22056 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
22058 PR rtl-optimization/97978
22059 * lra-int.h (lra_hard_reg_split_p): New external.
22060 * lra.c (lra_hard_reg_split_p): New global.
22061 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
22062 * lra-assigns.c (lra_assign): Don't check allocation correctness
22063 after hard reg splitting.
22065 2021-01-06 Martin Sebor <msebor@redhat.com>
22068 * builtins.c (new_delete_mismatch_p): New overload.
22069 (new_delete_mismatch_p (tree, tree)): Call it.
22071 2021-01-06 Alexandre Oliva <oliva@adacore.com>
22073 * Makefile.in (T_GLIMITS_H): New.
22074 (stmp-int-hdrs): Depend on it, use it.
22075 * config/t-vxworks (T_GLIMITS_H): Override it.
22076 (vxw-glimits.h): New.
22078 2021-01-06 Richard Biener <rguenther@suse.de>
22080 PR tree-optimization/98513
22081 * value-range.cc (intersect_ranges): Compare the upper bounds
22082 for the expected relation.
22084 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22087 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
22089 * doc/standards.texi (HSAIL): Remove section.
22091 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
22093 * configure: Re-generate.
22095 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22097 * doc/invoke.texi (-std=c++20): Adjust for the publication of
22098 ISO 14882:2020 standard.
22099 * doc/standards.texi: Likewise.
22101 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22103 PR tree-optimization/94802
22104 * expr.h (maybe_optimize_sub_cmp_0): Declare.
22105 * expr.c: Include tree-pretty-print.h and flags.h.
22106 (maybe_optimize_sub_cmp_0): New function.
22107 (do_store_flag): Use it.
22108 * cfgexpand.c (expand_gimple_cond): Likewise.
22110 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
22112 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
22113 * rtlanal.c (simple_regno_set): Tweak description to clarify the
22116 2021-01-05 Richard Biener <rguenther@suse.de>
22118 PR tree-optimization/98516
22119 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
22120 lanes when materializing on a VEC_PERM node.
22121 (vectorizable_slp_permutation): Dump the permute properly.
22123 2021-01-05 Richard Biener <rguenther@suse.de>
22125 * tree-vect-slp.c (vect_slp_region): Move debug counter
22126 to cover individual subgraphs.
22128 2021-01-05 Richard Biener <rguenther@suse.de>
22130 PR tree-optimization/98428
22131 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
22132 vector lane extracts for loop vectorization.
22134 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22136 PR tree-optimization/98514
22137 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
22139 (operand_rank): Change type from hash_map<tree, long> to
22140 hash_map<tree, int64_t>.
22141 (phi_rank): Change return type from long to int64_t.
22142 (loop_carried_phi): Change block_rank variable type from long to
22144 (propagate_rank): Change return type, rank parameter type and
22145 op_rank variable type from long to int64_t.
22146 (find_operand_rank): Change return type from long to int64_t
22147 and change slot variable type from long * to int64_t *.
22148 (insert_operand_rank): Change rank parameter type from long to
22150 (get_rank): Change return type and rank variable type from long to
22151 int64_t. Use PRId64 instead of ld to print the rank.
22152 (init_reassoc): Change rank variable type from long to int64_t
22153 and adjust correspondingly bb_rank and operand_rank initialization.
22155 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22157 PR tree-optimization/96928
22158 * tree-ssa-phiopt.c (xor_replacement): New function.
22159 (tree_ssa_phiopt_worker): Call it.
22161 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22163 PR tree-optimization/96930
22164 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
22165 from narrower value which has the same type as 1 << B, perform
22166 the right shift on the narrower value followed by extension.
22168 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22170 PR tree-optimization/96239
22171 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
22173 (get_status_for_store_merging): Don't return BB_INVALID for blocks
22174 with potential bswap optimizable CONSTRUCTORs.
22175 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
22178 2021-01-05 Richard Biener <rguenther@suse.de>
22180 PR tree-optimization/98381
22181 * tree.c (vector_element_bits): Properly compute bool vector
22183 * tree-vect-loop.c (vectorizable_live_operation): Properly
22184 compute the last lane bit offset.
22186 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
22189 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
22190 Clear the top 64 bytes of the input XMM register.
22191 (sse_cvttps2pi): Ditto.
22193 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
22196 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
22198 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
22201 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
22204 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
22206 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
22207 (umaddsidi4_split): Likewise.
22209 2021-01-05 liuhongt <hongtao.liu@intel.com>
22212 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
22213 define_insn_and_split for zero_extend of subreg HI of pmovskb
22215 (*sse2_pmovskb_zexthisi): Add new combine splitters for
22216 zero_extend of not of subreg HI of pmovskb result.
22218 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
22221 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
22223 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
22224 convert_memory_address to convert symbolic immediates to ptr_mode
22225 before forcing them to memory.
22227 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
22229 PR rtl-optimization/97144
22230 * recog.c (constrain_operands): Initialize matching_operand
22231 for each alternative, rather than only doing it once.
22233 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
22235 PR rtl-optimization/98403
22236 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
22237 why we don't remove call clobbers.
22238 (function_info::apply_changes_to_insn): Don't attempt to add
22239 call clobbers here.
22241 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
22243 PR tree-optimization/98371
22244 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
22245 (vect_analyze_loop): If an epilogue loop appears to be cheaper
22246 than the main loop, re-analyze it as a main loop before adopting
22249 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22252 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
22253 * aclocal.m4, configure: Regenerate.
22254 * Makefile.in (NETLIBS): Define.
22255 (BACKEND): Remove $(CODYLIB).
22257 2021-01-05 Jakub Jelinek <jakub@redhat.com>
22259 PR rtl-optimization/98334
22260 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
22261 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
22263 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22265 * tree-inline.c (expand_call_inline): Restore input_location.
22266 Return result from recursive call.
22268 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
22270 PR tree-optimization/95401
22271 * config/aarch64/aarch64-sve-builtins.cc
22272 (gimple_folder::load_store_cookie): Use bits rather than bytes
22273 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
22274 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
22275 * tree-vect-stmts.c (vectorizable_store): Likewise.
22276 (vectorizable_load): Likewise.
22278 2021-01-04 Richard Biener <rguenther@suse.de>
22280 PR tree-optimization/98308
22281 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
22284 2021-01-04 Jakub Jelinek <jakub@redhat.com>
22286 PR tree-optimization/95771
22287 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
22288 with precision smaller than int's precision and types with precision
22289 twice as large as long long. Formatting fixes.
22291 2021-01-04 Richard Biener <rguenther@suse.de>
22293 PR tree-optimization/98464
22294 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
22295 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
22296 (process_bb): Adjust.
22298 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
22301 * doc/invoke.texi (-fsanitize=address): Fix wording describing
22302 clash with -fsanitize=hwaddress.
22304 2021-01-04 Richard Biener <rguenther@suse.de>
22306 PR tree-optimization/98282
22307 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
22308 invariants as VN_NARY.
22310 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
22313 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
22314 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
22315 to handle zero operands.
22317 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
22319 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
22320 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
22321 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
22324 2021-01-04 Richard Biener <rguenther@suse.de>
22326 PR tree-optimization/98393
22327 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
22328 when hitting the limit.
22330 2021-01-04 Richard Biener <rguenther@suse.de>
22332 PR tree-optimization/98291
22333 * tree-vect-loop.c (vectorizable_reduction): Bypass
22334 associativity check for SLP reductions with VF 1.
22336 2021-01-04 Jakub Jelinek <jakub@redhat.com>
22338 PR tree-optimization/96782
22339 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
22341 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22343 * collect-utils.c (collect_execute): Check dumppfx.
22344 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
22345 to collect_execute.
22346 (do_link): Add new parameter atsuffix.
22347 (main): Handle -dumpdir option. Skip one argument for
22348 -o, -isystem and -B options.
22349 * gcc.c (make_at_file): New helper function.
22350 (close_at_file): Use it.
22352 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22354 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
22355 Amend handling for LD64_VERSION fallback defaults.
22357 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22359 * config.gcc: Compute default version information
22360 from the configured target. Likewise defaults for
22362 * config/darwin10.h: Removed.
22363 * config/darwin12.h: Removed.
22364 * config/darwin9.h: Removed.
22365 * config/rs6000/darwin8.h: Removed.
22367 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22369 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
22371 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22373 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
22374 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
22376 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22378 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
22380 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
22382 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22384 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
22385 for the Darwin10 unwinder stub from here ...
22386 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
22388 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
22390 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
22391 (ASM_DEBUG_SPEC):Only define if the assembler supports
22393 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
22394 (DARWIN_PREFER_DWARF): Define.
22395 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
22396 (DARWIN_PREFER_DWARF): Likewise
22397 (DSYMUTIL_SPEC): Likewise.
22398 (COLLECT_RUN_DSYMUTIL): Likewise.
22399 (ASM_DEBUG_SPEC): Likewise.
22400 (ASM_DEBUG_OPTION_SPEC): Likewise.
22402 2021-01-02 Jan Hubicka <jh@suse.cz>
22404 * cfg.c (free_block): ggc_free bb.
22406 2021-01-01 Jakub Jelinek <jakub@redhat.com>
22408 * gcc.c (process_command): Update copyright notice dates.
22409 * gcov-dump.c (print_version): Ditto.
22410 * gcov.c (print_version): Ditto.
22411 * gcov-tool.c (print_version): Ditto.
22412 * gengtype.c (create_file): Ditto.
22413 * doc/cpp.texi: Bump @copying's copyright year.
22414 * doc/cppinternals.texi: Ditto.
22415 * doc/gcc.texi: Ditto.
22416 * doc/gccint.texi: Ditto.
22417 * doc/gcov.texi: Ditto.
22418 * doc/install.texi: Ditto.
22419 * doc/invoke.texi: Ditto.
22421 2021-01-01 Jakub Jelinek <jakub@redhat.com>
22423 * ChangeLog-2020: Rotate ChangeLog. New file.
22426 Copyright (C) 2021 Free Software Foundation, Inc.
22428 Copying and distribution of this file, with or without modification,
22429 are permitted in any medium without royalty provided the copyright
22430 notice and this notice are preserved.