1 2021-08-08 Sergei Trofimovich <siarheit@google.com>
3 * lra-constraints.c: Fix s/otput/output/ typo.
5 2021-08-06 Martin Sebor <msebor@redhat.com>
7 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
8 (expand_builtin_strcat): Same.
9 (expand_builtin_stpncpy): Same.
10 (expand_builtin_strncat): Same.
11 (check_read_access): Same.
12 (check_memop_access): Same.
13 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
14 (expand_builtin_strnlen): Same.
15 (expand_builtin_memcpy): Same.
16 (expand_builtin_memmove): Same.
17 (expand_builtin_mempcpy): Same.
18 (expand_builtin_strcpy): Same.
19 (expand_builtin_strcpy_args): Same.
20 (expand_builtin_stpcpy_1): Same.
21 (expand_builtin_strncpy): Same.
22 (expand_builtin_memset): Same.
23 (expand_builtin_bzero): Same.
24 (expand_builtin_strcmp): Same.
25 (expand_builtin_strncmp): Same.
26 (expand_builtin): Remove handlers.
27 (fold_builtin_strlen): Add a comment.
28 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
29 * calls.c (maybe_warn_nonstring_arg): Same.
30 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
31 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
32 (gimple_fold_builtin_stpcpy): Same.
33 * gimple-ssa-warn-access.cc (has_location): New function.
35 (get_callee_fndecl): Same.
38 (warn_string_no_nul): Define.
39 (unterminated_array): Same.
40 (check_nul_terminated_array): Same.
41 (maybe_warn_nonstring_arg): Same.
42 (maybe_warn_for_bound): Same.
43 (warn_for_access): Same.
45 (check_memop_access): Same.
46 (check_read_access): Same.
47 (warn_dealloc_offset): Use helper functions.
48 (maybe_emit_free_warning): Same.
49 (class pass_waccess): Add members.
50 (check_strcat): New function.
51 (check_strncat): New function.
52 (check_stxcpy): New function.
53 (check_stxncpy): New function.
54 (check_strncmp): New function.
55 (pass_waccess::check_builtin): New function.
56 (pass_waccess::check): Call it.
57 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
59 (maybe_warn_for_bound): Same.
61 (check_memop_access): Same.
62 (check_read_access): Same.
63 * pointer-query.h (struct access_data): Define a ctor overload.
65 2021-08-06 Richard Biener <rguenther@suse.de>
67 PR tree-optimization/101801
68 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
69 (vect_can_vectorize_without_simd_p): ... to this.
70 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
71 (vect_can_vectorize_without_simd_p): ... to this and fold
72 in vect_min_worthwhile_factor.
73 (vect_min_worthwhile_factor): Remove.
74 (vectorizable_reduction): Adjust and remove the cost part.
75 * tree-vect-stmts.c (vectorizable_shift): Likewise.
76 (vectorizable_operation): Likewise.
78 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
81 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
82 Add general_gr_operand predicate to operand 3.
84 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
86 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
87 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
89 2021-08-06 Tamar Christina <tamar.christina@arm.com>
91 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
92 register_svprfop): Pass vec<> by pointer.
93 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
94 * langhooks.c (lhd_simulate_enum_decl): Likewise.
95 * langhooks.h (struct lang_hooks_for_types): Likewise.
97 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
99 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
100 __builtin_memcpy instead of constructing an additional
101 __builtin_aarch64_simd_oi one vector at a time.
102 (vst1q_bf16_x2): Likewise.
103 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
104 an additional __builtin_aarch64_simd_ci one vector at a time.
105 (vst1q_bf16_x3): Likewise.
106 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
107 (vst1q_bf16_x4): Likewise.
108 (vst2_bf16): Use __builtin_memcpy instead of constructing an
109 additional __builtin_aarch64_simd_oi one vector at a time.
110 (vst2q_bf16): Likewise.
111 (vst3_bf16): Use __builtin_memcpy instead of constructing an
112 additional __builtin_aarch64_simd_ci mode one vector at a
114 (vst3q_bf16): Likewise.
115 (vst4_bf16): Use __builtin_memcpy instead of constructing an
116 additional __builtin_aarch64_simd_xi one vector at a time.
117 (vst4q_bf16): Likewise.
119 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
121 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
122 (__ST2Q_LANE_FUNC): Delete.
123 (vst2_lane_f16): Use __builtin_memcpy to copy vector
124 structure instead of constructing __builtin_aarch64_simd_oi
125 one vector at a time.
126 (vst2_lane_f32): Likewise.
127 (vst2_lane_f64): Likewise.
128 (vst2_lane_p8): Likewise.
129 (vst2_lane_p16): Likewise.
130 (vst2_lane_p64): Likewise.
131 (vst2_lane_s8): Likewise.
132 (vst2_lane_s16): Likewise.
133 (vst2_lane_s32): Likewise.
134 (vst2_lane_s64): Likewise.
135 (vst2_lane_u8): Likewise.
136 (vst2_lane_u16): Likewise.
137 (vst2_lane_u32): Likewise.
138 (vst2_lane_u64): Likewise.
139 (vst2_lane_bf16): Likewise.
140 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
141 structure instead of using a union.
142 (vst2q_lane_f32): Likewise.
143 (vst2q_lane_f64): Likewise.
144 (vst2q_lane_p8): Likewise.
145 (vst2q_lane_p16): Likewise.
146 (vst2q_lane_p64): Likewise.
147 (vst2q_lane_s8): Likewise.
148 (vst2q_lane_s16): Likewise.
149 (vst2q_lane_s32): Likewise.
150 (vst2q_lane_s64): Likewise.
151 (vst2q_lane_u8): Likewise.
152 (vst2q_lane_u16): Likewise.
153 (vst2q_lane_u32): Likewise.
154 (vst2q_lane_u64): Likewise.
155 (vst2q_lane_bf16): Likewise.
157 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
159 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
160 (__ST3Q_LANE_FUNC): Delete.
161 (vst3_lane_f16): Use __builtin_memcpy to copy vector
162 structure instead of constructing __builtin_aarch64_simd_ci
163 one vector at a time.
164 (vst3_lane_f32): Likewise.
165 (vst3_lane_f64): Likewise.
166 (vst3_lane_p8): Likewise.
167 (vst3_lane_p16): Likewise.
168 (vst3_lane_p64): Likewise.
169 (vst3_lane_s8): Likewise.
170 (vst3_lane_s16): Likewise.
171 (vst3_lane_s32): Likewise.
172 (vst3_lane_s64): Likewise.
173 (vst3_lane_u8): Likewise.
174 (vst3_lane_u16): Likewise.
175 (vst3_lane_u32): Likewise.
176 (vst3_lane_u64): Likewise.
177 (vst3_lane_bf16): Likewise.
178 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
179 structure instead of using a union.
180 (vst3q_lane_f32): Likewise.
181 (vst3q_lane_f64): Likewise.
182 (vst3q_lane_p8): Likewise.
183 (vst3q_lane_p16): Likewise.
184 (vst3q_lane_p64): Likewise.
185 (vst3q_lane_s8): Likewise.
186 (vst3q_lane_s16): Likewise.
187 (vst3q_lane_s32): Likewise.
188 (vst3q_lane_s64): Likewise.
189 (vst3q_lane_u8): Likewise.
190 (vst3q_lane_u16): Likewise.
191 (vst3q_lane_u32): Likewise.
192 (vst3q_lane_u64): Likewise.
193 (vst3q_lane_bf16): Likewise.
195 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
197 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
198 (__ST4Q_LANE_FUNC): Delete.
199 (vst4_lane_f16): Use __builtin_memcpy to copy vector
200 structure instead of constructing __builtin_aarch64_simd_xi
201 one vector at a time.
202 (vst4_lane_f32): Likewise.
203 (vst4_lane_f64): Likewise.
204 (vst4_lane_p8): Likewise.
205 (vst4_lane_p16): Likewise.
206 (vst4_lane_p64): Likewise.
207 (vst4_lane_s8): Likewise.
208 (vst4_lane_s16): Likewise.
209 (vst4_lane_s32): Likewise.
210 (vst4_lane_s64): Likewise.
211 (vst4_lane_u8): Likewise.
212 (vst4_lane_u16): Likewise.
213 (vst4_lane_u32): Likewise.
214 (vst4_lane_u64): Likewise.
215 (vst4_lane_bf16): Likewise.
216 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
217 structure instead of using a union.
218 (vst4q_lane_f32): Likewise.
219 (vst4q_lane_f64): Likewise.
220 (vst4q_lane_p8): Likewise.
221 (vst4q_lane_p16): Likewise.
222 (vst4q_lane_p64): Likewise.
223 (vst4q_lane_s8): Likewise.
224 (vst4q_lane_s16): Likewise.
225 (vst4q_lane_s32): Likewise.
226 (vst4q_lane_s64): Likewise.
227 (vst4q_lane_u8): Likewise.
228 (vst4q_lane_u16): Likewise.
229 (vst4q_lane_u32): Likewise.
230 (vst4q_lane_u64): Likewise.
231 (vst4q_lane_bf16): Likewise.
233 2021-08-06 Martin Liska <mliska@suse.cz>
235 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
236 a target option is restored, it can have
237 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
238 and error should not be emitted.
240 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
242 * gcov-io.h (gcov_write): Declare.
243 * gcov-io.c (gcov_write): New.
244 (gcov_write_counter): Remove.
245 (gcov_write_tag_length): Likewise.
246 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
247 gcov_write_unsigned().
248 * doc/invoke.texi (fprofile-info-section): Mention
249 __gcov_info_to_gdca().
251 2021-08-06 Martin Sebor <msebor@redhat.com>
253 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
254 arguments to by-reference.
255 (iterate_fix_dominators): Same.
256 * dominance.h (iterate_fix_dominators): Same.
257 * ipa-prop.h: Call auto_vec::to_vec_legacy.
258 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
259 arguments to by-reference.
260 (debug_data_dependence_relation): Same.
261 (dump_data_dependence_relations): Same.
262 * tree-data-ref.h (debug_data_dependence_relation): Same.
263 (dump_data_dependence_relations): Same.
264 * tree-predcom.c (dump_chains): Same.
265 (initialize_root_vars_lm): Same.
266 (determine_unroll_factor): Same.
267 (replace_phis_by_defined_names): Same.
268 (insert_init_seqs): Same.
269 (pcom_worker::tree_predictive_commoning_loop): Call
270 auto_vec::to_vec_legacy.
271 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
272 arguments to by-reference.
273 * tree-ssa-threadbackward.c (populate_worklist): Same.
274 (back_threader::resolve_def): Same.
275 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
276 (vect_enhance_data_refs_alignment): Same.
277 (vect_check_lower_bound): Same.
278 (vect_prune_runtime_alias_test_list): Same.
279 (vect_permute_store_chain): Same.
280 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
281 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
282 * tree-vectorizer.h (vect_permute_store_chain): Same.
283 * vec.c (test_init): New function.
284 (vec_c_tests): Call new function.
285 * vec.h (vec): Declare ctors, dtor, and assignment.
286 (auto_vec::vec_to_legacy): New function.
287 (vec::copy): Adjust initialization.
289 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
292 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
293 callee only uses GPRs.
294 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
295 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
296 * config/i386/x86gprintrin.h: Add
297 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
298 to disable non-GPR ISAs.
300 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
303 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
305 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
307 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
308 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
309 (vect_is_extending_load, vect_is_integer_truncation): New functions,
310 moved from aarch64.c but given different names.
311 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
312 (aarch64_is_reduction, aarch64_reduc_type)
313 (aarch64_embedded_comparison_type, aarch64_comparison_type)
314 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
315 in favor of the above. Update callers accordingly.
317 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
320 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
321 writing .cpu directive in asm output.
322 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
323 (arm_last_printed_arch_string): Delete.
324 (arm_last-printed_fpu_string): Delete.
325 (arm_configure_build_target): If use of floating-point/SIMD is
326 disabled, remove all fp/simd related features from the target ISA.
327 (last_arm_targ_options): New variable.
328 (arm_print_asm_arch_directives): Add new parameters. Change order
329 of emitted directives and handle all cases here.
330 (arm_file_start): Always call arm_print_asm_arch_directives, move
331 all generation of .arch/.arch_extension here.
332 (arm_file_end): Call arm_print_asm_arch.
333 (arm_declare_function_name): Call arm_print_asm_arch_directives
334 instead of printing .arch/.fpu directives directly.
336 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
338 * config/arm/arm.c (arm_configure_build_target): Don't call
339 arm_option_reconfigure_globals.
340 (arm_option_restore): Call arm_option_reconfigure_globals after
341 reconfiguring the target.
342 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
344 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
346 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
347 arch_name is always set.
349 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
351 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
352 of vec_select high-half from being added into Neon subtract
355 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
357 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
358 of vec_select high-half from being added into Neon add cost.
360 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
362 * cfgloop.h (loops_list::loops_list): Add one optional argument
363 root and adjust accordingly, update loop tree walking and factor
365 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
367 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
369 PR tree-optimization/101626
370 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
371 reverse scalar storage order on a pointer or vector component.
373 2021-08-05 liuhongt <hongtao.liu@intel.com>
375 * config/i386/sse.md (cond_<code><mode>): New expander.
377 2021-08-05 liuhongt <hongtao.liu@intel.com>
379 * config/i386/sse.md (cond_<code><mode>): New expander.
381 2021-08-05 liuhongt <hongtao.liu@intel.com>
383 * config/i386/sse.md (cond_<code><mode>): New expander.
385 2021-08-04 David Malcolm <dmalcolm@redhat.com>
388 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
390 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
393 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
394 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
396 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
399 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
400 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
401 data with SSE register from one memory location to another.
403 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
405 * config/s390/s390.c (expand_perm_with_vpdi): New function.
406 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
407 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
408 parameterized expander.
409 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
411 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
413 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
414 (struct expand_vec_perm_d): Define struct.
415 (expand_perm_with_merge): New function.
416 (vectorize_vec_perm_const_1): New function.
417 (s390_vectorize_vec_perm_const): New function.
418 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
420 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
422 * config/s390/vector.md (V_HW_64): Remove mode iterator.
423 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
424 * config/s390/vx-builtins.md
425 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
428 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
430 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
432 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
434 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
435 instead of an unspec.
437 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
439 * config/s390/s390-modes.def: Add more vector modes to support
440 concatenation of two vectors.
441 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
443 (s390_expand_merge): Likewise.
444 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
445 (s390_expand_merge): New function.
446 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
447 Remove constant definitions.
448 * config/s390/vector.md (V_HW_2): Add mode iterators.
449 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
450 (vec_2x_nelts, vec_2x_wide): New mode attributes.
451 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
452 New pattern definitions.
453 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
454 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
455 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
456 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
458 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
460 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
461 emit vec merge pattern.
463 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
465 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
467 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
468 vec_select high-half from being added into Neon multiply
470 * rtlanal.c (vec_series_highpart_p): Define.
471 * rtlanal.h (vec_series_highpart_p): Declare.
473 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
475 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
477 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
478 vec_select cost from being added into Neon multiply cost.
480 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
482 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
483 which old_loop_vinfo is an epilogue loop that handles a constant
484 number of iterations.
486 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
488 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
489 when a reanalyzed loop fails to be cheaper than the current
492 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
494 * config/aarch64/aarch64.c: Fix a typo.
496 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
498 PR gcov-profile/101773
499 * gcov-io.c (gcov_close): Check return code of a fclose.
501 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
504 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
505 .file statement when needed.
507 2021-08-04 Richard Biener <rguenther@suse.de>
509 * tree-vect-data-refs.c (vect_check_gather_scatter):
510 Include widening conversions only when the result is
511 still handed by native gather or the current offset
512 size not already matches the data size.
513 Also succeed analysis in case there's no native support,
514 noted by a IFN_LAST ifn and a NULL decl.
515 (vect_analyze_data_refs): Always consider gathers.
516 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
517 Test for no IFN gather rather than decl gather.
518 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
519 gather-scatter info and cost emulated gathers accordingly.
520 (vect_truncate_gather_scatter_offset): Properly test for
522 (vect_use_strided_gather_scatters_p): Likewise.
523 (get_load_store_type): Handle emulated gathers and its
525 (vectorizable_load): Likewise. Emulate them by extracting
526 scalar offsets, doing scalar loads and a vector construct.
528 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
531 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
532 argument to set m_max_size.
533 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
534 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
535 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
537 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
538 Marc Glisse <marc.glisse@inria.fr>
540 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
541 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
542 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
544 2021-08-04 Richard Biener <rguenther@suse.de>
546 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
547 out code to decompose vector loads ...
548 (optimize_vector_load): ... here. Generalize it to
549 handle intermediate widening and TARGET_MEM_REF loads
550 and apply it to loads with a supported vector mode as well.
552 2021-08-04 Richard Biener <rguenther@suse.de>
554 PR tree-optimization/101756
555 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
556 the result of the reduction epilogue is compatible to the original
559 2021-08-04 liuhongt <hongtao.liu@intel.com>
562 * config/i386/i386.md (peephole2): Refine predicate from
563 register_operand to general_reg_operand.
565 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
567 * gimple-range-path.h (path_range_query::dump): Mark override.
569 2021-08-04 Richard Biener <rguenther@suse.de>
571 PR tree-optimization/101769
572 * tree-tailcall.c (eliminate_tail_call): Add the created loop
573 for the first recursion and return it via the new output parameter.
574 (optimize_tail_call): Pass through new output param.
575 (tree_optimize_tail_calls_1): After creating all latches,
576 add the created loop to the loop tree. Do not mark loops for fixup.
578 2021-08-04 Martin Liska <mliska@suse.cz>
580 * doc/invoke.texi: Document threader-mode param.
582 2021-08-04 liuhongt <hongtao.liu@intel.com>
584 * config/i386/sse.md (cond_fma<mode>): New expander.
585 (cond_fms<mode>): Ditto.
586 (cond_fnma<mode>): Ditto.
587 (cond_fnms<mode>): Ditto.
589 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
591 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
593 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
595 * config/rs6000/constraints.md: Remove "e" from the list of available
596 constraint characters.
598 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
600 PR gcov-profile/71672
601 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
603 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
605 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
607 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
609 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
610 try XMM31 to avoid vzeroupper.
612 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
614 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
615 -mcpu=neoverse-512tvb.
616 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
617 * config/aarch64/aarch64-tune.md: Regenerate.
618 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
619 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
620 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
621 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
622 (aarch64_adjust_body_cost): Likewise.
624 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
626 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
627 record issue information for operations that occur in the
630 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
632 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
633 parameter. Detect cases in which an Advanced SIMD MLA would almost
634 certainly require a MOV.
635 (aarch64_count_ops): Update accordingly.
637 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
639 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
640 function, split out from...
641 (aarch64_detect_vector_stmt_subtype): ...here.
642 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
644 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
646 * config/aarch64/aarch64-protos.h (sve_vec_cost):
647 Add gather_load_x32_cost and gather_load_x64_cost.
648 * config/aarch64/aarch64.c (generic_sve_vector_cost)
649 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
650 accordingly, using the values given by the scalar_load * number
651 of elements calculation that we used previously.
652 (aarch64_detect_vector_stmt_subtype): Use the new fields.
654 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
656 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
657 function, split out from...
658 (aarch64_adjust_body_cost): ...here.
660 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
662 * config/aarch64/fractional-cost.h: New file.
663 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
665 (vec_cost_fraction): New typedef.
666 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
667 (aarch64_detect_vector_stmt_subtype): Likewise.
668 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
669 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
671 (aarch64_adjust_body_cost): Likewise.
672 (aarch64_test_cost_fraction): New function.
673 (aarch64_run_selftests): Call it.
675 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
677 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
679 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
681 (aarch64_estimated_poly_value): Likewise. Use the least significant
682 set bit for the minimum and likely values. Use the most significant
683 set bit for the maximum value.
685 2021-08-03 liuhongt <hongtao.liu@intel.com>
687 * config/i386/sse.md (cond_<insn><mode>): New expander.
688 (cond_mul<mode>): Ditto.
690 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
692 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
694 2021-08-03 liuhongt <hongtao.liu@intel.com>
696 * config/i386/sse.md (cond_<insn><mode>):New expander.
697 (cond_mul<mode>): Ditto.
698 (cond_div<mode>): Ditto.
700 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
702 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
703 check stack_realign_needed for stack realignment.
704 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
705 than the largest integer supported by vector register.
706 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
707 (MOVE_MAX): Set to bytes of the largest integer supported by
709 (STORE_MAX_PIECES): New.
711 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
713 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
714 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
715 data from one memory location to another.
717 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
720 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
722 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
724 PR tree-optimization/101724
725 * params.opt: Remove --param=threader-iterative.
726 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
729 2021-08-02 Tom de Vries <tdevries@suse.de>
732 * doc/extend.texi (nonnull attribute): Improve documentation.
734 2021-08-02 Andrew Pinski <apinski@marvell.com>
736 PR rtl-optimization/101683
737 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
739 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
741 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
742 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
743 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
744 (tree_ssa_phiop_worker): Update call to function above.
746 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
749 * config/i386/i386.md (bsr_rex64_1_zext): New.
750 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
751 with gen_bsr_rex64_1_zext.
753 2021-07-31 Jakub Jelinek <jakub@redhat.com>
756 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
757 define_insn patterns.
758 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
759 Add combine splitters for constant - clz.
760 (clz<mode>2): Use a temporary pseudo for bsr result.
762 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
764 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
765 _mm_floor_sd, _mm_floor_ss): New.
767 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
769 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
770 _mm_ceil_sd, _mm_ceil_ss): New.
772 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
774 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
775 _mm_blend_ps, _mm_blendv_ps): New.
777 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
778 Uroš Bizjak <ubizjak@gmail.com>
780 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
781 to generate a conditional move using the carry flag after sub $1.
782 (peephole2): Eliminate a register-to-register move by inverting
783 the condition of a conditional move.
785 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
787 * config/mmix/mmix.md ("call", "call_value", "*call_real")
788 ("*call_value_real"): Don't generate rtx mentioning the generic
789 operands 1 and 2 to "call", and similarly for "call_value".
790 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
791 (mmix_print_operand): Use '!' instead of 'p'.
793 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
795 * doc/md.texi (call): Correct information about operand 2.
796 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
798 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
800 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
802 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
804 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
806 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
808 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
810 (*::get_bb_range): Ditto.
811 (*::bb_range_p): Ditto.
812 * gimple-range-cache.h: Change prototypes.
814 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
817 * builtins.c (builtin_memcpy_read_str): Change the mode argument
818 from scalar_int_mode to fixed_size_mode.
819 (builtin_strncpy_read_str): Likewise.
820 (gen_memset_value_from_prev): New function.
821 (builtin_memset_read_str): Change the mode argument from
822 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
823 and support CONST_VECTOR.
824 (builtin_memset_gen_str): Likewise.
825 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
827 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
828 with fixed_size_mode.
829 (builtin_memset_read_str): Likewise.
830 * expr.c (widest_int_mode_for_size): Renamed to ...
831 (widest_fixed_size_mode_for_size): Add a bool argument to
832 indicate if QI vector mode can be used.
833 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
834 instead of widest_int_mode_for_size.
835 (pieces_addr::adjust): Change the mode argument from
836 scalar_int_mode to fixed_size_mode.
837 (op_by_pieces_d): Make m_len read-only. Add a bool member,
838 m_qi_vector_mode, to indicate that QI vector mode can be used.
839 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
840 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
841 instead of widest_int_mode_for_size.
842 (op_by_pieces_d::get_usable_mode): Change the mode argument from
843 scalar_int_mode to fixed_size_mode. Call
844 widest_fixed_size_mode_for_size instead of
845 widest_int_mode_for_size.
846 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
847 function to return the smallest integer or QI vector mode.
848 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
849 instead of widest_int_mode_for_size. Call
850 smallest_fixed_size_mode_for_size instead of
851 smallest_int_mode_for_size.
852 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
853 indicate that QI vector mode can be used and pass it to
854 op_by_pieces_d::op_by_pieces_d.
855 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
856 instead of widest_int_mode_for_size. Pass memsetp to
857 widest_fixed_size_mode_for_size to support QI vector mode.
858 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
859 (store_by_pieces): Pass memsetp to
860 store_by_pieces_d::store_by_pieces_d.
861 (clear_by_pieces_1): Removed.
862 (clear_by_pieces): Replace clear_by_pieces_1 with
863 builtin_memset_read_str and pass true to store_by_pieces_d to
864 support vector mode broadcast.
865 (string_cst_read_str): Change the mode argument from
866 scalar_int_mode to fixed_size_mode.
867 * expr.h (by_pieces_constfn): Change scalar_int_mode to
869 (by_pieces_prev): Likewise.
870 * rtl.h (lowpart_subreg_regno): New.
871 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
872 simplify_subreg_regno.
873 * target.def (gen_memset_scratch_rtx): New hook.
874 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
875 * doc/tm.texi: Regenerated.
877 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
880 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
881 TARGET_EXPR instead of MODIFY_EXPR.
883 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
886 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
887 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
888 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
890 (vec_cmpu<IMSA:mode><mode_i>): New expander.
892 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
895 * config/i386/i386-options.c (ix86_option_override_internal):
896 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
898 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
901 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
902 explicitly dereferencing __a.
903 (vld1_s64): Likewise.
904 (vld1_u64): Likewise.
905 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
908 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
910 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
911 use of m_range_analyzer.
912 (loop_versioning::lv_dom_walker::before_dom_children): Same.
913 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
914 (loop_versioning::prune_loop_conditions): Replace vr_values use
915 with range_query interface.
916 (pass_loop_versioning::execute): Use ranger.
918 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
921 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
922 enum values, and emit a warning if they mismatch.
924 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
926 * cfgloop.h (as_const): New function.
927 (class loop_iterator): Rename to ...
928 (class loops_list): ... this.
929 (loop_iterator::next): Rename to ...
930 (loops_list::Iter::fill_curr_loop): ... this and adjust.
931 (loop_iterator::loop_iterator): Rename to ...
932 (loops_list::loops_list): ... this and adjust.
933 (loops_list::Iter): New class.
934 (loops_list::iterator): New type.
935 (loops_list::const_iterator): New type.
936 (loops_list::begin): New function.
937 (loops_list::end): Likewise.
938 (loops_list::begin const): Likewise.
939 (loops_list::end const): Likewise.
940 (FOR_EACH_LOOP): Remove.
941 (FOR_EACH_LOOP_FN): Remove.
942 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
943 for loop with loops_list instance.
944 (sort_sibling_loops): Likewise.
945 (disambiguate_loops_with_multiple_latches): Likewise.
946 (verify_loop_structure): Likewise.
947 * cfgloopmanip.c (create_preheaders): Likewise.
948 (force_single_succ_latches): Likewise.
949 * config/aarch64/falkor-tag-collision-avoidance.c
950 (execute_tag_collision_avoidance): Likewise.
951 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
952 * config/s390/s390.c (s390_adjust_loops): Likewise.
953 * doc/loop.texi: Likewise.
954 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
955 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
956 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
957 (loop_versioning::make_versioning_decisions): Likewise.
958 * gimple-ssa-split-paths.c (split_paths): Likewise.
959 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
960 * graphite.c (canonicalize_loop_form): Likewise.
961 (graphite_transform_loops): Likewise.
962 * ipa-fnsummary.c (analyze_function_body): Likewise.
963 * ipa-pure-const.c (analyze_function): Likewise.
964 * loop-doloop.c (doloop_optimize_loops): Likewise.
965 * loop-init.c (loop_optimizer_finalize): Likewise.
966 (fix_loop_structure): Likewise.
967 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
968 (move_loop_invariants): Likewise.
969 * loop-unroll.c (decide_unrolling): Likewise.
970 (unroll_loops): Likewise.
971 * modulo-sched.c (sms_schedule): Likewise.
972 * predict.c (predict_loops): Likewise.
973 (pass_profile::execute): Likewise.
974 * profile.c (branch_prob): Likewise.
975 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
976 (sel_find_rgns): Likewise.
977 * tree-cfg.c (replace_loop_annotate): Likewise.
978 (replace_uses_by): Likewise.
979 (move_sese_region_to_fn): Likewise.
980 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
981 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
982 * tree-parloops.c (parallelize_loops): Likewise.
983 * tree-predcom.c (tree_predictive_commoning): Likewise.
984 * tree-scalar-evolution.c (scev_initialize): Likewise.
985 (scev_reset): Likewise.
986 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
987 * tree-ssa-live.c (remove_unused_locals): Likewise.
988 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
989 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
990 (tree_ssa_lim_initialize): Likewise.
991 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
992 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
993 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
994 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
995 (free_numbers_of_iterations_estimates): Likewise.
996 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
997 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
998 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
999 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1000 (pass_scev_cprop::execute): Likewise.
1001 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
1002 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
1003 * tree-ssa-threadupdate.c
1004 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
1005 * tree-vectorizer.c (vectorize_loops): Likewise.
1006 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
1008 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
1010 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
1011 generating a VOIDmode register for e.g the
1012 function_arg_info::end_marker.
1014 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
1016 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
1017 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
1018 (cc mode_attr): Similarly.
1019 (ccz subst_attr): Similarly.
1020 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
1021 * config/h8300/testcompare.md: Remove various cc0 based patterns
1022 that had been commented out. Add pattern to set CCZ from a bit
1025 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
1026 Julian Brown <julian@codesourcery.com>
1027 Kwok Cheung Yeung <kcy@codesourcery.com>
1029 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
1030 'update_stmt' after modification.
1031 (pass_oacc_loop_designation): New function, extracted out of...
1032 (pass_oacc_device_lower): ... this.
1033 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
1034 (make_pass_oacc_loop_designation): New
1035 * passes.def: Add it.
1036 * tree-parloops.c (create_parallel_loop): Adjust.
1037 * tree-pass.h (make_pass_oacc_loop_designation): New.
1039 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
1041 * flag-types.h (enum threader_mode): New.
1042 * params.opt: Add entry for --param=threader-mode.
1043 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
1044 (class back_threader): New.
1045 (back_threader::back_threader): New.
1046 (back_threader::~back_threader): New.
1047 (back_threader::maybe_register_path): New.
1048 (back_threader::find_taken_edge): New.
1049 (back_threader::find_taken_edge_switch): New.
1050 (back_threader::find_taken_edge_cond): New.
1051 (back_threader::resolve_def): New.
1052 (back_threader::resolve_phi): New.
1053 (back_threader::find_paths_to_names): New.
1054 (back_threader::find_paths): New.
1057 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
1058 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
1059 (pass_thread_jumps::execute): Abstract out code...
1060 (try_thread_blocks): ...here.
1061 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
1062 Abstract out threading candidate code to...
1063 (single_succ_to_potentially_threadable_block): ...here.
1064 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
1066 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
1067 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
1068 Return bool from register_jump_thread.
1070 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
1072 * target.def: in0 and in1 do not need to be registers.
1073 * doc/tm.texi: Regenerate.
1075 2021-07-29 liuhongt <hongtao.liu@intel.com>
1078 * config/i386/i386.c (ix86_widen_mult_cost): New function.
1079 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
1082 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
1085 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
1086 (rs6000_preferred_doloop_mode): New hook.
1087 * doc/tm.texi: Regenerate.
1088 * doc/tm.texi.in: Add hook preferred_doloop_mode.
1089 * target.def (preferred_doloop_mode): New hook.
1090 * targhooks.c (default_preferred_doloop_mode): New hook.
1091 * targhooks.h (default_preferred_doloop_mode): New hook.
1092 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
1093 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
1094 and compute_doloop_base_on_mode.
1096 2021-07-28 Martin Sebor <msebor@redhat.com>
1098 PR middle-end/101494
1099 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
1100 and size computation.
1102 2021-07-28 Martin Sebor <msebor@redhat.com>
1104 PR middle-end/101601
1105 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
1107 Handle pointers to functions.
1109 2021-07-28 Martin Sebor <msebor@redhat.com>
1111 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
1112 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
1113 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
1114 (access_ref::access_ref): Same.
1115 (access_ref::phi): Same.
1116 (access_ref::get_ref): Same.
1117 (access_ref::size_remaining): Same.
1118 (access_ref::offset_in_range): Same.
1119 (access_ref::add_offset): Same.
1120 (access_ref::inform_access): Same.
1121 (ssa_name_limit_t::visit_phi): Same.
1122 (ssa_name_limit_t::leave_phi): Same.
1123 (ssa_name_limit_t::next): Same.
1124 (ssa_name_limit_t::next_phi): Same.
1125 (ssa_name_limit_t::~ssa_name_limit_t): Same.
1126 (pointer_query::pointer_query): Same.
1127 (pointer_query::get_ref): Same.
1128 (pointer_query::put_ref): Same.
1129 (pointer_query::flush_cache): Same.
1130 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
1131 (check_nul_terminated_array): Same.
1132 (unterminated_array): Same.
1133 (maybe_warn_for_bound): Same.
1134 (check_read_access): Same.
1135 (warn_for_access): Same.
1136 (get_size_range): Same.
1137 (check_access): Same.
1138 (gimple_call_alloc_size): Move to tree.c.
1139 (gimple_parm_array_size): Move to pointer-query.cc.
1140 (get_offset_range): Same.
1141 (gimple_call_return_array): Same.
1142 (handle_min_max_size): Same.
1143 (handle_array_ref): Same.
1144 (handle_mem_ref): Same.
1145 (compute_objsize): Same.
1146 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
1147 (call_dealloc_argno): Same.
1148 (fndecl_dealloc_argno): Same.
1149 (new_delete_mismatch_p): Same.
1150 (matching_alloc_calls_p): Same.
1151 (warn_dealloc_offset): Same.
1152 (maybe_emit_free_warning): Same.
1153 * builtins.h (check_nul_terminated_array): Move to
1154 gimple-ssa-warn-access.h.
1155 (check_nul_terminated_array): Same.
1156 (warn_string_no_nul): Same.
1157 (unterminated_array): Same.
1158 (class ssa_name_limit_t): Same.
1159 (class pointer_query): Same.
1160 (struct access_ref): Same.
1161 (class range_query): Same.
1162 (struct access_data): Same.
1163 (gimple_call_alloc_size): Same.
1164 (gimple_parm_array_size): Same.
1165 (compute_objsize): Same.
1166 (class access_data): Same.
1167 (maybe_emit_free_warning): Same.
1168 * calls.c (initialize_argument_information): Remove call to
1169 maybe_emit_free_warning.
1170 * gimple-array-bounds.cc: Include new header..
1171 * gimple-fold.c: Same.
1172 * gimple-ssa-sprintf.c: Same.
1173 * gimple-ssa-warn-restrict.c: Same.
1174 * passes.def: Add pass_warn_access.
1175 * tree-pass.h (make_pass_warn_access): Declare.
1176 * tree-ssa-strlen.c: Include new headers.
1177 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
1178 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
1179 * gimple-ssa-warn-access.cc: New file.
1180 * gimple-ssa-warn-access.h: New file.
1181 * pointer-query.cc: New file.
1182 * pointer-query.h: New file.
1184 2021-07-28 Jakub Jelinek <jakub@redhat.com>
1186 PR middle-end/101624
1187 * ubsan.c (maybe_instrument_pointer_overflow,
1188 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
1189 PARM_DECLs or RESULT_DECLs.
1190 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
1192 2021-07-28 Jakub Jelinek <jakub@redhat.com>
1194 PR middle-end/101642
1195 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
1196 to type of bswap16 for comparison.
1197 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
1199 2021-07-28 Richard Biener <rguenther@suse.de>
1201 PR tree-optimization/101615
1202 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
1203 at CTOR SLP graph entries.
1205 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1207 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
1208 Add "r,w" alternative.
1210 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
1213 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
1214 AVX_U128_DIRTY when all bits are zero.
1216 2021-07-28 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/101615
1219 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
1220 external nodes cannot be permuted so make them perm_out 0.
1222 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
1225 * config.in: Regenerate.
1226 * config/gcn/gcn-hsa.h (A_FIJI): New define.
1227 (A_900): New define.
1228 (A_906): New define.
1229 (A_908): New define.
1230 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
1231 * config/gcn/gcn.c (output_file_start): Adjust attributes according
1232 to the assembler capabilities.
1233 * config/gcn/mkoffload.c (main): Likewise.
1234 * configure: Regenerate.
1235 * configure.ac: Add tests for LLVM assembler attribute features.
1237 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
1239 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
1240 cond_false and cond_true on branches.
1242 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
1244 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
1247 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
1249 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
1251 2021-07-28 Jakub Jelinek <jakub@redhat.com>
1254 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
1255 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
1256 and has special !TARGET_AVX512VL expansion.
1257 (vashrv2di3<mask_name>): Rename to ...
1258 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
1259 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
1261 2021-07-28 Martin Uecker <muecker@gwdg.de>
1263 * calls.c (maybe_warn_rdwr_sizes): Correct argument
1264 numbers in warning that were switched.
1266 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
1268 PR tree-optimization/101596
1269 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
1270 by using new_type's precision instead.
1272 2021-07-28 liuhongt <hongtao.liu@intel.com>
1275 * config/i386/i386.h (processor_costs): Add new member
1277 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
1278 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
1279 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
1280 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
1281 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
1282 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
1283 generic_cost, core_cost): Initialize integer_to_sse same value
1285 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
1286 * config/i386/i386.c (ix86_builtin_vectorization_cost):
1287 Use integer_to_sse instead of sse_op to calculate the cost of
1290 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
1292 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
1294 (write_init_file): Call write_ovld_static_init.
1296 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
1298 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
1300 (write_init_file): Call write_bif_static_init.
1302 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
1304 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
1305 (TYPE_MAP_SIZE): New macro.
1306 (type_map): New initialized variable.
1307 (typemap_cmp): New function.
1308 (write_type_node): Likewise.
1309 (write_fntype_init): Implement.
1311 2021-07-27 Martin Sebor <msebor@redhat.com>
1313 PR tree-optimization/101584
1314 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
1315 (check_defs): Call it.
1317 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
1319 * tree-ssa-dom.c (dom_jump_threader_simplifier):
1320 Put avail_exprs_stack in the class, instead of passing it to
1321 jump_threader_simplifier.
1322 (dom_jump_threader_simplifier::simplify): Add state argument.
1323 (dom_opt_dom_walker): Add state.
1324 (pass_dominator::execute): Pass state to threader.
1325 (dom_opt_dom_walker::before_dom_children): Use state.
1326 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
1328 (jump_threader::record_temporary_equivalences_from_phis):
1329 Register equivalences through the state variable.
1330 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
1331 Record ranges in a statement through the state variable.
1332 (jump_threader::simplify_control_stmt_condition): Pass state to
1334 (jump_threader::simplify_control_stmt_condition_1): Same.
1335 (jump_threader::thread_around_empty_blocks): Remove obsolete
1337 (jump_threader::thread_through_normal_block): Record equivalences
1338 on edge through the state variable.
1339 (jump_threader::thread_across_edge): Abstract state pushing.
1340 (jt_state::jt_state): New.
1341 (jt_state::push): New.
1342 (jt_state::pop): New.
1343 (jt_state::register_equiv): New.
1344 (jt_state::record_ranges_from_stmt): New.
1345 (jt_state::register_equivs_on_edge): New.
1346 (jump_threader_simplifier::jump_threader_simplifier): Move from
1348 (jump_threader_simplifier::simplify): Add state argument.
1349 * tree-ssa-threadedge.h (class jt_state): New.
1350 (class jump_threader): Add state to constructor.
1351 (class jump_threader_simplifier): Add state to simplify. Remove
1352 avail_exprs_stack from class.
1353 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
1355 (vrp_jump_threader::vrp_jump_threader): Add state.
1356 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
1358 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
1360 * Makefile.in (OBJS): Add gimple-range-path.o.
1361 * gimple-range-path.cc: New file.
1362 * gimple-range-path.h: New file.
1364 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
1366 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
1367 inside vec_duplicate for all patterns.
1368 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
1369 Push sign/zero-extension inside vec_duplicate.
1371 2021-07-27 Richard Biener <rguenther@suse.de>
1373 PR tree-optimization/101573
1374 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
1375 looking at uninitialized PHI arg defs in some constrained cases.
1376 (warn_uninitialized_vars): Call it.
1377 (execute_early_warn_uninitialized): Calculate dominators.
1379 2021-07-27 Richard Biener <rguenther@suse.de>
1381 PR tree-optimization/39821
1382 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
1383 vector_stmt for widening arithmetic.
1384 (vectorizable_conversion): Adjust.
1386 2021-07-27 Martin Jambor <mjambor@suse.cz>
1388 * cgraph.h (ipa_replace_map): New field force_load_ref.
1389 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
1390 aded new flag load_dereferenced, adjusted comments.
1391 (ipa_get_param_dereferenced): New function.
1392 (ipa_set_param_dereferenced): Likewise.
1393 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
1394 * ipa-cp.c: Include gimple.h.
1395 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
1396 (get_replacement_map): New parameter force_load_ref, set the
1397 appropriate flag in ipa_replace_map if set.
1398 (struct symbol_and_index_together): New type.
1399 (adjust_refs_in_act_callers): New function.
1400 (adjust_references_in_caller): Likewise.
1401 (create_specialized_node): When appropriate, call
1402 adjust_references_in_caller and force only load references.
1403 * ipa-prop.c (load_from_dereferenced_name): New function.
1404 (ipa_analyze_controlled_uses): Also detect loads from a
1405 dereference, harden testing of call statements.
1406 (ipa_write_node_info): Stream the dereferenced flag.
1407 (ipa_read_node_info): Likewise.
1408 (ipa_set_jf_constant): Also create refdesc when jump function
1409 references a variable.
1410 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
1411 also on references of variables and return a symtab_node. Adjust
1413 (propagate_controlled_uses): Also remove references to VAR_DECLs.
1415 2021-07-27 Jakub Jelinek <jakub@redhat.com>
1417 PR middle-end/101586
1418 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
1419 positions above or equal to sz except for diagnostics of flexible
1422 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
1424 PR tree-optimization/78888
1425 * gimple-range-fold.cc (get_letter_range): New.
1426 (fold_using_range::range_of_builtin_call): Call get_letter_range.
1428 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
1430 PR tree-optimization/78888
1431 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
1432 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
1434 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
1435 Marc Glisse <marc.glisse@inria.fr>
1437 * match.pd (rotate): Simplify equality/inequality of rotations.
1438 (bswap): Simplify equality/inequality tests of byte swapping.
1440 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
1442 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
1445 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
1447 * range-op.cc (operator_lshift::fold_range): Pass rel to
1448 base class fold_range.
1449 (operator_rshift::fold_range): Same.
1451 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
1454 * toplev.h (min_align_loops_log): Remove declaration.
1455 (min_align_jumps_log, min_align_labels_log): Likewise.
1456 (min_align_functions_log): Likewise.
1458 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
1460 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
1462 (execute_vrp): Abstract out simplification of conditionals...
1463 (simplify_casted_conds): ...here.
1465 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
1467 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
1468 Add gimple argument.
1469 (array_bounds_checker::check_array_ref): Same.
1470 (array_bounds_checker::check_addr_expr): Same.
1471 (array_bounds_checker::check_array_bounds): Pass statement to
1472 check_array_bounds and check_addr_expr.
1473 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
1474 (check_addr_expr): Same.
1475 (get_value_range): Same.
1477 2021-07-26 Tamar Christina <tamar.christina@arm.com>
1479 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
1480 (sdot_prod, udot_prod): ... This.
1481 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
1483 (<sur>dot_prod<vsi2qi>): ... this.
1484 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
1485 Change operands order.
1486 (<sur>sadv16qi): Use new operands order.
1487 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
1488 vdotq_s32): Use new RTL ordering.
1490 2021-07-26 Tamar Christina <tamar.christina@arm.com>
1492 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
1493 aarch64_types_ternop_suss_qualifiers): New.
1494 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
1495 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
1496 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
1498 2021-07-23 Jakub Jelinek <jakub@redhat.com>
1500 PR rtl-optimization/101562
1501 * expmed.c (store_integral_bit_field): Only use movstrict_optab
1502 if the operand isn't paradoxical.
1504 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
1506 * gimple-array-bounds.h (class array_bounds_checker): Change
1507 ranges type to range_query.
1509 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1511 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
1512 __builtin_memcpy instead of constructing
1513 __builtin_aarch64_simd_oi one vector at a time.
1514 (vst1_u64_x2): Likewise.
1515 (vst1_f64_x2): Likewise.
1516 (vst1_s8_x2): Likewise.
1517 (vst1_p8_x2): Likewise.
1518 (vst1_s16_x2): Likewise.
1519 (vst1_p16_x2): Likewise.
1520 (vst1_s32_x2): Likewise.
1521 (vst1_u8_x2): Likewise.
1522 (vst1_u16_x2): Likewise.
1523 (vst1_u32_x2): Likewise.
1524 (vst1_f16_x2): Likewise.
1525 (vst1_f32_x2): Likewise.
1526 (vst1_p64_x2): Likewise.
1527 (vst1q_s8_x2): Likewise.
1528 (vst1q_p8_x2): Likewise.
1529 (vst1q_s16_x2): Likewise.
1530 (vst1q_p16_x2): Likewise.
1531 (vst1q_s32_x2): Likewise.
1532 (vst1q_s64_x2): Likewise.
1533 (vst1q_u8_x2): Likewise.
1534 (vst1q_u16_x2): Likewise.
1535 (vst1q_u32_x2): Likewise.
1536 (vst1q_u64_x2): Likewise.
1537 (vst1q_f16_x2): Likewise.
1538 (vst1q_f32_x2): Likewise.
1539 (vst1q_f64_x2): Likewise.
1540 (vst1q_p64_x2): Likewise.
1542 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1544 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
1545 __builtin_memcpy instead of constructing
1546 __builtin_aarch64_simd_ci one vector at a time.
1547 (vst1_u64_x3): Likewise.
1548 (vst1_f64_x3): Likewise.
1549 (vst1_s8_x3): Likewise.
1550 (vst1_p8_x3): Likewise.
1551 (vst1_s16_x3): Likewise.
1552 (vst1_p16_x3): Likewise.
1553 (vst1_s32_x3): Likewise.
1554 (vst1_u8_x3): Likewise.
1555 (vst1_u16_x3): Likewise.
1556 (vst1_u32_x3): Likewise.
1557 (vst1_f16_x3): Likewise.
1558 (vst1_f32_x3): Likewise.
1559 (vst1_p64_x3): Likewise.
1560 (vst1q_s8_x3): Likewise.
1561 (vst1q_p8_x3): Likewise.
1562 (vst1q_s16_x3): Likewise.
1563 (vst1q_p16_x3): Likewise.
1564 (vst1q_s32_x3): Likewise.
1565 (vst1q_s64_x3): Likewise.
1566 (vst1q_u8_x3): Likewise.
1567 (vst1q_u16_x3): Likewise.
1568 (vst1q_u32_x3): Likewise.
1569 (vst1q_u64_x3): Likewise.
1570 (vst1q_f16_x3): Likewise.
1571 (vst1q_f32_x3): Likewise.
1572 (vst1q_f64_x3): Likewise.
1573 (vst1q_p64_x3): Likewise.
1575 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
1578 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
1579 hard register when LRA is in progress.
1581 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1583 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
1584 __builtin_memcpy instead of using a union.
1585 (vst1q_s8_x4): Likewise.
1586 (vst1_s16_x4): Likewise.
1587 (vst1q_s16_x4): Likewise.
1588 (vst1_s32_x4): Likewise.
1589 (vst1q_s32_x4): Likewise.
1590 (vst1_u8_x4): Likewise.
1591 (vst1q_u8_x4): Likewise.
1592 (vst1_u16_x4): Likewise.
1593 (vst1q_u16_x4): Likewise.
1594 (vst1_u32_x4): Likewise.
1595 (vst1q_u32_x4): Likewise.
1596 (vst1_f16_x4): Likewise.
1597 (vst1q_f16_x4): Likewise.
1598 (vst1_f32_x4): Likewise.
1599 (vst1q_f32_x4): Likewise.
1600 (vst1_p8_x4): Likewise.
1601 (vst1q_p8_x4): Likewise.
1602 (vst1_p16_x4): Likewise.
1603 (vst1q_p16_x4): Likewise.
1604 (vst1_s64_x4): Likewise.
1605 (vst1_u64_x4): Likewise.
1606 (vst1_p64_x4): Likewise.
1607 (vst1q_s64_x4): Likewise.
1608 (vst1q_u64_x4): Likewise.
1609 (vst1q_p64_x4): Likewise.
1610 (vst1_f64_x4): Likewise.
1611 (vst1q_f64_x4): Likewise.
1613 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
1615 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
1616 instead of constructing __builtin_aarch64_simd_oi one vector
1618 (vst2_u64): Likewise.
1619 (vst2_f64): Likewise.
1620 (vst2_s8): Likewise.
1621 (vst2_p8): Likewise.
1622 (vst2_s16): Likewise.
1623 (vst2_p16): Likewise.
1624 (vst2_s32): Likewise.
1625 (vst2_u8): Likewise.
1626 (vst2_u16): Likewise.
1627 (vst2_u32): Likewise.
1628 (vst2_f16): Likewise.
1629 (vst2_f32): Likewise.
1630 (vst2_p64): Likewise.
1631 (vst2q_s8): Likewise.
1632 (vst2q_p8): Likewise.
1633 (vst2q_s16): Likewise.
1634 (vst2q_p16): Likewise.
1635 (vst2q_s32): Likewise.
1636 (vst2q_s64): Likewise.
1637 (vst2q_u8): Likewise.
1638 (vst2q_u16): Likewise.
1639 (vst2q_u32): Likewise.
1640 (vst2q_u64): Likewise.
1641 (vst2q_f16): Likewise.
1642 (vst2q_f32): Likewise.
1643 (vst2q_f64): Likewise.
1644 (vst2q_p64): Likewise.
1646 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1648 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
1649 instead of constructing __builtin_aarch64_simd_ci one vector
1651 (vst3_u64): Likewise.
1652 (vst3_f64): Likewise.
1653 (vst3_s8): Likewise.
1654 (vst3_p8): Likewise.
1655 (vst3_s16): Likewise.
1656 (vst3_p16): Likewise.
1657 (vst3_s32): Likewise.
1658 (vst3_u8): Likewise.
1659 (vst3_u16): Likewise.
1660 (vst3_u32): Likewise.
1661 (vst3_f16): Likewise.
1662 (vst3_f32): Likewise.
1663 (vst3_p64): Likewise.
1664 (vst3q_s8): Likewise.
1665 (vst3q_p8): Likewise.
1666 (vst3q_s16): Likewise.
1667 (vst3q_p16): Likewise.
1668 (vst3q_s32): Likewise.
1669 (vst3q_s64): Likewise.
1670 (vst3q_u8): Likewise.
1671 (vst3q_u16): Likewise.
1672 (vst3q_u32): Likewise.
1673 (vst3q_u64): Likewise.
1674 (vst3q_f16): Likewise.
1675 (vst3q_f32): Likewise.
1676 (vst3q_f64): Likewise.
1677 (vst3q_p64): Likewise.
1679 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1681 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
1682 instead of constructing __builtin_aarch64_simd_xi one vector
1684 (vst4_u64): Likewise.
1685 (vst4_f64): Likewise.
1686 (vst4_s8): Likewise.
1687 (vst4_p8): Likewise.
1688 (vst4_s16): Likewise.
1689 (vst4_p16): Likewise.
1690 (vst4_s32): Likewise.
1691 (vst4_u8): Likewise.
1692 (vst4_u16): Likewise.
1693 (vst4_u32): Likewise.
1694 (vst4_f16): Likewise.
1695 (vst4_f32): Likewise.
1696 (vst4_p64): Likewise.
1697 (vst4q_s8): Likewise.
1698 (vst4q_p8): Likewise.
1699 (vst4q_s16): Likewise.
1700 (vst4q_p16): Likewise.
1701 (vst4q_s32): Likewise.
1702 (vst4q_s64): Likewise.
1703 (vst4q_u8): Likewise.
1704 (vst4q_u16): Likewise.
1705 (vst4q_u32): Likewise.
1706 (vst4q_u64): Likewise.
1707 (vst4q_f16): Likewise.
1708 (vst4q_f32): Likewise.
1709 (vst4q_f64): Likewise.
1710 (vst4q_p64): Likewise.
1712 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1714 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
1715 instead of constructing __builtin_aarch64_simd_oi one vector
1717 (vtbx4_u8): Likewise.
1718 (vtbx4_p8): Likewise.
1720 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1722 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
1723 instead of constructing __builtin_aarch64_simd_oi one vector
1725 (vtbl3_u8): Likewise.
1726 (vtbl3_p8): Likewise.
1727 (vtbl4_s8): Likewise.
1728 (vtbl4_u8): Likewise.
1729 (vtbl4_p8): Likewise.
1731 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1733 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
1734 instead of constructing __builtin_aarch64_simd_oi one vector
1736 (vqtbx2_u8): Likewise.
1737 (vqtbx2_p8): Likewise.
1738 (vqtbx2q_s8): Likewise.
1739 (vqtbx2q_u8): Likewise.
1740 (vqtbx2q_p8): Likewise.
1741 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
1742 __builtin_aarch64_simd_ci one vector at a time.
1743 (vqtbx3_u8): Likewise.
1744 (vqtbx3_p8): Likewise.
1745 (vqtbx3q_s8): Likewise.
1746 (vqtbx3q_u8): Likewise.
1747 (vqtbx3q_p8): Likewise.
1748 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
1749 __builtin_aarch64_simd_xi one vector at a time.
1750 (vqtbx4_u8): Likewise.
1751 (vqtbx4_p8): Likewise.
1752 (vqtbx4q_s8): Likewise.
1753 (vqtbx4q_u8): Likewise.
1754 (vqtbx4q_p8): Likewise.
1756 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1758 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
1759 instead of constructing __builtin_aarch64_simd_oi one vector
1761 (vqtbl2_u8): Likewise.
1762 (vqtbl2_p8): Likewise.
1763 (vqtbl2q_s8): Likewise.
1764 (vqtbl2q_u8): Likewise.
1765 (vqtbl2q_p8): Likewise.
1766 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
1767 __builtin_aarch64_simd_ci one vector at a time.
1768 (vqtbl3_u8): Likewise.
1769 (vqtbl3_p8): Likewise.
1770 (vqtbl3q_s8): Likewise.
1771 (vqtbl3q_u8): Likewise.
1772 (vqtbl3q_p8): Likewise.
1773 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
1774 __builtin_aarch64_simd_xi one vector at a time.
1775 (vqtbl4_u8): Likewise.
1776 (vqtbl4_p8): Likewise.
1777 (vqtbl4q_s8): Likewise.
1778 (vqtbl4q_u8): Likewise.
1779 (vqtbl4q_p8): Likewise.
1781 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
1784 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
1786 2021-07-22 Andrew Pinski <apinski@marvell.com>
1788 PR tree-optimization/10153
1789 * tree-tailcall.c (create_tailcall_accumulator):
1790 Don't call fold_convert as the type should be correct already.
1791 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
1792 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
1794 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
1796 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
1797 varying_p check for null/non-null check.
1799 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1801 PR tree-optimization/101511
1802 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
1803 is in ssa2's equiv set, and don't trap if so.
1805 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1807 PR tree-optimization/101497
1808 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
1811 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1813 PR tree-optimization/101496
1814 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
1815 first, then vrp_visit_cond_Stmt.
1817 2021-07-22 liuhongt <hongtao.liu@intel.com>
1819 * config/i386/i386-expand.c
1820 (ix86_broadcast_from_integer_constant): Rename to ..
1821 (ix86_broadcast_from_constant): .. this, and extend it to
1823 (ix86_expand_vector_move): Extend to float mode.
1824 * config/i386/i386-features.c
1825 (replace_constant_pool_with_broadcast): Remove.
1826 (remove_partial_avx_dependency_gate): Ditto.
1827 (constant_pool_broadcast): Ditto.
1828 (class pass_constant_pool_broadcast): Ditto.
1829 (make_pass_constant_pool_broadcast): Ditto.
1830 (remove_partial_avx_dependency): Adjust gate.
1831 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
1832 * config/i386/i386-protos.h
1833 (make_pass_constant_pool_broadcast): Remove.
1835 2021-07-22 liuhongt <hongtao.liu@intel.com>
1837 * config/i386/constraints.md (Wb): New constraint.
1839 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
1841 (*ashlqi3_1): Ditto.
1842 (*<insn><mode>3_1): Split to ..
1843 (*ashr<mode>3_1): this, ...
1844 (*lshr<mode>3_1): and this, also extend this pattern to avx512
1846 (*<insn><mode>3_1): Split to ..
1847 (*ashr<mode>3_1): this, ...
1848 (*lshrqi3_1): and this, also extend this pattern to avx512
1850 (*lshrhi3_1): And this, also extend this pattern to avx512
1852 * config/i386/sse.md (k<code><mode>): New define_split after
1853 it to convert generic shift pattern to mask shift ones.
1855 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
1856 Joseph Myers <joseph@codesourcery.com>
1857 Cesar Philippidis <cesar@codesourcery.com>
1859 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
1860 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
1862 * tree-pretty-print.c (dump_omp_clause): Likewise.
1863 * omp-general.c (oacc_verify_routine_clauses): Likewise.
1864 * gimplify.c (gimplify_scan_omp_clauses)
1865 (gimplify_adjust_omp_clauses): Likewise.
1866 * tree-nested.c (convert_nonlocal_omp_clauses)
1867 (convert_local_omp_clauses): Likewise.
1868 * omp-low.c (scan_sharing_clauses): Likewise.
1869 * omp-offload.c (execute_oacc_device_lower): Update.
1871 2021-07-21 Martin Sebor <msebor@redhat.com>
1873 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
1875 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1877 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
1880 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1882 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
1884 (write_fntype_init): New stub function.
1885 (write_init_bif_table): Likewise.
1886 (write_init_ovld_table): New function.
1887 (write_init_file): Implement.
1889 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1891 * config/rs6000/rs6000-gen-builtins.c
1892 (write_autogenerated_header): New function.
1893 (write_decls): Likewise.
1894 (write_extern_fntype): New callback function.
1895 (write_header_file): Implement.
1897 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1899 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
1902 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1904 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
1906 (complete_base_type): Likewise.
1907 (construct_fntype_id): Likewise.
1908 (parse_bif_entry): Call contruct_fntype_id.
1909 (parse_ovld_entry): Likewise.
1911 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1913 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
1914 (MAXOVLDSTANZAS): New macro.
1915 (ovld_stanzas): New variable.
1916 (curr_ovld_stanza): Likewise.
1917 (MAXOVLDS): New macro.
1918 (ovlddata): New struct.
1919 (ovlds): New variable.
1920 (curr_ovld): Likewise.
1921 (max_ovld_args): Likewise.
1922 (parse_ovld_entry): New function.
1923 (parse_ovld_stanza): Likewise.
1924 (parse_ovld): Implement.
1926 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1928 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
1931 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1933 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
1934 (parse_prototype): Implement.
1936 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1938 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
1939 (curr_bif_stanza): New variable.
1940 (stanza_entry): New struct.
1941 (stanza_map): New initialized variable.
1942 (enable_string): Likewise.
1943 (fnkinds): New enum.
1944 (typelist): New struct.
1945 (attrinfo): Likewise.
1946 (MAXRESTROPNDS): New macro.
1947 (prototype): New struct.
1948 (MAXBIFS): New macro.
1949 (bifdata): New struct.
1950 (bifs): New variable.
1951 (curr_bif): Likewise.
1952 (bif_order): Likewise.
1953 (bif_index): Likewise.
1954 (fatal): New function.
1955 (stanza_name_to_stanza): Likewise.
1956 (parse_bif_attrs): New stub function.
1957 (parse_prototype): Likewise.
1958 (parse_bif_entry): New function.
1959 (parse_bif_stanza): Likewise.
1960 (parse_bif): Implement.
1961 (set_bif_order): New function.
1962 (create_bif_order): Implement.
1964 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1966 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
1967 (num_bifs): New variable.
1968 (num_ovld_stanzas): Likewise.
1969 (num_ovlds): Likewise.
1970 (parse_codes): New enum.
1971 (bif_rbt): New variable.
1972 (ovld_rbt): Likewise.
1973 (fntype_rbt): Likewise.
1974 (bifo_rbt): Likewise.
1975 (parse_bif): New stub function.
1976 (create_bif_order): Likewise.
1977 (parse_ovld): Likewise.
1978 (write_header_file): Likewise.
1979 (write_init_file): Likewise.
1980 (write_defines_file): Likewise.
1981 (delete_output_files): New function.
1984 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
1987 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
1988 from CRC32 _builtin functions.
1990 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
1992 * coverage.c (build_gcov_info_var_registration): Mark the object placed
1993 in the linker set as referenced so that it does not get optimized away.
1995 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
1998 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
2000 * config.gcc (riscv*-*-*): Detect which python is available.
2002 2021-07-21 Jakub Jelinek <jakub@redhat.com>
2004 PR middle-end/101535
2005 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
2006 contexts in which decl isn't privatized and for ORT_TARGET return
2007 false if decl is mapped.
2009 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
2011 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
2012 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
2013 has been successfully unrolled.
2015 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
2017 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
2018 exit condition if no tail loop is needed, and if the original exit
2019 condition should therefore be kept as-is.
2020 (tree_transform_and_unroll_loop): Handle that case here too.
2022 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
2024 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
2026 (free_data_refs): Likewise.
2027 * tree-data-ref.h (free_dependence_relations): Likewise.
2028 (free_data_refs): Likewise.
2029 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
2031 (struct component): Likewise.
2032 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
2033 (pcom_worker::~pcom_worker): Likewise.
2034 (pcom_worker::release_chain): Adjust as auto_vec changes.
2035 (pcom_worker::loop): Rename to ...
2036 (pcom_worker::m_loop): ... this.
2037 (pcom_worker::datarefs): Rename to ...
2038 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
2039 (pcom_worker::dependences): Rename to ...
2040 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
2041 (pcom_worker::chains): Rename to ...
2042 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
2043 (pcom_worker::looparound_phis): Rename to ...
2044 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
2046 (pcom_worker::cache): Rename to ...
2047 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
2048 (pcom_worker::release_chain): Adjust for auto_vec changes.
2049 (pcom_worker::release_chains): Adjust for auto_vec and renaming
2051 (release_component): Remove.
2052 (release_components): Adjust for release_component removal.
2053 (component_of): Adjust to use vec.
2054 (merge_comps): Likewise.
2055 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
2056 (pcom_worker::determine_offset): Likewise.
2057 (class comp_ptrs): Remove.
2058 (pcom_worker::split_data_refs_to_components): Adjust for renaming
2059 changes, for comp_ptrs removal with auto_vec.
2060 (pcom_worker::suitable_component_p): Adjust for renaming changes.
2061 (pcom_worker::filter_suitable_components): Adjust for release_component
2063 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
2064 (pcom_worker::find_looparound_phi): Likewise.
2065 (pcom_worker::add_looparound_copies): Likewise.
2066 (pcom_worker::determine_roots_comp): Likewise.
2067 (pcom_worker::single_nonlooparound_use): Likewise.
2068 (pcom_worker::execute_pred_commoning_chain): Likewise.
2069 (pcom_worker::execute_pred_commoning): Likewise.
2070 (pcom_worker::try_combine_chains): Likewise.
2071 (pcom_worker::prepare_initializers_chain): Likewise.
2072 (pcom_worker::prepare_initializers): Likewise.
2073 (pcom_worker::prepare_finalizers_chain): Likewise.
2074 (pcom_worker::prepare_finalizers): Likewise.
2075 (pcom_worker::tree_predictive_commoning_loop): Likewise.
2077 2021-07-20 Martin Sebor <msebor@redhat.com>
2079 PR middle-end/101397
2080 * builtins.c (gimple_call_return_array): Add argument. Correct
2081 offsets for memchr, mempcpy, stpcpy, and stpncpy.
2082 (compute_objsize_r): Adjust offset computation for argument returning
2085 2021-07-20 Martin Sebor <msebor@redhat.com>
2087 PR middle-end/101300
2088 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
2090 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
2092 * function.c (assign_parm_setup_block): Use adjust_address instead
2093 of change_address to preserve MEM_EXPR and friends.
2095 2021-07-20 Martin Sebor <msebor@redhat.com>
2097 * cfgloop.h (single_likely_exit): Adjust by-value argument to
2099 * cfgloopanal.c (single_likely_exit): Same.
2100 * cgraph.h (struct cgraph_node): Same.
2101 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
2102 * genautomata.c (merge_states): Same.
2103 * genextract.c (VEC_char_to_string): Same.
2104 * genmatch.c (dt_node::gen_kids_1): Same.
2105 (walk_captures): Adjust by-value argument to by-reference.
2106 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
2107 to by-const-reference.
2108 * gimple.c (gimple_build_call_vec): Same.
2109 (gimple_build_call_internal_vec): Same.
2110 (gimple_build_switch): Same.
2111 (sort_case_labels): Same.
2112 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
2114 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
2116 (gimple_build_call_internal_vec): Same.
2117 (gimple_build_switch): Same.
2118 (sort_case_labels): Same.
2119 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
2121 * haifa-sched.c (calc_priorities): Adjust by-value argument to
2123 (sched_init_luids): Same.
2124 (haifa_init_h_i_d): Same.
2125 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
2126 (adjust_callers_for_value_intersection): Adjust by-value argument to
2128 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
2130 (find_more_contexts_for_caller_subset): Same.
2131 (find_aggregate_values_for_callers_subset): Same.
2132 (copy_useful_known_contexts): Same.
2133 * ipa-fnsummary.c (remap_edge_summaries): Same.
2134 (remap_freqcounting_predicate): Same.
2135 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
2137 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
2138 to by-const-reference.
2139 * ipa-predicate.h (predicate::remap_after_inlining): Same.
2140 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
2141 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
2142 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
2143 * read-rtl.c (add_overload_instance): Same.
2144 * rtl.h (native_decode_rtx): Same.
2145 (native_decode_vector_rtx): Same.
2146 * sched-int.h (sched_init_luids): Same.
2147 (haifa_init_h_i_d): Same.
2148 * simplify-rtx.c (native_decode_vector_rtx): Same.
2149 (native_decode_rtx): Same.
2150 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
2151 (shrink_wrap_one_built_in_call_with_conds): Same.
2152 (shrink_wrap_conditional_dead_built_in_calls): Same.
2153 * tree-data-ref.c (create_runtime_alias_checks): Same.
2154 (compute_all_dependences): Same.
2155 * tree-data-ref.h (compute_all_dependences): Same.
2156 (create_runtime_alias_checks): Same.
2157 (index_in_loop_nest): Same.
2158 * tree-if-conv.c (mask_exists): Same.
2159 * tree-loop-distribution.c (class loop_distribution): Same.
2160 (loop_distribution::create_rdg_vertices): Same.
2161 (dump_rdg_partitions): Same.
2162 (debug_rdg_partitions): Same.
2163 (partition_contains_all_rw): Same.
2164 (loop_distribution::distribute_loop): Same.
2165 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
2166 (oacc_entry_exit_single_gang): Same.
2167 * tree-ssa-loop-im.c (hoist_memory_references): Same.
2168 (loop_suitable_for_sm): Same.
2169 * tree-ssa-loop-niter.c (bound_index): Same.
2170 * tree-ssa-reassoc.c (update_ops): Same.
2171 (swap_ops_for_binary_stmt): Same.
2172 (rewrite_expr_tree): Same.
2173 (rewrite_expr_tree_parallel): Same.
2174 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
2175 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
2176 * tree-ssa-structalias.c (process_all_all_constraints): Same.
2177 (make_constraints_to): Same.
2178 (handle_lhs_call): Same.
2179 (find_func_aliases_for_builtin_call): Same.
2180 (sort_fieldstack): Same.
2181 (check_for_overlaps): Same.
2182 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
2183 (vect_create_cond_for_unequal_addrs): Same.
2184 (vect_create_cond_for_lower_bounds): Same.
2185 (vect_create_cond_for_alias_checks): Same.
2186 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
2187 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
2188 (vect_make_slp_decision): Same.
2189 (vect_slp_bbs): Same.
2190 (duplicate_and_interleave): Same.
2191 (vect_transform_slp_perm_load): Same.
2192 (vect_schedule_slp): Same.
2193 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
2194 (vect_schedule_slp): Same.
2195 (duplicate_and_interleave): Same.
2196 * tree.c (build_vector_from_ctor): Same.
2197 (build_vector): Same.
2198 (check_vector_cst): Same.
2199 (check_vector_cst_duplicate): Same.
2200 (check_vector_cst_fill): Same.
2201 (check_vector_cst_stepped): Same.
2202 * tree.h (build_vector_from_ctor): Same.
2204 2021-07-20 Jakub Jelinek <jakub@redhat.com>
2207 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
2208 type from bool to int.
2209 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
2210 EASY_VECTOR_MSB case if either step or copies is not 1.
2211 (vspltis_shifted): Fix comment typo.
2212 (easy_altivec_constant): Change return type from bool to int, instead
2213 of returning true return byte size of the element mode that should be
2214 used to synthetize the constant.
2215 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
2216 that vspltis_shifted is 0, handle the case where easy_altivec_constant
2217 assumes using different vector mode from CONST_VECTOR's mode.
2218 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
2219 easy_altivec_constant to determine mode in which -1 >> -1 should be
2220 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
2222 2021-07-20 Richard Biener <rguenther@suse.de>
2225 * dwarf2out.h (dwarf_file_data): Add key member.
2226 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
2227 (dwarf_file_hasher::hash): Hash key.
2228 (lookup_filename): Remap the filename and store it in the
2229 filename member of dwarf_file_data when creating a new
2231 (file_name_acquire): Do not remap the filename again.
2232 (maybe_emit_file): Likewise.
2234 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
2236 * config/aarch64/aarch64-simd-builtins.def: Use two variant
2237 generators for all TBL/TBX intrinsics and rename to
2238 consistent forms: qtbl[1234] or qtbx[1234].
2239 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
2241 (aarch64_qtbl1<mode>): This.
2242 (aarch64_tbx1<mode>): Rename to...
2243 (aarch64_qtbx1<mode>): This.
2244 (aarch64_tbl2v16qi): Delete.
2245 (aarch64_tbl3<mode>): Rename to...
2246 (aarch64_qtbl2<mode>): This.
2247 (aarch64_tbx4<mode>): Rename to...
2248 (aarch64_qtbx2<mode>): This.
2249 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
2250 renamed qtbl1 and qtbl2 RTL patterns.
2251 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
2253 (vqtbl1_s8): Likewise.
2254 (vqtbl1_u8): Likewise.
2255 (vqtbl1q_p8): Likewise.
2256 (vqtbl1q_s8): Likewise.
2257 (vqtbl1q_u8): Likewise.
2258 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
2259 (vqtbx1_u8): Likewise.
2260 (vqtbx1_p8): Likewise.
2261 (vqtbx1q_s8): Likewise.
2262 (vqtbx1q_u8): Likewise.
2263 (vqtbx1q_p8): Likewise.
2264 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
2265 (vtbl1_u8): Likewise.
2266 (vtbl1_p8): Likewise.
2267 (vtbl2_s8): Likewise
2268 (vtbl2_u8): Likewise.
2269 (vtbl2_p8): Likewise.
2270 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
2271 (vtbl3_u8): Likewise.
2272 (vtbl3_p8): Likewise.
2273 (vtbl4_s8): Likewise.
2274 (vtbl4_u8): Likewise.
2275 (vtbl4_p8): Likewise.
2276 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
2277 (vtbx2_u8): Likewise.
2278 (vtbx2_p8): Likewise.
2279 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
2280 (vqtbl2_u8): Likewise.
2281 (vqtbl2_p8): Likewise.
2282 (vqtbl2q_s8): Likewise.
2283 (vqtbl2q_u8): Likewise.
2284 (vqtbl2q_p8): Likewise.
2285 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
2286 (vqtbx2_u8): Likewise.
2287 (vqtbx2_p8): Likewise.
2288 (vqtbx2q_s8): Likewise.
2289 (vqtbx2q_u8): Likewise.
2290 (vqtbx2q_p8): Likewise.
2291 (vtbx4_s8): Likewise.
2292 (vtbx4_u8): Likewise.
2293 (vtbx4_p8): Likewise.
2295 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
2298 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2300 (define_peephole2 atomic_loaddi_fpu): Ditto.
2302 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
2304 * config.gcc (riscv*-*-*): Detect which python is available.
2306 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
2308 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
2309 (smul<mode>3_highpart): ... this.
2310 (mulhu_<mode>): Rename to...
2311 (umul<mode>3_highpart): ... this.
2312 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
2313 MULHU_V2DI, MULHU_V4SI): Adjust.
2315 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
2317 PR tree-optimization/100696
2318 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
2319 * internal-fn.def (IFN_MULH): New internal function.
2320 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
2321 recog normal multiply highpart as IFN_MULH.
2322 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
2325 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
2327 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
2328 (BTF_DEBUGGING_INFO): Likewise.
2329 * doc/tm.texi.in: Document the new macros.
2330 * doc/tm.texi: Regenerated.
2331 * toplev.c: Guard initialization of debug hooks.
2333 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
2335 * flags.h (ctf_debuginfo_p): New function declaration.
2336 * opts.c (ctf_debuginfo_p): New function definition.
2338 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
2341 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
2342 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
2343 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
2344 * config/gcn/gcn-valu.md: Add a warning comment.
2345 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
2346 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
2347 * config/gcn/gcn.md: Add a warning comment.
2348 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
2349 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
2351 (EF_AMDGPU_XNACK): New.
2352 (EF_AMDGPU_SRAM_ECC): New.
2354 (copy_early_debug_info): Use elf_flags.
2355 (main): Handle -mxnack and -msram-ecc options.
2356 * doc/invoke.texi: Document -mxnack and -msram-ecc.
2358 2021-07-19 Andrew Pinski <apinski@marvell.com>
2361 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
2362 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
2364 2021-07-19 Richard Biener <rguenther@suse.de>
2366 PR tree-optimization/101505
2367 * tree-vect-patterns.c (vect_determine_precisions): Walk
2368 PHIs also for loop vectorization.
2370 2021-07-19 Richard Biener <rguenther@suse.de>
2372 * gimple.h (gimple_expr_type): Remove.
2373 * doc/gimple.texi: Remove gimple_expr_type documentation.
2375 2021-07-19 Richard Biener <rguenther@suse.de>
2377 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
2378 (ao_ref_init_from_vn_reference): Likewise.
2379 (fully_constant_reference): Likewise.
2380 (vn_reference_lookup_call): Do not set vr->type to random
2382 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
2384 * tree-vect-generic.c (expand_vector_piecewise): Pass in
2385 whether we expanded parallel.
2386 (expand_vector_parallel): Adjust.
2387 (expand_vector_addition): Likewise.
2388 (expand_vector_comparison): Likewise.
2389 (expand_vector_operation): Likewise.
2390 (expand_vector_scalar_condition): Likewise.
2391 (expand_vector_conversion): Likewise.
2393 2021-07-19 Richard Biener <rguenther@suse.de>
2395 * tree-vrp.c (register_edge_assert_for_2): Use the
2397 (vrp_folder::fold_predicate_in): Likewise.
2398 * vr-values.c (gimple_assign_nonzero_p): Likewise.
2399 (vr_values::extract_range_from_comparison): Likewise.
2400 (vr_values::extract_range_from_ubsan_builtin): Use the
2401 type of the first operand.
2402 (vr_values::extract_range_basic): Push down type
2403 computation, use the appropriate LHS.
2404 (vr_values::extract_range_from_assignment): Use the
2407 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
2410 * common/config/i386/i386-common.c (ix86_handle_option): For
2411 -mgeneral-regs-only, enable the GPR only instructions which are
2412 enabled implicitly by SSE ISAs unless they have been disabled
2415 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
2418 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
2419 ix86_avx_u128_mode_needed.
2420 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
2421 returns AVX register.
2423 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
2425 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
2426 (handle_const_call): Liekise
2427 (handle_pure_call): Liekise
2429 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
2431 PR tree-optimization/96542
2432 * range-op.cc (range_operator::wi_fold_in_parts): New.
2433 (range_operator::fold_range): Call wi_fold_in_parts.
2434 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
2435 * range-op.h (wi_fold_in_parts): Add prototype.
2437 2021-07-16 David Malcolm <dmalcolm@redhat.com>
2439 * doc/analyzer.texi: Add __analyzer_dump_state.
2441 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2443 * config/rs6000/rbtree.c: New file.
2444 * config/rs6000/rbtree.h: New file.
2446 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2448 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
2449 (typeinfo): Add restr field.
2450 (match_bracketed_pair): New function.
2451 (match_const_restriction): Implement.
2453 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2455 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
2457 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2459 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
2460 (basetype): Likewise.
2461 (typeinfo): Likewise.
2462 (handle_pointer): New function.
2463 (match_basetype): New stub function.
2464 (match_const_restriction): Likewise.
2465 (match_type): New function.
2467 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2469 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
2471 (advance_line): Likewise.
2472 (safe_inc_pos): Likewise.
2473 (match_identifier): Likewise.
2474 (match_integer): Likewise.
2475 (match_to_right_bracket): Likewise.
2477 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2479 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
2480 (ovld_file): Likewise.
2481 (header_file): Likewise.
2482 (init_file): Likewise.
2483 (defines_file): Likewise.
2484 (pgm_path): Likewise.
2485 (bif_path): Likewise.
2486 (ovld_path): Likewise.
2487 (header_path): Likewise.
2488 (init_path): Likewise.
2489 (defines_path): Likewise.
2490 (LINELEN): New macro.
2491 (linebuf): New variable.
2495 (bif_diag): New function.
2496 (ovld_diag): Likewise.
2498 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2500 * config/rs6000/rs6000-builtin-new.def: New.
2501 * config/rs6000/rs6000-overload.def: New.
2503 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2505 * config/rs6000/rs6000-gen-builtins.c: New.
2507 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
2509 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
2510 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
2511 * gengtype-state.c (state_writer::write_state_file_list): Add a
2512 parameter to the fileslist expression for the number of build
2514 (read_state_files_list): Detect build headers and strip the
2515 initial "./" or ".\" from their names.
2516 * gengtype.c (build_headers): New global variable.
2517 (num_build_headers): Likewise.
2518 (open_base_files): Emit #include for each build header.
2519 (main): Detect and count build headers.
2520 * gengtype.h (build_headers): New extern variable.
2521 (num_build_headers): Likewise.
2523 2021-07-16 Richard Biener <rguenther@suse.de>
2525 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
2526 the type of the LHS.
2527 (find_bswap_or_nop_1): Likewise.
2528 (find_bswap_or_nop): Likewise.
2529 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
2531 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
2532 Remove unused parameters, pass in the scalar type. Fix
2533 internal store function handling.
2534 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
2535 (vect_get_vector_types_for_stmt): Move down check for
2536 existing vector stmt after we've determined a scalar type.
2537 Pass down the used scalar type to vect_get_smallest_scalar_type.
2538 * tree-vect-generic.c (expand_vector_condition): Use
2539 the type of the LHS.
2540 (expand_vector_scalar_condition): Likewise.
2541 (expand_vector_operations_1): Likewise.
2542 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
2543 (vect_recog_dot_prod_pattern): Likewise.
2544 (vect_recog_sad_pattern): Likewise.
2545 (vect_recog_widen_op_pattern): Likewise.
2546 (vect_recog_widen_sum_pattern): Likewise.
2547 (vect_recog_mixed_size_cond_pattern): Likewise.
2549 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
2551 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
2552 (dump_eaf_flags): Dump EAF_NOT_RETURNED
2553 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
2554 and EAF_NOT_RETURNED.
2555 (modref_summary::useful_p): Likewise.
2556 (modref_summary_lto::useful_p): Likewise.
2557 (struct) modref_summary_lto: Use eaf_fleags_t.
2558 (deref_flags): Handle EAF_NOT_RETURNED.
2559 (struct escape_point): Use min_flags.
2560 (modref_lattice::init): Add EAF_NOT_RETURNED.
2561 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
2562 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
2564 (analyze_parms): Also analyze const functions; update conition on
2566 (modref_write): Update streaming.
2567 (read_section): Update streaming.
2568 (remap_arg_flags): Use eaf_flags_t.
2569 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
2570 * ipa-modref.h: (eaf_flags_t): New typedef.
2571 (struct modref_summary): Use eaf_flags_t.
2572 * tree-core.h (EAF_NOT_RETURNED): New constant.
2574 2021-07-16 Richard Biener <rguenther@suse.de>
2576 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
2577 the type of the LHS.
2578 (gimple_assign_nonnegative_warnv_p): Likewise.
2579 (gimple_call_nonnegative_warnv_p): Likewise. Return false
2580 if the call has no LHS.
2581 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
2582 * tree-eh.c (stmt_could_throw_1_p): Likewise.
2583 * tree-inline.c (insert_init_stmt): Likewise.
2584 * tree-ssa-loop-niter.c (get_val_for): Likewise.
2585 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
2587 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
2588 gassign *. Use the type of the lhs.
2589 (vn_nary_op_lookup_stmt): Adjust.
2590 (vn_nary_op_insert_stmt): Likewise.
2592 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
2594 * config/s390/predicates.md (bras_sym_operand): Accept all
2595 functions in 64-bit mode, use UNSPEC_PLT31.
2596 (larl_operand): Use UNSPEC_PLT31.
2597 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
2598 (legitimize_pic_address): Likewise.
2599 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
2601 (s390_delegitimize_address): Use UNSPEC_PLT31.
2602 (s390_output_addr_const_extra): Likewise.
2603 (print_operand): Add @PLT to TLS calls, handle %K.
2604 (s390_function_profiler): Mark __fentry__/_mcount as function,
2605 use %K, use UNSPEC_PLT31.
2606 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
2607 (s390_emit_call): Use UNSPEC_PLT31.
2608 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
2609 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
2610 (*movdi_64): Use %K.
2611 (reload_base_64): Likewise.
2612 (*sibcall_brc): Likewise.
2613 (*sibcall_brcl): Likewise.
2614 (*sibcall_value_brc): Likewise.
2615 (*sibcall_value_brcl): Likewise.
2618 (*bras_r): Likewise.
2619 (*brasl_r): Likewise.
2620 (*bras_tls): Likewise.
2621 (*brasl_tls): Likewise.
2622 (main_base_64): Likewise.
2623 (reload_base_64): Likewise.
2624 (@split_stack_call<mode>): Likewise.
2626 2021-07-16 Richard Biener <rguenther@suse.de>
2628 PR tree-optimization/101467
2629 * tree-vect-stmts.c (vect_gen_while): Properly guard
2630 make_temp_ssa_name usage.
2632 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
2634 * config.gcc: Don't use forked print-sysroot-suffix.sh and
2635 t-sysroot-suffix for C-SKY.
2636 * config/csky/print-sysroot-suffix.sh: Delete.
2637 * config/csky/t-csky-linux: Delete.
2638 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
2639 instead of CSKY_MULTILIB_DIRNAMES.
2641 2021-07-16 Richard Biener <rguenther@suse.de>
2643 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
2644 conversion issues with the partial reduction of the reused
2647 2021-07-16 Richard Biener <rguenther@suse.de>
2649 * config/i386/i386-options.c (ix86_option_override_internal): Set
2650 param_vect_partial_vector_usage to zero if not set.
2652 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
2655 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
2656 (VALID_INT_MODE_P): Add SDmode and DDmode.
2657 Add TDmode for TARGET_64BIT.
2658 (VALID_DFP_MODE_P): Remove.
2659 * config/i386/i386.c (ix86_hard_regno_mode_ok):
2660 Do not use VALID_DFP_MODE_P.
2662 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
2664 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
2666 (fold_using_range::fold_stmt): Ditto.
2667 (fold_using_range::range_of_range_op): Ditto.
2668 (fold_using_range::range_of_phi): Ditto.
2669 (fold_using_range::range_of_call): Ditto.
2670 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
2671 (fold_using_range::range_of_builtin_call): Ditto.
2672 (fold_using_range::range_of_cond_expr): Ditto.
2673 * gimple-range-fold.h (gimple_range_type): New.
2675 2021-07-15 Martin Sebor <msebor@redhat.com>
2678 * tree-ssa-strlen.c (handle_assign): New function.
2679 (maybe_warn_overflow): Add argument.
2680 (nonzero_bytes_for_type): New function.
2681 (count_nonzero_bytes): Handle more tree types. Call
2682 nonzero_bytes_for_tye.
2683 (count_nonzero_bytes): Handle types.
2684 (handle_store): Handle stores from function calls.
2685 (strlen_check_and_optimize_call): Move code to handle_assign. Call
2686 it for assignments from function calls.
2688 2021-07-15 David Malcolm <dmalcolm@redhat.com>
2693 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
2695 2021-07-15 David Malcolm <dmalcolm@redhat.com>
2697 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
2699 2021-07-15 Martin Sebor <msebor@redhat.com>
2703 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
2704 (operand_compare::verify_hash_value): Same.
2705 * tree-core.h (OEP_DECL_NAME): New.
2707 2021-07-15 Martin Jambor <mjambor@suse.cz>
2709 * profile-count.h (profile_count::value): Change the return type to
2711 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
2713 * tree-cfg.c (dump_function_to_file): Likewise.
2715 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
2718 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
2719 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
2722 2021-07-15 Richard Biener <rguenther@suse.de>
2724 * tree-vectorizer.h (vect_gen_while): Match up with
2726 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
2727 of vect_gen_while_not.
2728 (vect_gen_while_not): Adjust.
2729 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
2731 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
2733 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
2734 (ranger_cache::range_of_def): Call adjust_range.
2735 (ranger_cache::entry_range): Same.
2736 * gimple-range-cache.h (non_null_ref::adjust_range): New.
2737 * gimple-range.cc (gimple_ranger::range_of_expr): Call
2739 (gimple_ranger::range_on_entry): Same.
2741 2021-07-15 Tamar Christina <tamar.christina@arm.com>
2744 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2746 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
2748 2021-07-15 Tamar Christina <tamar.christina@arm.com>
2751 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2753 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
2754 (sdot_prod, udot_prod): ...These.
2755 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
2756 (aarch64_<sur>dot<vsi2qi>): Rename to...
2757 (<sur>dot_prod<vsi2qi>): ...This.
2758 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
2761 2021-07-15 Jakub Jelinek <jakub@redhat.com>
2763 PR middle-end/101437
2764 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
2765 types even if they have non-BLKmode TYPE_MODE.
2767 2021-07-15 Richard Biener <rguenther@suse.de>
2770 * gcc.c (process_command): Process -gtoggle like process_options
2771 would after parsing options.
2773 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2775 * cfgexpand.c (expand_asm_loc): Adjust.
2776 (expand_asm_stmt): Likewise.
2777 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
2778 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
2779 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
2780 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
2781 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
2782 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
2783 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
2784 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
2785 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
2786 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
2787 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
2788 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
2789 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
2790 * doc/tm.texi: Regenerate.
2791 * target.def: Add location argument to md_asm_adjust.
2793 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2795 * tree-diagnostic.c (diagnostic_report_current_function): Use the
2796 diagnostic's location, not input_location.
2798 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2800 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
2802 (expand_asm_stmt): Likewise.
2804 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
2806 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
2807 addressed memory rtx, if any.
2808 (rs6000_split_multireg_move): Fix code formatting.
2809 Handle MMA build built-ins with operands in adjacent memory locations.
2811 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
2813 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
2816 2021-07-14 Jason Merrill <jason@redhat.com>
2818 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
2820 2021-07-14 Jason Merrill <jason@redhat.com>
2822 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
2825 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2827 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
2828 Remove erroneous line.
2830 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
2832 * params.opt (param_evrp_mode): Change default.
2834 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2836 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
2837 (sdot_prod, udot_prod): ...These.
2838 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
2839 (aarch64_<sur>dot<vsi2qi>): Rename to...
2840 (<sur>dot_prod<vsi2qi>): ...This.
2841 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
2844 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2846 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
2848 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2850 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
2852 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2854 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
2856 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2858 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
2859 (usdot_prod<vsi2qi>): ... This.
2860 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
2861 (usdot_prod): ...This.
2862 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
2863 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
2865 (@<sur>dot_prod<vsi2qi>): ...This.
2866 * config/aarch64/aarch64-sve-builtins-base.cc
2867 (svusdot_impl::expand): Use it.
2869 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2871 * optabs.def (usdot_prod_optab): New.
2872 * doc/md.texi: Document it and clarify other dot prod optabs.
2873 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
2874 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
2875 * optabs.c (expand_widen_pattern_expr): Likewise.
2876 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
2877 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
2878 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
2880 (vect_widened_op_tree): Optionally ignore
2882 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
2884 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
2887 * config/i386/driver-i386.c (host_detect_local_cpu): Check
2888 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
2889 Enable UINTR only for 64-bit codegen.
2890 * config/i386/i386-options.c
2891 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
2893 * config/i386/i386.h (ARCH_ARG): New.
2894 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
2895 "[arch|tune] 64" for 64-bit codegen.
2897 2021-07-14 Richard Biener <rguenther@suse.de>
2899 PR tree-optimization/101445
2900 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
2901 of the IV in the correct direction for negative stride
2904 2021-07-14 Jakub Jelinek <jakub@redhat.com>
2907 * godump.c (godump_str_hash): New type.
2908 (godump_container::pot_dummy_types): Use string_hash instead of
2909 ptr_hash in the hash_set.
2911 2021-07-14 Richard Biener <rguenther@suse.de>
2913 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
2914 vector types where the old vector type has a multiple of
2915 the new vector type elements.
2916 (vect_create_partial_epilog): New function, split out from...
2917 (vect_create_epilog_for_reduction): ... here.
2918 (vect_transform_cycle_phi): Reduce the re-used accumulator
2919 to the new vector type.
2921 2021-07-14 Alexandre Oliva <oliva@adacore.com>
2923 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
2924 non-'t'-sized arg check.
2926 2021-07-14 Alexandre Oliva <oliva@adacore.com>
2928 * tree-cfg.c (cleanup_dead_labels_eh): Update
2929 post_landing_pad label upon change of landing pad block's
2931 (cleanup_dead_labels): Check that a removed label is not that
2934 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
2936 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
2938 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
2939 Add Neon to general purpose register case for zero-extend
2941 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
2942 case to prevent some cases opting to go through memory.
2943 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
2944 * rtl.c (rtvec_series_p): Define predicate to determine
2945 whether a vector contains a linear series of integers.
2946 * rtl.h (rtvec_series_p): Define.
2947 * rtlanal.c (vec_series_lowpart_p): Define predicate to
2948 determine if a vector selection is equivalent to the low part
2950 * rtlanal.h (vec_series_lowpart_p): Define.
2951 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
2952 Add vec_select -> subreg simplification.
2954 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
2956 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
2957 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
2958 _mm_test_mix_ones_zeros): New.
2960 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
2961 Richard Biener <rguenther@suse.de>
2963 * gimple.c (gimple_could_trap_p_1): Make S argument a
2964 "const gimple*". Preserve constness in call to
2965 gimple_asm_volatile_p.
2966 (gimple_could_trap_p): Make S argument a "const gimple*".
2967 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
2968 Update function prototypes.
2970 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2972 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
2973 (_loop_vec_info::main_loop_edge): New field.
2974 (_loop_vec_info::skip_main_loop_edge): Likewise.
2975 (_loop_vec_info::skip_this_loop_edge): Likewise.
2976 (_loop_vec_info::reusable_accumulators): Likewise.
2977 (_stmt_vec_info::reduc_scalar_results): Likewise.
2978 (_stmt_vec_info::reused_accumulator): Likewise.
2979 (vect_get_main_loop_result): Declare.
2980 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2981 reduc_scalar_inputs.
2982 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
2983 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
2984 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
2985 skip_main_loop_edge and skip_this_loop_edge fields.
2986 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
2987 (vect_emit_reduction_init_stmts): New function.
2988 (get_initial_def_for_reduction): Use it.
2989 (get_initial_defs_for_reduction): Likewise. Change the vinfo
2990 parameter to a loop_vec_info.
2991 (vect_create_epilog_for_reduction): Store the scalar results
2992 in the reduc_info. If an epilogue loop is reusing an accumulator
2993 from the main loop, and if the epilogue loop can also be skipped,
2994 try to place the reduction code in the join block. Record
2995 accumulators that could potentially be reused by epilogue loops.
2996 (vect_transform_cycle_phi): When vectorizing epilogue loops,
2997 try to reuse accumulators from the main loop. Record the initial
2998 value in reduc_info for non-SLP reductions too.
3000 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3002 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
3003 adjustment handling. Take the neutral value as an argument,
3004 in place of the code argument.
3005 (vect_transform_cycle_phi): Update accordingly. Handle the
3006 initial values of cond reductions separately from code reductions.
3007 Choose the adjustment here rather than in
3008 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
3010 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3012 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
3013 (neutral_op_for_reduction): ...this, providing a more general
3015 (vect_create_epilog_for_reduction): Update accordingly.
3016 (vectorizable_reduction): Likewise.
3017 (vect_transform_cycle_phi): Likewise.
3019 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3021 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
3022 reduc_info instead of the original stmt_vec_info.
3023 (vect_transform_cycle_phi): Update accordingly.
3025 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3027 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
3028 reduc_info as an additional parameter.
3029 (vect_transform_cycle_phi): Update accordingly.
3031 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3033 * tree-vectorizer.h: Include tree-ssa-operands.h.
3034 (vect_phi_initial_value): New function.
3035 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
3036 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
3037 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
3038 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
3040 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3042 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
3043 the phi results to vectype after creating them. Remove later
3044 conversion code that thus becomes redundant.
3046 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3048 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
3049 the new_phis vector with a reduc_inputs vector. Combine handling
3050 of reduction chains and ncopies > 1.
3052 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3054 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
3055 scalar_results to group_size elements after reducing down from
3056 N*group_size elements. Construct an array_slice of the live-out
3057 stmts and assert that there is one stmt per scalar result.
3059 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3061 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
3062 nested_in_vect_loop and use double_reduc everywhere. Remove dead
3063 assignment to "loop".
3065 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
3067 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
3068 vector types first. For scalar types, consider both the preferred
3069 vector mode and the alternative vector modes.
3070 * optabs-query.c (can_vec_mask_load_store_p): Use the same
3071 structure as above, in particular using related_vector_mode
3072 for modes provided by autovectorize_vector_modes.
3074 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3075 Richard Biener <rguenther@suse.de>
3077 PR tree-optimization/101419
3078 * tree-pass.h (PROP_objsz): Define.
3079 (make_pass_early_object_sizes): Declare.
3080 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
3081 there to pass_early_object_sizes, drop parameter.
3082 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
3083 drop parameter, move pass_post_ipa_warn right after that.
3084 * tree-object-size.c (pass_object_sizes::execute): Rename to...
3085 (object_sizes_execute): ... this. Add insert_min_max_p argument.
3086 (pass_data_object_sizes): Move after object_sizes_execute.
3087 (pass_object_sizes): Likewise. In execute method call
3088 object_sizes_execute, drop set_pass_param method and insert_min_max_p
3089 non-static data member and its initializer in the ctor.
3090 (pass_data_early_object_sizes, pass_early_object_sizes,
3091 make_pass_early_object_sizes): New.
3092 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
3093 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
3095 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
3098 * config/riscv/constraints.md ("S"): Update description and remove
3100 * doc/md.texi (Machine Constraints): Document the 'S' constraints
3103 2021-07-13 Richard Biener <rguenther@suse.de>
3106 2021-07-12 Richard Biener <rguenther@suse.de>
3108 * tree-vect-slp.c (vect_slp_region): Show the number of
3109 SLP graph entries in the optimization message.
3111 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
3113 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
3115 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
3116 return type to long.
3117 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
3120 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
3122 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
3123 Query relation between the 2 operands and use it.
3125 2021-07-12 Sergei Trofimovich <siarheit@google.com>
3127 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
3129 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
3132 * config/i386/predicates.md (vec_setm_sse41_operand):
3133 Rename from vec_setm_operand.
3134 (vec_setm_avx2_operand): New predicate.
3135 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
3136 Use vec_setm_sse41_operand as operand 2 predicate.
3137 (vec_set<V_256_512:mode): New expander.
3138 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
3139 as operand 2 predicate.
3141 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
3143 PR tree-optimization/101335
3144 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
3146 2021-07-12 Andrew Pinski <apinski@marvell.com>
3148 * tree-ssa-phiopt.c (match_simplify_replacement): Move
3149 insert of the sequence before the movement of the
3150 statement. Check if to see if the statement is used
3151 outside of the original phi to see if we should move it.
3153 2021-07-12 Richard Biener <rguenther@suse.de>
3155 * dump-context.h (debug_dump_context::debug_dump_context):
3156 Add FILE * parameter defaulted to stderr.
3157 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
3158 * tree-vect-slp.c (dot_slp_tree): New functions.
3160 2021-07-12 Richard Biener <rguenther@suse.de>
3162 PR tree-optimization/101373
3163 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
3164 references when the BB may not return.
3165 (compute_avail): Pass in the function we're working on and
3166 replace cfun references with it. Externally throwing
3167 const calls also possibly terminate the function.
3168 (pass_pre::execute): Pass down the function we're working on.
3169 * gcse.c (compute_hash_table_work): Externally throwing
3170 const/pure calls also need record_last_mem_set_info.
3171 * postreload-gcse.c (record_opr_changes): Looping or externally
3172 throwing const/pure calls also need record_last_mem_set_info.
3174 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
3176 * recog.c (memory_address_addr_space_p): Change the type to bool.
3177 Return true/false instead of 1/0.
3178 (offsettable_memref_p): Ditto.
3179 (offsettable_nonstrict_memref_p): Ditto.
3180 (offsettable_address_addr_space_p): Ditto.
3181 Change the type of addressp indirect function to bool.
3182 * recog.h (memory_address_addr_space_p): Change the type to bool.
3183 (strict_memory_address_addr_space_p): Ditto.
3184 (offsettable_memref_p): Ditto.
3185 (offsettable_nonstrict_memref_p): Ditto.
3186 (offsettable_address_addr_space_p): Ditto.
3187 * reload.c (maybe_memory_address_addr_space_p): Ditto.
3188 (strict_memory_address_addr_space_p): Change the type to bool.
3189 Return true/false instead of 1/0.
3190 (maybe_memory_address_addr_space_p): Change the type to bool.
3192 2021-07-12 Richard Biener <rguenther@suse.de>
3194 * tree-vect-slp.c (vect_slp_region): Show the number of
3195 SLP graph entries in the optimization message.
3197 2021-07-12 Richard Biener <rguenther@suse.de>
3199 PR tree-optimization/101394
3200 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
3201 copies from abnormals for a full redundancy.
3203 2021-07-12 Richard Biener <rguenther@suse.de>
3205 PR middle-end/101423
3206 * gimple.c (gimple_could_trap_p_1): Internal function calls
3208 * tree-eh.c (tree_could_trap_p): Likewise.
3210 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3213 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
3215 (vmulq_n_u32): Likewise.
3216 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
3217 (vmulq_n_f32): Likewise.
3218 (vmul_n_f16): Likewise.
3219 (vmulq_n_f16): Likewise.
3221 2021-07-12 Martin Liska <mliska@suse.cz>
3224 * gcc.c (check_offload_target_name): Call
3225 candidates_list_and_hint only if we have a candidate.
3227 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3230 * config/arm/neon.md (vec_init): Move to ...
3231 * config/arm/vec-common.md (vec_init): ... here.
3232 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
3234 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
3236 PR tree-optimization/101403
3237 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
3238 signedness of the shift is not the same as the signedness of
3241 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
3242 Uroš Bizjak <ubizjak@gmail.com>
3244 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
3245 divmod of a constant numerator with new define_insn_and_split.
3247 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
3250 * config/i386/i386-expand.c (ix86_expand_call): If a call is
3251 to a non-local-binding, or local but to a public symbol, then
3252 assume that it might be indirected via the lazy symbol binder.
3253 Mark R10 and R10 as clobbered in that case.
3255 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
3258 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
3259 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
3260 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
3262 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
3264 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
3265 log2 range of operands[3] to [1,31].
3266 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
3268 2021-07-09 Sergei Trofimovich <siarheit@google.com>
3270 * doc/md.texi: Don't split @smallexample in multiple @groups.
3272 2021-07-09 Sergei Trofimovich <siarheit@google.com>
3274 * doc/md.texi: Add missing 'see' word.
3276 2021-07-09 Andrew Pinski <apinski@marvell.com>
3278 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
3279 to take sequence and gimple_match_op. Accept the case where
3280 op is a SSA_NAME and one statement in the sequence.
3281 Also allow constants.
3282 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
3283 Update call to phiopt_early_allow. Discard the sequence if not
3286 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
3291 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
3292 instead of ISA_HAS_MSA.
3293 (mips_expand_vec_unpack): Likewise.
3294 (mips_expand_vector_init): Likewise.
3296 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
3298 * config/rs6000/vsx.md (mods_<mode>): Rename to...
3299 (mod<mode>3): ... this.
3300 (modu_<mode>): Rename to...
3301 (umod<mode>3): ... this.
3302 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
3305 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
3307 * config/h8300/shiftrotate.md (variable shifts): Expose condition
3308 code handling for the test before the loop.
3310 2021-07-08 Martin Jambor <mjambor@suse.cz>
3313 * ipa-sra.c (class isra_call_summary): New member
3314 m_before_any_store, initialize it in the constructor.
3315 (isra_call_summary::dump): Dump the new field.
3316 (ipa_sra_call_summaries::duplicate): Copy it.
3317 (process_scan_results): Set it.
3318 (isra_write_edge_summary): Stream it.
3319 (isra_read_edge_summary): Likewise.
3320 (param_splitting_across_edge): Only override
3321 safe_to_import_accesses if m_before_any_store is set.
3323 2021-07-08 Martin Sebor <msebor@redhat.com>
3326 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
3327 Use Object Size Type 0 instead of 1.
3329 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
3331 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
3334 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
3336 * match.pd: Simplify an extend-operate-truncate sequence involving
3339 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
3340 Richard Biener <rguenther@suse.de>
3342 PR tree-optimization/40210
3343 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
3344 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
3345 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
3347 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
3350 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
3352 * config/i386/mmx.md (V_32): New mode iterator.
3353 (mov<V_32:mode>): Use V_32 mode iterator.
3354 (*mov<V_32:mode>_internal): Ditto.
3355 (*push<V_32:mode>2_rex64): Ditto.
3356 (*push<V_32:mode>2): Ditto.
3357 (movmisalign<V_32:mode>): Ditto.
3358 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
3359 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
3360 (vec_unpacks_lo_v4qi): New expander.
3361 (vec_unpacks_hi_v4qi): Ditto.
3362 (vec_unpacku_lo_v4qi): Ditto.
3363 (vec_unpacku_hi_v4qi): Ditto.
3364 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
3365 (VALID_INT_MODE_P): Ditto.
3367 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
3370 * config/rs6000/rs6000.md (udivti3): New insn.
3372 (umodti3): New insn.
3375 2021-07-07 Martin Sebor <msebor@redhat.com>
3377 PR tree-optimization/100137
3378 PR tree-optimization/99121
3379 PR tree-optimization/97027
3380 * builtins.c (access_ref::access_ref): Also set offmax.
3381 (access_ref::offset_in_range): Define new function.
3382 (access_ref::add_offset): Set offmax.
3383 (access_ref::inform_access): Handle access_none.
3384 (handle_mem_ref): Clear ostype.
3385 (compute_objsize_r): Handle ASSERT_EXPR.
3386 * builtins.h (struct access_ref): Add offmax member.
3387 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
3388 compute_objsize() and simplify.
3390 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
3392 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
3393 and VSX_BUILTIN_STXVP.
3395 2021-07-07 Martin Sebor <msebor@redhat.com>
3398 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
3399 a stray %K from error_at() missed in r12-2088.
3401 2021-07-07 Richard Biener <rguenther@suse.de>
3403 PR tree-optimization/99728
3404 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
3406 (mem_refs_may_alias_p): Add assert we handled aggregate
3408 (sm_seq_valid_bb): Give up when running into aggregate copies.
3409 (ref_indep_loop_p): Handle aggregate copies as never
3410 being invariant themselves but allow other refs to be
3411 disambiguated against them.
3412 (can_sm_ref_p): Do not try to apply store-motion to aggregate
3415 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
3418 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
3421 2021-07-06 Martin Sebor <msebor@redhat.com>
3423 * gimple-pretty-print.c (percent_G_format): Remove.
3424 * tree-diagnostic.c (default_tree_printer): Remove calls.
3425 * tree-pretty-print.c (percent_K_format): Remove.
3426 * tree-pretty-print.h (percent_K_format): Remove.
3428 2021-07-06 Martin Sebor <msebor@redhat.com>
3430 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
3431 Remove %K and use error_at.
3432 (aarch64_expand_fcmla_builtin): Same.
3433 (aarch64_expand_builtin_tme): Same.
3434 (aarch64_expand_builtin_memtag): Same.
3435 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
3436 (arm_expand_builtin): Same.
3437 * config/arm/arm.c (bounds_check): Same.
3439 2021-07-06 Martin Sebor <msebor@redhat.com>
3441 * builtins.c (warn_string_no_nul): Remove %G.
3442 (maybe_warn_for_bound): Same.
3443 (warn_for_access): Same.
3444 (check_access): Same.
3445 (check_strncat_sizes): Same.
3446 (expand_builtin_strncat): Same.
3447 (expand_builtin_strncmp): Same.
3448 (expand_builtin): Same.
3449 (expand_builtin_object_size): Same.
3450 (warn_dealloc_offset): Same.
3451 (maybe_emit_free_warning): Same.
3452 * calls.c (maybe_warn_alloc_args_overflow): Same.
3453 (maybe_warn_nonstring_arg): Same.
3454 (maybe_warn_rdwr_sizes): Same.
3455 * expr.c (expand_expr_real_1): Remove %K.
3456 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
3457 (gimple_fold_builtin_strncat): Same.
3458 * gimple-ssa-sprintf.c (format_directive): Same.
3459 (handle_printf_call): Same.
3460 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
3461 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
3462 (maybe_diag_access_bounds): Same. Call gimple_location.
3463 (check_bounds_or_overlap): Same.
3464 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
3465 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
3466 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
3467 (maybe_diag_stxncpy_trunc): Same.
3468 (handle_builtin_stxncpy_strncat): Same.
3469 (maybe_warn_pointless_strcmp): Same.
3470 * tree-ssa-uninit.c (maybe_warn_operand): Same.
3472 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
3475 * config/i386/predicates.md (vec_setm_operand): Enable
3476 register_operand for TARGET_SSE4_1.
3477 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
3478 as operand 2 predicate. Call ix86_expand_vector_set_var
3479 for non-constant index operand.
3480 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
3481 Call ix86_expand_vector_set_var for non-constant index operand.
3483 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
3485 * config/h8300/jumpcall.md (*branch): When possible, generate
3486 the comparison in CCZN mode.
3487 * config/h8300/predicates.md (simple_memory_operand): Reject all
3488 auto-increment addressing modes.
3490 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
3493 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
3496 2021-07-06 Richard Biener <rguenther@suse.de>
3498 * doc/md.texi (vec_fmaddsub<mode>4): Document.
3499 (vec_fmsubadd<mode>4): Likewise.
3500 * optabs.def (vec_fmaddsub$a4): Add.
3501 (vec_fmsubadd$a4): Likewise.
3502 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
3503 (IFN_VEC_FMSUBADD): Likewise.
3504 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
3505 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
3506 (addsub_pattern::build): Likewise.
3507 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
3508 and CFN_VEC_FMSUBADD are not transparent for permutes.
3509 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
3510 (vec_fmsubadd<mode>4): Likewise.
3512 2021-07-06 Richard Biener <rguenther@suse.de>
3514 * doc/invoke.texi (fmove-loop-stores): Document.
3515 * common.opt (fmove-loop-stores): New option.
3516 * opts.c (default_options_table): Enable -fmove-loop-stores
3518 * tree-ssa-loop-im.c (pass_lim::execute): Pass
3519 flag_move_loop_stores instead of true to
3520 loop_invariant_motion_in_fun.
3522 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
3524 * doc/install.texi: Document --with-dsymutil.
3526 2021-07-06 Andrew Pinski <apinski@marvell.com>
3528 PR tree-optimization/101256
3529 * dbgcnt.def (phiopt_edge_range): New counter.
3530 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
3531 Check to make sure the new name is defined in the same
3532 bb as the conditional before duplicating range info.
3533 Also add debug counter.
3535 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
3537 PR rtl-optimization/100328
3538 * config/i386/i386-options.c (ix86_option_override_internal):
3539 Set param_ira_consider_dup_in_all_alts to 0.
3541 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
3543 PR rtl-optimization/100328
3544 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
3546 * ira.c (ira_get_dup_out_num): Adjust as parameter
3547 param_ira_consider_dup_in_all_alts.
3548 * params.opt (ira-consider-dup-in-all-alts): New.
3549 * ira-conflicts.c (process_regs_for_copy): Add one parameter
3550 single_input_op_has_cstr_p.
3551 (get_freq_for_shuffle_copy): New function.
3552 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
3553 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
3555 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
3557 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
3558 generate condition code aware RTL directly.
3560 2021-07-05 Andrew Pinski <apinski@marvell.com>
3562 PR tree-optimization/101039
3563 * match.pd (A CMP 0 ? A : -A): New patterns.
3564 * tree-ssa-phiopt.c (abs_replacement): Delete function.
3565 (tree_ssa_phiopt_worker): Don't call abs_replacement.
3566 Update comment about abs_replacement.
3568 2021-07-05 Andrew Pinski <apinski@marvell.com>
3570 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
3571 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
3573 2021-07-05 Andrew Pinski <apinski@marvell.com>
3575 * tree-ssa-phiopt.c (match_simplify_replacement):
3576 Add early_p argument. Call gimple_simplify_phiopt
3577 instead of gimple_simplify.
3578 (tree_ssa_phiopt_worker): Update call to
3579 match_simplify_replacement and allow unconditionally.
3580 (phiopt_early_allow): New function.
3581 (gimple_simplify_phiopt): New function.
3583 2021-07-05 Andrew Pinski <apinski@marvell.com>
3585 PR middle-end/101237
3586 * fold-const.c (negate_expr_p): Remove call to element_mode
3587 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
3588 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
3589 (fold_negate_expr_1): Likewise.
3590 (const_unop): Likewise.
3591 (fold_cond_expr_with_comparison): Likewise.
3592 (fold_binary_loc): Likewise.
3593 (fold_ternary_loc): Likewise.
3594 (tree_call_nonnegative_warnv_p): Likewise.
3595 * match.pd (-(A + B) -> (-B) - A): Likewise.
3597 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
3599 * configure.ac: Handle --with-dsymutil in the same way as we
3600 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
3601 Extract the type and version for the dsymutil configured or
3602 found by the default searches.
3603 * config.in: Regenerated.
3604 * configure: Regenerated.
3605 * collect2.c (do_dsymutil): Handle locating dsymutil in the
3606 same way as for the assembler and linker.
3607 * config/darwin.h (DSYMUTIL): Delete.
3608 * gcc.c: Report a configured dsymutil correctly.
3609 * exec-tool.in: Allow for dsymutil.
3611 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
3614 Handle V4QI and V2HI modes.
3615 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
3616 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
3617 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
3618 Handle 4-byte dual operands with TARGET_XOP and single operands
3619 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
3620 mmx_pshufbv4qi3 for TARGET_SSSE3.
3621 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
3622 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
3623 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
3624 (expand_vec_perm_even_odd_1): Handle V4QI mode.
3625 (expand_vec_perm_broadcast_1): Handle V4QI mode.
3626 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
3627 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
3628 (mmx_pshufbv4qi3): Ditto.
3629 (*mmx_pblendw32): Ditto.
3630 (*mmx_pblendw64): Rename from *mmx_pblendw.
3631 (mmx_punpckhbw_low): New insn_and_split pattern.
3632 (mmx_punpcklbw_low): Ditto.
3634 2021-07-05 Richard Biener <rguenther@suse.de>
3636 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
3637 set LOOP_C_INFINITE on the vectorized loop.
3639 2021-07-05 Richard Biener <rguenther@suse.de>
3641 PR middle-end/101291
3642 * cfgloopmanip.c (loop_version): Set the loop copy of the
3643 versioned loop to the new loop.
3645 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
3648 * config.gcc: Ensure that Darwin biarch definitions are
3649 added before i386.h.
3650 * config/i386/darwin.h (TARGET_64BIT): Remove.
3651 (PR80556_WORKAROUND): New.
3652 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
3653 (DARWIN_SUBARCH_SPEC): New.
3654 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
3655 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
3656 (REAL_LIBGCC_SPEC): Remove.
3657 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
3658 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
3659 (REAL_LIBGCC_SPEC): Remove.
3661 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
3663 PR middle-end/101294
3664 * expr.c (store_constructor): Don't use vec_duplicate on vector.
3666 2021-07-02 Martin Sebor <msebor@redhat.com>
3670 * diagnostic.c (get_any_inlining_info): New.
3671 (update_effective_level_from_pragmas): Handle inlining context.
3672 (diagnostic_enabled): Same.
3673 (diagnostic_report_diagnostic): Same.
3674 * diagnostic.h (struct diagnostic_info): Add ctor.
3675 (struct diagnostic_context): Add new member.
3676 * tree-diagnostic.c (set_inlining_locations): New.
3677 (tree_diagnostics_defaults): Set new callback pointer.
3679 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
3681 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
3683 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
3684 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
3685 lxvp and stxvp built-ins.
3686 (mma_init_builtins): Handle lxvp and stxvp built-ins.
3687 (builtin_function_type): Likewise.
3688 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
3690 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3692 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
3693 additional argument for the code.
3694 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
3695 argument for the code. Just return if the ZN bits are useful or
3696 not rather than the old style CC_* enums.
3697 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
3698 more generic shiftqi patterns.
3699 (shifthi_noscratch, shiftsi_noscratch): Similarly.
3700 (shiftqi_noscratch_set_flags): New pattern.
3701 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
3703 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
3705 PR tree-optimization/101223
3706 * range-op.cc (build_lt): Add -1 for signed values.
3707 (built_gt): Subtract -1 for signed values.
3709 2021-07-02 David Faust <david.faust@oracle.com>
3711 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
3712 (btf_asm_type): Likewise.
3714 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3716 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
3717 an array of rtx rather than a pointer to rtx. Add code argument.
3718 (compute_a_shift_length): Similarly.
3719 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
3720 shift itself isn't an operand. Create dummy operand[0] to carry
3721 a mode and pass a suitable rtx code to compute_a_shift_length.
3722 (get_shift_alg): Adjust operand number of clobber in output templates.
3723 (output_a_shift): Make first argument an array of rtx rather than
3724 a pointer to rtx. Add code argument for the type of shift.
3725 Adjust now that the shift itself is no longer an operand.
3726 (compute_a_shift_length): Similarly.
3727 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
3728 iterator rather than nshift_operator.
3729 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
3730 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
3731 and compute_a_shift_length.
3732 (shiftqi_noscratch_clobber_flags): Likewise.
3733 (shifthi_noscratch_clobber_flags): Likewise.
3734 (shiftsi_noscratch_clobber_flags): Likewise.
3736 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
3739 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
3740 dsymutil for BTF/CTF.
3742 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
3745 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
3746 segment to include BTF.
3747 (BTF_INFO_SECTION_NAME): New.
3749 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3751 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
3752 (small_data_operand, memreg_operand, small_insn_p): Likewise.
3753 * config/m32r/m32r.c (call_operand): Adjust return type.
3754 (small_data_operand, memreg_operand): Likewise.
3756 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3758 * config/frv/frv-protos.h (integer_register_operand): Adjust return
3760 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
3761 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
3762 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
3763 (move_source_operand, move_destination_operand): Likewise.
3764 (condexec_source_operand, condexec_dest_operand): Likewise.
3765 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
3766 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
3767 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
3768 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
3769 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
3770 (even_fpr_operand, odd_fpr_operand): Likewise.
3771 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
3772 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
3773 (uint4_operand, uint1_operand, int_2word_operand): Likewise
3774 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
3775 (relational_operator, float_relational_operator): Likewise.
3776 (ccr_eqne_operator, minmax_operator): Likewise.
3777 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
3778 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
3779 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
3780 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
3781 (quad_acc_operand, accg_operand): Likewise.
3783 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3785 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
3786 return type to a bool.
3787 (nonimmediate_nonstack_operand): Likewise.
3788 (xstormy16_splittable_below100_operand): Likewise.
3789 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
3791 (xstormy16_splittable_below100_operand): Likewise.
3793 2021-07-02 Richard Biener <rguenther@suse.de>
3795 PR tree-optimization/101293
3796 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
3797 with combined offsets.
3798 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
3799 combined with the rest of the offset.
3801 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
3803 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
3804 PIC encodings for PE-COFF targets.
3806 2021-07-02 Jakub Jelinek <jakub@redhat.com>
3809 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
3810 Return nullptr for TImode inner mode.
3812 2021-07-02 Richard Biener <rguenther@suse.de>
3814 PR tree-optimization/101280
3815 PR tree-optimization/101173
3816 * gimple-loop-interchange.cc
3817 (tree_loop_interchange::valid_data_dependences): Properly
3818 guard all dependence checks with DDR_REVERSED_P or its
3821 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
3823 * config/i386/i386-expand.c (ix86_expand_builtin):
3824 Add branch to clear odata when ZF is set for asedecenc_expand
3825 and wideaesdecenc_expand.
3827 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
3829 * config/i386/gcc-auto-profile: regenerate
3831 2021-07-02 liuhongt <hongtao.liu@intel.com>
3833 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
3834 (trunc<mode><pmov_dst_4_lower>2): this.
3836 2021-07-01 David Malcolm <dmalcolm@redhat.com>
3838 * diagnostic.h (diagnostic_context::m_file_cache): New field.
3839 * input.c (class fcache): Rename to...
3840 (class file_cache_slot): ...this, making most members private and
3841 prefixing fields with "m_".
3842 (file_cache_slot::get_file_path): New accessor.
3843 (file_cache_slot::get_use_count): New accessor.
3844 (file_cache_slot::missing_trailing_newline_p): New accessor.
3845 (file_cache_slot::inc_use_count): New.
3846 (fcache_buffer_size): Move to...
3847 (file_cache_slot::buffer_size): ...here.
3848 (fcache_line_record_size): Move to...
3849 (file_cache_slot::line_record_size): ...here.
3850 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
3851 (fcache_tab_size): Move to file_cache::num_file_slots.
3852 (diagnostic_file_cache_init): Update for move of fcache_tab
3853 to global_dc->m_file_cache.
3854 (diagnostic_file_cache_fini): Likewise.
3855 (lookup_file_in_cache_tab): Convert to...
3856 (file_cache::lookup_file): ...this.
3857 (diagnostics_file_cache_forcibly_evict_file): Update for move of
3858 fcache_tab to global_dc->m_file_cache, moving most of
3859 implementation to...
3860 (file_cache::forcibly_evict_file): ...this new function and...
3861 (file_cache_slot::evict): ...this new function.
3862 (evicted_cache_tab_entry): Convert to...
3863 (file_cache::evicted_cache_tab_entry): ...this.
3864 (add_file_to_cache_tab): Convert to...
3865 (file_cache::add_file): ...this, moving bulk of implementation
3867 (file_cache_slot::create): ..this new function.
3868 (file_cache::file_cache): New.
3869 (file_cache::~file_cache): New.
3870 (lookup_or_add_file_to_cache_tab): Convert to...
3871 (file_cache::lookup_or_add_file): ..this new function.
3872 (fcache::fcache): Rename to...
3873 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
3875 (fcache::~fcache): Rename to...
3876 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
3878 (needs_read): Convert to...
3879 (file_cache_slot::needs_read_p): ...this.
3880 (needs_grow): Convert to...
3881 (file_cache_slot::needs_grow_p): ...this.
3882 (maybe_grow): Convert to...
3883 (file_cache_slot::maybe_grow): ...this.
3884 (read_data): Convert to...
3885 (file_cache_slot::read_data): ...this.
3886 (maybe_read_data): Convert to...
3887 (file_cache_slot::maybe_read_data): ...this.
3888 (get_next_line): Convert to...
3889 (file_cache_slot::get_next_line): ...this.
3890 (goto_next_line): Convert to...
3891 (file_cache_slot::goto_next_line): ...this.
3892 (read_line_num): Convert to...
3893 (file_cache_slot::read_line_num): ...this.
3894 (location_get_source_line): Update for moving of globals to
3895 global_dc->m_file_cache.
3896 (location_missing_trailing_newline): Likewise.
3897 * input.h (class file_cache_slot): New forward decl.
3898 (class file_cache): New.
3900 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
3902 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
3903 128-bit floating point conditional move support.
3904 (have_compare_and_set_mask): Add IEEE 128-bit floating point
3906 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
3907 (mov<mode>cc_p10, IEEE128 iterator): New insn.
3908 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
3909 (fpmask<mode>, IEEE128 iterator): New insn.
3910 (xxsel<mode>, IEEE128 iterator): New insn.
3912 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
3915 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
3917 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
3919 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3921 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
3923 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
3924 (vec_duplicate<mode>): New expander.
3926 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
3929 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3931 (ix86_byte_broadcast): New function.
3932 (ix86_convert_const_wide_int_to_broadcast): Likewise.
3933 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
3934 size is 16 bytes or bigger.
3935 (ix86_broadcast_from_integer_constant): New function.
3936 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
3937 to broadcast if mode size is 16 bytes or bigger.
3938 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
3940 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
3942 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3944 * config/i386/predicates.md (ix86_endbr_immediate_operand):
3945 Return true/false instead of 1/0.
3946 (movq_parallel): Ditto.
3948 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3950 * recog.c (general_operand): Return true/false instead of 1/0.
3951 (register_operand): Ditto.
3952 (immediate_operand): Ditto.
3953 (const_int_operand): Ditto.
3954 (const_scalar_int_operand): Ditto.
3955 (const_double_operand): Ditto.
3956 (push_operand): Ditto.
3957 (pop_operand): Ditto.
3958 (memory_operand): Ditto.
3959 (indirect_operand): Ditto.
3961 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3963 * genpreds.c (write_predicate_subfunction):
3964 Change the type of written subfunction to bool.
3965 (write_one_predicate_function):
3966 Change the type of written function to bool.
3967 (write_tm_preds_h): Ditto.
3968 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
3969 * recog.c (general_operand): Change the type to bool.
3970 (address_operand): Ditto.
3971 (register_operand): Ditto.
3972 (pmode_register_operand): Ditto.
3973 (scratch_operand): Ditto.
3974 (immediate_operand): Ditto.
3975 (const_int_operand): Ditto.
3976 (const_scalar_int_operand): Ditto.
3977 (const_double_operand): Ditto.
3978 (nonimmediate_operand): Ditto.
3979 (nonmemory_operand): Ditto.
3980 (push_operand): Ditto.
3981 (pop_operand): Ditto.
3982 (memory_operand): Ditto.
3983 (indirect_operand): Ditto.
3984 (ordered_comparison_operator): Ditto.
3985 (comparison_operator): Ditto.
3986 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
3987 Change the type of indirect predicate function to bool.
3988 * config/rs6000/rs6000.c (easy_vector_constant):
3989 Change the type to bool.
3990 * config/mips/mips-protos.h (m16_based_address_p):
3991 Change the type of operand 3 to bool.
3993 2021-07-01 Richard Biener <rguenther@suse.de>
3995 PR tree-optimization/101280
3996 PR tree-optimization/101173
3997 * gimple-loop-interchange.cc
3998 (tree_loop_interchange::valid_data_dependences): Revert
3999 previous change and instead correctly handle DDR_REVERSED_P
4002 2021-07-01 Richard Biener <rguenther@suse.de>
4004 PR tree-optimization/101278
4005 * tree-ssa-dse.c (dse_classify_store): First check for
4006 uses, then ignore stmt for chaining purposes.
4008 2021-07-01 Richard Biener <rguenther@suse.de>
4010 PR tree-optimization/100778
4011 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
4012 vectorized ops ahead of their scalar BB.
4014 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
4017 * config/i386/i386.md (*nabs<dwi>2_doubleword):
4018 New insn_and_split pattern.
4019 (*nabs<dwi>2_1): Ditto.
4020 * config/i386/i386-features.c
4021 (general_scalar_chain::compute_convert_gain):
4022 Handle (NEG (ABS (...))) RTX. Rewrite src code
4023 scanner as switch statement.
4024 (general_scalar_chain::convert_insn):
4025 Handle (NEG (ABS (...))) RTX.
4026 (general_scalar_to_vector_candidate_p):
4027 Detect (NEG (ABS (...))) RTX. Reorder case statements
4028 for (AND (NOT (...) ...)) fallthrough.
4030 2021-07-01 Richard Biener <rguenther@suse.de>
4032 PR tree-optimization/101178
4033 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
4034 (slpg::perm_in): Add.
4035 (slpg::get_perm_in): Remove.
4036 (slpg::get_perm_materialized): Add.
4037 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
4038 during permute propagation and materialization.
4040 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4043 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
4045 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4048 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
4049 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
4050 use boolean_type_node instead of integer_type_node as NE_EXPR type.
4051 (lower_reduction_clauses): Likewise.
4053 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4055 * config/gcn/gcn.c: Include dwarf2.h.
4056 (gcn_addr_space_debug): New function.
4057 (TARGET_ADDR_SPACE_DEBUG): New hook.
4059 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4061 * common/config/gcn/gcn-common.c
4062 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
4063 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
4065 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
4066 (gcn_frame_pointer_rqd): New function.
4067 (TARGET_FRAME_POINTER_REQUIRED): New hook.
4069 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4071 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
4072 prologue register saves.
4073 (gcn_debug_unwind_info): Use UI_DWARF2.
4074 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
4075 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
4076 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
4077 (DWARF_LINK_REGISTER): New define.
4078 (FIRST_PSEUDO_REGISTER): Increment.
4079 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
4080 (CALL_USED_REGISTERS): Likewise.
4081 (REGISTER_NAMES): Likewise.
4083 2021-06-30 Richard Biener <rguenther@suse.de>
4085 PR tree-optimization/101267
4086 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
4087 API and use SLP compatible interface of vect_is_simple_use.
4088 Reject not vectorized SLP defs for callers that do not support
4090 (vect_check_store_rhs): Handle masked stores and pass down
4091 the appropriate operator index.
4092 (vectorizable_call): Adjust.
4093 (vectorizable_store): Likewise.
4094 (vectorizable_load): Likewise. Handle SLP pecularity of
4096 (vect_is_simple_use): Remove special-casing of masked stores.
4098 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
4100 * common.opt (foffload): Remove help as Driver only.
4101 * gcc.c (display_help): Add -foffload.
4103 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
4105 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
4106 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
4107 a candidate list; better inform no offload target is configured
4108 and fix hint extraction when passed target is not '\0' at [len].
4109 * common.opt (foffload): Add tailing '.'.
4110 (foffload-options): Likewise; fix flag name in the help string.
4112 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4115 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
4116 (vcage_f32): Gate comparison on __FAST_MATH__.
4117 (vcageq_f32): Likewise.
4118 (vcale_f32): Likewise.
4119 (vcaleq_f32): Likewise.
4120 (vcagt_f32): Likewise.
4121 (vcagtq_f32): Likewise.
4122 (vcalt_f32): Likewise.
4123 (vcaltq_f32): Likewise.
4124 (vcage_f16): Likewise.
4125 (vcageq_f16): Likewise.
4126 (vcale_f16): Likewise.
4127 (vcaleq_f16): Likewise.
4128 (vcagt_f16): Likewise.
4129 (vcagtq_f16): Likewise.
4130 (vcalt_f16): Likewise.
4131 (vcaltq_f16): Likewise.
4133 2021-06-30 Richard Biener <rguenther@suse.de>
4135 PR tree-optimization/101264
4136 * tree-vect-slp.c (vect_optimize_slp): Propagate the
4137 computed perm_in to all "any" permute successors
4138 we cannot de-duplicate immediately.
4140 2021-06-30 liuhongt <hongtao.liu@intel.com>
4143 * config/i386/sse.md
4144 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
4146 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
4148 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
4149 * config/i386/subst.md (maskz_scalar): New define_subst.
4150 (maskz_scalar_name): New subst_attr.
4151 (maskz_scalar_op5): Ditto.
4152 (round_saeonly_maskz_scalar_op5): Ditto.
4153 (round_saeonly_maskz_scalar_operand5): Ditto.
4155 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
4157 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
4158 Increase code CSECT alignment to at least 32 bytes.
4159 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
4160 alignment designation.
4162 2021-06-29 Sergei Trofimovich <siarheit@google.com>
4164 * doc/generic.texi: Fix s/net yet/not yet/ typo.
4166 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
4168 PR tree-optimization/101254
4169 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
4170 wrapping/non-wrapping when setting the result range.
4172 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
4174 * value-query.cc (gimple_range_global): Allow phis.
4176 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
4178 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
4179 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
4180 statement for location context.
4181 (check_for_binary_op_overflow): Ditto.
4182 (simplify_using_ranges::get_vr_for_comparison): Ditto.
4183 (simplify_using_ranges::compare_name_with_value): Ditto.
4184 (simplify_using_ranges::compare_names): Ditto.
4185 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
4186 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
4187 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
4188 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
4189 (simplify_using_ranges::two_valued_val_range_p): Ditto.
4190 (simplify_using_ranges::simplify): Ditto.
4191 * vr-values.h: Adjust prototypes.
4193 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
4196 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
4198 2021-06-29 Julian Brown <julian@codesourcery.com>
4200 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
4201 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
4202 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
4204 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
4205 (MAX_FIXED_MODE_SIZE): Change to 128.
4207 2021-06-29 Julian Brown <julian@codesourcery.com>
4209 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
4210 (s_mnemonic): Add clrsb.
4211 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
4212 (clrsb<mode>2): Add expander for SImode/DImode.
4214 2021-06-29 Julian Brown <julian@codesourcery.com>
4216 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
4217 muldi3): Add patterns.
4219 2021-06-29 Julian Brown <julian@codesourcery.com>
4221 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
4222 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
4224 2021-06-29 Julian Brown <julian@codesourcery.com>
4226 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
4228 2021-06-29 Joseph Myers <joseph@codesourcery.com>
4230 * btfout.c, ctfout.c: Include "memmodel.h".
4232 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4234 * gcc.c (check_offload_target_name): Cast len argument to
4235 %q.*s to 'int'; avoid -Wstringop-truncation warning.
4237 2021-06-29 Richard Biener <rguenther@suse.de>
4239 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
4240 to "any" permute nodes and relax "any" permute proapgation
4241 during iterative backward propagation.
4243 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4246 * common.opt (-foffload=): Update description.
4247 (-foffload-options=): New.
4248 * doc/invoke.texi (C Language Options): Document
4249 -foffload and -foffload-options.
4250 * gcc.c (check_offload_target_name): New, split off from
4251 handle_foffload_option.
4252 (check_foffload_target_names): New.
4253 (handle_foffload_option): Handle -foffload=default.
4254 (driver_handle_option): Update for -foffload-options.
4255 * lto-opts.c (lto_write_options): Use -foffload-options
4256 instead of -foffload.
4257 * lto-wrapper.c (merge_and_complain, append_offload_options):
4259 * opts.c (common_handle_option): Likewise.
4261 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4263 * doc/invoke.texi (C Language Options): Sort options
4264 alphabetically in optlist and also the description itself.
4265 Remove leftover -fallow-single-precision from and add missing
4266 -fgnu-tm to the optlist.
4268 2021-06-29 Richard Biener <rguenther@suse.de>
4270 * tree-vect-slp.c (slpg_vertex::visited): Remove.
4271 (vect_slp_perms_eq): Handle -1 permutes.
4272 (vect_optimize_slp): Rewrite permute propagation.
4274 2021-06-29 Jakub Jelinek <jakub@redhat.com>
4277 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
4278 perform the optimization in GENERIC when sanitizing and x has a
4281 2021-06-29 Richard Biener <rguenther@suse.de>
4283 PR tree-optimization/101242
4284 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
4285 PHIs with not represented initial values as leafs.
4287 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
4289 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
4290 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
4292 (pdp11_initial_elimination_offset) Remove unused variable.
4293 (pdp11_cmp_length) Ditto.
4294 (pdp11_insn_cost): Ditto, and fix signedness warning.
4296 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
4298 * btfout.c: Include tm_p.h.
4301 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
4303 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
4305 (bpf_expand_epilogue): Likewise.
4306 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
4307 Do not define DBX_DEBUGGING_INFO.
4309 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
4311 * doc/invoke.texi: Document the CTF and BTF debug info options.
4313 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
4314 David Faust <david.faust@oracle.com>
4315 Jose E. Marchesi <jose.marchesi@oracle.com>
4316 Weimin Pan <weimin.pan@oracle.com>
4318 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
4319 GTFILES. Add new object files.
4320 * common.opt: Add CTF and BTF debug info options.
4321 * btfout.c: New file.
4324 * ctfout.c: Likewise.
4325 * dwarf2ctf.c: Likewise.
4326 * dwarf2ctf.h: Likewise.
4327 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
4329 * dwarf2out.c (dwarf2out_source_line): Likewise.
4330 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
4332 (debug_format_do_cu): New function.
4333 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
4335 Include dwarf2ctf.c.
4336 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
4338 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
4339 (CTF_DEBUG): New bitmask.
4340 (BTF_DEBUG): Likewise.
4341 (enum ctf_debug_info_levels): New enum.
4342 * gengtype.c (open_base_files): Handle ctfc.h.
4343 (main): Handle uint32_t type.
4344 * flags.h (btf_debuginfo_p): New definition.
4345 (dwarf_based_debuginfo_p): Likewise.
4346 * opts.c (debug_type_names): Add entries for CTF and BTF.
4347 (btf_debuginfo_p): New function.
4348 (dwarf_based_debuginfo_p): Likewise.
4349 (common_handle_option): Handle -gctfN and -gbtf options.
4350 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
4351 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
4354 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
4356 * dwarf2out.c (AT_class): Function is no longer static.
4358 (AT_unsigned): Likewise.
4361 (get_AT_string): Likewise.
4362 (get_AT_flag): Likewise.
4363 (get_AT_unsigned): Likewise.
4364 (get_AT_ref): Likewise.
4365 (new_die_raw): Likewise.
4366 (lookup_decl_die): Likewise.
4367 (base_type_die): Likewise.
4368 (add_name_attribute): Likewise.
4369 (add_AT_int): Likewise.
4370 (add_AT_unsigned): Likewise.
4371 (add_AT_loc): Likewise.
4372 (dw_get_die_tag): New function.
4373 (dw_get_die_child): Likewise.
4374 (dw_get_die_sib): Likewise.
4375 (struct dwarf_file_data): Move from here to dwarf2out.h
4376 (struct dw_attr_struct): Likewise.
4377 * dwarf2out.h: Analogous changes.
4379 2021-06-28 Martin Jambor <mjambor@suse.cz>
4382 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
4383 members m_dead_stmts and m_dead_ssas.
4384 * ipa-param-manipulation.c
4385 (ipa_param_body_adjustments::mark_dead_statements): New function.
4386 (ipa_param_body_adjustments::common_initialization): Call it on
4387 all removed but not split parameters.
4388 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
4390 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
4392 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
4393 dead debug statements.
4394 (copy_phis_for_bb): Do not copy dead PHI nodes.
4396 2021-06-28 Martin Jambor <mjambor@suse.cz>
4399 * symtab-clones.h (clone_info): Removed member param_adjustments.
4400 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
4401 deal with pass-through splits now.
4402 (ipa_param_performed_split): Removed.
4403 (ipa_param_adjustments::modify_call): Adjusted parameters.
4404 (class ipa_param_body_adjustments): Adjusted parameters of
4405 register_replacement, modify_gimple_stmt and modify_call_stmt.
4406 (ipa_verify_edge_has_no_modifications): Declare.
4407 (ipa_edge_modifications_finalize): Declare.
4408 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
4409 performed_splits processing, pas only edge to padjs->modify_call,
4410 check that call arguments were not modified if they should not have
4412 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
4414 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
4415 (ipa_edge_modification_info): Likewise.
4416 (ipa_edge_modification_sum): Likewise.
4417 (ipa_edge_modifications): New edge summary.
4418 (ipa_verify_edge_has_no_modifications): New function.
4419 (transitive_split_p): Removed.
4420 (transitive_split_map): Likewise.
4421 (init_transitive_splits): Likewise.
4422 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
4423 summary instead of performed_splits.
4424 (ipa_param_body_adjustments::register_replacement): Drop dummy
4425 parameter, set base_index of the created ipa_param_body_replacement.
4426 (phi_arg_will_live_p): New function.
4427 (ipa_param_body_adjustments::common_initialization): Do not create
4428 IPA_SRA dummy decls.
4429 (simple_tree_swap_info): Removed.
4430 (remap_split_decl_to_dummy): Likewise.
4431 (record_argument_state_1): New function.
4432 (record_argument_state): Likewise.
4433 (ipa_param_body_adjustments::modify_call_stmt): New parameter
4434 orig_stmt. Do not work with dummy decls, save necessary info about
4435 changes to ipa_edge_modifications.
4436 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
4437 orig_stmt, pass it to modify_call_stmt.
4438 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
4440 (ipa_edge_modifications_finalize): New function.
4441 * tree-inline.c (remap_gimple_stmt): Pass original statement to
4443 (copy_phis_for_bb): Do not copy dead PHI nodes.
4444 (expand_call_inline): Do not remap performed_splits.
4445 (update_clone_info): Likewise.
4446 * toplev.c: Include ipa-param-manipulation.h.
4447 (toplev::finalize): Call ipa_edge_modifications_finalize.
4449 2021-06-28 Andrew Pinski <apinski@marvell.com>
4451 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
4452 info if we're the only things setting the target PHI.
4453 (value_replacement): Don't duplicate range here.
4454 (minmax_replacement): Likewise.
4456 2021-06-28 Richard Biener <rguenther@suse.de>
4458 PR tree-optimization/101229
4459 * gimple-walk.c (gimple_walk_op): Handle PHIs.
4461 2021-06-28 Martin Liska <mliska@suse.cz>
4463 * config/v850/v850.c (construct_dispose_instruction): Allocate
4465 (construct_prepare_instruction): Likewise.
4467 2021-06-28 Martin Liska <mliska@suse.cz>
4469 * config/v850/v850.c (v850_option_override): Build default
4471 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
4472 ignored for inlining.
4473 (TARGET_CAN_INLINE_P): New.
4475 2021-06-28 Richard Biener <rguenther@suse.de>
4477 PR tree-optimization/101207
4478 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
4479 permute eliding for load permutations properly.
4481 2021-06-28 Richard Biener <rguenther@suse.de>
4483 PR tree-optimization/101173
4484 * gimple-loop-interchange.cc
4485 (tree_loop_interchange::valid_data_dependences): Disallow outer
4486 loop dependence distance of zero.
4488 2021-06-28 liuhongt <hongtao.liu@intel.com>
4491 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
4492 define_insn_and_split.
4493 (*avx_cmp<mode>3_ltint): Ditto.
4494 (*avx2_pcmp<mode>3_3): Ditto.
4495 (*avx2_pcmp<mode>3_4): Ditto.
4496 (*avx2_pcmp<mode>3_5): Ditto.
4498 2021-06-28 liuhongt <hongtao.liu@intel.com>
4500 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
4501 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
4502 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
4503 IX86_BUILTIN_PBLENDVB128): Replace icode with
4505 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
4507 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
4508 New pre_reload splitter.
4510 2021-06-27 Andrew Pinski <apinski@marvell.com>
4512 PR middle-end/101230
4513 * fold-const.c (fold_ternary_loc): Check
4514 the return value of invert_tree_comparison.
4516 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
4518 * config.gcc: Add SPDX License Identifier.
4519 (powerpc-ibm-aix789): Default to aix73.h.
4520 (powerpc-ibm-aix7.2.*.*): New stanza.
4521 * config/rs6000/aix72.h: Add SPDX License Identifier.
4522 * config/rs6000/aix73.h: New file.
4524 2021-06-26 Jason Merrill <jason@redhat.com>
4526 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
4528 2021-06-26 Andrew Pinski <apinski@marvell.com>
4530 * genmatch.c (lower_cond): Copy for_subst_vec
4531 for the simplify also.
4532 (lower): Swap the order for lower_for and lower_cond.
4534 2021-06-26 Andrew Pinski <apinski@marvell.com>
4536 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
4537 flow senatitive info on the moved ssa set.
4539 2021-06-26 Andrew Pinski <apinski@marvell.com>
4541 * fold-const.c (fold_cond_expr_with_comparison):
4542 Exand arg0 into comp_code, arg00, and arg01.
4543 (fold_ternary_loc): Use invert_tree_comparison
4544 instead of fold_invert_truthvalue for the case
4545 where we have A CMP B ? C : A.
4547 2021-06-25 Martin Sebor <msebor@redhat.com>
4549 PR middle-end/101216
4550 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
4552 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
4554 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
4556 2021-06-25 Richard Biener <rguenther@suse.de>
4558 PR tree-optimization/101202
4559 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
4562 2021-06-25 Richard Biener <rguenther@suse.de>
4564 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
4565 STMT_VINFO_REDUC_DEF from the original representative.
4567 2021-06-25 Martin Sebor <msebor@redhat.com>
4569 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
4570 gimple_no_warning_p and gimple_set_no_warning with
4571 warning_suppressed_p, and suppress_warning.
4573 (maybe_warn_for_bound): Same.
4574 (warn_for_access): Same.
4575 (check_access): Same.
4576 (expand_builtin_strncmp): Same.
4577 (fold_builtin_varargs): Same.
4578 * calls.c (maybe_warn_nonstring_arg): Same.
4579 (maybe_warn_rdwr_sizes): Same.
4580 * cfgexpand.c (expand_call_stmt): Same.
4581 * cgraphunit.c (check_global_declaration): Same.
4582 * fold-const.c (fold_undefer_overflow_warnings): Same.
4583 (fold_truth_not_expr): Same.
4584 (fold_unary_loc): Same.
4585 (fold_checksum_tree): Same.
4586 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
4587 (array_bounds_checker::check_mem_ref): Same.
4588 (array_bounds_checker::check_addr_expr): Same.
4589 (array_bounds_checker::check_array_bounds): Same.
4590 * gimple-expr.c (copy_var_decl): Same.
4591 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
4592 (gimple_fold_builtin_strncat): Same.
4593 (gimple_fold_builtin_stxcpy_chk): Same.
4594 (gimple_fold_builtin_stpcpy): Same.
4595 (gimple_fold_builtin_sprintf): Same.
4596 (fold_stmt_1): Same.
4597 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
4598 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
4599 * gimple-ssa-sprintf.c (handle_printf_call): Same.
4600 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
4601 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
4602 * gimple-ssa-warn-restrict.h: Adjust declarations.
4603 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
4604 gimple_no_warning_p and gimple_set_no_warning with
4605 warning_suppressed_p, and suppress_warning.
4607 (check_bounds_or_overlap): Same.
4608 * gimple.c (gimple_build_call_from_tree): Same.
4609 * gimplify.c (gimplify_return_expr): Same.
4610 (gimplify_cond_expr): Same.
4611 (gimplify_modify_expr_complex_part): Same.
4612 (gimplify_modify_expr): Same.
4613 (gimple_push_cleanup): Same.
4614 (gimplify_expr): Same.
4615 * omp-expand.c (expand_omp_for_generic): Same.
4616 (expand_omp_taskloop_for_outer): Same.
4617 * omp-low.c (lower_rec_input_clauses): Same.
4618 (lower_lastprivate_clauses): Same.
4619 (lower_send_clauses): Same.
4620 (lower_omp_target): Same.
4621 * tree-cfg.c (pass_warn_function_return::execute): Same.
4622 * tree-complex.c (create_one_component_var): Same.
4623 * tree-inline.c (remap_gimple_op_r): Same.
4624 (copy_tree_body_r): Same.
4625 (declare_return_variable): Same.
4626 (expand_call_inline): Same.
4627 * tree-nested.c (lookup_field_for_decl): Same.
4628 * tree-sra.c (create_access_replacement): Same.
4629 (generate_subtree_copies): Same.
4630 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
4631 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
4632 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
4633 * tree-ssa-loop-im.c (execute_sm): Same.
4634 * tree-ssa-phiopt.c (cond_store_replacement): Same.
4635 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
4636 (handle_builtin_strcpy): Same.
4637 (maybe_diag_stxncpy_trunc): Same.
4638 (handle_builtin_stxncpy_strncat): Same.
4639 (handle_builtin_strcat): Same.
4640 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
4641 (set_no_uninit_warning): Same.
4642 (uninit_undefined_value_p): Same.
4643 (warn_uninit): Same.
4644 (maybe_warn_operand): Same.
4645 * tree-vrp.c (compare_values_warnv): Same.
4646 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
4647 (test_for_singularity): Same.
4648 * gimple.h (warning_suppressed_p): New function.
4649 (suppress_warning): Same.
4650 (copy_no_warning): Same.
4651 (gimple_set_block): Call gimple_set_location.
4652 (gimple_set_location): Call copy_warning.
4654 2021-06-25 Martin Sebor <msebor@redhat.com>
4656 * tree.h (warning_suppressed_at, copy_warning,
4657 warning_suppressed_p, suppress_warning): New functions.
4659 2021-06-25 Martin Sebor <msebor@redhat.com>
4661 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
4662 * gengtype.c (open_base_files): Add diagnostic-spec.h.
4663 * diagnostic-spec.c: New file.
4664 * diagnostic-spec.h: New file.
4665 * tree.h (no_warning, all_warnings, suppress_warning_at): New
4667 * warning-control.cc: New file.
4669 2021-06-25 liuhongt <hongtao.liu@intel.com>
4672 * config/i386/i386.c (x86_order_regs_for_local_alloc):
4675 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4677 PR tree-optimization/101189
4678 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
4679 LHS range of condition to postfold routine.
4680 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
4681 FALSE edge if the LHS range supports it being taken.
4682 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
4684 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4686 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
4687 (relation_oracle::find_relation_block): Check correct bitmap.
4688 (relation_oracle::dump): Do not dump NULL blocks.
4690 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4692 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
4693 range_on_edge instead of manually calculating.
4695 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4697 * range-op.cc: Fix comment.
4699 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
4702 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
4703 Handle V8QI and V4HI modes.
4704 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
4706 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
4707 (mmxpackmode): New mode attribute.
4708 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
4709 (mmxunpackmode): New mode attribute.
4710 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
4711 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
4712 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
4713 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
4714 * config/i386/i386.md (extsuffix): Move from ...
4715 * config/i386/sse.md: ... here.
4717 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
4719 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
4720 (dwarf2out_finish): ...instead of here.
4722 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
4724 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
4725 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
4726 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
4727 * configure: Regenerate.
4729 2021-06-24 Richard Biener <rguenther@suse.de>
4731 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
4732 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
4733 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
4735 2021-06-24 Richard Biener <rguenther@suse.de>
4737 * config/i386/sse.md (avx_addsubv4df3): Rename to
4739 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
4740 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
4741 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
4742 * config/i386/i386-builtin.def: Adjust.
4743 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
4744 * optabs.def (vec_addsub_optab): New optab.
4745 * tree-vect-slp-patterns.c (class addsub_pattern): New.
4746 (slp_patterns): Add addsub_pattern.
4747 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
4748 across CFN_VEC_ADDSUB.
4749 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
4751 * doc/md.texi (vec_addsub<mode>3): Document.
4753 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4755 PR middle-end/101170
4756 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
4757 where regno + subreg_regno_offset wraps around use 0 as starting
4760 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4762 PR middle-end/101172
4763 * stor-layout.c (finish_bitfield_representative): If nextf has
4764 error_mark_node type, set repr type to error_mark_node too.
4766 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
4768 * config/s390/s390.c (s390_function_profiler): Ignore labelno
4770 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
4772 2021-06-24 Richard Biener <rguenther@suse.de>
4774 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
4775 across operations that have different semantics on different
4778 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4780 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
4781 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
4782 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
4783 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
4784 OMP_TARGET user outer_ctx instead of ctx for placeholders and
4785 initializer/combiner gimplification.
4786 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
4787 on target constructs.
4788 (lower_rec_input_clauses): Likewise.
4789 (lower_omp_target): Likewise.
4790 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
4791 on target if in_reduction is present.
4793 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
4795 * tree-predcom.c (class pcom_worker): New class.
4796 (release_chain): Renamed to...
4797 (pcom_worker::release_chain): ...this.
4798 (release_chains): Renamed to...
4799 (pcom_worker::release_chains): ...this.
4800 (aff_combination_dr_offset): Renamed to...
4801 (pcom_worker::aff_combination_dr_offset): ...this.
4802 (determine_offset): Renamed to...
4803 (pcom_worker::determine_offset): ...this.
4804 (class comp_ptrs): New class.
4805 (split_data_refs_to_components): Renamed to...
4806 (pcom_worker::split_data_refs_to_components): ...this,
4807 and update with class comp_ptrs.
4808 (suitable_component_p): Renamed to...
4809 (pcom_worker::suitable_component_p): ...this.
4810 (filter_suitable_components): Renamed to...
4811 (pcom_worker::filter_suitable_components): ...this.
4812 (valid_initializer_p): Renamed to...
4813 (pcom_worker::valid_initializer_p): ...this.
4814 (find_looparound_phi): Renamed to...
4815 (pcom_worker::find_looparound_phi): ...this.
4816 (add_looparound_copies): Renamed to...
4817 (pcom_worker::add_looparound_copies): ...this.
4818 (determine_roots_comp): Renamed to...
4819 (pcom_worker::determine_roots_comp): ...this.
4820 (determine_roots): Renamed to...
4821 (pcom_worker::determine_roots): ...this.
4822 (single_nonlooparound_use): Renamed to...
4823 (pcom_worker::single_nonlooparound_use): ...this.
4824 (remove_stmt): Renamed to...
4825 (pcom_worker::remove_stmt): ...this.
4826 (execute_pred_commoning_chain): Renamed to...
4827 (pcom_worker::execute_pred_commoning_chain): ...this.
4828 (execute_pred_commoning): Renamed to...
4829 (pcom_worker::execute_pred_commoning): ...this.
4830 (struct epcc_data): New member worker.
4831 (execute_pred_commoning_cbck): Call execute_pred_commoning
4832 with pcom_worker pointer.
4833 (find_use_stmt): Renamed to...
4834 (pcom_worker::find_use_stmt): ...this.
4835 (find_associative_operation_root): Renamed to...
4836 (pcom_worker::find_associative_operation_root): ...this.
4837 (find_common_use_stmt): Renamed to...
4838 (pcom_worker::find_common_use_stmt): ...this.
4839 (combinable_refs_p): Renamed to...
4840 (pcom_worker::combinable_refs_p): ...this.
4841 (reassociate_to_the_same_stmt): Renamed to...
4842 (pcom_worker::reassociate_to_the_same_stmt): ...this.
4843 (stmt_combining_refs): Renamed to...
4844 (pcom_worker::stmt_combining_refs): ...this.
4845 (combine_chains): Renamed to...
4846 (pcom_worker::combine_chains): ...this.
4847 (try_combine_chains): Renamed to...
4848 (pcom_worker::try_combine_chains): ...this.
4849 (prepare_initializers_chain): Renamed to...
4850 (pcom_worker::prepare_initializers_chain): ...this.
4851 (prepare_initializers): Renamed to...
4852 (pcom_worker::prepare_initializers): ...this.
4853 (prepare_finalizers_chain): Renamed to...
4854 (pcom_worker::prepare_finalizers_chain): ...this.
4855 (prepare_finalizers): Renamed to...
4856 (pcom_worker::prepare_finalizers): ...this.
4857 (tree_predictive_commoning_loop): Renamed to...
4858 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
4859 some calls and remove some cleanup code.
4860 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
4861 (static variable looparound_phis): Remove.
4862 (static variable name_expansions): Remove.
4864 2021-06-24 Richard Biener <rguenther@suse.de>
4866 * tree-vect-slp.c (slpg_vertex): New struct.
4867 (vect_slp_build_vertices): Adjust.
4868 (vect_optimize_slp): Likewise. Maintain an outgoing permute
4869 and a materialized one.
4871 2021-06-24 Richard Biener <rguenther@suse.de>
4873 PR tree-optimization/101105
4874 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4875 Only ignore steps when they are equal or scalar order is preserved.
4877 2021-06-24 liuhongt <hongtao.liu@intel.com>
4880 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
4881 Adjust comments for ix86_expand_vecop_qihi2.
4882 (ix86_expand_vecmul_qihi): Renamed to ..
4883 (ix86_expand_vecop_qihi2): Adjust function prototype to
4884 support shift operation, add static to definition.
4885 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
4886 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
4887 ix86_expand_vec_shift_qihi_constant.
4888 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
4889 (ix86_expand_vec_shift_qihi_constant): Deleted.
4890 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
4892 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
4893 condition TARGET_64BIT.
4894 (mul<mode>3): Ditto.
4895 (<insn><mode>3): Ditto.
4896 (vlshr<mode>3): Extend to support avx512 vlshr.
4897 (v<insn><mode>3): New expander for
4899 (v<insn>v8qi3): Ditto.
4900 (vashrv8hi3<mask_name>): Renamed to ..
4901 (vashr<mode>3): And extend to support V16QImode for avx512.
4902 (vashrv16qi3): Deleted.
4903 (vashrv2di3<mask_name>): Extend expander to support avx512
4906 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
4908 * doc/lto.texi (Design Overview): Update that slim objects are
4911 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
4913 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
4914 of OTHER_POWER10_MASKS so it will not be enabled by default.
4916 2021-06-23 Richard Biener <rguenther@suse.de>
4917 Martin Jambor <mjambor@suse.cz>
4919 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
4920 param replacement unconditionally. Adjust comment.
4922 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4924 * Makefile.in (OBJS): Add gimple-range-fold.o
4925 * gimple-range-fold.cc: New.
4926 * gimple-range-fold.h: New.
4927 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
4928 (gimple_range_calc_op2): Ditto.
4929 * gimple-range-gori.h: Move prototypes to here.
4930 * gimple-range.cc: Adjust include files.
4931 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
4932 (fur_source::get_operand): Ditto.
4933 (fur_source::get_phi_operand): Ditto.
4934 (fur_source::query_relation): Ditto.
4935 (fur_source::register_relation): Ditto.
4936 (class fur_edge): Ditto.
4937 (fur_edge::fur_edge): Ditto.
4938 (fur_edge::get_operand): Ditto.
4939 (fur_edge::get_phi_operand): Ditto.
4940 (fur_stmt::fur_stmt): Ditto.
4941 (fur_stmt::get_operand): Ditto.
4942 (fur_stmt::get_phi_operand): Ditto.
4943 (fur_stmt::query_relation): Ditto.
4944 (class fur_depend): Relocate to gimple-range-fold.h.
4945 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
4946 (fur_depend::register_relation): Ditto.
4947 (fur_depend::register_relation): Ditto.
4948 (class fur_list): Ditto.
4949 (fur_list::fur_list): Ditto.
4950 (fur_list::get_operand): Ditto.
4951 (fur_list::get_phi_operand): Ditto.
4952 (fold_range): Ditto.
4953 (adjust_pointer_diff_expr): Ditto.
4954 (gimple_range_adjustment): Ditto.
4955 (gimple_range_base_of_assignment): Ditto.
4956 (gimple_range_operand1): Ditto.
4957 (gimple_range_operand2): Ditto.
4958 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
4959 (gimple_range_calc_op2): Ditto.
4960 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
4961 (fold_using_range::range_of_range_op): Ditto.
4962 (fold_using_range::range_of_address): Ditto.
4963 (fold_using_range::range_of_phi): Ditto.
4964 (fold_using_range::range_of_call): Ditto.
4965 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
4966 (fold_using_range::range_of_builtin_call): Ditto.
4967 (fold_using_range::range_of_cond_expr): Ditto.
4968 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
4969 (fold_using_range::relation_fold_and_or): Ditto.
4970 (fold_using_range::postfold_gcond_edges): Ditto.
4971 * gimple-range.h: Add gimple-range-fold.h to include files. Change
4972 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
4973 (gimple_range_handler): Relocate to gimple-range-fold.h.
4974 (gimple_range_ssa_p): Ditto.
4975 (range_compatible_p): Ditto.
4976 (class fur_source): Ditto.
4977 (class fur_stmt): Ditto.
4978 (class fold_using_range): Ditto.
4979 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
4980 (gimple_range_calc_op2): Ditto.
4982 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4984 PR tree-optimization/101148
4985 PR tree-optimization/101014
4986 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
4987 (ranger_cache::~ranger_cache): Adjust.
4988 (ranger_cache::block_range): Check if propagation disallowed.
4989 (ranger_cache::propagate_cache): Disallow propagation if new value
4990 can't be stored properly.
4991 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
4993 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4995 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
4996 (sbr_vector::set_bb_range): Return true.
4997 (class sbr_sparse_bitmap): Adjust.
4998 (sbr_sparse_bitmap::set_bb_range): Return value.
4999 (block_range_cache::set_bb_range): Return value.
5000 (ranger_cache::propagate_cache): Use return value to print msg.
5001 * gimple-range-cache.h (class block_range_cache): Adjust.
5003 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
5005 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
5007 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
5009 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
5010 so this pattern can be used for test/compare removal. Pass
5011 current insn to compute_logical_op_length and output_logical_op.
5012 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
5013 (h8300_and_costs): Add argument to compute_logical_op_length.
5014 (output_logical_op): Add new argument. Use it to determine if the
5015 condition codes are used and adjust the output accordingly.
5016 (compute_logical_op_length): Add new argument and update length
5017 computations when condition codes are used.
5018 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
5020 (output_logical_op): Likewise.
5022 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
5025 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
5026 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
5027 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
5028 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
5029 * config/i386/sse.md (unspec): ... here.
5031 2021-06-23 Martin Liska <mliska@suse.cz>
5034 * optc-save-gen.awk: Put back arm_fp16_format to
5037 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
5040 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
5043 (clz<mode>2): Update RTX pattern for additions.
5045 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5047 PR middle-end/101167
5048 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
5049 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
5051 2021-06-22 Sergei Trofimovich <siarheit@google.com>
5053 * doc/rtl.texi: drop unbalanced parenthesis.
5055 2021-06-22 Richard Biener <rguenther@suse.de>
5057 PR middle-end/101156
5058 * gimplify.c (gimplify_expr): Remove premature incorrect
5061 2021-06-22 Jakub Jelinek <jakub@redhat.com>
5063 PR tree-optimization/101159
5064 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
5067 2021-06-22 Jakub Jelinek <jakub@redhat.com>
5069 PR middle-end/101160
5070 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
5071 clear crtl->return_rtx instead of keeping it referencing a pseudo.
5073 2021-06-22 Jakub Jelinek <jakub@redhat.com>
5074 Andrew Pinski <apinski@marvell.com>
5076 PR tree-optimization/101162
5077 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
5080 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5082 * range-op.cc (range_relational_tests): New.
5083 (range_op_tests): Call range_relational_tests.
5085 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5087 * range-op.cc (operator_cast::lhs_op1_relation): New.
5088 (operator_identity::lhs_op1_relation): Mew.
5090 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5092 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
5094 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5096 * range-op.cc (operator_plus::lhs_op1_relation): New.
5097 (operator_plus::lhs_op2_relation): New.
5099 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5101 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
5102 relation_oracle if dominators exist.
5103 (ranger_cache::~ranger_cache): Dispose of oracle.
5104 (ranger_cache::dump_bb): Dump oracle.
5105 * gimple-range.cc (fur_source::fur_source): New.
5106 (fur_source::get_operand): Use mmeber query.
5107 (fur_source::get_phi_operand): Use member_query.
5108 (fur_source::query_relation): New.
5109 (fur_source::register_dependency): Delete.
5110 (fur_source::register_relation): New.
5111 (fur_edge::fur_edge): Adjust.
5112 (fur_edge::get_phi_operand): Fix comment.
5113 (fur_edge::query): Delete.
5114 (fur_stmt::fur_stmt): Adjust.
5115 (fur_stmt::query): Delete.
5116 (fur_depend::fur_depend): Adjust.
5117 (fur_depend::register_relation): New.
5118 (fur_depend::register_relation): New.
5119 (fur_list::fur_list): Adjust.
5120 (fur_list::get_operand): Use member query.
5121 (fold_using_range::range_of_range_op): Process and query relations.
5122 (fold_using_range::range_of_address): Adjust dependency call.
5123 (fold_using_range::range_of_phi): Ditto.
5124 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
5125 (fold_using_range::relation_fold_and_or): New.
5126 (fold_using_range::postfold_gcond_edges): New.
5127 * gimple-range.h (class gimple_ranger): Adjust.
5128 (class fur_source): Adjust members.
5129 (class fur_stmt): Ditto.
5130 (class fold_using_range): Ditto.
5132 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5134 * range-op.cc (range_operator::wi_fold): Apply relation effect.
5135 (range_operator::fold_range): Adjust and apply relation effect.
5136 (*::fold_range): Add relation parameters.
5137 (*::op1_range): Ditto.
5138 (*::op2_range): Ditto.
5139 (range_operator::lhs_op1_relation): New.
5140 (range_operator::lhs_op2_relation): New.
5141 (range_operator::op1_op2_relation): New.
5142 (range_operator::op1_op2_relation_effect): New.
5143 (relop_early_resolve): New.
5144 (operator_equal::op1_op2_relation): New.
5145 (operator_equal::fold_range): Call relop_early_resolve.
5146 (operator_not_equal::op1_op2_relation): New.
5147 (operator_not_equal::fold_range): Call relop_early_resolve.
5148 (operator_lt::op1_op2_relation): New.
5149 (operator_lt::fold_range): Call relop_early_resolve.
5150 (operator_le::op1_op2_relation): New.
5151 (operator_le::fold_range): Call relop_early_resolve.
5152 (operator_gt::op1_op2_relation): New.
5153 (operator_gt::fold_range): Call relop_early_resolve.
5154 (operator_ge::op1_op2_relation): New.
5155 (operator_ge::fold_range): Call relop_early_resolve.
5156 * range-op.h (class range_operator): Adjust parameters and methods.
5158 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
5160 * Makefile.in (OBJS): Add value-relation.o.
5161 * gimple-range.h: Adjust include files.
5162 * tree-data-ref.c: Adjust include file order.
5163 * value-query.cc (range_query::get_value_range): Default to no oracle.
5164 (range_query::query_relation): New.
5165 (range_query::query_relation): New.
5166 * value-query.h (class range_query): Adjust.
5167 * value-relation.cc: New.
5168 * value-relation.h: New.
5170 2021-06-22 Richard Biener <rguenther@suse.de>
5172 PR tree-optimization/101151
5173 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
5176 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
5178 * config/riscv/riscv.c (thead_c906_tune_info): New.
5179 (riscv_tune_info_table): Use new tune.
5181 2021-06-22 Richard Biener <rguenther@suse.de>
5183 PR tree-optimization/101158
5184 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
5185 checking after checking for matching operation.
5187 2021-06-22 Richard Biener <rguenther@suse.de>
5189 PR tree-optimization/101159
5190 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
5191 missing NULL vectype check.
5193 2021-06-22 Richard Biener <rguenther@suse.de>
5195 PR tree-optimization/101154
5196 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
5198 2021-06-22 Jakub Jelinek <jakub@redhat.com>
5201 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
5202 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
5203 * config/i386/i386.c (ix86_expand_prologue): Clear it.
5204 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
5205 Remove "" from match_operand. Emit new insns using emit_move_insn and
5206 set ix86_last_zero_store_uid to INSN_UID of the last store.
5207 Add peephole2s for 1/2/4 stores of const0_rtx following previous
5210 2021-06-22 Martin Liska <mliska@suse.cz>
5212 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
5215 2021-06-22 Martin Liska <mliska@suse.cz>
5217 * gcov-io.h: Remove padding entries.
5219 2021-06-22 liuhongt <hongtao.liu@intel.com>
5221 PR tree-optimization/97770
5222 * tree-vect-patterns.c (vect_recog_popcount_pattern):
5224 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
5226 2021-06-22 liuhongt <hongtao.liu@intel.com>
5229 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
5230 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
5231 (expand<mode>_mask): this ..
5232 (*expand<mode>_mask): New pre_reload splitter to transform
5233 v{,p}expand* to vmov* when mask is zero, all ones, or has all
5234 ones in it's lower part, otherwise still generate
5237 2021-06-22 liuhongt <hongtao.liu@intel.com>
5240 * config/i386/i386-expand.c
5241 (ix86_expand_special_args_builtin): Keep constm1_operand only
5242 if it satisfies insn's operand predicate.
5244 2021-06-21 Jason Merrill <jason@redhat.com>
5247 * df-scan.c (df_ref_record): Check that regno < endregno.
5248 * function.c (assign_parms, expand_function_end): Do nothing with a
5249 TYPE_EMPTY_P result.
5251 2021-06-21 Richard Biener <rguenther@suse.de>
5253 PR tree-optimization/101120
5254 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
5256 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
5257 DR chain DCE capability.
5258 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
5259 * tree-vect-stmts.c (vectorizable_load): Remove unused
5260 loads in the DR chain for SLP.
5262 2021-06-21 Jakub Jelinek <jakub@redhat.com>
5264 PR inline-asm/100785
5265 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
5266 output or input operands were already error_mark_node.
5267 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
5268 remove all inputs, outputs and clobbers from the asm and
5271 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5273 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
5274 (vceq_s16): Likewise.
5275 (vceq_s32): Likewise.
5276 (vceq_u8): Likewise.
5277 (vceq_u16): Likewise.
5278 (vceq_u32): Likewise.
5279 (vceq_p8): Likewise.
5280 (vceqq_s8): Likewise.
5281 (vceqq_s16): Likewise.
5282 (vceqq_s32): Likewise.
5283 (vceqq_u8): Likewise.
5284 (vceqq_u16): Likewise.
5285 (vceqq_u32): Likewise.
5286 (vceqq_p8): Likewise.
5287 (vceq_f32): Gate __a == __b on __FAST_MATH__.
5288 (vceqq_f32): Likewise.
5289 (vceq_f16): Likewise.
5290 (vceqq_f16): Likewise.
5292 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5295 * config/arm/iterators.md (NEON_VACMP): Remove.
5296 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
5298 (neon_vca<cmp_op><mode>_insn): Likewise.
5299 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
5302 2021-06-21 Richard Biener <rguenther@suse.de>
5304 PR tree-optimization/101121
5305 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
5306 when we just lack a stmt with the desired op when doing permutation.
5307 (vect_build_slp_tree): When caching a failed SLP build attempt
5308 assert that at least one lane is marked as not matching.
5310 2021-06-21 liuhongt <hongtao.liu@intel.com>
5313 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
5314 register alternative.
5315 (*and<mode>_1): Ditto.
5317 (*andn<mode>_1): Ditto.
5318 (*<code><mode>_1): Ditto.
5319 (*<code>qi_1): Ditto.
5320 (*one_cmpl<mode>2_1): Ditto.
5321 (*one_cmplsi2_1_zext): Ditto.
5322 (*one_cmplqi2_1): Ditto.
5323 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
5324 the order of mask registers to be before general registers.
5326 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
5329 * config/i386/i386.md: New define_peephole2s to shrink writing
5330 1, 2 or 4 consecutive zeros to memory when optimizing for size.
5332 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
5334 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
5335 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
5336 more efficient code when the source can be trivially simplified.
5338 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
5340 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
5341 a range if global is not available.
5342 (ranger_cache::entry_range): Fallback to range_of_def.
5343 * gimple-range-cache.h (range_of_def): Adjust prototype.
5345 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
5347 PR tree-optimization/101014
5348 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
5350 (ranger_cache::~ranger_cache): Ditto.
5351 (ranger_cache::enable_new_values): Delete.
5352 (ranger_cache::push_poor_value): Delete.
5353 (ranger_cache::range_of_def): Remove poor value processing.
5354 (ranger_cache::entry_range): Ditto.
5355 (ranger_cache::fill_block_cache): Ditto.
5356 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
5357 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
5358 * gimple-range.h (class gimple_ranger): Adjust.
5360 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5363 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
5364 derived from arm_canon_arch.
5365 (arm_canon_arch_option): Call it.
5366 (arm_canon_arch_multilib_option): New function.
5367 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
5368 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
5369 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
5370 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
5371 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
5372 * config/arm/arm.opt (mlibarch): New option.
5373 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
5374 of march on RHS with mlibarch.
5376 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
5378 * config.in: Regenerate.
5379 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
5381 * configure: Regenerate.
5382 * configure.ac: Fix for global_load assembler functions.
5384 2021-06-18 Richard Biener <rguenther@suse.de>
5386 PR tree-optimization/101112
5387 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
5388 to lookup a pattern stmt def.
5390 2021-06-18 Jakub Jelinek <jakub@redhat.com>
5392 PR middle-end/101062
5393 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
5394 representatives in QUAL_UNION_TYPE.
5396 2021-06-18 Andrew Pinski <apinski@marvell.com>
5398 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
5399 Add counting of how many times it is done.
5400 (factor_out_conditional_conversion): Likewise.
5401 (match_simplify_replacement): Likewise.
5402 (value_replacement): Likewise.
5403 (spaceship_replacement): Likewise.
5404 (cond_store_replacement): Likewise.
5405 (cond_if_else_store_replacement_1): Likewise.
5406 (hoist_adjacent_loads): Likewise.
5408 2021-06-18 Andrew Pinski <apinski@marvell.com>
5410 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
5411 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
5412 (verify_gimple_assign_binary): Reject point and offset types on
5413 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
5414 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
5415 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
5417 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
5419 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
5420 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
5421 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
5424 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
5426 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
5427 earlyclobber to alts 0/1.
5428 (gen_addadd): Add earlyclobber to alts 0/1.
5429 * config/rs6000/fusion.md: Regenerate file.
5431 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5433 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
5435 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
5437 * gimple-range-cache.cc: Comment cleanups.
5438 * gimple-range-gori.cc: Comment cleanups.
5439 * gimple-range.cc: Comment/spacing cleanups
5440 * value-range.h: Comment cleanups.
5442 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
5445 * calls.c (expand_call): Replace PUSH_ARGS with
5446 targetm.calls.push_argument (0).
5447 (emit_library_call_value_1): Likewise.
5448 * defaults.h (PUSH_ARGS): Removed.
5449 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
5450 targetm.calls.push_argument (0).
5451 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5452 (emit_push_insn): Pass the number bytes to push to
5453 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
5454 * hooks.c (hook_bool_uint_true): New.
5455 * hooks.h (hook_bool_uint_true): Likewise.
5456 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
5457 targetm.calls.push_argument (0).
5458 * target.def (push_argument): Add a targetm.calls hook.
5459 * targhooks.c (default_push_argument): New.
5460 * targhooks.h (default_push_argument): Likewise.
5461 * config/bpf/bpf.h (PUSH_ARGS): Removed.
5462 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
5463 * config/cr16/cr16.h (PUSH_ARGS): Removed.
5464 * config/i386/i386.c (ix86_push_argument): New.
5465 (TARGET_PUSH_ARGUMENT): Likewise.
5466 * config/i386/i386.h (PUSH_ARGS): Removed.
5467 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
5468 * config/m32c/m32c.h (PUSH_ARGS): Removed.
5469 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
5470 * config/pru/pru.h (PUSH_ARGS): Likewise.
5471 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
5472 TARGET_PUSH_ARGUMENT hook.
5473 * doc/tm.texi: Regenerated.
5475 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
5478 * config/i386/i386-expand.c (expand_vector_set_var):
5479 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
5480 ix86_expand_vector_init_duplicate.
5481 (ix86_expand_vector_init_duplicate): Emit insv_1 for
5482 QImode for !TARGET_PARTIAL_REG_STALL.
5483 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
5484 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
5485 as operand 2 predicate. Call ix86_expand_vector_set_var
5486 for non-constant index operand.
5487 (vec_setv2si): Ditto.
5488 (vec_setv4hi): Ditto.
5489 (vec_setv8qi): ditto.
5491 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
5493 PR tree-optimization/100790
5494 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
5497 2021-06-17 Martin Liska <mliska@suse.cz>
5499 * doc/invoke.texi: Use consistently -O1 instead of -O.
5501 2021-06-17 Martin Liska <mliska@suse.cz>
5503 * gcov-io.h: Update documentation entry about string format.
5505 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
5508 * config/s390/vecintrin.h (vec_doublee): Fix to use
5509 __builtin_s390_vflls.
5510 (vec_floate): Fix to use __builtin_s390_vflrd.
5512 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5514 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
5515 * dominance.h (get_dominated_to_depth): Likewise.
5516 (get_all_dominated_blocks): Likewise.
5517 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
5518 * gcse.c (hoist_code): Likewise.
5519 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
5520 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
5521 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5522 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
5524 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5526 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
5527 * dominance.h (get_dominated_by_region): Likewise.
5528 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
5529 (gimple_duplicate_sese_tail): Likewise.
5530 (move_sese_region_to_fn): Likewise.
5532 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5534 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
5535 * dominance.h (get_dominated_by): Likewise.
5536 * auto-profile.c (afdo_find_equiv_class): Adjust.
5537 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
5538 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
5539 * tree-cfg.c (test_linear_chain): Likewise.
5540 (test_diamond): Likewise.
5542 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5544 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
5545 * cfgloopanal.c (get_loop_hot_path): Likewise.
5546 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
5548 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5550 * cgraph.c (cgraph_node::collect_callers): Return
5551 auto_vec<cgraph_edge *>.
5552 * cgraph.h (cgraph_node::collect_callers): Likewise.
5553 * ipa-cp.c (create_specialized_node): Adjust.
5554 (decide_about_value): Likewise.
5555 (decide_whether_version_node): Likewise.
5556 * ipa-sra.c (process_isra_node_results): Likewise.
5558 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
5560 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
5561 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
5563 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
5566 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
5568 * gimple-range.cc (debug_seed_ranger): New.
5570 (debug_ranger): New.
5572 2021-06-17 Richard Biener <rguenther@suse.de>
5574 PR tree-optimization/54400
5575 * tree-vectorizer.h (enum slp_instance_kind): Add
5576 slp_inst_kind_bb_reduc.
5577 (reduction_fn_for_scalar_code): Declare.
5578 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
5579 Check SLP_INSTANCE_KIND instead of looking at the
5581 (vect_slp_analyze_instance_alignment): Likewise.
5582 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
5583 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
5584 chain linearization from vect_build_slp_tree_2 and generalize
5585 for the use of BB reduction vectorization.
5586 (vect_build_slp_tree_2): Adjust accordingly.
5587 (vect_optimize_slp): Elide permutes at the root of BB reduction
5589 (vectorizable_bb_reduc_epilogue): New function.
5590 (vect_slp_prune_covered_roots): Likewise.
5591 (vect_slp_analyze_operations): Use them.
5592 (vect_slp_check_for_constructors): Recognize associatable
5593 chains for BB reduction vectorization.
5594 (vectorize_slp_instance_root_stmt): Generate code for the
5595 BB reduction epilogue.
5597 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
5599 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
5601 (gori_compute::may_recompute_p): New.
5602 (gori_compute::outgoing_edge_range_p): Perform recomputations.
5603 * gimple-range-gori.h (class gori_compute): Add prototype.
5605 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
5607 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
5608 true when a range can be calculated.
5609 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
5611 2021-06-16 Martin Sebor <msebor@redhat.com>
5613 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
5614 Correct documented defaults.
5616 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
5618 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
5619 m_new_value_p directly.
5621 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
5624 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
5625 Handle 64bit modes for TARGET_SSE4_1.
5626 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
5627 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
5628 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
5629 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
5630 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
5631 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
5633 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5635 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
5636 Change to an expander that emits the correct instruction
5637 depending on endianness.
5638 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
5639 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
5641 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5643 * config/aarch64/aarch64-simd-builtins.def: Split generator
5644 for aarch64_<su>qmovn builtins into scalar and vector
5646 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
5648 (aarch64_<su>qmovn<mode>_insn_be): Define.
5649 (aarch64_<su>qmovn<mode>): Split into scalar and vector
5650 variants. Change vector variant to an expander that emits the
5651 correct instruction depending on endianness.
5653 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5655 * config/aarch64/aarch64-simd-builtins.def: Split generator
5656 for aarch64_sqmovun builtins into scalar and vector variants.
5657 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
5658 Split into scalar and vector variants. Change vector variant
5659 to an expander that emits the correct instruction depending
5661 (aarch64_sqmovun<mode>_insn_le): Define.
5662 (aarch64_sqmovun<mode>_insn_be): Define.
5664 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5666 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
5667 Define - modeling zero-high-half semantics.
5668 (aarch64_xtn<mode>): Change to an expander that emits the
5669 appropriate instruction depending on endianness.
5670 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
5672 (aarch64_xtn2<mode>_le): Rename to...
5673 (aarch64_xtn2<mode>_insn_le): This.
5674 (aarch64_xtn2<mode>_be): Rename to...
5675 (aarch64_xtn2<mode>_insn_be): This.
5676 (vec_pack_trunc_<mode>): Emit truncation instruction instead
5678 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
5681 2021-06-16 Martin Jambor <mjambor@suse.cz>
5683 PR tree-optimization/100453
5684 * tree-sra.c (create_access): Disqualify any const candidates
5685 which are written to.
5686 (sra_modify_expr): Do not store sub-replacements back to a const base.
5687 (handle_unscalarized_data_in_subtree): Likewise.
5688 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
5689 instead of constant_decl_p.
5691 2021-06-16 Jakub Jelinek <jakub@redhat.com>
5693 PR middle-end/101062
5694 * stor-layout.c (finish_bitfield_representative): For fields in unions
5695 assume nextf is always NULL.
5696 (finish_bitfield_layout): Compute bit field representatives also in
5697 unions, but handle it as if each bitfield was the only field in the
5700 2021-06-16 Richard Biener <rguenther@suse.de>
5702 PR tree-optimization/101088
5703 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
5704 supported refs on edges. Do not assert same ref but
5705 different kind stores are unsuported but mark them so.
5706 (hoist_memory_references): Only look for supported refs
5709 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
5711 PR rtl-optimization/46235
5712 * config/i386/i386.md: New define_split for bt followed by cmov.
5713 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
5714 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
5715 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
5716 by setnc with zero extension.
5718 2021-06-16 Richard Biener <rguenther@suse.de>
5720 PR tree-optimization/101083
5721 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
5722 vectype as argument.
5723 (vect_build_slp_tree_2): Adjust.
5725 2021-06-15 Martin Sebor <msebor@redhat.com>
5727 PR middle-end/100876
5728 * builtins.c: (gimple_call_return_array): Account for size_t
5729 mangling as either unsigned int or unsigned long
5731 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
5733 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
5734 up before eliminating comparisons.
5736 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
5738 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
5739 nonzero|X is nonzero.
5740 (range_op_bitwise_and_tests): Add tests for above.
5742 2021-06-15 Carl Love <cel@us.ibm.com>
5745 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
5747 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
5750 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5753 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
5754 (struct gimplify_omp_ctx): Extend defaultmap array by one.
5755 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
5756 (omp_notice_variable): Update type classification for Fortran.
5757 (gimplify_scan_omp_clauses): Update calls for new argument; handle
5758 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
5759 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
5760 * langhooks.c (lhd_omp_scalar_p): Likewise.
5761 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
5762 (LANG_HOOKS_DECLS): Add them.
5763 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
5764 omp_scalar_p pointer type to include the new bool argument.
5766 2021-06-15 David Malcolm <dmalcolm@redhat.com>
5769 (Special Functions for Debugging the Analyzer): Add
5770 __analyzer_dump_capacity.
5772 2021-06-15 Jakub Jelinek <jakub@redhat.com>
5775 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
5776 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
5778 2021-06-15 Richard Biener <rguenther@suse.de>
5780 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
5781 check to identify loop latches.
5782 * cfgloop.c (verify_loop_structure): Likewise.
5783 * loop-init.c (apply_loop_flags): Allow marked irreducible
5784 regions even with multiple latches.
5785 * predict.c (rebuild_frequencies): Simplify.
5787 2021-06-15 Richard Biener <rguenther@suse.de>
5789 * tree-ssa-threadupdate.c
5790 (jump_thread_path_registry::mark_threaded_blocks): Assert we
5791 have marked irreducible regions.
5793 2021-06-14 Martin Sebor <msebor@redhat.com>
5796 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
5797 Handle calls to placement new.
5798 (ndecl_dealloc_argno): Avoid placement delete.
5800 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
5803 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
5804 create_tmp_reg_or_ssa_name().
5806 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
5808 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
5809 (ranger_cache::enable_new_values): Set to specified value and
5810 return the old value.
5811 (ranger_cache::disable_new_values): Delete.
5812 (ranger_cache::fill_block_cache): Disable non 1st order derived
5814 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
5815 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
5817 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
5820 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
5821 Return true early when testing with V2HImode.
5822 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
5824 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
5826 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
5827 (mve_vec_unpack<US>_hi_<mode>): New pattern.
5828 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
5829 (mve_vmovntq_<supf><mode>): Prefix with '@'.
5830 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
5832 (vec_unpack<US>_lo_<mode>): Likewise.
5833 (vec_pack_trunc_<mode>): Rename to
5834 neon_quad_vec_pack_trunc_<mode>.
5835 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
5837 (vec_unpack<US>_lo_<mode>): New.
5838 (vec_pack_trunc_<mode>): New.
5840 2021-06-14 Richard Biener <rguenther@suse.de>
5842 PR tree-optimization/100934
5843 * tree-ssa-dom.c (pass_dominator::execute): Properly
5844 mark irreducible regions.
5846 2021-06-14 Martin Liska <mliska@suse.cz>
5848 * doc/invoke.texi: Put r{...} on the same line as @item.
5850 2021-06-14 Martin Liska <mliska@suse.cz>
5852 * doc/invoke.texi: Add missing newline.
5854 2021-06-14 Martin Liska <mliska@suse.cz>
5856 * doc/invoke.texi: Remove '+' charasters.
5858 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
5860 * config.gcc (arc): Add support for with_cpu option.
5861 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
5863 2021-06-14 Richard Biener <rguenther@suse.de>
5865 PR tree-optimization/101031
5866 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
5867 instead of size when accounting for a possibly string
5870 2021-06-14 Martin Liska <mliska@suse.cz>
5872 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
5874 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
5876 * value-query.cc (gimple_range_global): Call get_range_global
5877 if called after inlining.
5879 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
5882 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
5883 Emit constant permutation insn directly from here.
5885 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
5887 * attribs.c (find_attribute_namespace): Iterate over vec<> with
5889 * auto-profile.c (afdo_find_equiv_class): Likewise.
5890 * gcc.c (do_specs_vec): Likewise.
5891 (do_spec_1): Likewise.
5892 (driver::set_up_specs): Likewise.
5893 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
5894 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
5895 (imm_store_chain_info::try_coalesce_bswap): Likewise.
5896 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5897 (get_location_for_stmts): Likewise.
5898 * graphite-poly.c (print_iteration_domains): Likewise.
5899 (free_poly_bb): Likewise.
5900 (remove_gbbs_in_scop): Likewise.
5901 (free_scop): Likewise.
5902 (dump_gbb_cases): Likewise.
5903 (dump_gbb_conditions): Likewise.
5904 (print_pdrs): Likewise.
5905 (print_scop): Likewise.
5906 * ifcvt.c (cond_move_process_if_block): Likewise.
5907 * lower-subreg.c (decompose_multiword_subregs): Likewise.
5908 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5909 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
5910 * sel-sched-dump.c (dump_insn_vector): Likewise.
5911 * store-motion.c (store_ops_ok): Likewise.
5912 (store_killed_in_insn): Likewise.
5913 * timevar.c (timer::named_items::print): Likewise.
5914 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
5915 (cleanup_tree_cfg_noloop): Likewise.
5916 * tree-data-ref.c (dump_data_references): Likewise.
5917 (print_dir_vectors): Likewise.
5918 (print_dist_vectors): Likewise.
5919 (dump_data_dependence_relations): Likewise.
5920 (dump_dist_dir_vectors): Likewise.
5921 (dump_ddrs): Likewise.
5922 (create_runtime_alias_checks): Likewise.
5923 (free_subscripts): Likewise.
5924 (save_dist_v): Likewise.
5925 (save_dir_v): Likewise.
5926 (invariant_access_functions): Likewise.
5927 (same_access_functions): Likewise.
5928 (access_functions_are_affine_or_constant_p): Likewise.
5929 (find_data_references_in_stmt): Likewise.
5930 (graphite_find_data_references_in_stmt): Likewise.
5931 (free_dependence_relations): Likewise.
5932 (free_data_refs): Likewise.
5933 * tree-inline.c (copy_debug_stmts): Likewise.
5934 * tree-into-ssa.c (dump_currdefs): Likewise.
5935 (rewrite_update_phi_arguments): Likewise.
5936 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
5937 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
5939 (vect_slp_analyze_node_dependences): Likewise.
5940 (vect_slp_analyze_instance_dependence): Likewise.
5941 (vect_record_base_alignments): Likewise.
5942 (vect_get_peeling_costs_all_drs): Likewise.
5943 (vect_peeling_supportable): Likewise.
5944 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
5945 (vec_info::free_stmt_vec_infos): Likewise.
5947 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
5949 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
5950 (andqi3_1<cczn>): Removed.
5951 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
5952 (H8/SX bit logicals): Split out from other patterns.
5953 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
5954 mulqihi3_const_clobber_flags.
5955 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
5957 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
5960 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
5961 to true if red zone is used.
5962 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
5964 * config/i386/i386.h (machine_function): Add red_zone_used.
5965 (ix86_red_zone_size): Removed.
5966 (ix86_red_zone_used): New.
5967 * config/i386/i386.md (peephole2 patterns): Replace
5968 ix86_red_zone_size with ix86_red_zone_used.
5970 2021-06-12 Jason Merrill <jason@redhat.com>
5972 * doc/extend.texi (unused variable attribute): Applies to
5973 structure fields as well.
5975 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
5977 * auto-profile.c (read_profile): fix a typo in an error string
5979 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
5981 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
5983 * tree-pretty-print.c (dump_omp_clauses): Update.
5984 (dump_generic_node) <OMP_CLAUSE>: Use it.
5986 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5989 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
5990 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
5991 the polymorphic variants matching code.
5992 (__arm_vld1q_z): Likewise.
5993 (__arm_vld2q): Likewise.
5994 (__arm_vld4q): Likewise.
5995 (__arm_vldrbq_gather_offset): Likewise.
5996 (__arm_vldrbq_gather_offset_z): Likewise.
5998 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
6000 PR tree-optimization/96392
6001 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
6003 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
6005 PR tree-optimization/96392
6006 * fold-const.c (fold_real_zero_addition_p): Take both arguments
6007 of the addition or subtraction, not just the zero. Use this
6008 other argument in tests for signaling NaNs and signed zeros.
6009 (tree_expr_maybe_real_minus_zero_p): New predicate.
6010 * fold-const.h (fold_real_zero_addition_p): Update prototype.
6011 (tree_expr_maybe_real_minus_zero_p): New function prototype.
6012 * match.pd: Update calls to fold_real_zero_addition_p.
6013 Replace HONOR_NANS with tree_expr_maybe_nan_p.
6014 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
6015 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
6016 * tree-ssa-reassoc.c (eliminate_using_constants): Update
6017 call to fold_real_zero_addition_p.
6019 2021-06-11 Richard Biener <rguenther@suse.de>
6021 PR tree-optimization/101025
6022 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
6023 all refs that require dependence checking.
6025 2021-06-11 Richard Biener <rguenther@suse.de>
6027 PR tree-optimization/101028
6028 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
6029 reassoc discovery fails fatally, mark appropriate lanes
6032 2021-06-11 Richard Biener <rguenther@suse.de>
6034 PR tree-optimization/101026
6035 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
6036 have a representative for the associated chain nodes.
6038 2021-06-11 Jakub Jelinek <jakub@redhat.com>
6040 PR rtl-optimization/101008
6041 * simplify-rtx.c (relational_result): New function.
6042 (simplify_logical_relational_operation,
6043 simplify_relational_operation): Use it.
6045 2021-06-11 Jakub Jelinek <jakub@redhat.com>
6048 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
6050 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
6053 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
6054 false if the permutation can be implemented with constant
6055 permutation instruction in wider mode.
6056 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
6057 Handle V8QImode and V4HImode.
6059 2021-06-11 Martin Liska <mliska@suse.cz>
6061 PR gcov-profile/100788
6062 * common.opt: Add new option.
6063 * coverage.c (coverage_begin_function): Emit warning instead on
6064 the internal compiler error.
6065 * doc/invoke.texi: Document the option.
6066 * toplev.c (process_options): Enable it by default.
6068 2021-06-11 Richard Biener <rguenther@suse.de>
6070 PR middle-end/101009
6071 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
6072 to set *init_b to true when we encounter a constant equal
6074 (compute_affine_dependence): Also dump the actual DR_REF.
6076 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
6078 PR tree-optimization/100984
6079 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
6081 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
6083 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
6085 * config/rs6000/rs6000.md
6086 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
6087 define_insn_and_split.
6089 2021-06-11 Richard Biener <rguenther@suse.de>
6091 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
6092 to sort operands of the associative chain.
6094 2021-06-11 Richard Biener <rguenther@suse.de>
6096 * system.h (gcc_stablesort_r): Declare.
6097 * sort.cc (gcc_sort_r): Support stable sort.
6098 (gcc_stablesort_r): Define.
6099 * vec.h (vec<>::stablesort): Add.
6101 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
6104 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
6105 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
6106 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
6107 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
6108 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
6109 (expand_vec_perm_interleave2): Handle 64bit modes.
6110 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
6111 (expand_vec_perm_even_odd_1): Ditto.
6112 (ix86_vectorize_vec_perm_const): Ditto.
6113 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
6114 * config/i386/sse.md: ... here.
6115 * config/i386/mmx.md (*vec_interleave_lowv2sf):
6116 New insn_and_split pattern.
6117 (*vec_interleave_highv2sf): Ditto.
6118 (mmx_pshufbv8qi3): New insn pattern.
6119 (*mmx_pblendw): Ditto.
6121 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
6123 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
6124 (build_acc): Likewise.
6125 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
6126 source operands in little-endian mode.
6127 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
6128 (mma_init_builtins): Likewise.
6129 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
6130 ordering for the MMA assemble and build source operands.
6131 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
6133 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
6136 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
6138 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
6140 * config/h8300/extensions.md: Replace _clobber_flags patterns
6143 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
6145 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
6146 (vcond_mask_<mode><tointvec>): this.
6148 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
6149 Thomas Schwinge <thomas@codesourcery.com>
6151 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
6152 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
6153 * gimple.h (enum gf_mask): Split
6154 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
6155 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
6156 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
6157 (is_gimple_omp_oacc): Update.
6158 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
6159 * gimplify.c (gimplify_omp_target_update): Likewise.
6160 * omp-expand.c (expand_omp_target, build_omp_regions_1)
6161 (omp_make_gimple_edges): Likewise.
6162 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
6165 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
6167 * value-query.cc (value_query::value_on_edge): Rename name to
6169 (range_query::range_on_edge): Same.
6170 (range_query::value_of_expr): Same.
6171 (range_query::value_on_edge): Same.
6172 * value-query.h (class value_query): Same.
6173 (class range_query): Same.
6175 2021-06-10 Richard Biener <rguenther@suse.de>
6177 PR tree-optimization/101003
6178 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
6179 use the pattern stmt defs when linearizing a chain.
6181 2021-06-10 Jakub Jelinek <jakub@redhat.com>
6184 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
6185 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6187 2021-06-10 Clement Chigot <clement.chigot@atos.net>
6189 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
6190 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
6192 2021-06-09 Andrew Pinski <apinski@marvell.com>
6194 PR tree-optimization/100925
6195 * match.pd (a ? CST1 : CST2): Limit transformations
6196 that would produce a negative to integeral types only.
6197 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
6199 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
6202 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
6204 * doc/tm.texi: Correctly update.
6206 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
6208 * doc/tm.texi: Correctly update.
6210 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
6213 * doc/tm.texi.in (Trampolines): Add a missing blank line.
6215 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
6218 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
6219 and -ftrampolines work only with Ada.
6220 * doc/tm.texi.in (Trampolines): Likewise.
6221 * doc/tm.texi: Regenerated.
6223 2021-06-09 Carl Love <cel@us.ibm.com>
6225 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
6226 Add define for new builtins.
6227 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
6228 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
6229 overloaded builtin definitions.
6230 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
6231 VSIGNEXTSD2Q): Add builtin expansions.
6232 (SIGNEXT): Add P10 overload definition.
6233 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
6234 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
6235 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
6236 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
6237 vsignextend_si_v2di)[VIlong]: Add define_expand.
6238 Make define_insn vsx_sign_extend_si_v2di visible.
6239 * doc/extend.texi: Add documentation for the vec_signexti,
6240 vec_signextll builtins and vec_signextq.
6242 2021-06-09 Carl Love <cel@us.ibm.com>
6244 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
6245 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
6246 __floattikf_sw, __floatuntikf_sw respectively.
6247 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
6248 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
6249 define_insn for mode IEEE 128.
6251 2021-06-09 Carl Love <cel@us.ibm.com>
6253 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
6254 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
6255 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
6256 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
6257 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
6258 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
6259 uses of VSX_TI to VEC_TI.
6261 2021-06-09 Carl Love <cel@us.ibm.com>
6263 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
6265 2021-06-09 Carl Love <cel@us.ibm.com>
6267 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
6269 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
6270 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
6271 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
6272 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
6273 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
6274 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
6275 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
6277 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
6278 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
6279 altivec_vrlqnm): New define_expands.
6280 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
6281 VCMPGTUT_P): Add macro expansions.
6282 (BU_P10V_AV_P): Add builtin predicate definition.
6283 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
6284 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
6285 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
6286 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
6287 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
6288 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
6289 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
6290 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
6291 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
6292 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
6293 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
6294 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
6295 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
6296 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
6297 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
6298 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
6299 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
6300 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
6301 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
6302 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
6303 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
6304 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
6305 P10V_BUILTIN_MODU_V1TI):
6306 New overloaded definitions.
6307 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
6308 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
6309 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
6310 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
6311 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
6312 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
6314 (altivec_init_builtins): New E_V1TImode case statement.
6315 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
6316 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
6317 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
6318 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
6319 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
6320 E_V1TImode]: New case statements.
6321 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
6322 value RS6000_BTI_bool_V1TI.
6323 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
6324 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
6325 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
6326 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
6327 vlshrv1ti3, vashrv1ti3): New define_expands.
6328 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
6329 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
6330 UNSPEC_VSX_MODUQ): New unspecs.
6331 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
6332 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
6334 (vcmpnet): New define_expand.
6335 * doc/extend.texi: Add documentation for the new builtins vec_rl,
6336 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
6337 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
6338 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
6339 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
6340 vec_any_ge, vec_any_le.
6342 2021-06-09 Carl Love <cel@us.ibm.com>
6344 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
6345 bug in argument generation.
6347 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
6349 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
6351 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
6352 remove <supf> iterator.
6353 (mve_vclzq_u<mode>): New.
6354 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
6355 (neon_vclz<mode): Move to ...
6356 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
6357 * config/arm/vec-common.md: ... here. Add support for MVE.
6359 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
6361 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
6362 (@mve_vrhaddq_<supf><mode): Likewise.
6363 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
6364 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
6365 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
6367 2021-06-09 imba-tjd <109224573@qq.com>
6369 * doc/invoke.texi: Fix typo.
6371 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
6374 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
6375 Support evaluation of fmod/fmodf/fmodl at compile-time.
6377 2021-06-09 Richard Biener <rguenther@suse.de>
6379 PR tree-optimization/100981
6380 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6381 gimple_get_lhs to also handle calls.
6382 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
6385 2021-06-09 Richard Biener <rguenther@suse.de>
6387 PR tree-optimization/97832
6388 * tree-vectorizer.h (_slp_tree::failed): New.
6389 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
6391 (_slp_tree::~_slp_tree): Free failed.
6392 (vect_build_slp_tree): Retain failed nodes and record
6393 matches in them, copying that back out when running
6394 into a cached fail. Dump start and end of discovery.
6396 (vect_build_slp_tree_2): Handle associatable chains
6397 together doing more aggressive operand swapping.
6399 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
6402 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
6404 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
6405 Linux and GNU targets.
6407 2021-06-09 Richard Biener <rguenther@suse.de>
6409 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
6412 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
6414 * config/arc/arc.md (loop_end): Change it to
6415 define_insn_and_split.
6417 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
6419 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
6420 (machi): New pattern.
6421 (umaddhisi4): Use VMAC2HU instruction.
6422 (umachi): New pattern.
6424 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
6426 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
6427 * config/arc/arc.c (arc_split_move_p): New function.
6428 (arc_split_move): Clean up.
6429 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
6430 (movdf_insn): Likewise.
6431 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
6433 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
6436 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
6437 argument to "raw". Do not emit segment overrides when "raw" is true.
6439 2021-06-09 Martin Liska <mliska@suse.cz>
6441 * doc/gcov.texi: Create a proper JSON files.
6442 * doc/invoke.texi: Remove dots in order to make it a valid
6445 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
6447 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
6448 (insn_is_load_p): Use pattern_is_rotate64.
6449 (insn_is_swap_p): Likewise.
6450 (quad_aligned_load_p): Likewise.
6451 (const_load_sequence_p): Likewise.
6452 (replace_swapped_aligned_load): Likewise.
6453 (recombine_lvx_pattern): Likewise.
6454 (recombine_stvx_pattern): Likewise.
6456 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
6458 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
6459 fur_stmt source record.
6460 * gimple-range.cc (fur_source::get_operand): Generic range query.
6461 (fur_source::get_phi_operand): New.
6462 (fur_source::register_dependency): New.
6463 (fur_source::query): New.
6464 (class fur_edge): New. Edge source for operands.
6465 (fur_edge::fur_edge): New.
6466 (fur_edge::get_operand): New.
6467 (fur_edge::get_phi_operand): New.
6468 (fur_edge::query): New.
6469 (fur_stmt::fur_stmt): New.
6470 (fur_stmt::get_operand): New.
6471 (fur_stmt::get_phi_operand): New.
6472 (fur_stmt::query): New.
6473 (class fur_depend): New. Statement source and process dependencies.
6474 (fur_depend::fur_depend): New.
6475 (fur_depend::register_dependency): New.
6476 (class fur_list): New. List source for operands.
6477 (fur_list::fur_list): New.
6478 (fur_list::get_operand): New.
6479 (fur_list::get_phi_operand): New.
6480 (fold_range): New. Instantiate appropriate fur_source class and fold.
6481 (fold_using_range::range_of_range_op): Use new API.
6482 (fold_using_range::range_of_address): Ditto.
6483 (fold_using_range::range_of_phi): Ditto.
6484 (imple_ranger::fold_range_internal): Use fur_depend class.
6485 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
6486 * gimple-range.h (class fur_source): Now a base class.
6487 (class fur_stmt): New.
6488 (fold_range): New prototypes.
6489 (fur_source::fur_source): Delete.
6491 2021-06-08 Andrew Pinski <apinski@marvell.com>
6493 PR tree-optimization/25290
6494 * tree-ssa-phiopt.c (xor_replacement): Delete.
6495 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
6496 (match_simplify_replacement): Allow one cheap preparation
6497 statement that can be moved to before the if.
6499 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
6501 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
6502 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
6504 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
6506 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
6507 Create length attribute on define_insn_and_split. Only split for cases which we
6509 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
6510 fix length computation.
6511 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
6513 2021-06-08 Richard Biener <rguenther@suse.de>
6515 PR tree-optimization/100923
6516 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
6517 the operand vector to be valueized.
6518 (valueize_refs): Likewise.
6519 (valueize_shared_reference_ops_from_ref): Adjust.
6520 (valueize_shared_reference_ops_from_call): Likewise.
6521 (vn_reference_lookup_3): Likewise.
6522 (vn_reference_lookup_pieces): Likewise. Re-valueize
6523 with honoring availability when we are about to create
6524 the ao_ref and valueized before.
6525 (vn_reference_lookup): Likewise.
6526 (vn_reference_insert_pieces): Adjust.
6528 2021-06-08 Richard Biener <rguenther@suse.de>
6530 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
6531 (_slp_instance::root_stmts): ... a vector.
6532 (SLP_INSTANCE_ROOT_STMT): Rename to ...
6533 (SLP_INSTANCE_ROOT_STMTS): ... this.
6534 (slp_root::root): Change to...
6535 (slp_root::roots): ... a vector.
6536 (slp_root::slp_root): Adjust.
6537 * tree-vect-slp.c (_slp_instance::location): Adjust.
6538 (vect_free_slp_instance): Release the root stmt vector.
6539 (vect_build_slp_instance): Adjust.
6540 (vect_analyze_slp): Likewise.
6541 (_bb_vec_info::~_bb_vec_info): Likewise.
6542 (vect_slp_analyze_operations): Likewise.
6543 (vect_bb_vectorization_profitable_p): Likewise. Adjust
6544 costs for the root stmt.
6545 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
6547 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
6549 (vectorize_slp_instance_root_stmt): Adjust.
6550 (vect_schedule_slp): Likewise.
6552 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
6554 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
6555 (ssa_equiv_stack::ssa_equiv_stack): New.
6556 (ssa_equiv_stack::~ssa_equiv_stack): New.
6557 (ssa_equiv_stack::enter): New.
6558 (ssa_equiv_stack::leave): New.
6559 (ssa_equiv_stack::push_replacement): New.
6560 (ssa_equiv_stack::get_replacement): New.
6561 (is_pointer_ssa): New.
6562 (class pointer_equiv_analyzer): New.
6563 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
6564 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
6565 (pointer_equiv_analyzer::set_global_equiv): New.
6566 (pointer_equiv_analyzer::set_cond_equiv): New.
6567 (pointer_equiv_analyzer::get_equiv): New.
6568 (pointer_equiv_analyzer::enter): New.
6569 (pointer_equiv_analyzer::leave): New.
6570 (pointer_equiv_analyzer::get_equiv_expr): New.
6571 (pta_valueize): New.
6572 (pointer_equiv_analyzer::visit_stmt): New.
6573 (pointer_equiv_analyzer::visit_edge): New.
6574 (hybrid_folder::value_of_expr): Call PTA.
6575 (hybrid_folder::value_on_edge): Same.
6576 (hybrid_folder::pre_fold_bb): New.
6577 (hybrid_folder::post_fold_bb): New.
6578 (hybrid_folder::pre_fold_stmt): New.
6579 (rvrp_folder::pre_fold_bb): New.
6580 (rvrp_folder::post_fold_bb): New.
6581 (rvrp_folder::pre_fold_stmt): New.
6582 (rvrp_folder::value_of_expr): Call PTA.
6583 (rvrp_folder::value_on_edge): Same.
6585 2021-06-08 Jakub Jelinek <jakub@redhat.com>
6588 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
6589 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
6591 2021-06-08 Richard Biener <rguenther@suse.de>
6593 PR middle-end/100951
6594 * tree-vect-generic.c (expand_vector_piecewise): Build a
6595 VECTOR_CST if all elements are constant.
6596 (expand_vector_condition): Likewise.
6597 (lower_vec_perm): Likewise.
6598 (expand_vector_conversion): Likewise.
6600 2021-06-08 Martin Liska <mliska@suse.cz>
6602 * doc/invoke.texi: Document new param evrp-sparse-threshold.
6604 2021-06-08 Martin Liska <mliska@suse.cz>
6606 * genautomata.c (create_automata): Fix typo.
6608 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
6610 PR tree-optimization/100794
6611 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
6612 allow_unroll_p and only allow unrolling when it's true.
6613 (tree_predictive_commoning): Add parameter allow_unroll_p and
6615 (run_tree_predictive_commoning): Likewise.
6616 (pass_predcom::gate): Check flag_tree_loop_vectorize and
6617 global_options_set.x_flag_predictive_commoning.
6618 (pass_predcom::execute): Adjust for allow_unroll_p.
6620 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
6622 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
6623 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
6624 lambda function cleanup, remove scev_reset call, and adjust return
6626 (tree_predictive_commoning): Adjust for different changed values,
6627 only set flag TODO_update_ssa_only_virtuals if changed.
6628 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
6629 from todo_flags_finish.
6631 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
6633 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
6634 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
6635 (sbr_sparse_bitmap::bitmap_set_quad): New.
6636 (sbr_sparse_bitmap::bitmap_get_quad): New.
6637 (sbr_sparse_bitmap::set_bb_range): New.
6638 (sbr_sparse_bitmap::get_bb_range): New.
6639 (sbr_sparse_bitmap::bb_range_p): New.
6640 (block_range_cache::block_range_cache): initialize bitmap obstack.
6641 (block_range_cache::~block_range_cache): Destruct obstack.
6642 (block_range_cache::set_bb_range): Decide when to utilze the
6643 sparse on entry cache.
6644 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
6645 * params.opt (-param=evrp-sparse-threshold): New.
6647 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
6649 * bitmap.c (bitmap_set_aligned_chunk): New.
6650 (bitmap_get_aligned_chunk): New.
6651 (test_aligned_chunk): New.
6652 (bitmap_c_tests): Call test_aligned_chunk.
6653 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
6655 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
6658 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6660 (ix86_expand_vector_init_one_nonzero): Ditto.
6661 (ix86_expand_vector_init_one_var): Ditto.
6662 (ix86_expand_vector_init_general): Ditto.
6663 * config/i386/mmx.md (vec_initv4qiqi): New expander.
6665 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
6667 * config/h8300/movepush.md: Change most _clobber_flags
6668 patterns to instead use <cczn> subst.
6669 (movsi_cczn): New pattern with usable CC cases split out.
6670 (movsi_h8sx_cczn): Likewise.
6672 2021-06-07 Martin Liska <mliska@suse.cz>
6674 * common/common-target.def: Split long lines and replace them
6676 * target.def: Likewise.
6677 * doc/tm.texi: Re-generated.
6679 2021-06-07 Jakub Jelinek <jakub@redhat.com>
6682 * fold-const.c (fold_read_from_vector): Return NULL if trying to
6683 read from a CONSTRUCTOR with vector type elements.
6685 2021-06-07 Jakub Jelinek <jakub@redhat.com>
6687 PR middle-end/100898
6688 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
6689 should copy any arguments. Don't call gimple_call_num_args
6690 on id->call_stmt or call_stmt more than once.
6692 2021-06-07 liuhongt <hongtao.liu@intel.com>
6695 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
6697 (<insn>v4siv4di2): Delete constraints for define_expand.
6699 2021-06-07 liuhongt <hongtao.liu@intel.com>
6702 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
6703 assignment of cfun->machine->has_explicit_vzeroupper.
6704 * config/i386/i386-features.c
6705 (ix86_add_reg_usage_to_vzerouppers): Delete.
6706 (ix86_add_reg_usage_to_vzeroupper): Ditto.
6707 (rest_of_handle_insert_vzeroupper): Remove
6708 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
6710 (gate): Remove cfun->machine->has_explicit_vzeroupper.
6711 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
6713 * config/i386/i386.c (ix86_insn_callee_abi): New function.
6714 (ix86_initialize_callee_abi): Ditto.
6715 (ix86_expand_avx_vzeroupper): Ditto.
6716 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
6718 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
6719 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
6721 * config/i386/i386.h (struct GTY(()) machine_function): Delete
6722 has_explicit_vzeroupper.
6723 * config/i386/i386.md (enum unspec): New member
6725 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
6726 define_constants for insn callee abi index.
6727 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
6728 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
6729 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
6730 (*avx_vzeroupper): Rename to ..
6731 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
6732 call_insn which has a special vzeroupper ABI.
6733 (*avx_vzeroupper_1): Deleted.
6735 2021-06-07 liuhongt <hongtao.liu@intel.com>
6738 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
6739 it won't use stack pointer reg.
6740 * final.c (leaf_function_p): When call_insn is a fake call, it
6741 won't affect caller as a leaf function.
6742 * reg-stack.c (callee_clobbers_any_stack_reg): New.
6743 (subst_stack_regs): When call_insn doesn't clobber any stack
6744 reg, don't clear the arguments.
6745 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
6747 * shrink-wrap.c (requires_stack_frame_p): No need for stack
6748 frame for a fake call.
6749 * rtl.h (FAKE_CALL_P): New macro.
6751 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
6753 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
6755 (sparc_order_regs_for_local_alloc): ...this.
6756 (sparc_leaf_reg_remap): Declare.
6757 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
6758 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
6759 * config/sparc/sparc.c (leaf_reg_remap): Delete.
6760 (order_regs_for_local_alloc): Rename to...
6761 (sparc_order_regs_for_local_alloc): ...this.
6762 (sparc_leaf_reg_remap): New function.
6763 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
6765 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
6767 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
6768 Use assemble_name to output BSS section name.
6770 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
6772 * config/i386/constraints.md (Bs):
6773 Remove boolean operators from match_test RTX.
6776 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
6779 2021-06-06 Martin Liska <mliska@suse.cz>
6781 * doc/extend.texi: Add missing @headitem.
6782 * doc/invoke.texi: Likewise.
6783 * doc/objc.texi: Likewise.
6785 2021-06-06 Martin Liska <mliska@suse.cz>
6787 * genhooks.c (emit_findices): Remove unused function.
6788 (emit_documentation): Do not call emit_findices
6789 and do not search for @Fcode directives.
6791 2021-06-06 Martin Liska <mliska@suse.cz>
6793 * doc/invoke.texi: Remove extra character.
6795 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6797 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
6799 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6801 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
6802 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
6803 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
6804 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
6806 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6808 * config/or1k/or1k.md (*movdi): Fix empty split condition.
6810 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6812 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
6815 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6817 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
6818 *zero_extendsidi2): Fix empty split condition.
6820 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
6822 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
6824 * config/h8300/bitfield.md: Likewise.
6825 * config/h8300/combiner.md: Likewise.
6826 * config/h8300/divmod.md: Likewise.
6827 * config/h8300/extensions.md: Likewise.
6828 * config/h8300/jumpcall.md: Likewise.
6829 * config/h8300/movepush.md: Likewise.
6830 * config/h8300/multiply.md: Likewise.
6831 * config/h8300/other.md: Likewise.
6832 * config/h8300/shiftrotate.md: Likewise.
6833 * config/h8300/logical.md: Likewise. Fix split pattern to use
6834 code iterator that somehow slipped through.
6836 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
6838 PR middle-end/100905
6839 * tree-nested.c (convert_nonlocal_omp_clauses,
6840 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
6842 2021-06-04 Martin Sebor <msebor@redhat.com>
6844 PR middle-end/100732
6845 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
6846 with either source or destination argument of invalid type.
6847 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
6848 calls with arguments of invalid type.
6850 2021-06-04 Martin Sebor <msebor@redhat.com>
6852 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
6854 (attr_access::vla_bounds): Also handle VLA bounds.
6856 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
6858 * config/i386/predicates.md (GOT_memory_operand):
6859 Implement using match_code RTXes.
6860 (GOT32_symbol_operand): Ditto.
6862 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
6865 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6867 (ix86_expand_vector_init_general): Ditto.
6868 Use SImode instead of word_mode for logic operations
6869 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
6870 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
6871 implemented by expand_vec_perm_1.
6872 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
6873 should be implemented using standard shuffle patterns.
6874 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
6875 V2HI modes to modes, implementable with shuffle for one operand.
6876 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
6877 (*pshufw_1): New insn pattern.
6878 (*vec_dupv2hi): Ditto.
6879 (vec_initv2hihi): New expander.
6881 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
6883 * config/arm/vfp.md (no_literal_pool_df_immediate,
6884 no_literal_pool_sf_immediate): Fix empty split condition.
6886 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
6888 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
6889 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
6890 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
6891 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
6892 *<sse4_1_avx2>_pblendvb_lt): Likewise.
6894 2021-06-04 Jakub Jelinek <jakub@redhat.com>
6897 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
6898 concatenation from half-sized modes with TImode elements.
6900 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
6902 * config/arc/arc.c (arc_override_options): Disable millicode
6903 thunks when RF16 is on.
6905 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
6907 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
6909 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
6911 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
6912 Replace PROMOTE_MODE marco with its content.
6914 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
6916 * config/cris/cris.md (*addi_reload): Fix empty split condition.
6918 2021-06-03 Jim Wilson <jimw@sifive.com>
6920 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
6921 turn it on for all riscv targets.
6923 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
6926 * config/i386/i386-expand.c (ix86_expand_vector_set):
6927 Handle V2HI and V4QI modes.
6928 (ix86_expand_vector_extract): Ditto.
6929 * config/i386/mmx.md (*pinsrw): New insn pattern.
6932 (*pextrw_zext): Ditto.
6934 (*pextrb_zext): Ditto.
6935 (vec_setv2hi): New expander.
6936 (vec_extractv2hihi): Ditto.
6937 (vec_setv4qi): Ditto.
6938 (vec_extractv4qiqi): Ditto.
6939 (vec_setv8qi): Enable only for TARGET_SSE4_1.
6940 (vec_extractv8qiqi): Ditto.
6942 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6944 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
6945 order to subf instruction.
6946 * config/rs6000/fusion.md: Regenerate.
6948 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6950 * calls.c (get_size_range): Use range_of_expr instead of
6951 determine_value_range.
6952 * tree-affine.c (expr_to_aff_combination): Same.
6953 * tree-data-ref.c (split_constant_offset): Same.
6954 * tree-vrp.c (determine_value_range_1): Remove.
6955 (determine_value_range): Remove.
6956 * tree-vrp.h (determine_value_range): Remove.
6958 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6960 * function-tests.c (test_ranges): Call gimple_range_tests.
6961 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
6963 * gimple-range.cc (fur_source::get_operand): Do not call
6964 get_tree_range or gimple_range_global.
6966 (get_tree_range): Move to value-query.cc.
6967 Call get_arith_expr_range.
6968 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
6969 Include gimple-range-tests.cc.
6970 * gimple-range.h (fold_range): Add argument.
6971 (get_tree_range): Remove.
6972 * selftest.h (gimple_range_tests): New.
6973 * value-query.cc (global_range_query::range_of_expr): Add
6975 (range_query::get_tree_range): Move from gimple-range.cc.
6976 * value-query.h (class range_query): Add get_tree_range and
6977 get_arith_expr_range. Make fur_source a friend.
6978 * vr-values.c (vr_values::range_of_expr): Pass stmt to
6980 * gimple-range-tests.cc: New file.
6982 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6984 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
6985 update_global_range.
6986 * value-query.cc (update_global_range): New.
6987 * value-query.h (update_global_range): New.
6989 2021-06-03 David Malcolm <dmalcolm@redhat.com>
6991 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
6992 printing the same location twice if there are fix-it hints,
6993 multiple locations, or a label.
6995 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
6997 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
6998 thresholds to narrow the upper bound on epilogue iterations.
7000 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
7002 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
7003 (mve_vabsq_s<mode>): Likewise.
7004 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
7005 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
7006 * config/arm/vec-common.md (neg<mode>2): Rename to
7007 <absneg_str><mode>2.
7009 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
7011 * common/config/arc/arc-common.c (arc_option_optimization_table):
7013 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
7014 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
7015 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
7016 * config/arc/arc.md (abssi2_mixed): Remove pattern.
7017 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
7018 (malign-call): Likewise.
7019 (mmixed-code): Likewise.
7020 * doc/invoke.texi (ARC): Update doc.
7022 2021-06-03 Martin Liska <mliska@suse.cz>
7024 * common.opt: Use proper Enum values.
7025 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
7026 (parse_sanitizer_options): Handle only sanitizer_opts.
7027 (common_handle_option): Just assign value.
7029 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
7032 * tree-inline.c (inline_forbidden_p): Remove test on return type.
7034 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
7036 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
7037 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
7038 (type_byte_size): Inline into...
7039 (add_byte_size_attribute): ...this and call add_scalar_info.
7041 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
7043 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
7044 (typed_binop_from_tree): New function.
7045 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
7046 turn a divide by a power of 2 into a shift.
7047 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
7048 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
7049 typed divide by calling typed_binop_from_tree.
7051 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
7053 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
7054 (is_handled_procedure_type): Likewise.
7055 (struct loc_descr_context): Add strict_signedness field.
7056 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
7057 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
7058 (resolve_args_picking): Minor tweak.
7059 (function_to_dwarf_procedure): Initialize strict_signedness field.
7060 (type_byte_size): Likewise.
7061 (field_byte_offset): Likewise.
7062 (gen_descr_array_type_die): Likewise.
7063 (gen_variant_part): Likewise.
7064 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
7065 to true when a context is present before evaluating the arguments.
7066 <COND_EXPR>: Do not generate a useless comparison with zero.
7067 When dereferencing an address, if strict_signedness is true and the
7068 type is small and signed, use DW_OP_deref_type to do the dereference
7069 and then DW_OP_convert to convert back to the generic type.
7071 2021-06-03 Jakub Jelinek <jakub@redhat.com>
7074 * tree-inline.c (copy_tree_body_r): Handle iterators on
7075 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
7077 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
7079 * config/arc/arc.md (*bbit_di): Remove.
7081 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
7083 PR rtl-optimization/100264
7084 * ree.c (get_sub_rtx): Ignore SET expressions without register
7085 destinations and remove assertion, as it is not valid anymore
7086 with this new behaviour.
7087 (merge_def_and_ext): Eliminate destination check for register
7088 as such SET expressions can't occur anymore.
7089 (combine_reaching_defs): Likewise.
7091 2021-06-02 Jakub Jelinek <jakub@redhat.com>
7094 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
7095 -Wtype-limits warnings.
7096 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
7097 in operands to avoid -Wsign-compare warnings.
7099 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
7101 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
7104 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
7106 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
7108 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
7110 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
7112 * config/s390/subst.md(cconly_subst): Use a single constraint
7115 2021-06-02 Martin Liska <mliska@suse.cz>
7117 * ipa-icf.h: Use auto_vec for memory_access_types.
7119 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
7121 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
7122 argument from prototype.
7123 (output_logical_op): Add rtx_code argument.
7124 (compute_logical_op_length): Likewise.
7125 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
7126 to compute_a_shift_length.
7127 (output_logical_op); New argument with the rtx code rather than
7128 extracting it from an operand. Handle QImode too.
7129 (compute_logical_op_length): Similary.
7130 (compute_a_shift_length): Drop unused argument.
7131 * config/h8300/h8300.md (logicals): New code iterator.
7132 * config/h8300/logical.md (<code><mode>3 expander): Combine
7133 the "and" expander with the "ior"/"xor" expander.
7134 (bclr<mode>msx): Combine the QI/HI mode patterns.
7135 (<logical><mode>3 insns): Use code iterator rather than match_operator.
7136 Handle QImode as well. Update call to output_logical_op and
7137 compute_logical_op_length to pass in rtx_code
7138 Fix split condition on all define_insn_and_split patterns.
7139 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
7140 the flags and setting ZN via existing define_subst.
7141 * config/h8300/shiftrotate.md: Drop unused argument from
7142 calls to compute_a_shift_length.
7143 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
7145 2021-06-01 Andrew Pinski <apinski@marvell.com>
7147 PR tree-optimization/25290
7148 * tree-ssa-phiopt.c (match_simplify_replacement):
7150 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
7151 (two_value_replacement): Change the comment about
7152 conditional_replacement.
7153 (conditional_replacement): Delete.
7155 2021-06-01 Andrew Pinski <apinski@marvell.com>
7157 PR tree-optimization/95481
7158 * tree-tailcall.c (find_tail_calls): Handle empty typed
7161 2021-06-01 Andrew Pinski <apinski@marvell.com>
7163 * gimplify.c (zero_sized_field_decl): Delete
7164 (zero_sized_type): Delete
7165 (gimplify_init_ctor_eval): Use is_empty_type instead
7166 of zero_sized_field_decl.
7167 (gimplify_modify_expr): Use is_empty_type instead of
7170 2021-06-01 Jason Merrill <jason@redhat.com>
7173 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
7175 2021-06-01 Jason Merrill <jason@redhat.com>
7178 * diagnostic.h (warning_enabled_at): Declare.
7179 * diagnostic.c (diagnostic_enabled): Factor out from...
7180 (diagnostic_report_diagnostic): ...here.
7181 (warning_enabled_at): New.
7183 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
7185 * gimple-ssa-evrp.c: Enable exporting of global ranges.
7187 2021-06-01 Martin Liska <mliska@suse.cz>
7190 * doc/invoke.texi: Mention that -fgcse-after-reload
7191 is enabled with -O3.
7193 2021-06-01 liuhongt <hongtao.liu@intel.com>
7195 PR tree-optimization/98365
7196 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
7197 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
7198 (convert_scalar_cond_reduction): Ditto.
7199 (predicate_scalar_phi): Ditto.
7201 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
7203 PR tree-optimization/100781
7204 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
7205 value calculation by default.
7206 (ranger_cache::enable_new_values): New.
7207 (ranger_cache::disable_new_values): New.
7208 (ranger_cache::push_poor_value): Check if new values are allowed.
7209 * gimple-range-cache.h (class ranger_cache): New member/methods.
7210 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
7211 statement, and disable/renable new value calculation.
7213 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
7215 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
7216 (ranger_cache::range_of_def): New.
7217 (ranger_cache::entry_range): New.
7218 (ranger_cache::exit_range): New.
7219 (ranger_cache::range_of_expr): Adjust.
7220 (ranger_cache::range_on_edge): Adjust.
7221 (ranger_cache::propagate_cache): Call exit_range directly.
7222 * gimple-range-cache.h (class ranger_cache): Adjust.
7224 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
7226 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
7227 gori_compute being a member rather than base class.
7228 dervied call to member call.
7229 (ranger_cache::dump): No longer dump gori_map.
7230 (ranger_cache::dump_bb): New.
7231 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
7232 being a member rather than base class.
7233 (ranger_cache::set_global_range): Ditto.
7234 (ranger_cache::ssa_range_in_bb): Ditto.
7235 (ranger_cache::range_of_expr): New.
7236 (ranger_cache::range_on_edge): New.
7237 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
7238 (ranger_cache::propagate_cache): Adjust debugging output.
7239 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
7241 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
7242 member, and inherit from range_query instead.
7243 (ranger_cache::dump_bb): New. split from dump.
7244 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
7245 (gori_compute::expr_range_at_stmt): Delete.
7246 (gori_compute::compute_name_range_op): Delete.
7247 (gori_compute::compute_operand_range_switch): Add fur_source.
7248 (gori_compute::compute_operand_range): Add fur_source param, inline
7249 old compute_name_range_op and optimize_logical_operands.
7250 (struct tf_range): Delete.
7251 (gori_compute::logical_combine): Adjust
7252 (gori_compute::optimize_logical_operands): Delete.
7253 (gori_compute::compute_logical_operands_in_chain): Delete.
7254 (gori_compute::compute_logical_operands): Adjust.
7255 (gori_compute::compute_operand1_range): Adjust to fur_source.
7256 (gori_compute::compute_operand2_range): Ditto.
7257 (gori_compute::compute_operand1_and_operand2_range): Ditto.
7258 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
7259 and adjust to fur_source.
7260 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
7261 range_query and fur_source.
7262 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
7263 from the ranger_cache..
7264 (gimple_ranger::fold_range_internal): Adjust to base class change of
7266 (gimple_ranger::dump_bb): Adjust dump.
7267 * gimple-range.h (gimple_ranger):export gori computes object.
7269 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
7271 PR tree-optimization/100774
7272 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
7273 Constant values are also not stale.
7274 (ranger_cache::set_global_range): Range invariant values should also
7275 have the correct timestamp.
7277 2021-05-31 Martin Liska <mliska@suse.cz>
7279 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7280 Unpack FUNCTION_DECL_DECL_TYPE.
7281 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7282 Stream FUNCTION_DECL_DECL_TYPE instead of
7283 DECL_IS_OPERATOR_NEW_P.
7284 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
7286 (DECL_IS_OPERATOR_NEW_P): Likewise.
7287 (DECL_IS_OPERATOR_DELETE_P): Likewise.
7288 (DECL_LAMBDA_FUNCTION_P): Likewise.
7290 2021-05-31 Richard Biener <rguenther@suse.de>
7293 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
7294 * internal-fn.def (SHUFFLEVECTOR): New.
7295 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
7296 * doc/extend.texi: Document __builtin_shufflevector.
7298 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
7301 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
7302 indexed form addresses.
7304 2021-05-29 Jeff Law <jlaw@tachyum.com>
7306 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
7307 parameter. Call callers fixed.
7309 (output_plussi): Add FALLTHRU markers.
7310 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
7312 2021-05-29 Jakub Jelinek <jakub@redhat.com>
7315 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
7316 combined with parallel, make sure to add shared clause to
7317 parallel for explicit linear clause.
7319 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
7321 PR tree-optimization/100787
7322 * gimple-ssa-evrp.c: Disable exporting of global ranges.
7324 2021-05-28 Jason Merrill <jason@redhat.com>
7326 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
7327 operator--, operator*, operator==, and operator!=.
7328 (class tsi_range): New.
7330 2021-05-28 Richard Biener <rguenther@suse.de>
7332 PR tree-optimization/100778
7333 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
7334 trapping ops in different BBs.
7336 2021-05-28 Richard Biener <rguenther@suse.de>
7339 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
7340 copy fntype from original call.
7342 2021-05-28 Martin Liska <mliska@suse.cz>
7344 PR gcov-profile/100751
7345 * doc/gcov.texi: Revert partially a hunk that was wrong.
7347 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
7349 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
7351 (HAVE_sync_compare_and_swaphi): Likewise.
7352 (HAVE_sync_compare_and_swapsi): Likewise.
7354 2021-05-28 Jakub Jelinek <jakub@redhat.com>
7357 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
7359 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
7361 * gimplify.c (gimplify_omp_affinity): New.
7362 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
7363 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
7364 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
7365 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
7366 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
7368 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
7369 Richard Biener <rguenther@suse.de>
7371 * match.pd <popcount & / + pattern matching>:
7372 When generating popcount directly fails, try doing it in two halves.
7374 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7376 * Makefile.in (generated_files): Add gimple-match.c and
7379 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
7381 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
7383 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
7385 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
7387 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
7389 PR tree-optimization/99398
7390 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
7391 where the fed operands are CTOR/CST and propagated through
7392 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
7393 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
7395 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
7398 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
7400 * config/i386/mmx.md (addv2sf3): Do not call
7401 ix86_fixup_binary_operands_no_copy.
7404 (<smaxmin:code>v2sf3): Ditto.
7405 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
7406 (<plusminus:insn><VI_32:mode>3): Remove expander.
7407 (<plusminus:insn><VI_32:mode>3): Rename from
7408 "*<plusminus:insn><VI_32:mode>3".
7409 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
7410 (mulv2hi3): Remove expander.
7411 (mulv2hi3): Rename from *mulv2hi3.
7412 (<s>mulv2hi3_highpart): Remove expander.
7413 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
7414 (<smaxmin:code><MMXMODE14:mode>3): Rename from
7415 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
7416 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
7417 (SMAXMIN_MMXMODEI): Remove mode iterator.
7418 (<smaxmin:code>v4hi3): New expander.
7419 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
7420 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
7421 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
7422 (SMAXMIN_VI_32): Remove mode iterator.
7423 (<umaxmin:code><MMXMODE24:mode>3): Rename from
7424 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
7425 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
7426 (UMAXMIN_MMXMODEI): Remove mode iterator.
7427 (<umaxmin:code>v8qi3): New expander.
7428 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
7429 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
7430 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
7431 (UMAXMIN_VI_32): Remove mode iterator.
7432 (<any_shift:insn>v2hi3): Remove expander.
7433 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
7434 (<any_logic:code><MMXMODEI:mode>3): Do not call
7435 ix86_fixup_binary_operands_no_copy.
7436 (<any_logic:code><VI_32:mode>3): Remove expander.
7437 (<any_logic:code><VI_32:mode>3): Rename from
7438 "*<any_logic:code><VI_32:mode>3".
7439 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
7440 * config/i386/sse.md (div<VF2:mode>3): Do not call
7441 ix86_fixup_binary_operands_no_copy.
7442 (div<VF1:mode>3): Ditto.
7443 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
7444 (smulhrsv4hi3): Ditto.
7445 (smulhrsv2hi3): Ditto.
7447 2021-05-27 Martin Sebor <msebor@redhat.com>
7449 * ggc.h (gt_ggc_mx): Add overloads for all integers.
7451 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
7453 (hash_map::operator==): New function.
7455 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
7458 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7459 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
7460 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
7461 (*xop_maskcmp<VI_32:mode>3): Ditto.
7462 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
7463 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
7465 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
7468 * config/arm/arm.c (arm_configure_build_target): Remove parameter
7469 opts_set, directly check opts parameters for being non-null.
7470 (arm_option_restore): Update call to arm_configure_build_target.
7471 (arm_option_override): Likewise.
7472 (arm_can_inline_p): Likewise.
7473 (arm_valid_target_attribute_tree): Likewise.
7474 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
7475 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
7478 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
7480 * vr-values.c (simplify_conversion_using_ranges): Use
7481 get_range_query instead of get_global_range_query.
7483 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
7485 * gimple-range.cc (get_range_global): Move to value-query.cc.
7486 (gimple_range_global): Same.
7487 (get_global_range_query): Same.
7488 (global_range_query::range_of_expr): Same.
7489 * gimple-range.h (class global_range_query): Move to
7491 (gimple_range_global): Same.
7492 * tree-ssanames.c (get_range_info): Move to value-query.cc.
7493 (get_ptr_nonnull): Same.
7494 * tree-ssanames.h (get_range_info): Remove.
7495 (get_ptr_nonnull): Remove.
7496 * value-query.cc (get_ssa_name_range_info): Move from
7498 (get_ssa_name_ptr_info_nonnull): Same.
7499 (get_range_global): Move from gimple-range.cc.
7500 (gimple_range_global): Same.
7501 (get_global_range_query): Same.
7502 (global_range_query::range_of_expr): Same.
7503 * value-query.h (class global_range_query): Move from
7505 (gimple_range_global): Same.
7507 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
7510 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
7511 (uavgv2hi3_ceil): Ditto.
7513 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
7516 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
7518 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7520 * tree-ssanames.c (get_range_info): Merge both copies of
7521 get_range_info into one that works with irange.
7522 * tree-ssanames.h (get_range_info): Remove version that works on
7525 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7527 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
7528 (expand_builtin_strnlen): Same.
7529 (determine_block_size): Same.
7530 * fold-const.c (expr_not_equal_to): Same.
7531 * gimple-fold.c (size_must_be_zero_p): Same.
7532 * gimple-match-head.c: Include gimple-range.h.
7533 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
7534 * gimple-ssa-warn-restrict.c
7535 (builtin_memref::extend_offset_range): Same.
7536 * graphite-sese-to-poly.c (add_param_constraints): Same.
7537 * internal-fn.c (get_min_precision): Same.
7538 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
7539 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7541 * tree-data-ref.c (split_constant_offset): Same.
7542 (dr_step_indicator): Same.
7543 * tree-dfa.c (get_ref_base_and_extent): Same.
7544 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
7545 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
7546 (determine_value_range): Same.
7547 (record_nonwrapping_iv): Same.
7548 (infer_loop_bounds_from_signedness): Same.
7549 (scev_var_range_cant_overflow): Same.
7550 * tree-ssa-phiopt.c (two_value_replacement): Same.
7551 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
7552 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
7553 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
7555 (dump_strlen_info): Same.
7556 (set_strlen_range): Same.
7557 (maybe_diag_stxncpy_trunc): Same.
7558 (get_len_or_size): Same.
7559 (handle_integral_assign): Same.
7560 * tree-ssa-structalias.c (find_what_p_points_to): Same.
7561 * tree-ssa-uninit.c (find_var_cmp_const): Same.
7562 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
7563 * tree-vect-patterns.c (vect_get_range_info): Same.
7564 (vect_recog_divmod_pattern): Same.
7565 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
7566 (register_edge_assert_for_2): Same.
7567 (determine_value_range_1): Same.
7568 * tree.c (get_range_pos_neg): Same.
7569 * vr-values.c (vr_values::get_lattice_entry): Same.
7570 (vr_values::update_value_range): Same.
7571 (simplify_conversion_using_ranges): Same.
7573 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7575 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
7576 get_range_query instead of query argument.
7577 (pass_walloca::execute): Enable and disable global ranger.
7579 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7581 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
7583 (rvrp_folder::~rvrp_folder): Call disable_ranger.
7584 (hybrid_folder::hybrid_folder): Call enable_ranger.
7585 (hybrid_folder::~hybrid_folder): Call disable_ranger.
7587 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7589 * function.c (allocate_struct_function): Set cfun->x_range_query.
7590 * function.h (struct function): Declare x_range_query.
7591 (get_range_query): New.
7592 (get_global_range_query): New.
7593 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
7594 Remove call to safe_grow_cleared.
7595 * gimple-range.cc (get_range_global): New.
7596 (gimple_range_global): Move from gimple-range.h.
7597 (get_global_range_query): New.
7598 (global_range_query::range_of_expr): New.
7599 (enable_ranger): New.
7600 (disable_ranger): New.
7601 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
7602 (class global_range_query): New.
7603 (enable_ranger): New.
7604 (disable_ranger): New.
7605 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
7606 dump_all_value_ranges to dump.
7607 * tree-vrp.c (vrp_prop::finalize): Same.
7608 * value-query.cc (range_query::dump): New.
7609 * value-query.h (range_query::dump): New.
7610 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
7611 (vr_values::dump): ...this.
7612 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
7613 dump and make virtual.
7615 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
7617 * config/i386/i386.c (ix86_autovectorize_vector_modes):
7618 Add V4QImode and V16QImode for TARGET_SSE2.
7619 * doc/sourcebuild.texi (Vector-specific attributes):
7620 Add vect64 and vect32 description.
7622 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
7624 * gimple-range-gori.cc (range_def_chain::register_dependency):
7625 Resize m_def_chain when needed.
7627 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
7629 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
7630 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
7631 * config/arm/vec-common.md: .. here. Add support for MVE.
7633 2021-05-26 Jakub Jelinek <jakub@redhat.com>
7635 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
7637 * config/microblaze/microblaze.c (microblaze_legitimize_address,
7639 microblaze_option_override, print_operand): Likewise.
7640 * config/microblaze/microblaze.md (call_internal_plt,
7641 call_value_intern_plt, call_value_intern): Likewise.
7642 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
7643 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
7644 call_value_multiple_internal1): Likewise.
7645 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
7647 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7649 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
7650 arc_ccfsm_advance, symbolic_reference_mentioned_p,
7651 arc_raw_symbolic_reference_mentioned_p): Remove register
7654 2021-05-26 Jakub Jelinek <jakub@redhat.com>
7657 * omp-low.c: Include omp-offload.h.
7658 (create_omp_child_function): If current_function_decl has
7659 "omp declare target" attribute and is_gimple_omp_offloaded,
7660 remove that attribute from the copy of attribute list and
7661 add "omp target entrypoint" attribute instead.
7662 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
7663 variables for offloading if in omp_maybe_offloaded_ctx.
7664 * omp-offload.c (pass_omp_target_link::execute): Nullify second
7665 argument to GOMP_target_data_ext in offloaded code.
7667 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7669 * config/csky/csky.c (csky_can_change_mode_class): Delete.
7670 For csky, HF/SF mode use the low bits of VREGS.
7672 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
7674 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
7675 DECL which is a reference for OMP.
7677 2021-05-26 Martin Liska <mliska@suse.cz>
7679 PR gcov-profile/100751
7680 * doc/gcov.texi: Document that __gcov_dump can be called just
7681 once and that __gcov_reset resets run-time counters.
7683 2021-05-26 Martin Liska <mliska@suse.cz>
7685 * doc/install.texi: Port relevant part from install-old.texi
7686 and re-generate list of CPUs and systems.
7688 2021-05-26 Martin Liska <mliska@suse.cz>
7690 * Makefile.in: Remove it.
7691 * doc/include/fdl.texi: Update next/previous chapters.
7692 * doc/install.texi: Likewise.
7693 * doc/install-old.texi: Removed.
7695 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7697 * config/csky/csky.c (ck810_legitimate_index_p): Support
7698 "base + index" with DF mode.
7699 * config/csky/constraints.md ("Y"): New constraint for memory operands
7700 without index register.
7701 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
7702 when mov between memory and general registers, and lower their priority.
7703 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
7705 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7707 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
7709 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7711 * config/csky/csky.md (untyped_call): Emit clobber for return
7712 registers to mark them used.
7714 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7716 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
7718 2021-05-26 Andrew Pinski <apinski@marvell.com>
7720 * match.pd (x < 0 ? ~y : y): New patterns.
7722 2021-05-26 Andrew Pinski <apinski@marvell.com>
7724 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
7725 A?POW2:0 and A?0:POW2.
7727 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7729 * gimple-range-gori.cc (class logical_stmt_cache): Delete
7730 (logical_stmt_cache::logical_stmt_cache ): Delete.
7731 (logical_stmt_cache::~logical_stmt_cache): Delete.
7732 (logical_stmt_cache::cache_entry::dump): Delete.
7733 (logical_stmt_cache::get_range): Delete.
7734 (logical_stmt_cache::cached_name ): Delete.
7735 (logical_stmt_cache::same_cached_name): Delete.
7736 (logical_stmt_cache::cacheable_p): Delete.
7737 (logical_stmt_cache::slot_diagnostics ): Delete.
7738 (logical_stmt_cache::dump): Delete.
7739 (gori_compute_cache::gori_compute_cache): Delete.
7740 (gori_compute_cache::~gori_compute_cache): Delete.
7741 (gori_compute_cache::compute_operand_range): Delete.
7742 (gori_compute_cache::cache_stmt): Delete.
7743 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
7745 (class gori_compute_cache): Delete.
7747 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7749 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
7751 (fold_using_range::range_of_address): Adjust.
7752 (fold_using_range::range_of_phi): Adjust.
7753 * gimple-range.h (class fur_source): Adjust.
7754 (fur_source::fur_source): Adjust.
7756 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7758 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
7759 from expr_range_in_bb and adjust.
7760 (gori_compute::compute_name_range_op): Adjust.
7761 (gori_compute::optimize_logical_operands): Adjust.
7762 (gori_compute::compute_logical_operands_in_chain): Adjust.
7763 (gori_compute::compute_operand1_range): Adjust.
7764 (gori_compute::compute_operand2_range): Adjust.
7765 (ori_compute_cache::cache_stmt): Adjust.
7766 * gimple-range-gori.h (gori_compute): Rename prototype.
7768 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7770 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
7771 checked only after range_of_stmt, not range_on_entry.
7772 (gimple_ranger::range_on_entry): Check for non-null in any
7773 predecessor block, if it is not already non-null.
7774 (gimple_ranger::range_on_exit): DOnt check for non-null after
7775 range on entry call.
7776 (gimple_ranger::dump_bb): New. Split from dump.
7777 (gimple_ranger::dump): Adjust.
7778 * gimple-range.h (class gimple_ranger): Adjust.
7780 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7782 * gimple-range-cache.cc (struct range_timestamp): Delete.
7783 (class temporal_cache): Adjust.
7784 (temporal_cache::get_timestamp): Delete.
7785 (temporal_cache::set_dependency): Delete.
7786 (temporal_cache::temporal_value): Adjust.
7787 (temporal_cache::current_p): Take dependencies as params.
7788 (temporal_cache::set_timestamp): Adjust.
7789 (temporal_cache::set_always_current): Adjust.
7790 (ranger_cache::get_non_stale_global_range): Adjust.
7791 (ranger_cache::register_dependency): Delete.
7792 * gimple-range-cache.h (class range_cache): Adjust.
7794 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7796 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
7798 (range_def_chain::~range_def_chain): Dispose of obstack rather than
7799 each individual bitmap.
7800 (range_def_chain::set_import): New.
7801 (range_def_chain::get_imports): New.
7802 (range_def_chain::chain_import_p): New.
7803 (range_def_chain::register_dependency): Rename from build_def_chain
7805 (range_def_chain::def_chain_in_bitmap_p): New.
7806 (range_def_chain::add_def_chain_to_bitmap): New.
7807 (range_def_chain::has_def_chain): Just check first depenedence.
7808 (range_def_chain::get_def_chain): Process imports, use generic
7809 register_dependency routine.
7810 (range_def_chain::dump): New.
7811 (gori_map::gori_map): Allocate import list.
7812 (gori_map::~gori_map): Release imports.
7813 (gori_map::exports): Check for past allocated block size.
7814 (gori_map::imports): New.
7815 (gori_map::def_chain_in_export_p): Delete.
7816 (gori_map::is_import_p): New.
7817 (gori_map::maybe_add_gori): Handle imports.
7818 (gori_map::dump): Adjust output, add imports.
7819 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
7820 (gori_export_iterator::gori_export_iterator): New.
7821 (gori_export_iterator::next): New.
7822 (gori_export_iterator::get_name): New.
7823 * gimple-range-gori.h (range_def_chain): Add imports and direct
7824 dependecies via struct rdc.
7825 (range_def_chain::depend1): New.
7826 (range_def_chain::depend2): New.
7827 (class gori_map): Adjust.
7828 (FOR_EACH_GORI_IMPORT_NAME): New.
7829 (FOR_EACH_GORI_EXPORT_NAME): New.
7830 (class gori_export_iterator): New.
7832 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7834 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
7835 export cache filling to here.
7836 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
7838 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7840 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
7841 (gori_map): Move to gimple-range-gori.h.
7842 (gori_compute::gori_compute): Adjust.
7843 (gori_compute::~gori_compute): Delete.
7844 (gori_compute::compute_operand_range_switch): Adjust.
7845 (gori_compute::compute_operand_range): Adjust.
7846 (gori_compute::compute_logical_operands): Adjust.
7847 (gori_compute::has_edge_range_p ): Adjust.
7848 (gori_compute::set_range_invariant): Delete.
7849 (gori_compute::dump): Adjust.
7850 (gori_compute::outgoing_edge_range_p): Adjust.
7851 * gimple-range-gori.h (class range_def_chain): Relocate here.
7852 (class gori_map): Relocate here.
7853 (class gori_compute): Inherit from gori_map, and adjust.
7855 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
7857 * value-range.cc (range_tests_legacy): Use
7858 build_nonstandard_integer_type instead of int and short.
7860 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
7862 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
7863 when really creating an initialization statement for it.
7865 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
7867 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
7869 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
7871 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
7873 2021-05-25 Martin Liska <mliska@suse.cz>
7875 PR tree-optimization/92860
7877 * optc-save-gen.awk: Remove exceptions.
7879 2021-05-25 Martin Liska <mliska@suse.cz>
7881 * asan.h (sanitize_coverage_p): New function.
7882 * doc/extend.texi: Document it.
7883 * fold-const.c (fold_range_test): Use sanitize_flags_p
7884 instead of flag_sanitize_coverage.
7885 (fold_truth_andor): Likewise.
7886 * sancov.c: Likewise.
7887 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
7888 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
7889 -fsanitize-coverage when inlining.
7891 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
7893 * config/csky/csky-modes.def : Fix copyright.
7895 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
7897 * config/csky/csky-modes.def : Amend copyright.
7898 * config/csky/csky_insn_fpuv2.md : Likewise.
7899 * config/csky/csky_insn_fpuv3.md : Likewise.
7901 2021-05-25 Richard Biener <rguenther@suse.de>
7903 PR middle-end/100727
7904 * calls.c (initialize_argument_information): Explicitely test
7906 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
7908 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7910 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
7911 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
7912 the signle definition. The signle definition may not work well
7913 at simplify_subreg_regno().
7914 (HARD_FRAME_POINTER_REGNUM): New.
7915 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
7916 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
7917 csky_initial_elimination_offset, csky_expand_prologue,
7918 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
7920 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7922 * config/csky/csky.c (csky_option_override):
7923 Init csky_arch_isa_features[] in advance, so TARGET_DSP
7924 and TARGET_DIV can be set well.
7926 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7928 * config/csky/constraints.md ("l", "h"): Delete.
7929 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
7930 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
7931 * config/csky/csky.c (regno_reg_classm,
7932 csky_secondary_reload, csky_register_move_cost):
7933 Use HILO_REGS instead of LO_REGS and HI_REGS.
7935 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7937 * config/csky/constraints.md ("W"): New constriant for mem operand
7938 with base reg, index register.
7939 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
7940 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
7942 ("Dv"): New constraint for const double value that can be used at
7944 * config/csky/csky-modes.def (HFmode): New mode.
7945 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
7946 to "csky_valid_mem_constraint_operand" and support new constraint
7948 (csky_get_movedouble_length): New.
7949 (fpuv3_output_move): New.
7950 (fpuv3_const_double): New.
7951 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
7952 (decompose_csky_address): Refine.
7953 (csky_print_operand): New "CONST_DOUBLE" operand.
7954 (csky_output_move): Support fpv3 instructions.
7955 (csky_get_movedouble_length): New.
7956 (fpuv3_output_move): New.
7957 (fpuv3_const_double): New.
7958 (csky_emit_compare): Cover float comparsion.
7959 (csky_emit_compare_float): Refine.
7960 (csky_vaild_fpuv2_mem_operand): Rename to
7961 "csky_valid_mem_constraint_operand" and support new constraint "W".
7962 (ck860_rtx_costs): New.
7963 (csky_rtx_costs): Add the cost calculation of CK860.
7964 (regno_reg_class): New vregs for fpuv3.
7965 (csky_dbx_regno): Likewise.
7966 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
7967 (csky_conditional_register_usage): Suporrot fpuv3.
7968 (csky_dwarf_register_span): Suporrot fpuv3.
7969 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
7970 (ck810_legitimate_index_p): Support fp16.
7971 * config/csky/csky.h (TARGET_TLS): ADD CK860.
7972 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
7973 (TARGET_SINGLE_FPU): Support fpuv3.
7974 (TARGET_SUPPORT_FPV3): New.
7975 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
7976 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
7977 REG_CLASS_CONTENTS): Support fpuv3.
7978 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
7979 (csky_movsf_fpv2): Likewise.
7980 (ck801_movsf): Likewise.
7981 (csky_movsf): Likewise.
7983 (csky_movdf_fpv2): Likewise.
7984 (ck801_movdf): Likewise.
7985 (csky_movdf): Likewise.
7986 (movsicc): Refine. Use "comparison_operatior" instead of
7987 "ordered_comparison_operatior".
7988 (addsicc): Likewise.
7989 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
7990 (call_value_internal_vh): New.
7991 * config/csky/csky_cores.def (CK860): New arch and cpu.
7996 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
7997 into emit-patterns and match-patterns, remain the emit-patterns here,
7998 and move the match-patterns to csky_insn_fpuv2.md or
8000 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
8001 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
8003 * config/csky/csky_isa.def (fcr): New.
8008 (CK860): New definition for ck860.
8009 * config/csky/csky_tables.opt (ck860): New processors ck860,
8010 ck860f. And new arch ck860.
8015 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
8016 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
8017 * config/csky/t-csky-elf: Support 860.
8018 * config/csky/t-csky-linux: Likewise.
8019 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
8021 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
8023 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
8024 add generation of logical-add and add-logical fusion pairs.
8025 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
8027 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
8028 logical-add and add-logical fusion by default.
8029 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
8030 -mpower10-fusion-add-logical options.
8031 * config/rs6000/fusion.md: Regenerate file.
8033 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
8035 * value-range.cc (irange::legacy_equal_p): Check type when
8036 comparing VR_VARYING types.
8037 (range_tests_legacy): Test comparing VARYING ranges of different
8040 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
8042 * config/aarch64/aarch64.c (neoversen1_tunings):
8043 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
8045 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
8047 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
8048 extern weak symbols. Limit symbol offsets for non-GOT symbols with
8051 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
8053 * config/arm/neon.md (vec_load_lanesxi<mode>)
8054 (vec_store_lanexoi<mode>): Move ...
8055 * config/arm/vec-common.md: here.
8057 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
8059 * config/arm/neon.md (vec_load_lanesoi<mode>)
8060 (vec_store_lanesoi<mode>): Move ...
8061 * config/arm/vec-common.md: here.
8063 2021-05-24 liuhongt <hongtao.liu@intel.com>
8066 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
8067 stmt with GIMPLE_NOP when lhs doesn't exist.
8069 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
8072 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
8073 New instruction pattern.
8074 (*push<VI_32:mode>2): Ditto.
8075 (push splitter for SSE registers): New splitter.
8077 2021-05-23 Andrew Pinski <apinski@marvell.com>
8079 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
8081 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
8083 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
8084 * config/rs6000/fusion.md: Regenerate file.
8086 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
8088 * config/rs6000/genfusion.pl (gen_addadd): New function.
8089 * config/rs6000/fusion.md: Regenerate file.
8090 * config/rs6000/rs6000-cpus.def: Add
8091 OPTION_MASK_P10_FUSION_2ADD to masks.
8092 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8093 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
8094 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
8096 2021-05-21 Jakub Jelinek <jakub@redhat.com>
8099 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
8100 * gimplify.c (enum gimplify_omp_var_data): Fix up
8101 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
8102 (omp_lastprivate_for_combined_outer_constructs): If combined target
8103 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
8104 GOVD_MAP | GOVD_SEEN.
8105 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
8106 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
8107 (gimplify_adjust_omp_clauses): For firstprivate clauses with
8108 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
8109 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
8110 let it be replaced by implicit map clause.
8112 2021-05-21 Jakub Jelinek <jakub@redhat.com>
8115 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
8117 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
8118 (gimplify_omp_for): Likewise.
8120 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8123 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
8124 'external' in blocks.
8126 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8129 * flag-types.h (enum openacc_privatization): New.
8130 * params.opt (-param=openacc-privatization): New.
8131 * doc/invoke.texi (openacc-privatization): Document it.
8132 * omp-general.h (get_openacc_privatization_dump_flags): New
8134 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
8135 * omp-offload.c (execute_oacc_device_lower)
8136 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
8137 * target.def (goacc.adjust_private_decl): Add 'location_t'
8139 * doc/tm.texi: Regenerate.
8140 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
8141 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
8142 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
8143 Likewise. Preserve it for...
8144 (nvptx_goacc_expand_var_decl): ... use here.
8146 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8148 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
8151 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8154 * omp-low.c (oacc_privatization_candidate_p): New function.
8155 (oacc_privatization_scan_clause_chain)
8156 (oacc_privatization_scan_decl_chain): Use it. Also
8157 'gcc_checking_assert' that we're not seeing duplicates.
8159 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8162 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
8165 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8168 * omp-offload.c (execute_oacc_device_lower): Explain.
8170 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8173 * omp-offload.c (execute_oacc_device_lower)
8174 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
8176 * internal-fn.c (expand_UNIQUE): Don't expect
8177 'IFN_UNIQUE_OACC_PRIVATE'.
8179 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8182 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
8184 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
8187 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
8188 (nvptx_goacc_expand_var_decl): Tighten.
8190 2021-05-21 Julian Brown <julian@codesourcery.com>
8191 Chung-Lin Tang <cltang@codesourcery.com>
8192 Thomas Schwinge <thomas@codesourcery.com>
8195 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
8196 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
8197 * doc/tm.texi: Regenerate.
8198 * expr.c (expand_expr_real_1): Expand decls using the
8199 expand_var_decl OpenACC hook if defined.
8200 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
8201 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
8202 * omp-low.c (omp_context): Add oacc_privatization_candidates
8204 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
8206 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
8207 private marker's gimple call arguments, and pass it to
8208 lower_oacc_reductions.
8209 (oacc_privatization_scan_clause_chain)
8210 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
8212 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
8213 * omp-offload.c (convert.h): Include.
8214 (oacc_loop_xform_head_tail): Treat private-variable markers like
8215 fork/join when transforming head/tail sequences.
8216 (struct var_decl_rewrite_info): Add struct.
8217 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
8218 (execute_oacc_device_lower): Support rewriting gang-private
8219 variables using target hook, and fix up addr_expr and var_decl
8221 * target.def (adjust_private_decl, expand_var_decl): New hooks.
8222 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
8224 (gcn_goacc_adjust_private_decl): ...this.
8225 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
8227 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
8228 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
8229 definition using gcn_goacc_adjust_gangprivate_decl...
8230 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
8231 gcn_goacc_adjust_private_decl.
8232 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
8233 (gang_private_shared_size): New global variable.
8234 (gang_private_shared_align): Likewise.
8235 (gang_private_shared_sym): Likewise.
8236 (gang_private_shared_hmap): Likewise.
8237 (nvptx_option_override): Initialize these.
8238 (nvptx_file_end): Output gang_private_shared_sym.
8239 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
8241 (nvptx_set_current_function): Clear gang_private_shared_hmap.
8242 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
8243 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
8245 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
8247 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
8249 2021-05-21 Richard Biener <rguenther@suse.de>
8250 H.J. Lu <hjl.tools@gmail.com>
8253 * expr.c (expand_constructor): Elide expand_constructor if
8254 move by pieces is preferred.
8256 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8258 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
8259 Take a flag and mode value as arguments.
8260 (aarch64_modifies_global_state_p): Likewise.
8261 (aarch64_reads_global_state_p): Likewise.
8262 (aarch64_could_trap_p): Likewise.
8263 (aarch64_get_attributes): Likewise.
8264 (aarch64_init_simd_builtins): Adjust callsite of above.
8265 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
8266 function attributes to apply to builtins.
8267 (aarch64_init_crc32_builtins): Likewise.
8268 (aarch64_init_builtin_rsqrt): Likewise.
8270 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
8272 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
8273 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
8274 (gen_2logical): Use new fusion types.
8275 * config/rs6000/fusion.md: Regenerate.
8277 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
8280 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
8281 Handle V4QI and V2HI modes.
8282 (ix86_expand_sse_movcc): Ditto.
8283 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
8284 New instruction pattern.
8285 (*eq<VI_32:mode>3): Ditto.
8286 (*gt<VI_32:mode>3): Ditto.
8287 (*xop_pcmov_<VI_32:mode>): Ditto.
8288 (mmx_pblendvb32): Ditto.
8289 (mmx_pblendvb64): Rename from mmx_pblendvb.
8290 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
8291 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
8292 (vcond<VI_32:mode><VI_32:mode>): Ditto.
8293 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
8294 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
8296 2021-05-21 Jakub Jelinek <jakub@redhat.com>
8298 PR tree-optimization/94589
8299 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
8300 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
8301 not the same as cmp3) treat <= the same as < and >= the same as >.
8302 Don't require that cond2_phi_edge is true edge, instead take
8303 false/true edges into account based on cmp1/cmp2 comparison kinds.
8305 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
8308 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
8309 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
8310 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
8311 using SMAXMIN_MMXMODEI mode iterator.
8312 (*<smaxmin:code>v4qi3): New insn pattern.
8313 (*<smaxmin:code>v2hi3): Ditto.
8314 (SMAXMIN_VI_32): New mode iterator.
8315 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
8316 (UMAXMIN_MMXMODEI): New mode iterator.
8317 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
8318 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
8319 using UMAXMIN_MMXMODEI mode iterator.
8320 (*<umaxmin:code>v4qi3): New insn pattern.
8321 (*<umaxmin:code>v2hi3): Ditto.
8322 (UMAXMIN_VI_32): New mode iterator.
8323 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
8324 (abs<VI_32:mode>2): New insn pattern.
8325 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
8326 * config/i386/sse.md: ... here.
8328 2021-05-20 Clement Chigot <clement.chigot@atos.net>
8329 David Edelsohn <dje.gcc@gmail.com>
8331 * collect2.c (scan_prog_file): Issue non-fatal warning for
8334 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
8336 * doc/invoke.texi (-Wno-c++11-extensions)
8337 (-Wno-c++14-extensions, -Wno-c++17-extensions)
8338 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
8341 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
8343 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
8344 * config/darwin.c (darwin_override_options): Likewise.
8345 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
8346 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
8347 (DWARF2_FRAME_REG_OUT): Likewise.
8348 * config/mips/mips.c (mips_output_filename): Likewise.
8349 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
8351 (rs6000_dbx_register_number): Likewise.
8352 * dbxout.c: Include flags.h.
8353 * dwarf2cfi.c (cfi_label_required_p): Likewise.
8354 (dwarf2out_do_frame): Likewise.
8355 * except.c: Include flags.h.
8356 * final.c (dwarf2_debug_info_emitted_p): Likewise.
8357 (final_scan_insn_1): Likewise.
8358 * flags.h (dwarf_debuginfo_p): New function declaration.
8359 * opts.c (dwarf_debuginfo_p): New function definition.
8360 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
8361 * toplev.c (process_options): Likewise.
8363 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
8365 * common.opt: Change type to support bitmasks.
8366 * flag-types.h (enum debug_info_type): Rename enumerator constants.
8367 (NO_DEBUG): New bitmask.
8368 (DBX_DEBUG): Likewise.
8369 (DWARF2_DEBUG): Likewise.
8370 (XCOFF_DEBUG): Likewise.
8371 (VMS_DEBUG): Likewise.
8372 (VMS_AND_DWARF2_DEBUG): Likewise.
8373 * flags.h (debug_set_to_format): New function declaration.
8374 (debug_set_count): Likewise.
8375 (debug_set_names): Likewise.
8376 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
8377 (debug_set_to_format): New function definition.
8378 (debug_set_count): Likewise.
8379 (debug_set_names): Likewise.
8380 (set_debug_level): Update access to debug_type_names.
8381 * toplev.c: Likewise.
8383 2021-05-20 Martin Sebor <msebor@redhat.com>
8385 PR middle-end/100684
8386 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
8388 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
8391 * config/i386/i386.md (isa): Remove x64_bmi.
8392 (enabled): Remove x64_bmi.
8393 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
8394 Remove general register alternative.
8395 (*andnot<VI_32:mode>3): Ditto.
8396 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
8397 (*<any_logic:code><VI_32:mode>3): Ditto.
8399 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
8401 * config/arm/arm.c: Include head files tree-vectorizer.h and
8404 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
8407 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
8408 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
8409 (<s>mulv4hi3_highpart): New expander.
8410 (*<s>mulv2hi3_highpart): New insn pattern.
8411 (<s>mulv2hi3_higpart): New expander.
8412 (*<any_shift:insn>v2hi3): New insn pattern.
8413 (<any_shift:insn>v2hi3): New expander.
8414 * config/i386/sse.md (smulhrsv2hi3): New expander.
8415 (*smulhrsv2hi3): New insn pattern.
8417 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
8419 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
8421 * params.opt (vect-inner-loop-cost-factor): New.
8422 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
8423 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
8424 tree-vectorizer.h and its required ones.
8425 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
8426 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
8427 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
8428 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
8429 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
8430 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8432 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
8433 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
8434 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
8436 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
8437 Torbjörn Svensson <torbjorn.svensson@st.com>
8440 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
8442 2021-05-20 Jakub Jelinek <jakub@redhat.com>
8445 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
8446 explicit linear clause when combined with target, make it map(tofrom:)
8447 instead of no clause or firstprivate.
8449 2021-05-20 Jakub Jelinek <jakub@redhat.com>
8451 PR tree-optimization/94589
8452 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
8453 of integral conversions.
8455 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
8457 * gimple-range.cc (fur_source::get_operand): New.
8458 (gimple_range_fold): Delete.
8459 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
8460 (fold_using_range::range_of_range_op): Move from gimple_ranger.
8461 (fold_using_range::range_of_address): Ditto.
8462 (fold_using_range::range_of_phi): Ditto.
8463 (fold_using_range::range_of_call): Ditto.
8464 (fold_using_range::range_of_builtin_ubsan_call): Move from
8465 range_of_builtin_ubsan_call.
8466 (fold_using_range::range_of_builtin_call): Move from
8467 range_of_builtin_call.
8468 (gimple_ranger::range_of_builtin_call): Delete.
8469 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
8470 (gimple_ranger::fold_range_internal): New.
8471 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
8472 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
8473 gimple_ranger. Improve ranges of SSA_NAMES when possible.
8474 * gimple-range.h (gimple_ranger): Remove various range_of routines.
8475 (class fur_source): New.
8476 (class fold_using_range): New.
8477 (fur_source::fur_source): New.
8479 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
8480 instead of range_of_builtin_call.
8482 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
8484 * doc/cpp.texi (Common Predefined Macros): Update documentation
8485 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
8487 2021-05-19 Alex Coplan <alex.coplan@arm.com>
8490 * config/arm/arm.md (nonsecure_call_internal): Always ensure
8491 callee's address is in a register.
8493 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
8495 * common/config/riscv/riscv-common.c
8496 (riscv_subset_list::parsing_subset_version): Properly parse the letter
8498 (riscv_subset_list::parse_std_ext,
8499 riscv_subset_list::parse_multiletter_ext): To handle errors generated
8500 in riscv_subset_list::parsing_subset_version.
8502 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
8504 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
8505 type attribute in patterns generating XTN(2).
8507 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
8509 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
8510 Remove as duplicate of...
8511 (aarch64_xtn<mode>): This.
8512 (aarch64_xtn2<mode>_le): Move position in file.
8513 (aarch64_xtn2<mode>_be): Move position in file.
8514 (aarch64_xtn2<mode>): Move position in file.
8515 (vec_pack_trunc_<mode>): Define as an expander.
8517 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
8519 * config/aarch64/aarch64-simd-builtins.def: Split builtin
8520 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
8521 separate scalar and vector generators.
8522 * config/aarch64/aarch64-simd.md
8523 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
8525 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
8526 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
8527 * config/aarch64/iterators.md: Define SD_HSDI iterator.
8529 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
8531 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
8533 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
8535 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
8537 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
8538 Implement as an expand emitting a big/little endian
8539 instruction pattern.
8540 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
8541 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
8543 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
8545 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
8546 Implement as an expand emitting a big/little endian
8547 instruction pattern.
8548 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
8549 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
8550 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
8551 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
8553 2021-05-19 Richard Biener <rguenther@suse.de>
8555 PR middle-end/100672
8556 * fold-const.c (fold_negate_expr_1): Use element_precision.
8557 (negate_expr_p): Likewise.
8559 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
8561 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
8562 (pred_load): New int attribute.
8563 * config/aarch64/aarch64-sve.md
8564 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
8565 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
8566 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
8567 code_for_aarch64_load.
8569 2021-05-19 Richard Biener <rguenther@suse.de>
8571 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
8572 sure TARGET_MEM_REF bases are expanded as memory.
8573 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
8574 Do not mark TARGET_MEM_REF bases addressable.
8575 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
8576 TARGET_MEM_REF bases as never rewritable.
8577 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
8578 walk TARGET_MEM_REF bases as address-takens.
8579 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
8581 2021-05-19 Richard Biener <rguenther@suse.de>
8583 * builtins.c (get_object_alignment_1): Strip outer
8585 * tree-dfa.c (get_ref_base_and_extent): Handle outer
8586 WITH_SIZE_EXPR for size processing and process the
8588 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
8589 outer WITH_SIZE_EXPR.
8590 (ao_ref_base_alias_ptr_type): Likewise.
8591 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
8592 and handle that accordingly, stripping it for the
8594 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
8595 looking through it instead of returning NULL.
8597 2021-05-19 Jakub Jelinek <jakub@redhat.com>
8599 PR middle-end/100576
8600 * builtins.c (check_read_access): Convert bound to size_type_node if
8603 2021-05-19 Richard Biener <rguenther@suse.de>
8605 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
8606 (verify_types_in_gimple_reference): ... here. Sanitize.
8607 (verify_gimple_call): Verify references in LHS and arguments.
8608 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
8610 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
8612 * config/i386/i386.h (VALID_INT_MODE_P):
8613 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
8614 * config/i386/i386.md (isa): Add x64_bmi.
8615 (enabled): Handle x64_bmi.
8616 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
8617 Add alternative using 64bit general registers.
8618 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
8620 2021-05-19 Jakub Jelinek <jakub@redhat.com>
8623 * tree.h (OMP_MASTER_COMBINED): Define.
8624 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
8625 handling for outer combined/composite constructs to a loop.
8626 Handle lastprivate on combined target.
8627 (gimplify_expr): Formatting fix.
8629 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
8631 * passes.def: Add sink_code pass before store_merging.
8632 * tree-ssa-sink.c (pass_sink_code:clone): New.
8634 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
8636 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
8637 rs6000_special_adjust_field_align_p.
8638 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8639 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
8641 (rs6000_function_arg): Likewise.
8642 * config/rs6000/rs6000-protos.h
8643 (rs6000_special_adjust_field_align_p): Remove prototype.
8644 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8646 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
8647 rs6000_special_adjust_field_align_p.
8649 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8652 * config/i386/i386.h (VALID_SSE2_REG_MODE):
8653 Add V4QI and V2HI modes.
8654 (VALID_INT_MODE_P): Ditto.
8655 * config/i386/mmx.md (VI_32): New mode iterator.
8656 (mmxvecsize): Handle V4QI and V2HI.
8658 (mov<VI_32:mode>): New expander.
8659 (*mov<mode>_internal): New insn pattern.
8660 (movmisalign<VI_32:mode>): New expander.
8661 (neg<VI_32:mode>): New expander.
8662 (<plusminus:insn><VI_32:mode>3): New expander.
8663 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
8664 (mulv2hi3): New expander.
8665 (*mulv2hi3): New insn pattern.
8666 (one_cmpl<VI_32:mode>2): New expander.
8667 (*andnot<VI_32:mode>3): New insn pattern.
8668 (<any_logic:code><VI_32:mode>3): New expander.
8669 (*<any_logic:code><VI_32:mode>3): New insn pattern.
8671 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8673 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
8674 Fix a mode mismatch with operand 1.
8676 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8679 * config/i386/i386-expand.c (split_double_mode): Return
8680 temporary register when simplify_gen_subreg fails with
8681 the high half od the paradoxical subreg.
8683 2021-05-18 Richard Biener <rguenther@suse.de>
8685 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
8686 and honor it when expanding.
8687 (expand_used_vars_for_block): Pass through forced_stack_var.
8688 (expand_used_vars): Likewise.
8689 (discover_nonconstant_array_refs_r): Set bits in
8690 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
8691 (avoid_type_punning_on_regs): Likewise.
8692 (discover_nonconstant_array_refs): Likewise.
8693 (pass_expand::execute): Create and pass down forced_stack_var
8694 bitmap. For parameters and returns temporarily set
8695 TREE_ADDRESSABLE when expand_function_start.
8697 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
8699 * doc/sourcebuild.texi: Document 'dg-note'.
8701 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
8704 * configure: Regenerate.
8705 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
8707 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
8709 * gimple.h (is_gimple_omp_oacc): Tighten.
8710 * omp-low.c (check_omp_nesting_restrictions): Adjust.
8712 2021-05-18 Richard Biener <rguenther@suse.de>
8714 * tree-ssa-operands.c (mark_address_taken): Simplify.
8716 2021-05-18 Martin Liska <mliska@suse.cz>
8718 * config/gcn/mkoffload.c (STR): Redefine.
8719 * config/i386/intelmic-mkoffload.c (STR): Likewise.
8720 * config/nvptx/mkoffload.c (STR): Likewise.
8722 2021-05-18 Martin Liska <mliska@suse.cz>
8724 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
8725 Use startswith function instead of strncmp.
8726 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
8727 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
8728 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
8729 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
8730 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
8731 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
8732 * config/arm/arm.c (arm_file_start): Likewise.
8733 (arm_valid_target_attribute_rec): Likewise.
8734 (thumb1_md_asm_adjust): Likewise.
8735 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
8736 * config/avr/avr.c (STR_PREFIX_P): Likewise.
8737 (avr_set_current_function): Likewise.
8738 (avr_handle_addr_attribute): Likewise.
8739 (avr_asm_output_aligned_decl_common): Likewise.
8740 (avr_asm_named_section): Likewise.
8741 (avr_section_type_flags): Likewise.
8742 (avr_asm_select_section): Likewise.
8743 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
8744 (c6x_section_type_flags): Likewise.
8745 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
8746 (darwin_objc_declare_unresolved_class_reference): Likewise.
8747 (darwin_objc_declare_class_definition): Likewise.
8748 * config/darwin.c (indirect_data): Likewise.
8749 (darwin_encode_section_info): Likewise.
8750 (darwin_objc2_section): Likewise.
8751 (darwin_objc1_section): Likewise.
8752 (machopic_select_section): Likewise.
8753 (darwin_globalize_label): Likewise.
8754 (darwin_label_is_anonymous_local_objc_name): Likewise.
8755 (darwin_asm_named_section): Likewise.
8756 (darwin_asm_output_dwarf_offset): Likewise.
8757 * config/frv/frv.c (frv_string_begins_with): Likewise.
8758 (frv_in_small_data_p): Likewise.
8759 * config/gcn/mkoffload.c (STR): Likewise.
8761 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
8762 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
8763 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
8764 (ix86_md_asm_adjust): Likewise.
8765 * config/i386/intelmic-mkoffload.c (STR): Likewise.
8766 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
8767 (i386_pe_file_end): Likewise.
8768 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
8769 (ia64_section_type_flags): Likewise.
8770 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
8771 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
8772 (mips16_stub_function_p): Likewise.
8773 (mips_function_rodata_section): Likewise.
8774 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
8775 (msp430_function_section): Likewise.
8776 (msp430_section_type_flags): Likewise.
8777 (msp430_expand_helper): Likewise.
8778 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
8779 (nios2_valid_target_attribute_rec): Likewise.
8780 * config/nvptx/mkoffload.c (process): Likewise.
8782 * config/pa/som.h: Likewise.
8783 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
8784 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
8785 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
8786 (rs6000_inner_target_options): Likewise.
8787 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
8788 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
8789 * config/vax/vax.c (vax_output_int_move): Likewise.
8790 * config/vms/vms-ld.c (startswith): Likewise.
8791 (process_args): Likewise.
8793 * config/vms/vms.c: Likewise.
8795 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8797 PR rtl-optimization/100590
8798 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
8799 they are NONJUMP_INSN_P.
8801 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8804 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
8805 DECL_ASSEMBLER_NAME on the fn_decl.
8807 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8809 PR tree-optimization/94589
8810 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
8811 phi result used in (res & ~1) == 0 comparison as res >= 0 as
8812 res == 2 would be UB with -ffinite-math-only.
8814 2021-05-18 Martin Liska <mliska@suse.cz>
8816 * Makefile.in: genversion.o should depend on DATESTAMP.
8818 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
8820 * config/arc/simdext.md (negv2si2): Remove round bracket.
8822 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
8824 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
8825 _Bool as macro expanding to _Bool.
8827 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
8830 * tree.c (build_reference_type_for_mode)
8831 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
8833 (build_reference_type, build_pointer_type): Invoke
8834 build_*_type_for_mode with VOIDmode.
8836 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
8838 PR tree-optimization/100512
8839 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
8840 and non-zero pointer ranges as invariant.
8841 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
8842 processing from here.
8844 2021-05-17 Tom de Vries <tdevries@suse.de>
8847 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
8848 * config/nvptx/nvptx.c (nvptx_output_barrier)
8849 (nvptx_output_atomic_insn): New function.
8850 (nvptx_print_operand): Add support for 'B'.
8851 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
8854 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
8856 PR tree-optimization/100349
8857 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
8860 2021-05-17 Tamar Christina <tamar.christina@arm.com>
8862 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
8863 (host_detect_local_cpu): Use it.
8865 2021-05-17 Martin Liska <mliska@suse.cz>
8867 * doc/invoke.texi: Add 2 missing dots.
8869 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
8872 * configure.ac: Replace pattern substitution with call to sed.
8873 * configure: Regenerate.
8875 2021-05-17 Richard Biener <rguenther@suse.de>
8877 PR middle-end/100582
8878 * tree.c (array_at_struct_end_p): Get to the base of the
8879 reference before looking for the underlying decl.
8881 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
8883 * genoutput.c (validate_insn_alternatives) Make "wrong number of
8884 alternatives" message more specific, and remove assumption on where
8887 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8889 * config/arm/iterators.md (V16): New iterator.
8890 (VH_cvtto): New iterator.
8891 (v_cmp_result): Added V4HF and V8HF support.
8892 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
8893 (vcond<mode><mode>): Likewise.
8894 (vcond_mask_<mode><v_cmp_result>): Likewise.
8895 (vcond<VH_cvtto><mode>): New expander.
8897 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8899 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
8901 * config/arm/arm.c (arm_expand_vector_compare): Add support for
8903 (arm_expand_vcond): Likewise.
8904 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
8905 VCMPEQQ_N_S, VCMPNEQ_N_S.
8906 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
8907 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
8908 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
8909 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
8910 (@mve_vpselq_<supf><mode>): Likewise.
8911 (@mve_vpselq_f<mode>"): Likewise.
8912 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
8913 and move to vec-common.md.
8914 (vec_cmpu<mode><mode>): Likewise.
8915 (vcond<mode><mode>): Likewise.
8916 (vcond<V_cvtto><mode>): Likewise.
8917 (vcondu<mode><v_cmp_result>): Likewise.
8918 (vcond_mask_<mode><v_cmp_result>): Likewise.
8919 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
8920 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
8921 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
8922 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
8923 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
8924 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
8926 (vec_cmpu<mode><mode>): Likewise.
8927 (vcond<mode><mode>): Likewise.
8928 (vcond<V_cvtto><mode>): Likewise.
8929 (vcondu<mode><v_cmp_result>): Likewise.
8930 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
8933 2021-05-17 liuhongt <hongtao.liu@intel.com>
8936 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
8937 gsi_insert_seq_before instead.
8939 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8941 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
8942 (arm_sat_ok): ...this.
8944 2021-05-17 Martin Liska <mliska@suse.cz>
8946 * lto-wrapper.c (merge_flto_options): Factor out a new function.
8947 (merge_and_complain): Use it.
8948 (run_gcc): Merge also linker command line -flto=foo argument
8951 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
8953 * config/arm/arm.h (CPP_SPEC): Remove error message about
8954 -mlittle-endian/-mbig-endian conflict.
8956 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8958 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8959 __ROP_PROTECT__ if -mrop-protect is selected.
8961 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8963 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
8964 rop_hash_save_offset and rop_hash_size.
8965 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
8966 rop_hash_size and rop_hash_save_offset.
8967 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
8968 (rs6000_emit_prologue): Emit hashst[p] in prologue.
8969 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
8970 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
8972 (hashst): New define_insn.
8973 (hashchk): Likewise.
8975 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8977 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8978 Disable shrink wrap when inserting ROP-protect instructions.
8979 * config/rs6000/rs6000.opt (mrop-protect): New option.
8980 (mprivileged): Likewise.
8981 * doc/invoke.texi: Document mrop-protect and mprivileged.
8983 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
8985 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
8988 2021-05-15 Martin Jambor <mjambor@suse.cz>
8991 2021-05-13 Martin Jambor <mjambor@suse.cz>
8993 PR tree-optimization/100453
8994 * tree-sra.c (sra_modify_assign): All const base accesses do not
8995 need refreshing, not just those from decl_pool.
8996 (sra_modify_assign): Do not refresh into a const base decl.
8998 2021-05-15 Jakub Jelinek <jakub@redhat.com>
9000 PR rtl-optimization/100342
9001 * regcprop.c (copy_value): When copying a source reg in a wider
9002 mode than it has recorded for the value, adjust recorded destination
9003 mode too or punt if !REG_CAN_CHANGE_MODE_P.
9005 2021-05-14 Jason Merrill <jason@redhat.com>
9007 * intl.h: Add comments.
9009 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9011 * config/aarch64/aarch64-simd.md
9012 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
9013 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
9014 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
9015 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
9016 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
9017 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
9018 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
9019 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
9020 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
9022 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9025 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
9026 boolean logic equivalent.
9027 (vtst_s16): Likewise.
9028 (vtst_s32): Likewise.
9029 (vtst_u8): Likewise.
9030 (vtst_u16): Likewise.
9031 (vtst_u32): Likewise.
9032 (vtst_p8): Likewise.
9033 (vtst_p16): Likewise.
9034 (vtstq_s8): Likewise.
9035 (vtstq_s16): Likewise.
9036 (vtstq_s32): Likewise.
9037 (vtstq_u8): Likewise.
9038 (vtstq_u16): Likewise.
9039 (vtstq_u32): Likewise.
9040 (vtstq_p8): Likewise.
9041 (vtstq_p16): Likewise.
9042 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
9043 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
9045 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9047 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
9048 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
9049 (aarch64_sqdmlsl2<mode>): Delete.
9050 (aarch64_sqdmlal2_lane<mode>): Merge this...
9051 (aarch64_sqdmlsl2_lane<mode>): ... And this...
9052 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
9053 (aarch64_sqdmlal2_laneq<mode>): Merge this...
9054 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
9055 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
9056 (aarch64_sqdmlal2_n<mode>): Merge this...
9057 (aarch64_sqdmlsl2_n<mode>): ... And this...
9058 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
9060 2021-05-13 Martin Sebor <msebor@redhat.com>
9062 PR middle-end/100574
9063 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
9066 2021-05-13 Martin Sebor <msebor@redhat.com>
9068 PR tree-optimization/93100
9070 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
9071 don't modify referenced objects.
9073 2021-05-13 Martin Jambor <mjambor@suse.cz>
9075 PR tree-optimization/100453
9076 * tree-sra.c (sra_modify_assign): All const base accesses do not
9077 need refreshing, not just those from decl_pool.
9078 (sra_modify_assign): Do not refresh into a const base decl.
9080 2021-05-13 Martin Liska <mliska@suse.cz>
9082 * tree-ssa-dom.c: Remove m_simplifier.
9084 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
9087 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
9088 canonicalize DImode inequality comparisons against the
9089 maximum integral value.
9091 2021-05-13 Jakub Jelinek <jakub@redhat.com>
9093 PR tree-optimization/98856
9094 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
9095 Expect V2DI and V4DI arithmetic right shifts to be emulated.
9096 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
9098 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
9099 expand_vec_perm_2perm_pblendv): New functions.
9100 (ix86_expand_vec_perm_const_1): Use them.
9101 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
9102 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
9103 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
9104 (ashrv4di3): New define_expand.
9105 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
9106 and !TARGET_AVX512VL expansion.
9108 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
9111 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
9112 sizes < 16 to a register when constructing vpcmov pattern.
9113 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
9115 2021-05-13 Martin Liska <mliska@suse.cz>
9117 * gcov-io.c (gcov_write_block): Remove.
9118 (gcov_write_words): Likewise.
9119 (gcov_read_words): Re-implement using gcov_read_bytes.
9120 (gcov_allocate): Remove.
9121 (GCOV_BLOCK_SIZE): Likewise.
9122 (struct gcov_var): Remove most of the fields.
9123 (gcov_position): Implement with ftell.
9124 (gcov_rewrite): Remove setting of start and offset fields.
9125 (from_file): Re-format.
9126 (gcov_open): Remove setbuf call. It should not be needed.
9127 (gcov_close): Remove internal buffer handling.
9128 (gcov_magic): Use __builtin_bswap32.
9129 (gcov_write_counter): Use directly gcov_write_unsigned.
9130 (gcov_write_string): Use direct fwrite and do not round
9132 (gcov_seek): Use directly fseek.
9133 (gcov_write_tag): Use gcov_write_unsigned directly.
9134 (gcov_write_length): Likewise.
9135 (gcov_write_tag_length): Likewise.
9136 (gcov_read_bytes): Use directly fread.
9137 (gcov_read_unsigned): Use gcov_read_words.
9138 (gcov_read_counter): Likewise.
9139 (gcov_read_string): Use gcov_read_bytes.
9140 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
9141 that size is not in bytes, but words (4B).
9142 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
9143 (GCOV_TAG_ARCS_LENGTH): Likewise.
9144 (GCOV_TAG_ARCS_NUM): Likewise.
9145 (GCOV_TAG_COUNTER_LENGTH): Likewise.
9146 (GCOV_TAG_COUNTER_NUM): Likewise.
9147 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
9149 2021-05-13 liuhongt <hongtao.liu@intel.com>
9152 * config/i386/sse.md (ssedoublevecmode): Add attribute for
9153 V64QI/V32HI/V16SI/V4DI.
9154 (ssehalfvecmode): Add attribute for V2DI/V2DF.
9155 (*vec_concatv4si_0): Extend to VI124_128.
9156 (*vec_concat<mode>_0): New pre-reload splitter.
9157 * config/i386/predicates.md (movq_parallel): New predicate.
9159 2021-05-13 Alexandre Oliva <oliva@adacore.com>
9161 * targhooks.c (default_zero_call_used_regs): Retry using
9162 successfully-zeroed registers as sources.
9164 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
9166 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
9168 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
9171 * gimple-range.cc (range_of_builtin_call): Skip out on
9172 processing __builtin_clz when varying.
9174 2021-05-12 Tom de Vries <tdevries@suse.de>
9177 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
9178 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
9179 to ptx_version_option.
9180 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
9181 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
9182 (define_insn "nvptx_vote_ballot"): Use sync variant for
9184 * config/nvptx/nvptx.opt (ptx_version): Add enum.
9186 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
9188 2021-05-12 Richard Biener <rguenther@suse.de>
9190 PR tree-optimization/100566
9191 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
9192 allow_back for all edge queries.
9194 2021-05-12 liuhongt <hongtao.liu@intel.com>
9197 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
9198 splitters for pblendvb of NOT mask register.
9200 2021-05-12 Richard Biener <rguenther@suse.de>
9202 PR tree-optimization/100519
9203 * tree-ssa-reassoc.c (can_associate_p): Split into...
9204 (can_associate_op_p): ... this
9205 (can_associate_type_p): ... and this.
9206 (is_reassociable_op): Call can_associate_op_p.
9207 (break_up_subtract_bb): Call the appropriate predicates.
9208 (reassociate_bb): Likewise.
9210 2021-05-12 Martin Liska <mliska@suse.cz>
9212 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
9213 (run_gcc): Use -flto argument detection for merged
9216 2021-05-12 Martin Liska <mliska@suse.cz>
9218 * lto-wrapper.c (print_lto_docs_link): New function.
9219 (run_gcc): Print warning about missing job server detection
9220 after we know NR of partitions. Do the same for -flto{,=1}.
9221 * opts.c (get_option_html_page): Support -flto option.
9223 2021-05-12 Martin Liska <mliska@suse.cz>
9225 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
9227 (append_option): Remove.
9228 (find_option): Rework to use the vector type.
9229 (remove_option): Remove.
9230 (merge_and_complain): Use vectors for cl_decoded_option data
9232 (append_compiler_options): Likewise.
9233 (append_diag_options): Likewise.
9234 (append_linker_options): Likewise.
9235 (append_offload_options): Likewise.
9236 (compile_offload_image): Likewise.
9237 (compile_images_for_offload_targets): Likewise.
9238 (find_and_merge_options): Likewise.
9239 (run_gcc): Likewise.
9241 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
9244 * dwarf2out.c (dwarf2out_finish): Set
9245 have_multiple_function_sections with multi-range text_section.
9247 2021-05-12 Martin Liska <mliska@suse.cz>
9250 * Makefile.in: Remove version.h from linker command line.
9252 2021-05-12 Richard Biener <rguenther@suse.de>
9254 PR middle-end/100547
9255 * rtl.h (rtvec_alloc): Make argument size_t.
9256 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
9258 2021-05-12 Jakub Jelinek <jakub@redhat.com>
9260 PR middle-end/100508
9261 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
9262 type, don't reuse DECL_RTL if it has different mode, instead force
9263 creation of a new DEBUG_EXPR.
9265 2021-05-12 Jakub Jelinek <jakub@redhat.com>
9266 Marc Glisse <marc.glisse@inria.fr>
9268 PR tree-optimization/94589
9269 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
9270 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
9272 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
9275 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
9276 * config/i386/mmx.md (MMXMODE124): New mode iterator.
9278 (mmxintvecmode): New mode attribute.
9279 (mmxintvecmodelower): Ditto.
9280 (*mmx_maskcmpv2sf3_comm): New insn pattern.
9281 (*mmx_maskcmpv2sf3): Ditto.
9282 (vec_cmpv2sfv2si): New expander.
9283 (vcond<V2FI:mode>v2si): Ditto.
9284 (mmx_vlendvps): New insn pattern.
9285 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
9286 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
9287 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
9289 2021-05-11 Martin Sebor <msebor@redhat.com>
9292 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
9294 2021-05-11 Richard Biener <rguenther@suse.de>
9296 * gimple-fold.c (gimple_fold_call): Do not call
9297 maybe_fold_reference on call arguments or the static chain.
9298 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
9301 2021-05-11 Martin Liska <mliska@suse.cz>
9303 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
9304 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9305 (DEF_HSAIL_SAT_BUILTIN): Likewise.
9306 (DEF_HSAIL_INTR_BUILTIN): Likewise.
9307 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9308 * doc/frontends.texi: Remove BRIG.
9309 * doc/install.texi: Likewise.
9310 * doc/invoke.texi: Likewise.
9311 * doc/standards.texi: Likewise.
9312 * brig-builtins.def: Removed.
9313 * brig/ChangeLog: Removed.
9314 * brig/Make-lang.in: Removed.
9315 * brig/brig-builtins.h: Removed.
9316 * brig/brig-c.h: Removed.
9317 * brig/brig-lang.c: Removed.
9318 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
9319 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
9320 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
9321 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
9322 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
9323 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
9324 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
9325 * brig/brigfrontend/brig-comment-handler.cc: Removed.
9326 * brig/brigfrontend/brig-control-handler.cc: Removed.
9327 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
9328 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
9329 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
9330 * brig/brigfrontend/brig-function-handler.cc: Removed.
9331 * brig/brigfrontend/brig-function.cc: Removed.
9332 * brig/brigfrontend/brig-function.h: Removed.
9333 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
9334 * brig/brigfrontend/brig-label-handler.cc: Removed.
9335 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
9336 * brig/brigfrontend/brig-machine.c: Removed.
9337 * brig/brigfrontend/brig-machine.h: Removed.
9338 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
9339 * brig/brigfrontend/brig-module-handler.cc: Removed.
9340 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
9341 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
9342 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
9343 * brig/brigfrontend/brig-to-generic.cc: Removed.
9344 * brig/brigfrontend/brig-to-generic.h: Removed.
9345 * brig/brigfrontend/brig-util.cc: Removed.
9346 * brig/brigfrontend/brig-util.h: Removed.
9347 * brig/brigfrontend/brig-variable-handler.cc: Removed.
9348 * brig/brigfrontend/hsa-brig-format.h: Removed.
9349 * brig/brigfrontend/phsa.h: Removed.
9350 * brig/brigspec.c: Removed.
9351 * brig/config-lang.in: Removed.
9352 * brig/gccbrig.texi: Removed.
9353 * brig/lang-specs.h: Removed.
9354 * brig/lang.opt: Removed.
9356 2021-05-11 Richard Biener <rguenther@suse.de>
9359 * ipa-param-manipulation.c
9360 (ipa_param_body_adjustments::modify_call_stmt): Avoid
9361 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
9362 via gimple_call_lhs_ptr.
9364 2021-05-11 Alex Coplan <alex.coplan@arm.com>
9367 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
9368 Avoid emitting CFA adjusts on the sp if we have the fp.
9370 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
9372 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
9373 (VMULD): New iterator.
9374 (VCOND): Handle V4HF and V8HF.
9375 (VCONQ): Fix entry for V2SF.
9376 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
9377 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
9378 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
9379 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
9380 Use a 128-bit vector mode for the indexed operand. Use stype for
9381 the scheduling type.
9383 2021-05-11 Richard Biener <rguenther@suse.de>
9385 * gimple-fold.c (maybe_fold_reference): Only return
9386 is_gimple_min_invariant values.
9388 2021-05-11 Richard Biener <rguenther@suse.de>
9390 PR middle-end/100509
9391 * gimple-fold.c (fold_gimple_assign): Only call
9392 get_symbol_constant_value on register type symbols.
9394 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
9395 Joe Ramsay <joe.ramsay@arm.com>
9398 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
9399 (__arm_vcmpneq): Remove duplicate definition.
9400 (__arm_vstrwq_scatter_offset_p): Likewise.
9401 (__arm_vmaxq_x): Likewise.
9402 (__arm_vmlsdavaq): Likewise.
9403 (__arm_vmlsdavaxq): Likewise.
9404 (__arm_vmlsdavq_p): Likewise.
9405 (__arm_vmlsdavxq_p): Likewise.
9406 (__arm_vrmlaldavhaq): Likewise.
9407 (__arm_vstrbq_p): Likewise.
9408 (__arm_vstrbq_scatter_offset): Likewise.
9409 (__arm_vstrbq_scatter_offset_p): Likewise.
9410 (__arm_vstrdq_scatter_offset): Likewise.
9411 (__arm_vstrdq_scatter_offset_p): Likewise.
9412 (__arm_vstrdq_scatter_shifted_offset): Likewise.
9413 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
9415 2021-05-11 Jakub Jelinek <jakub@redhat.com>
9417 PR middle-end/100471
9418 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
9419 is 0, bypass the reduction loop including
9420 GOMP_taskgroup_reduction_unregister call.
9422 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
9424 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
9426 (rs6000_density_test): Early return if costing_for_scalar is true.
9427 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
9429 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
9431 * doc/tm.texi: Regenerated.
9432 * target.def (init_cost): Add new parameter costing_for_scalar.
9433 * targhooks.c (default_init_cost): Adjust for new parameter.
9434 * targhooks.h (default_init_cost): Likewise.
9435 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
9436 (vect_compute_single_scalar_iteration_cost): Likewise.
9437 (vect_analyze_loop_2): Likewise.
9438 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
9439 (vect_bb_vectorization_profitable_p): Likewise.
9440 * tree-vectorizer.h (init_cost): Likewise.
9441 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
9442 * config/i386/i386.c (ix86_init_cost): Likewise.
9443 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
9445 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
9447 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
9448 vect_nonmem and moved into...
9449 (struct rs6000_cost_data): ...here.
9450 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
9451 (rs6000_add_stmt_cost): Likewise.
9452 (rs6000_finish_cost): Likewise.
9454 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
9456 * range-op.cc (get_bool_state): Adjust head comment.
9457 (operator_not_equal::op1_range): Fix comment.
9458 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
9460 2021-05-10 Martin Sebor <msebor@redhat.com>
9462 PR middle-end/100425
9463 PR middle-end/100510
9464 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
9465 (pass_walloca::xlimit_certain_p): ...to this.
9466 (pass_walloca::gate): Execute for any kind of handled warning.
9467 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
9468 warnings when xlimit_certain_p is set.
9470 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
9472 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
9473 Return ALTIVEC_REGS if that is best_class.
9474 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
9476 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9478 * config/arm/arm.h (CPP_SPEC): Remove error message about
9481 2021-05-10 Martin Jambor <mjambor@suse.cz>
9483 * ipa-prop.h (IPA_NODE_REF): Removed.
9484 (IPA_NODE_REF_GET_CREATE): Likewise.
9485 (IPA_EDGE_REF): Likewise.
9486 (IPA_EDGE_REF_GET_CREATE): Likewise.
9487 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
9488 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
9489 use of ipa_node_params_sum.
9490 (ipcp_versionable_function_p): Likewise.
9491 (push_node_to_stack): Likewise.
9492 (pop_node_from_stack): Likewise.
9493 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
9494 direct use of ipa_node_params_sum.
9495 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
9496 ipa_node_params_sum.
9497 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
9499 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
9500 use of ipa_node_params_sum.
9501 (self_recursively_generated_p): Likewise.
9502 (propagate_scalar_across_jump_function): Likewise.
9503 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
9504 direct use of ipa_edge_args_sum, moved the lookup after the early
9505 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
9506 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
9507 direct uses of ipa_node_params_sum.
9508 (propagate_vr_across_jump_function): Likewise.
9509 (propagate_aggregate_lattice): Likewise.
9510 (propagate_aggs_across_jump_function): Likewise.
9511 (propagate_constants_across_call): Likewise, also replaced
9512 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
9513 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
9514 of ipa_node_params_sum.
9515 (estimate_local_effects): Likewise.
9516 (add_all_node_vals_to_toposort): Likewise.
9517 (propagate_constants_topo): Likewise.
9518 (ipcp_propagate_stage): Likewise.
9519 (ipcp_discover_new_direct_edges): Likewise.
9520 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
9521 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
9522 (get_info_about_necessary_edges): Likewise.
9523 (want_remove_some_param_p): Likewise.
9524 (create_specialized_node): Likewise.
9525 (self_recursive_pass_through_p): Likewise.
9526 (self_recursive_agg_pass_through_p): Likewise.
9527 (find_more_scalar_values_for_callers_subset): Likewise and also
9528 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
9529 case replacing two of those with a single query.
9530 (find_more_contexts_for_caller_subset): Likewise for the
9531 ipa_polymorphic_call_context overload.
9532 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
9533 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
9534 ipa_node_params_sum.
9535 (find_aggregate_values_for_callers_subset): Likewise, also reusing
9536 results of ipa_edge_args_sum->get.
9537 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
9538 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
9539 direct use of ipa_edge_args_sum.
9540 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
9541 summary query after the early exit and reused the result later.
9542 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
9543 ipa_node_params_sum.
9544 (decide_whether_version_node): Likewise. Removed re-querying for
9545 summaries after cloning.
9546 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
9547 ipa_node_params_sum.
9548 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
9550 (identify_dead_nodes): Likewise.
9551 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
9552 ipa_node_params_sum.
9553 (ipcp_store_vr_results): Likewise.
9554 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
9555 (ipa_fn_summary_t::duplicate): Likewise.
9556 (analyze_function_body): Likewise.
9557 (estimate_calls_size_and_time): Likewise.
9558 (ipa_cached_call_context::duplicate_from): Likewise.
9559 (ipa_call_context::equal_to): Likewise.
9560 (remap_edge_params): Likewise.
9561 (ipa_merge_fn_summary_after_inlining): Likewise.
9562 (inline_read_section): Likewise.
9563 * ipa-icf.c (sem_function::param_used_p): Likewise.
9564 * ipa-modref.c (compute_parm_map): Likewise.
9565 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
9567 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
9568 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
9570 * ipa-profile.c (check_argument_count): Likewise.
9571 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
9572 with a direct use of ipa_node_params_sum.
9573 (ipa_initialize_node_params): Likewise.
9574 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
9575 direct use of ipa_edge_args_sum and reused the query result.
9576 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
9577 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
9578 direct use of ipa_edge_args_sum.
9579 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
9580 ipa_node_params_sum and reused the result of the query.
9581 (ipa_analyze_node): Likewise.
9582 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
9583 of ipa_node_params_sum.
9584 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
9585 direct uses of ipa_edge_args_sum.
9586 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
9587 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
9588 direct use of ipa_edge_args_sum. Removed superficial re-querying the
9590 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
9591 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
9593 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
9594 direct use of ipa_edge_args_sum.
9595 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
9596 use of ipa_node_params_sum.
9597 (ipa_print_node_params): Likewise.
9598 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
9599 direct uses of ipa_edge_args_sum.
9600 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
9602 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
9603 ipa_node_params_sum.
9604 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
9605 scopes where it is used.
9607 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
9609 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
9610 <case E_V2SImode>: Force op_true to register.
9612 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9614 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
9615 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
9616 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
9618 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
9619 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
9620 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
9621 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
9622 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
9623 (mve_vcmpneq_n_f<mode>): Remove.
9624 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
9625 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
9626 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
9628 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9630 * config/arm/iterators.md (MVE_COMPARISONS): New.
9632 (mve_cmp_type): New.
9633 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
9635 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
9636 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
9637 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
9638 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
9639 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
9640 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
9641 (mve_vcmpneq_n_<mode>): Remove.
9643 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9645 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
9646 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
9647 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
9650 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9652 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
9653 (vcmpneq_n_u): Likewise.
9654 (vcmpeqq_u,): Likewise.
9655 (vcmpeqq_n_u): Likewise.
9656 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
9657 VCMPEQQ_N_U and VCMPNEQ_N_U.
9658 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
9659 (mve_vcmpeqq_n): Likewise.
9660 (mve_vcmpeqq): Likewise.
9661 (mve_vcmpneq_n): Likewise.
9663 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9665 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
9666 the 's' version of the builtin.
9668 2021-05-10 Richard Biener <rguenther@suse.de>
9670 PR tree-optimization/100492
9671 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
9672 Find nothing when the loop contains an irreducible region.
9674 2021-05-10 Richard Biener <rguenther@suse.de>
9676 PR middle-end/100464
9678 * gimple-fold.c (canonicalize_constructor_val): Do not set
9681 2021-05-10 Richard Biener <rguenther@suse.de>
9683 PR tree-optimization/100434
9684 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
9686 (dse_optimize_stmt): Handle call LHS by dropping the
9687 LHS or the whole call if it doesn't have other
9689 (pass_dse::execute): Adjust.
9691 2021-05-10 Martin Liska <mliska@suse.cz>
9693 * Makefile.in: Add missing genversion rule.
9695 2021-05-10 Alex Coplan <alex.coplan@arm.com>
9698 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
9699 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
9701 2021-05-10 Martin Liska <mliska@suse.cz>
9703 * builtins.c (is_builtin_name): Use startswith
9704 function instead of strncmp.
9705 * collect2.c (main): Likewise.
9706 (has_lto_section): Likewise.
9707 (scan_libraries): Likewise.
9708 * coverage.c (coverage_checksum_string): Likewise.
9709 (coverage_init): Likewise.
9710 * dwarf2out.c (is_cxx): Likewise.
9711 (gen_compile_unit_die): Likewise.
9712 * gcc-ar.c (main): Likewise.
9713 * gcc.c (init_spec): Likewise.
9714 (read_specs): Likewise.
9715 (execute): Likewise.
9716 (check_live_switch): Likewise.
9717 * genattrtab.c (write_attr_case): Likewise.
9718 (IS_ATTR_GROUP): Likewise.
9719 * gencfn-macros.c (main): Likewise.
9720 * gengtype.c (type_for_name): Likewise.
9721 (gen_rtx_next): Likewise.
9722 (get_file_langdir): Likewise.
9723 (write_local): Likewise.
9724 * genmatch.c (get_operator): Likewise.
9725 (get_operand_type): Likewise.
9726 (expr::gen_transform): Likewise.
9727 * genoutput.c (validate_optab_operands): Likewise.
9728 * incpath.c (add_sysroot_to_chain): Likewise.
9729 * langhooks.c (lang_GNU_C): Likewise.
9730 (lang_GNU_CXX): Likewise.
9731 (lang_GNU_Fortran): Likewise.
9732 (lang_GNU_OBJC): Likewise.
9733 * lto-wrapper.c (run_gcc): Likewise.
9734 * omp-general.c (omp_max_simt_vf): Likewise.
9735 * omp-low.c (omp_runtime_api_call): Likewise.
9736 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
9737 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
9738 * real.c (real_from_string): Likewise.
9739 * selftest.c (assert_str_startswith): Likewise.
9740 * timevar.c (timer::validate_phases): Likewise.
9741 * tree.c (get_file_function_name): Likewise.
9742 * ubsan.c (ubsan_use_new_style_p): Likewise.
9743 * varasm.c (default_function_rodata_section): Likewise.
9744 (incorporeal_function_p): Likewise.
9745 (default_section_type_flags): Likewise.
9746 * system.h (startswith): Define startswith.
9748 2021-05-10 Martin Liska <mliska@suse.cz>
9750 * bitmap.h (class auto_bitmap): Remove
9751 __cplusplus >= 201103.
9752 * config/aarch64/aarch64.c: Likewise.
9753 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
9755 * sbitmap.h: Likewise.
9757 2021-05-10 Martin Liska <mliska@suse.cz>
9759 * Makefile.in: Rename gcov-iov to genversion and depend
9760 on version.h (instead of gcov-iov.h).
9761 * gcov-io.h: Include version.h instread of gcov-iov.h.
9762 * gengtype-state.c (read_state_version): Likewise.
9763 * gcov-iov.c: Moved to...
9764 * genversion.c: ...here.
9765 * lto-streamer.h (LTO_major_version): Define it with
9767 * version.c: Removed.
9768 * version.h: Removed.
9770 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9772 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
9773 * config/arc/simdext.md (VCT): Add predicates for iterator
9777 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
9778 (<voptab>v2si3): New patterns.
9780 (reduc_plus_scal_v4hi): Likewise.
9781 (reduc_plus_scal_v2si): Likewise.
9782 (vec_duplicatev2si): Likewise.
9783 (vec_duplicatev4hi): Likewise.
9785 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9787 * config/arc/simdext.md: Format and cleanup file.
9789 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9791 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
9792 only when munaligned-access option is on.
9793 (movmisalign<mode>): Likewise.
9795 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9797 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
9799 * config/arc/arc.c (arc_reorg): Remove underscore from string.
9801 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9803 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9804 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
9805 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
9809 (clzsi2): Use fls instruction when available.
9810 (arc_clzsi2): Likewise.
9812 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9814 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
9816 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9818 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
9820 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9822 PR middle-end/100467
9823 * toplev.c (compile_file): Call insn_locations_init before
9824 targetm.asm_out.code_end.
9826 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9829 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9831 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
9833 2021-05-07 Jakub Jelinek <jakub@redhat.com>
9834 Andrew Stubbs <amd@codesourcery.com>
9837 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
9838 emit_move_insn operands.
9840 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
9842 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
9843 location for the outgoing edges of an empty block.
9844 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
9845 type by means of the get_array_descr_info langhook, if it is set and
9846 returns true. Remove obsolete code dealing with unnamed subtypes.
9848 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9850 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
9851 (sbr_vector): Renamed from ssa_block_cache.
9852 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
9853 (ssa_block_ranges::~ssa_block_ranges): Remove.
9854 (sbr_vector::set_bb_range): Use varying and undefined cached values.
9855 (ssa_block_ranges::set_bb_varying): Remove.
9856 (sbr_vector::get_bb_range): Adjust assert.
9857 (sbr_vector::bb_range_p): Adjust assert.
9858 (~block_range_cache): No freeing loop required.
9859 (block_range_cache::get_block_ranges): Remove.
9860 (block_range_cache::set_bb_range): Inline get_block_ranges.
9861 (block_range_cache::set_bb_varying): Remove.
9862 * gimple-range-cache.h (set_bb_varying): Remove prototype.
9863 * value-range.h (irange_allocator::get_memory): New.
9865 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9867 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
9868 dominator tree is available and requested.
9869 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
9870 (ranger_cache::fill_block_cache): Don't search dom tree here either.
9871 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
9873 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9875 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
9876 only PHI nodes better.
9878 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9880 * gimple-range-edge.h (gimple_outgoing_range): Rename from
9882 (gcond_edge_range): Export prototype.
9883 * gimple-range-edge.cc (gcond_edge_range): New.
9884 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
9885 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
9887 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9889 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
9890 default range into a temp and allocate only what is needed.
9892 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9894 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
9896 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9898 * gimple-range.h (gimple_range_global): Pick up parameter initial
9899 values, and use-before defined locals are UNDEFINED.
9901 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
9903 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
9905 * tree.h (reverse_storage_order_for_component_p): Return false if
9906 the type is a pointer.
9908 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9910 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
9912 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
9915 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
9916 Handle V8QI, V4HI and V2SI modes.
9917 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
9918 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
9919 * config/i386/i386.md (unspec): ... here.
9921 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
9922 Tom de Vries <tdevries@suse.de>
9924 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
9925 a truth_value_p reduction variable is nonintegral.
9927 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
9930 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
9931 Return false for mode sizes < 16.
9933 2021-05-07 Jakub Jelinek <jakub@redhat.com>
9936 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
9938 2021-05-06 Martin Jambor <mjambor@suse.cz>
9940 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
9941 when there is no function summary.
9942 (ipa_sra_summarize_function): produce edge summaries even when
9945 2021-05-06 Tom Tromey <tom@tromey.com>
9947 * godump.c (string_hash_eq): Remove.
9948 (go_finish): Use htab_eq_string.
9950 2021-05-06 Tom Tromey <tom@tromey.com>
9952 * gengtype-state.c (read_state): Use htab_eq_string.
9953 (string_eq): Remove.
9955 2021-05-06 Tom Tromey <tom@tromey.com>
9957 * gensupport.c (htab_eq_string): Remove.
9959 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
9962 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
9963 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
9964 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
9965 set_ignored_loc callbacks.
9966 * debug.c (do_nothing_debug_hooks): Likewise.
9967 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9968 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
9969 (in_text_section_p, last_text_label, last_cold_label,
9970 switch_text_ranges, switch_cold_ranges): New data items.
9971 (dwarf2out_note_section_used): Remove.
9972 (dwarf2out_begin_prologue): Set fde->ignored_debug and
9974 (mark_ignored_debug_section): New helper function.
9975 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
9976 mark_ignored_debug_section.
9977 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
9978 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
9979 (size_of_aranges): Adjust formula for multi-part text ranges size.
9980 (output_aranges): Output multi-part text ranges.
9981 (dwarf2out_set_ignored_loc): New callback function.
9982 (dwarf2out_finish): Output multi-part text ranges.
9983 (dwarf2out_c_finalize): Clear new data items.
9984 * final.c (final_start_function_1): Call set_ignored_loc callback.
9985 (final_scan_insn_1): Likewise.
9986 * ggc-page.c (gt_ggc_mx): New helper function.
9987 * stringpool.c (gt_pch_nx): Likewise.
9989 2021-05-06 Richard Biener <rguenther@suse.de>
9991 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
9992 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
9993 (TV_TREE_INTO_SSA): New.
9994 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
9995 (rewrite_blocks): Likewise.
9996 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
9998 2021-05-06 Jakub Jelinek <jakub@redhat.com>
10000 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
10001 abs_replacement, xor_replacement,
10002 cond_removal_in_popcount_clz_ctz_pattern,
10003 replace_phi_edge_with_variable): Change type of phi argument from
10004 gimple * to gphi *.
10006 2021-05-06 Richard Biener <rguenther@suse.de>
10008 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
10009 Output an opt-info message.
10010 (do_split_loop_on_cond): Likewise.
10011 (tree_ssa_split_loops): Update SSA form here.
10013 2021-05-06 Richard Biener <rguenther@suse.de>
10015 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
10016 return variable removal.
10018 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
10020 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
10021 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
10022 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
10024 * config/s390/s390.c (s390_const_operand_ok): Remove unused
10027 2021-05-06 Jakub Jelinek <jakub@redhat.com>
10029 PR tree-optimization/94589
10030 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
10031 spaceship_replacement.
10032 (cond_only_block_p, spaceship_replacement): New functions.
10034 2021-05-06 Richard Biener <rguenther@suse.de>
10037 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
10038 dealing with a debug use and only query existing addresses
10040 (lower_emutls_1): Avoid splitting out addresses for debug
10041 stmts, reset the debug stmt when we fail to find existing
10043 (lower_emutls_phi_arg): Set wi.stmt.
10045 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
10048 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
10049 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
10050 (stack_protect_test): Use cbranch helper.
10052 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
10055 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
10056 always return the establisher frame for __builtin_frame_address (0).
10058 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
10061 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
10062 (ix86_cpu_model_var): Likewise.
10063 (ix86_cpu_features2_type_node): Likewise.
10064 (ix86_cpu_features2_var): Likewise.
10065 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
10068 2021-05-05 Martin Sebor <msebor@redhat.com>
10070 * passes.def (pass_warn_printf): Run after SSA.
10072 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10074 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
10075 * config/arm/predicates.md (minus_one_operand): New predicate.
10077 2021-05-05 Jeff Law <jlaw@tachyum.com>
10079 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
10081 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
10083 PR rtl-optimization/100263
10084 * postreload.c (move2add_valid_value_p): Ensure register can
10087 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
10089 PR rtl-optimization/100411
10090 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
10091 and beginning of function markers.
10093 2021-05-05 Jeff Law <jlaw@tachyum.com>
10095 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
10096 * config/cr16/cr16.c (notice_update_cc): Remove.
10097 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
10099 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
10102 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
10103 Handle V8QI, V4HI and V2SI modes.
10104 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
10105 (ix86_build_signbit_mask): Ditto.
10106 * config/i386/mmx.md (MMXMODE14): New mode iterator.
10107 (<smaxmin:code><MMXMODE14:mode>3): New expander.
10108 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
10109 (<umaxmin:code><MMXMODE24:mode>3): New expander.
10110 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
10111 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
10112 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10113 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10114 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10115 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10117 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
10119 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
10120 not expand the VALUE_EXPR of variables put in the non-local frame.
10121 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
10122 to be ignored for debug info, ensure its variable offsets are not.
10124 2021-05-05 Richard Biener <rguenther@suse.de>
10126 PR tree-optimization/79333
10127 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
10128 Fold stmt following SSA edges.
10130 2021-05-05 Richard Biener <rguenther@suse.de>
10132 PR middle-end/100394
10133 * calls.c (expand_call): Preserve possibly throwing calls.
10134 * cfgexpand.c (expand_call_stmt): When a call can throw signal
10135 RTL expansion there are side-effects.
10136 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
10137 mark all possibly throwing stmts necessary unless we can elide
10139 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
10140 -fdelete-dead-exceptions.
10141 * tree.h (DECL_PURE_P): Add note about exceptions.
10143 2021-05-05 Alexandre Oliva <oliva@adacore.com>
10145 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
10148 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
10150 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10151 get_fnname_from_decl for name of thunk.
10152 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
10153 and ASM_OUTPUT_LABEL.
10154 (rs6000_xcoff_declare_function_name): Use assemble_name and
10156 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
10157 (rs6000_xcoff_encode_section_info): Don't add mapping class
10158 for aliases. Always add [DS] mapping class to primary
10160 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
10162 2021-05-04 Martin Sebor <msebor@redhat.com>
10164 PR middle-end/100307
10165 * builtins.c (compute_objsize_r): Clear base0 for pointers.
10167 2021-05-04 Jeff Law <jlaw@tachyum.com>
10169 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
10171 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
10173 * caller-save.c: Remove CC0.
10174 * cfgcleanup.c: Remove CC0.
10175 * cfgrtl.c: Remove CC0.
10176 * combine.c: Remove CC0.
10177 * compare-elim.c: Remove CC0.
10178 * conditions.h: Remove CC0.
10179 * config/h8300/h8300.h: Remove CC0.
10180 * config/h8300/h8300-protos.h: Remove CC0.
10181 * config/h8300/peepholes.md: Remove CC0.
10182 * config/i386/x86-tune-sched.c: Remove CC0.
10183 * config/m68k/m68k.c: Remove CC0.
10184 * config/rl78/rl78.c: Remove CC0.
10185 * config/sparc/sparc.c: Remove CC0.
10186 * config/xtensa/xtensa.c: Remove CC0.
10187 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
10188 RTL where that is used as a placeholder only.
10189 * cprop.c: Remove CC0.
10190 * cse.c: Remove CC0.
10191 * cselib.c: Remove CC0.
10192 * df-problems.c: Remove CC0.
10193 * df-scan.c: Remove CC0.
10194 * doc/md.texi: Remove CC0. Adjust an example.
10195 * doc/rtl.texi: Remove CC0. Adjust an example.
10196 * doc/tm.texi: Regenerate.
10197 * doc/tm.texi.in: Remove CC0.
10198 * emit-rtl.c: Remove CC0.
10199 * final.c: Remove CC0.
10200 * fwprop.c: Remove CC0.
10201 * gcse-common.c: Remove CC0.
10202 * gcse.c: Remove CC0.
10203 * genattrtab.c: Remove CC0.
10204 * genconfig.c: Remove CC0.
10205 * genemit.c: Remove CC0.
10206 * genextract.c: Remove CC0.
10207 * gengenrtl.c: Remove CC0.
10208 * genrecog.c: Remove CC0.
10209 * haifa-sched.c: Remove CC0.
10210 * ifcvt.c: Remove CC0.
10211 * ira-costs.c: Remove CC0.
10212 * ira.c: Remove CC0.
10213 * jump.c: Remove CC0.
10214 * loop-invariant.c: Remove CC0.
10215 * lra-constraints.c: Remove CC0.
10216 * lra-eliminations.c: Remove CC0.
10217 * optabs.c: Remove CC0.
10218 * postreload-gcse.c: Remove CC0.
10219 * postreload.c: Remove CC0.
10220 * print-rtl.c: Remove CC0.
10221 * read-rtl-function.c: Remove CC0.
10222 * reg-notes.def: Remove CC0.
10223 * reg-stack.c: Remove CC0.
10224 * reginfo.c: Remove CC0.
10225 * regrename.c: Remove CC0.
10226 * reload.c: Remove CC0.
10227 * reload1.c: Remove CC0.
10228 * reorg.c: Remove CC0.
10229 * resource.c: Remove CC0.
10230 * rtl.c: Remove CC0.
10231 * rtl.def: Remove CC0.
10232 * rtl.h: Remove CC0.
10233 * rtlanal.c: Remove CC0.
10234 * sched-deps.c: Remove CC0.
10235 * sched-rgn.c: Remove CC0.
10236 * shrink-wrap.c: Remove CC0.
10237 * simplify-rtx.c: Remove CC0.
10238 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
10239 CC_STATUS_MDEP, and CC_STATUS.
10240 * target.def: Remove CC0.
10241 * valtrack.c: Remove CC0.
10242 * var-tracking.c: Remove CC0.
10244 2021-05-04 Richard Biener <rguenther@suse.de>
10246 PR tree-optimization/100414
10247 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
10249 (tree_ssa_phiopt_worker): But unconditionally here.
10251 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
10253 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
10254 && and || with floating-point and complex arguments.
10256 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
10258 * tree-inline.c (insert_debug_decl_map): Delete.
10259 (copy_debug_stmt): Minor tweak.
10260 (setup_one_parameter): Do not use a variable if the value is either
10261 a read-only DECL or a non-addressable local variable in the caller.
10262 In this case, insert the debug-only variable in the map manually.
10263 (expand_call_inline): Do not generate a CLOBBER for these values.
10264 * tree-inline.h (debug_map): Minor tweak.
10266 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
10268 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
10269 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
10271 2021-05-04 Richard Biener <rguenther@suse.de>
10273 PR tree-optimization/100329
10274 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
10276 (insert_stmt_after): Assert we're not running into asm goto.
10278 2021-05-04 Richard Biener <rguenther@suse.de>
10280 PR tree-optimization/100398
10281 * tree-ssa-dse.c (pass_dse::execute): Preserve control
10284 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10286 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
10288 2021-05-04 Alexandre Oliva <oliva@adacore.com>
10290 * builtins.c (try_store_by_multiple_pieces): New.
10291 (expand_builtin_memset_args): Use it. If target_char_cast
10292 fails, proceed as for non-constant val. Pass len's ctz to...
10293 * expr.c (clear_storage_hints): ... this. Try store by
10294 multiple pieces after setmem.
10295 (clear_storage): Adjust.
10296 * expr.h (clear_storage_hints): Likewise.
10297 (try_store_by_multiple_pieces): Declare.
10298 * passes.def: Replace the last copy_prop with ccp.
10300 2021-05-03 Tom de Vries <tdevries@suse.de>
10303 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
10306 2021-05-03 Richard Biener <rguenther@suse.de>
10308 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
10310 2021-05-03 Richard Biener <rguenther@suse.de>
10312 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
10313 (dse_dom_walker): Remove.
10314 (dse_dom_walker::dse_optimize_stmt): Rename...
10315 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
10316 (dse_dom_walker::before_dom_children): Inline ...
10317 (pass_dse::execute): ... here. Perform a reverse program
10320 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
10323 * configure: Regenerated.
10325 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
10328 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
10329 (s390_md_asm_adjust): Handle hard registers.
10331 2021-05-03 Jakub Jelinek <jakub@redhat.com>
10333 PR tree-optimization/100382
10334 * tree-ssa-dse.c: Include tree-eh.h.
10335 (dse_dom_walker::before_dom_children): Don't remove stmts if
10336 stmt_unremovable_because_of_non_call_eh_p is true.
10338 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
10340 * varasm.c (compute_reloc_for_var): Split out from...
10341 (get_variable_section): Use it.
10342 * output.h (compute_reloc_for_var): Declare.
10343 * config/rs6000/rs6000-protos.h
10344 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
10346 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
10347 Don't append storage mapping class to symbol.
10348 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
10349 Don't convert TLS BSS to common.
10350 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
10351 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
10353 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
10355 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
10356 If align is 0 from TLS class, use the same rules as varasm.c
10357 If not common, switch to BSS section manually.
10358 If common, emit appropriate comm or lcomm directive.
10359 (rs6000_xcoff_encode_section_info): Add logic to append all
10360 storage mapping classes.
10361 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
10362 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10363 rs6000_xcoff_asm_output_aligned_decl_common.
10364 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10365 rs6000_xcoff_asm_output_aligned_decl_common.
10366 (ASM_OUTPUT_TLS_COMMON): Use
10367 rs6000_xcoff_asm_output_aligned_decl_common.
10369 2021-05-02 Jakub Jelinek <jakub@redhat.com>
10372 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
10373 as first argument of pseudo_node_t constructors.
10375 2021-05-02 Jakub Jelinek <jakub@redhat.com>
10378 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
10380 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
10382 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
10383 (gt_pch_nx (int_range<1> *&)): New.
10384 (gt_ggc_mx (int_range<1> *&)): New.
10385 * value-range.h (class irange): Add GTY support for
10388 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
10390 * doc/options.texi (Negative): Change either or to both and.
10392 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
10394 * config/aarch64/aarch64-simd-builtins.def: Add
10395 float_ml[as][q]_laneq builtin generator macros.
10396 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
10397 (aarch64_float_mla_laneq<mode>): Define.
10398 (aarch64_float_mls_laneq<mode>): Define.
10399 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
10400 instead of GCC vector extensions.
10401 (vmlaq_laneq_f32): Likewise.
10402 (vmls_laneq_f32): Likewise.
10403 (vmlsq_laneq_f32): Likewise.
10405 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
10407 * config/aarch64/aarch64-simd-builtins.def: Add
10408 float_ml[as]_lane builtin generator macros.
10409 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
10411 (mul_lane<mode>3): This, and re-order arguments.
10412 (aarch64_float_mla_lane<mode>): Define.
10413 (aarch64_float_mls_lane<mode>): Define.
10414 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
10415 instead of GCC vector extensions.
10416 (vmlaq_lane_f32): Likewise.
10417 (vmls_lane_f32): Likewise.
10418 (vmlsq_lane_f32): Likewise.
10420 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
10422 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
10423 builtin generator macros.
10424 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
10426 (aarch64_float_mls<mode>): Define.
10427 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
10428 instead of relying on GCC vector extensions.
10429 (vmla_f64): Likewise.
10430 (vmlaq_f32): Likewise.
10431 (vmlaq_f64): Likewise.
10432 (vmls_f32): Likewise.
10433 (vmls_f64): Likewise.
10434 (vmlsq_f32): Likewise.
10435 (vmlsq_f64): Likewise.
10436 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
10438 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
10440 * config/aarch64/aarch64-simd-builtins.def: Add
10441 float_ml[as]_n_builtin generator macros.
10442 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
10444 (mul_n<mode>3): This, and re-order arguments.
10445 (aarch64_float_mla_n<mode>): Define.
10446 (aarch64_float_mls_n<mode>): Define.
10447 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
10448 instead of inline asm.
10449 (vmlaq_n_f32): Likewise.
10450 (vmls_n_f32): Likewise.
10451 (vmlsq_n_f32): Likewise.
10453 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
10455 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
10456 builtin generator macros.
10457 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
10458 (aarch64_pmull_hiv16qi_insn): Define.
10459 (aarch64_pmull_hiv16qi): Define.
10460 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
10461 instead of inline asm.
10462 (vmull_p8): Likewise.
10464 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
10466 * config/avr/avr.md: Adjust peepholes to match and
10467 generate parallels with clobber of REG_CC.
10468 (mov<mode>_insn): Rename to mov<mode>_insn_split.
10469 (*mov<mode>_insn): Rename to mov<mode>_insn.
10471 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
10473 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
10474 for VAR_DECLs if -fdata-sections enabled.
10476 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
10478 PR bootstrap/100327
10479 * config/rs6000/rs6000.c
10480 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
10481 (rs6000_libgcc_floating_mode_supported_p): New target hook.
10483 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
10485 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
10487 (class back_threader_registry): ...to here...
10488 (class back_threader_profitability): ...and here...
10489 (thread_jumps::thread_through_all_blocks): Remove argument.
10490 (back_threader_registry::back_threader_registry): New.
10491 (back_threader_registry::~back_threader_registry): New.
10492 (back_threader_registry::thread_through_all_blocks): New.
10493 (thread_jumps::profitable_jump_thread_path): Move from here...
10494 (back_threader_profitability::profitable_path_p): ...to here.
10495 (thread_jumps::find_taken_edge): New.
10496 (thread_jumps::convert_and_register_current_path): Move...
10497 (back_threader_registry::register_path): ...to here.
10498 (thread_jumps::register_jump_thread_path_if_profitable): Move...
10499 (thread_jumps::maybe_register_path): ...to here.
10500 (thread_jumps::handle_phi): Call find_taken_edge and
10501 maybe_register_path.
10502 (thread_jumps::handle_assignment): Same.
10503 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
10504 tree argument to handle_phi and handle_assignment.
10505 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
10506 set of m_speed_p and m_max_threaded_paths.
10507 (pass_thread_jumps::execute): Remove second argument from
10508 find_jump_threads_backwards.
10509 (pass_early_thread_jumps::execute): Same.
10511 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
10513 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
10514 (class dom_opt_dom_walker): Initialize some class variables.
10515 (pass_dominator::execute): Pass evrp_range_analyzer and
10516 dom_jump_threader_simplifier to dom_opt_dom_walker.
10517 Adjust for some functions moving into classes.
10518 (simplify_stmt_for_jump_threading): Adjust and move to...
10519 (jump_threader_simplifier::simplify): ...here.
10520 (dom_opt_dom_walker::before_dom_children): Adjust for
10521 m_evrp_range_analyzer.
10522 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
10523 (test_for_singularity): Place in dom_opt_dom_walker class.
10524 (dom_opt_dom_walker::optimize_stmt): The argument
10525 evrp_range_analyzer is now a class field.
10526 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
10527 (thread_jumps::thread_through_all_blocks): New.
10528 (thread_jumps::convert_and_register_current_path): Use m_registry.
10529 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
10530 being in the threader class.
10531 (pass_early_thread_jumps::execute): Same.
10532 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
10533 (jump_threader::jump_threader): ...here.
10534 (threadedge_finalize_values): Move...
10535 (jump_threader::~jump_threader): ...here.
10536 (jump_threader::remove_jump_threads_including): New.
10537 (jump_threader::thread_through_all_blocks): New.
10538 (record_temporary_equivalences_from_phis): Move...
10539 (jump_threader::record_temporary_equivalences_from_phis): ...here.
10540 (record_temporary_equivalences_from_stmts_at_dest): Move...
10541 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
10543 (simplify_control_stmt_condition_1): Move to jump_threader class.
10544 (simplify_control_stmt_condition): Move...
10545 (jump_threader::simplify_control_stmt_condition): ...here.
10546 (thread_around_empty_blocks): Move...
10547 (jump_threader::thread_around_empty_blocks): ...here.
10548 (thread_through_normal_block): Move...
10549 (jump_threader::thread_through_normal_block): ...here.
10550 (thread_across_edge): Move...
10551 (jump_threader::thread_across_edge): ...here.
10552 (thread_outgoing_edges): Move...
10553 (jump_threader::thread_outgoing_edges): ...here.
10554 * tree-ssa-threadedge.h: Move externally facing functings...
10555 (class jump_threader): ...here...
10556 (class jump_threader_simplifier): ...and here.
10557 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
10558 (jump_thread_path_allocator::jump_thread_path_allocator): New.
10559 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
10560 (jump_thread_path_allocator::allocate_thread_edge): New.
10561 (jump_thread_path_allocator::allocate_thread_path): New.
10562 (jump_thread_path_registry::jump_thread_path_registry): New.
10563 (jump_thread_path_registry::~jump_thread_path_registry): New.
10564 (jump_thread_path_registry::allocate_thread_edge): New.
10565 (jump_thread_path_registry::allocate_thread_path): New.
10566 (dump_jump_thread_path): Make extern.
10567 (debug (const vec<jump_thread_edge *> &path)): New.
10568 (struct removed_edges): Move to tree-ssa-threadupdate.h.
10569 (struct thread_stats_d): Remove.
10570 (remove_ctrl_stmt_and_useless_edges): Make static.
10571 (lookup_redirection_data): Move...
10572 (jump_thread_path_registry::lookup_redirection_data): ...here.
10573 (ssa_redirect_edges): Make static.
10574 (thread_block_1): Move...
10575 (jump_thread_path_registry::thread_block_1): ...here.
10576 (thread_block): Move...
10577 (jump_thread_path_registry::thread_block): ...here.
10578 (thread_through_loop_header): Move...
10579 (jump_thread_path_registry::thread_through_loop_header): ...here.
10580 (mark_threaded_blocks): Move...
10581 (jump_thread_path_registry::mark_threaded_blocks): ...here.
10582 (debug_path): Move...
10583 (jump_thread_path_registry::debug_path): ...here.
10584 (debug_all_paths): Move...
10585 (jump_thread_path_registry::dump): ..here.
10586 (rewire_first_differing_edge): Move...
10587 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
10588 (adjust_paths_after_duplication): Move...
10589 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
10590 (duplicate_thread_path): Move...
10591 (jump_thread_path_registry::duplicate_thread_path): ..here.
10592 (remove_jump_threads_including): Move...
10593 (jump_thread_path_registry::remove_jump_threads_including): ...here.
10594 (thread_through_all_blocks): Move to...
10595 (jump_thread_path_registry::thread_through_all_blocks): ...here.
10596 (delete_jump_thread_path): Remove.
10597 (register_jump_thread): Move...
10598 (jump_thread_path_registry::register_jump_thread): ...here.
10599 * tree-ssa-threadupdate.h: Move externally facing functions...
10600 (class jump_thread_path_allocator): ...here...
10601 (class jump_thread_path_registry): ...and here.
10602 (thread_through_all_blocks): Remove.
10603 (struct removed_edges): New.
10604 (register_jump_thread): Remove.
10605 (remove_jump_threads_including): Remove.
10606 (delete_jump_thread_path): Remove.
10607 (remove_ctrl_stmt_and_useless_edges): Remove.
10608 (free_dom_edge_info): New prototype.
10609 * tree-vrp.c: Remove x_vr_values hack.
10610 (class vrp_jump_threader_simplifier): New.
10611 (vrp_jump_threader_simplifier::simplify): New.
10612 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
10613 Remove m_dummy_cond.
10614 Instantiate m_simplifier and m_threader.
10615 (vrp_jump_threader::thread_through_all_blocks): New.
10616 (vrp_jump_threader::simplify_stmt): Remove.
10617 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
10618 Remove x_vr_values hack.
10619 (execute_vrp): Adjust for thread_through_all_blocks being in a
10622 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
10624 * genflags.c (gen_insn): Print failed expansion string.
10626 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
10628 * expr.c (alignment_for_piecewise_move): Call mode_for_size
10629 without limit to MAX_FIXED_MODE_SIZE.
10631 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
10633 PR middle-end/90773
10634 * builtins.c (builtin_memset_gen_str): Don't use return from
10635 simplify_gen_subreg.
10637 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
10640 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
10641 (*addsi3_carry_zext_0r): Ditto.
10642 (*sub<mode>3_carry_0): Ditto.
10643 (*subsi3_carry_zext_0r): Ditto.
10644 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
10646 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
10647 Also consider ix86_carry_flag_unset_operator to calculate
10648 the cost of adc/sbb insn.
10650 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
10652 PR rtl-optimization/100225
10653 PR rtl-optimization/84878
10654 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
10655 where we have an instruction which touches (writes) any hard
10656 register from df->regular_block_artificial_uses set.
10657 Allow not-single-set instruction only right before basic block
10660 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
10662 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
10664 2021-04-30 LevyHsu <admin@levyhsu.com>
10666 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
10667 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
10668 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
10669 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
10671 2021-04-29 Alexandre Oliva <oliva@adacore.com>
10673 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
10675 2021-04-29 Alexandre Oliva <oliva@adacore.com>
10677 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
10678 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
10679 * config/i386/i386.c: Adjust.
10680 * config/i386/i386.md: Adjust.
10681 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
10682 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10683 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10684 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10685 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10686 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10687 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10688 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10689 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10690 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10691 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
10693 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10695 * config/i386/i386-expand.c (ix86_expand_int_compare):
10696 Swap operands of GTU and LEU comparison to emit carry flag comparison.
10697 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
10698 predicate to allow more combine opportunities with memory operands.
10699 (*sub<mode>3_carry_0): Ditto.
10701 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
10703 PR rtl-optimization/100303
10704 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
10705 boolean that indicates whether the use will only be used in
10706 debug instructions. Treat it in the same way that existing
10707 cross-EBB debug references would be handled if so.
10708 (function_info::make_uses_available): Likewise.
10709 * rtl-ssa/functions.h (function_info::make_uses_available): Update
10710 prototype accordingly.
10711 (function_info::make_uses_available): Likewise.
10712 * fwprop.c (try_fwprop_subst): Update call accordingly.
10714 2021-04-29 Jeff Law <jlaw@tachyum.com>
10716 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
10719 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10720 Richard Biener <rguenther@suse.de>
10723 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
10724 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
10725 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
10726 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
10727 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
10728 to PURE_ARGS category.
10729 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10730 Handle PURE_ARGS category.
10731 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
10733 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
10735 * configure.ac: Check for the presence of sys/locking.h header and
10736 for whether _LK_LOCK is supported by _locking.
10737 * configure: Regenerate.
10738 * config.in: Likewise.
10739 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
10740 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
10741 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
10743 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10745 * config/i386/predicates.md (fcmov_comparison_operator):
10746 Do not check for trivial FP comparison operator.
10747 <case GEU, case LTU>: Allow CCGZmode.
10748 <case GTU, case LEU>: Do not allow CCCmode.
10749 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
10750 (ix86_carry_flag_operator): Match only LTU and UNLT code.
10751 Do not check for trivial FP comparison operator. Allow CCGZmode.
10753 2021-04-29 Tom de Vries <tdevries@suse.de>
10755 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
10756 fd->loop.step by either step or orig_step.
10758 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
10760 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
10761 (load_got_register): Do the PIC dance here.
10762 (sparc_legitimize_tls_address): Simplify.
10763 (sparc_emit_probe_stack_range): Likewise.
10764 (sparc32_initialize_trampoline): Likewise.
10765 (sparc64_initialize_trampoline): Likewise.
10766 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
10767 (probe_stack_range<P:mode>): Likewise.
10768 (flush<P:mode>): Likewise.
10769 (tgd_hi22<P:mode>): Likewise.
10770 (tgd_lo10<P:mode>): Likewise.
10771 (tgd_add<P:mode>): Likewise.
10772 (tgd_call<P:mode>): Likewise.
10773 (tldm_hi22<P:mode>): Likewise.
10774 (tldm_lo10<P:mode>): Likewise.
10775 (tldm_add<P:mode>): Likewise.
10776 (tldm_call<P:mode>): Likewise.
10777 (tldo_hix22<P:mode>): Likewise.
10778 (tldo_lox10<P:mode>): Likewise.
10779 (tldo_add<P:mode>): Likewise.
10780 (tie_hi22<P:mode>): Likewise.
10781 (tie_lo10<P:mode>): Likewise.
10782 (tie_add<P:mode>): Likewise.
10783 (tle_hix22<P:mode>): Likewise.
10784 (tle_lox10<P:mode>): Likewise.
10785 (stack_protect_setsi): Rename to...
10786 (stack_protect_set32): ...this.
10787 (stack_protect_setdi): Rename to...
10788 (stack_protect_set64): ...this.
10789 (stack_protect_set): Adjust calls to above.
10790 (stack_protect_testsi): Rename to...
10791 (stack_protect_test32): ...this.
10792 (stack_protect_testdi): Rename to...
10793 (stack_protect_test64): ...this.
10794 (stack_protect_test): Adjust calls to above.
10796 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
10798 PR middle-end/90773
10799 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
10800 (builtin_strncpy_read_str): Likewise.
10801 (builtin_memset_read_str): Add an argument for the previous RTL
10802 information and generate the new RTL from the previous RTL info.
10803 (builtin_memset_gen_str): Likewise.
10804 * builtins.h (builtin_strncpy_read_str): Update the prototype.
10805 (builtin_memset_read_str): Likewise.
10806 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
10807 returns true, round up size and alignment to the widest integer
10808 mode for maximum size.
10809 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
10810 and pass it to m_constfn.
10811 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
10812 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
10813 initialize m_push. Initialize m_overlap_op_by_pieces with
10814 targetm.overlap_op_by_pieces_p ().
10815 (op_by_pieces_d::run): Pass the previous RTL information to
10816 pieces_addr::adjust and generate overlapping operations if
10817 m_overlap_op_by_pieces is true.
10819 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
10821 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
10823 (can_store_by_pieces): Use by_pieces_constfn on constfun.
10824 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
10825 for op_by_pieces_d change.
10826 (clear_by_pieces_1): Add a dummy argument.
10827 (clear_by_pieces): Updated for op_by_pieces_d change.
10828 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
10829 (string_cst_read_str): Add a dummy argument.
10830 * expr.h (by_pieces_constfn): Add a dummy argument.
10831 (by_pieces_prev): New.
10832 * target.def (overlap_op_by_pieces_p): New target hook.
10833 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
10834 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
10835 * doc/tm.texi: Regenerated.
10837 2021-04-29 Richard Biener <rguenther@suse.de>
10839 PR tree-optimization/100253
10840 * tree-vect-stmts.c (vectorizable_load): Do not assume
10841 element alignment when DR_MISALIGNMENT is -1.
10842 (vectorizable_store): Likewise.
10844 2021-04-29 Jakub Jelinek <jakub@redhat.com>
10847 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
10848 absu_hwi instead of abs_hwi.
10850 2021-04-29 Richard Biener <rguenther@suse.de>
10852 PR middle-end/38474
10853 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
10854 forwarding when indirect forwarding through ESCAPED
10857 2021-04-29 Tom de Vries <tdevries@suse.de>
10860 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
10861 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
10862 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
10863 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
10865 2021-04-29 Richard Biener <rguenther@suse.de>
10867 PR tree-optimization/99912
10868 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
10869 (dse_dom_walker::todo): Likewise.
10870 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
10872 (dse_dom_walker::before_dom_children): Remove trivially
10873 dead SSA defs and schedule CFG cleanup if we removed all
10875 (pass_dse::execute): Get TODO as computed by the DOM walker
10876 and return it. Wipe dominator info earlier.
10878 2021-04-29 Richard Biener <rguenther@suse.de>
10881 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
10882 Track blocks to cleanup EH in new m_need_eh_cleanup.
10883 (ipcp_modif_dom_walker::cleanup_eh): New.
10884 (ipcp_transform_function): Release dominator info before
10887 2021-04-29 Martin Sebor <msebor@redhat.com>
10889 PR middle-end/100250
10890 * attribs.c (attr_access::array_as_string): Avoid dereferencing
10891 a pointer when it's null.
10893 2021-04-29 Martin Sebor <msebor@redhat.com>
10895 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
10896 * ipa-free-lang-data.cc: New file.
10897 * tree.c: Move pass free_lang_data to file above.
10898 (build_array_type_1): Declare extern.
10899 * tree.h (build_array_type_1): Declare.
10901 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10903 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
10904 make consistent with updated RTL pattern.
10905 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
10906 Implement using ss_truncate and us_truncate rather than
10908 * config/aarch64/iterators.md: Remove redundant unspecs and
10909 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
10911 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10913 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
10914 attributes consistent with those defined in arm_neon.h.
10916 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10918 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
10919 attributes consistent with those defined in arm_neon.h.
10921 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10923 * config/aarch64/aarch64-simd-builtins.def: Add
10924 float_trunc_rodd builtin generator macros.
10925 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
10927 (aarch64_float_trunc_rodd_lo_v2sf): Define.
10928 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
10929 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
10930 (aarch64_float_trunc_rodd_hi_v4sf): Define.
10931 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
10932 instead of inline asm.
10933 (vcvtx_high_f32_f64): Likewise.
10934 (vcvtxd_f32_f64): Likewise.
10935 * config/aarch64/iterators.md: Add FCVTXN unspec.
10937 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10939 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
10941 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
10943 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
10944 instead of inline asm.
10945 (vqtbx1_u8): Likewise.
10946 (vqtbx1_p8): Likewise.
10947 (vqtbx1q_s8): Likewise.
10948 (vqtbx1q_u8): Likewise.
10949 (vqtbx1q_p8): Likewise.
10950 (vtbx2_s8): Likewise.
10951 (vtbx2_u8): Likewise.
10952 (vtbx2_p8): Likewise.
10954 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10956 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
10958 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
10959 instead of inline asm.
10960 (vqtbl1_s8): Likewise.
10961 (vqtbl1_u8): Likewise.
10962 (vqtbl1q_p8): Likewise.
10963 (vqtbl1q_s8): Likewise.
10964 (vqtbl1q_u8): Likewise.
10965 (vtbl1_s8): Likewise.
10966 (vtbl1_u8): Likewise.
10967 (vtbl1_p8): Likewise.
10968 (vtbl2_s8): Likewise.
10969 (vtbl2_u8): Likewise.
10970 (vtbl2_p8): Likewise.
10972 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10974 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
10975 ssri_n buitin generator macro.
10976 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
10977 instead of inline asm.
10978 (vsri_n_p16): Likewise.
10979 (vsri_n_p64): Likewise.
10980 (vsriq_n_p8): Likewise.
10981 (vsriq_n_p16): Likewise.
10982 (vsriq_n_p64): Likewise.
10984 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10986 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
10987 iterator for polynomial ssli_n builtin generator macro.
10988 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
10989 instead of inline asm.
10990 (vsli_n_p16): Likewise.
10991 (vsliq_n_p8): Likewise.
10992 (vsliq_n_p16): Likewise.
10993 * config/aarch64/iterators.md: Define VALLP mode iterator.
10995 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10997 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
10998 iterator to generate [su]adalp RTL builtins.
10999 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
11000 [su]adalp RTL pattern.
11001 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
11002 instead of inline asm.
11003 (vpadal_u32): Likewise.
11005 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
11007 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
11008 builtin generator macros.
11009 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
11011 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
11012 instead of inline asm.
11013 (vpaddl_s16): Likewise.
11014 (vpaddl_s32): Likewise.
11015 (vpaddl_u8): Likewise.
11016 (vpaddl_u16): Likewise.
11017 (vpaddl_u32): Likewise.
11018 (vpaddlq_s8): Likewise.
11019 (vpaddlq_s16): Likewise.
11020 (vpaddlq_s32): Likewise.
11021 (vpaddlq_u8): Likewise.
11022 (vpaddlq_u16): Likewise.
11023 (vpaddlq_u32): Liwewise.
11024 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
11025 appropriate attributes.
11027 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
11029 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
11030 for aarch64_addp<mode> builtin macro generator.
11031 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
11032 aarch64_addp<mode> RTL pattern.
11033 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
11034 instead of inline asm.
11035 (vpaddq_s16): Likewise.
11036 (vpaddq_s32): Likewise.
11037 (vpaddq_s64): Likewise.
11038 (vpaddq_u8): Likewise.
11039 (vpaddq_u16): Likewise.
11040 (vpaddq_u32): Likewise.
11041 (vpaddq_u64): Likewise.
11043 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
11045 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
11046 builtin generator macros.
11047 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
11049 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
11050 instead of inline asm.
11051 (vqdmulh_n_s32): Likewise.
11052 (vqdmulhq_n_s16): Likewise.
11053 (vqdmulhq_n_s32): Likewise.
11054 (vqrdmulh_n_s16): Likewise.
11055 (vqrdmulh_n_s32): Likewise.
11056 (vqrdmulhq_n_s16): Likewise.
11057 (vqrdmulhq_n_s32): Likewise.
11059 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
11061 * doc/install.texi (--enable-offload-defaulted): Document.
11063 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
11065 * config/avr/avr-dimode.md: Turn existing patterns into
11066 define_insn_and_split style patterns where the splitter
11067 adds a clobber of the condition code register. Drop "cc"
11068 attribute. Add new patterns to match output of
11070 * config/avr/avr-fixed.md: Likewise.
11071 * config/avr/avr.c (cc_reg_rtx): New.
11072 (avr_parallel_insn_from_insns): Adjust insn count
11073 for removal of set of cc0.
11074 (avr_is_casesi_sequence): Likewise.
11075 (avr_casei_sequence_check_operands): Likewise.
11076 (avr_optimize_casesi): Likewise. Also insert
11077 new insns after jump_insn.
11078 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
11079 for removal of set of cc0.
11080 (avr_init_expanders): Initialize cc_reg_rtx.
11081 (avr_regno_reg_class): Handle REG_CC.
11082 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
11083 (avr_notice_update_cc): Remove function.
11084 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
11085 (compare_condition): Adjust for PARALLEL with
11087 (out_shift_with_cnt): Likewise.
11088 (ashlhi3_out): Likewise.
11089 (ashrhi3_out): Likewise.
11090 (lshrhi3_out): Likewise.
11091 (avr_class_max_nregs): Return single reg for REG_CC.
11092 (avr_compare_pattern): Check for REG_CC instead
11094 (avr_reorg_remove_redundant_compare): Likewise.
11095 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
11096 (avr_hard_regno_nregs): Return single reg for REG_CC.
11097 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
11098 (avr_md_asm_adjust): Clobber REG_CC.
11099 (TARGET_HARD_REGNO_NREGS): Define.
11100 (TARGET_CLASS_MAX_NREGS): Define.
11101 (TARGET_MD_ASM_ADJUST): Define.
11102 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
11104 (enum reg_class): Add CC_REG class.
11105 (NOTICE_UPDATE_CC): Remove.
11106 (CC_OVERFLOW_UNUSABLE): Remove.
11107 (CC_NO_CARRY): Remove.
11108 * config/avr/avr.md: Turn existing patterns into
11109 define_insn_and_split style patterns where the splitter
11110 adds a clobber of the condition code register. Drop "cc"
11111 attribute. Add new patterns to match output of
11113 (sez): Remove unused pattern.
11115 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
11118 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
11121 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
11124 * config/aarch64/constraints.md (Utq): Require the address to
11125 be valid for both the element mode and for V2DImode.
11127 2021-04-28 Jakub Jelinek <jakub@redhat.com>
11128 Tobias Burnus <tobias@codesourcery.com>
11130 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
11131 * gcc.c (process_command): New variable.
11132 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
11133 set it if -foffload is defaulted.
11134 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
11135 (compile_offload_image): If OFFLOAD_DEFAULTED and
11136 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
11137 if corresponding mkoffload can't be found.
11138 (compile_images_for_offload_targets): Likewise. Free and clear
11139 offload_names if no valid offload is found.
11140 * config.in: Regenerate.
11141 * configure: Regenerate.
11143 2021-04-28 Richard Biener <rguenther@suse.de>
11145 PR tree-optimization/100292
11146 * tree-vect-generic.c (expand_vector_condition): Do not fold
11149 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
11151 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
11152 * config/rs6000/aix64.opt (m64): New.
11155 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
11157 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
11158 (index_term_p): Handle ASHIFT too.
11160 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
11162 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
11163 (sync_lock_test_and_set<mode>): Adjust accordingly.
11164 (sync_lock_release<mode>): Likewise.
11166 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
11168 * config/vax/vax-protos.h (adjacent_operands_p): Remove
11170 * config/vax/vax.c (adjacent_operands_p): Remove.
11172 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
11174 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
11175 through to the non-conditional execution case if getting the
11176 condition for conditional execution has failed.
11178 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
11180 PR middle-end/100284
11181 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
11182 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
11183 than asserting on it.
11185 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
11187 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
11188 with TARGET_AIX_OS.
11190 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
11193 * calls.c (precompute_register_parameters): Additionally test
11194 targetm.precompute_tls_p to pre-compute argument.
11195 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
11196 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
11197 * target.def (precompute_tls_p): New.
11198 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
11199 * doc/tm.texi: Regenerated.
11201 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11204 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
11205 back to HOST_WIDE_INT.
11207 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11210 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
11211 memory alignment for the outer mode.
11213 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
11215 PR middle-end/90773
11216 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
11217 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
11219 2021-04-27 Alex Coplan <alex.coplan@arm.com>
11222 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
11223 with negative immediates: ensure we expand cbranchsi4_scratch
11224 correctly and ensure we satisfy its constraints.
11225 * config/arm/sync.md
11226 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
11227 attempt to tie two output operands together with constraints;
11228 collapse two alternatives.
11229 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
11230 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
11232 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11235 * config/aarch64/predicates.md (aarch64_sub_immediate,
11236 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
11237 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
11238 * config/aarch64/aarch64.c (aarch64_print_operand,
11239 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
11241 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11243 PR tree-optimization/100239
11244 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
11245 permutations with all indices from the first zero element as vec_shl.
11247 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11249 PR rtl-optimization/100254
11250 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
11251 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
11253 2021-04-27 Richard Biener <rguenther@suse.de>
11255 PR tree-optimization/99912
11256 * passes.def: Add comment about new TODO_remove_unused_locals.
11257 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
11260 2021-04-27 Richard Biener <rguenther@suse.de>
11262 PR tree-optimization/99912
11263 * passes.def (pass_all_optimizations): Add pass_dse before
11264 the first pass_dce, move the first pass_dse before the
11265 pass_dce following pass_pre.
11267 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11269 PR tree-optimization/95527
11270 * generic-match-head.c: Include tm.h.
11271 * gimple-match-head.c: Include tm.h.
11272 * match.pd (CLZ == INTEGER_CST): Don't use
11273 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
11274 if clz == CFN_CLZ. Add missing val declaration.
11275 (CTZ cmp CST): New simplifications.
11277 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11279 PR tree-optimization/96696
11280 * expr.c (expand_expr_divmod): New function.
11281 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
11282 divisions. Formatting fixes.
11283 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
11286 2021-04-27 Martin Jambor <mjambor@suse.cz>
11289 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
11290 If removing a call statement LHS SSA name, release it.
11292 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
11295 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
11296 is valid before including it in the mask.
11298 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
11301 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
11304 2021-04-27 Richard Biener <rguenther@suse.de>
11306 PR tree-optimization/100051
11307 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
11308 disambiguator based on access size vs. decl size.
11310 2021-04-27 Richard Biener <rguenther@suse.de>
11312 PR tree-optimization/100278
11313 * tree-ssa-pre.c (compute_avail): Give up when we cannot
11314 adjust TBAA beacuse of mismatching bases.
11316 2021-04-27 Jakub Jelinek <jakub@redhat.com>
11319 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
11320 For any_rotate define_insn_split and following splitters, use
11321 SWI iterator instead of SWI48.
11323 2021-04-27 Richard Biener <rguenther@suse.de>
11325 PR tree-optimization/99776
11326 * match.pd (bit_field_ref (ctor)): Relax element extract
11327 type compatibility checks.
11329 2021-04-27 Cui,Lili <lili.cui@intel.com>
11331 * common/config/i386/i386-common.c (processor_names):
11332 Sync processor_names with processor_type.
11333 * config/i386/i386-options.c (processor_cost_table):
11334 Sync processor_cost_table with processor_type.
11336 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
11338 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
11339 (irange::set): Call irange_set_1bit_anti_range for handling all
11340 1-bit ranges. Fall through on ~[MIN,MAX].
11342 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
11344 * value-range.cc (irange::legacy_num_pairs): Remove.
11345 (irange::invert): Change gcc_assert to gcc_checking_assert.
11346 * value-range.h (irange::num_pairs): Adjust for a cached
11347 num_pairs(). Also, rename all gcc_assert's to
11348 gcc_checking_assert's.
11350 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
11352 * value-range.cc (irange::operator=): Set m_kind.
11353 (irange::copy_to_legacy): Handle varying and undefined sources
11354 as a legacy copy since they can be easily copied.
11355 (irange::irange_set): Set m_kind.
11356 (irange::irange_set_anti_range): Same.
11357 (irange::set): Rename normalize_min_max to normalize_kind.
11358 (irange::verify_range): Adjust for multi-ranges having the
11360 (irange::irange_union): Set m_kind.
11361 (irange::irange_intersect): Same.
11362 (irange::invert): Same.
11363 * value-range.h (irange::kind): Always return m_kind.
11364 (irange::varying_p): Rename to...
11365 (irange::varying_comptaible_p): ...this.
11366 (irange::undefined_p): Only look at m_kind.
11367 (irange::irange): Always set VR_UNDEFINED if applicable.
11368 (irange::set_undefined): Always set VR_UNDEFINED.
11369 (irange::set_varying): Always set m_kind to VR_VARYING.
11370 (irange::normalize_min_max): Rename to...
11371 (irange::normalize_kind): ...this.
11373 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
11375 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
11376 Adjust for constant_p including varying_p.
11377 * tree-vrp.c (vrp_prop::finalize): Same.
11378 (determine_value_range): Same.
11379 * vr-values.c (vr_values::range_of_expr): Same.
11380 * value-range.cc (irange::symbolic_p): Do not check varying_p.
11381 (irange::constant_p): Same.
11383 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
11385 * value-range.cc (irange::legacy_lower_bound): Replace
11386 !undefined_p check with num_ranges > 0.
11387 (irange::legacy_upper_bound): Same.
11388 * value-range.h (irange::type): Same.
11389 (irange::lower_bound): Same.
11390 (irange::upper_bound): Same.
11392 2021-04-26 Richard Biener <rguenther@suse.de>
11394 PR tree-optimization/99956
11395 * gimple-loop-interchange.cc (compute_access_stride):
11396 Try instantiating the access in a shallower loop nest
11397 if instantiating failed.
11398 (compute_access_strides): Pass adjustable loop_nest
11399 to compute_access_stride.
11401 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
11403 * doc/sourcebuild.texi (arm_cmse_hw): Document.
11405 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11407 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
11409 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
11410 Nathan Sidwell <nathan@codesourcery.com>
11411 Tom de Vries <vries@codesourcery.com>
11412 Julian Brown <julian@codesourcery.com>
11413 Kwok Cheung Yeung <kcy@codesourcery.com>
11415 * omp-offload.c (oacc_validate_dims): Implement
11416 '-Wopenacc-parallelism'.
11417 * doc/invoke.texi (-Wopenacc-parallelism): Document.
11419 2021-04-26 Richard Biener <rguenther@suse.de>
11421 * tree-cfg.h (gimplify_build1): Remove.
11422 (gimplify_build2): Likewise.
11423 (gimplify_build3): Likewise.
11424 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
11425 (gimplify_build2): Likewise.
11426 (gimplify_build3): Likewise.
11427 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
11429 (gimplify_build2): Likewise.
11430 (gimplify_build3): Likewise.
11431 (tree_vec_extract): Use resimplify with following SSA edges.
11432 (expand_vector_parallel): Avoid passing NULL size/bitpos
11433 to tree_vec_extract.
11434 * expr.c (store_constructor): Deal with zero-element CTORs.
11435 * match.pd (bit_field_ref <vector CTOR>): Make sure to
11436 produce vector constants when possible.
11438 2021-04-26 Richard Biener <rguenther@suse.de>
11440 * tree-complex.c: Include gimple-fold.h.
11441 (expand_complex_addition): Use gimple_build.
11442 (expand_complex_multiplication_components): Likewise.
11443 (expand_complex_multiplication): Likewise.
11444 (expand_complex_div_straight): Likewise.
11445 (expand_complex_div_wide): Likewise.
11446 (expand_complex_division): Likewise.
11447 (expand_complex_conjugate): Likewise.
11448 (expand_complex_comparison): Likewise.
11450 2021-04-26 Richard Biener <rguenther@suse.de>
11452 * tree-ssa-phiopt.c (two_value_replacement): Remove use
11453 of legacy gimplify_buildN API.
11455 2021-04-26 Richard Biener <rguenther@suse.de>
11457 PR tree-optimization/99473
11458 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
11461 2021-04-26 Richard Biener <rguenther@suse.de>
11463 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
11464 Use replace_call_with_value.
11466 2021-04-26 Richard Biener <rguenther@suse.de>
11468 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
11469 (update_gimple_call): Likewise.
11470 (update_call_from_tree): Likewise.
11471 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
11472 (valid_gimple_call_p): Likewise.
11473 (move_ssa_defining_stmt_for_defs): Likewise.
11474 (finish_update_gimple_call): Likewise.
11475 (update_gimple_call): Likewise.
11476 (update_call_from_tree): Likewise.
11477 (propagate_tree_value_into_stmt): Use replace_call_with_value.
11478 * gimple-fold.h (update_gimple_call): Declare.
11479 * gimple-fold.c (valid_gimple_rhs_p): Move here from
11480 tree-ssa-propagate.c.
11481 (update_gimple_call): Likewise.
11482 (valid_gimple_call_p): Likewise.
11483 (finish_update_gimple_call): Likewise, and simplify.
11484 (gimplify_and_update_call_from_tree): Implement
11485 update_call_from_tree functionality, avoid excessive
11486 push/pop_gimplify_context.
11487 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
11488 (gimple_fold_call): Likewise.
11489 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
11490 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
11491 (pass_fold_builtins::execute): Likewise.
11492 (optimize_stack_restore): Use replace_call_with_value.
11493 * tree-cfg.c (fold_loop_internal_call): Likewise.
11494 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
11495 only gimplify_and_update_call_from_tree.
11496 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
11497 (handle_builtin_strchr): Likewise.
11498 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
11500 2021-04-26 Jakub Jelinek <jakub@redhat.com>
11503 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
11504 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
11507 2021-04-25 liuhongt <hongtao.liu@intel.com>
11510 * config/i386/i386-builtin.def (BDESC): Change the icode of
11511 the following builtins to CODE_FOR_nothing.
11512 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
11513 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
11514 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
11515 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
11516 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
11517 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
11518 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
11519 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
11520 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
11521 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
11522 (sse2_eq<mode>3): Ditto.
11523 (sse4_1_eqv2di3): Ditto.
11524 (sse2_gt<mode>3): Rename to ..
11525 (*sse2_gt<mode>3): .. this.
11527 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
11530 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
11533 * config/darwin.c (darwin_binds_local_p): Assume that any
11534 public symbol might be interposed for PIC code. Update function
11535 header comment to reflect current Darwin capability.
11537 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
11540 * config/darwin.c (darwin_binds_local_p): Assume that any
11541 public symbol might be interposed for PIC code. Update function
11542 header comment to reflect current Darwin capability.
11544 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
11546 * doc/sourcebuild.texi: Document no-opts and any-opts target
11549 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
11551 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
11553 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
11555 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
11557 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
11560 * config/i386/i386-options.c (ix86_option_override_internal):
11561 Error out when -m96bit-long-double is used with 64bit targets.
11562 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
11564 2021-04-23 Martin Liska <mliska@suse.cz>
11566 * lto-wrapper.c: Remove FIXME about usage of
11567 hardware_concurrency. The function is not on par with
11570 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
11573 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
11574 Copy operand 3 to operand 4. Use sse_reg_operand
11575 as operand 3 predicate.
11576 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
11577 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
11578 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
11579 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
11580 Copy operand 1 to operand 0.
11581 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
11582 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
11583 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
11585 2021-04-23 Alex Coplan <alex.coplan@arm.com>
11587 PR rtl-optimization/100230
11588 * early-remat.c (early_remat::sort_candidates): Use delete[]
11589 instead of delete for array allocated with new[].
11591 2021-04-23 Richard Biener <rguenther@suse.de>
11593 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
11594 (capture_info::capture_info): Likewise.
11595 (capture_info::walk_match): Likewise.
11596 (expr::gen_transform): Likewise.
11597 (dt_simplify::gen_1): Likewise.
11598 * gimple-match-head.c (maybe_resimplify_conditional_op):
11599 Remove VEC_COND_EXPR special-casing.
11600 (gimple_simplify): Likewise.
11601 * gimple.c (gimple_could_trap_p_1): Adjust.
11602 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
11603 to participate in PRE.
11605 2021-04-23 Richard Biener <rguenther@suse.de>
11607 * cfganal.c (connect_infinite_loops_to_exit): First call
11608 add_noreturn_fake_exit_edges.
11609 * ipa-sra.c (process_scan_results): Do not call the now redundant
11610 add_noreturn_fake_exit_edges.
11611 * predict.c (tree_estimate_probability): Likewise.
11612 (rebuild_frequencies): Likewise.
11613 * store-motion.c (one_store_motion_pass): Likewise.
11615 2021-04-23 Richard Biener <rguenther@suse.de>
11617 PR tree-optimization/100222
11618 * predict.c (pass_profile::execute): Remove redundant call to
11619 mark_irreducible_loops.
11620 (report_predictor_hitrates): Likewise.
11622 2021-04-23 Richard Biener <rguenther@suse.de>
11624 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11625 valid_gimple_rhs_p by instead gimplifying to one.
11627 2021-04-23 Richard Biener <rguenther@suse.de>
11629 PR tree-optimization/99971
11630 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
11631 Always use TBAA for loads.
11633 2021-04-23 liuhongt <hongtao.liu@intel.com>
11636 * config/i386/i386-options.c (ix86_option_override_internal):
11637 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
11638 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
11639 by target attribute.
11641 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
11643 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
11645 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
11647 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
11649 * config.gcc (powerpc-ibm-aix6.*): Remove.
11650 * config/rs6000/aix61.h: Delete.
11652 2021-04-22 Martin Liska <mliska@suse.cz>
11654 PR testsuite/100159
11655 PR testsuite/100192
11656 * builtins.c (expand_builtin): Fix typos and missing comments.
11657 * dwarf2out.c (gen_subprogram_die): Likewise.
11658 (gen_struct_or_union_type_die): Likewise.
11660 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
11663 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
11664 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
11666 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
11668 * config/i386/darwin.h (TARGET_64BIT): Remove definition
11669 based on TARGET_ISA_64BIT.
11670 (TARGET_64BIT_P): Remove definition based on
11671 TARGET_ISA_64BIT_P().
11673 2021-04-21 Martin Liska <mliska@suse.cz>
11676 2021-04-21 Martin Liska <mliska@suse.cz>
11678 * lto-wrapper.c (cpuset_popcount): Remove.
11679 (init_num_threads): Remove and use hardware_concurrency.
11681 2021-04-21 Martin Liska <mliska@suse.cz>
11684 * main.c (main): Call toplev::finalize in CHECKING_P mode.
11685 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
11686 when incremental LTO linking happens.
11688 2021-04-21 Martin Liska <mliska@suse.cz>
11690 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
11691 makeserver cannot be detected, then use -flto=N fallback.
11693 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
11695 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
11696 default to yes for aarch64-linux-gnu.
11697 * configure: Regenerate.
11699 2021-04-21 Martin Liska <mliska@suse.cz>
11701 * lto-wrapper.c (cpuset_popcount): Remove.
11702 (init_num_threads): Remove and use hardware_concurrency.
11704 2021-04-21 Martin Liska <mliska@suse.cz>
11706 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
11707 which remains to be '(... || 0)' and clang complains about it.
11708 * dwarf2out.c (AT_vms_delta): Declare conditionally.
11709 (add_AT_vms_delta): Likewise.
11710 * tree.c (fld_simplified_type): Use rather more common pattern
11711 for disabling of something (#if 0).
11712 (get_tree_code_name): Likewise.
11713 (verify_type_variant): Likewise.
11715 2021-04-21 Martin Liska <mliska@suse.cz>
11717 * config/i386/i386-expand.c (decide_alignment): Use newly named
11718 macro TARGET_CPU_P.
11719 * config/i386/i386.c (ix86_decompose_address): Likewise.
11720 (ix86_address_cost): Likewise.
11721 (ix86_lea_outperforms): Likewise.
11722 (ix86_avoid_lea_for_addr): Likewise.
11723 (ix86_add_stmt_cost): Likewise.
11724 * config/i386/i386.h (TARGET_*): Remove.
11725 (TARGET_CPU_P): New macro.
11726 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
11727 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
11728 (swap_top_of_ready_list): Likewise.
11729 (ix86_atom_sched_reorder): Likewise.
11730 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
11731 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
11733 2021-04-21 Martin Liska <mliska@suse.cz>
11735 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
11737 (SET_TARGET_NO_SAHF): Likewise.
11738 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
11739 (SET_TARGET_PREFETCH_SSE): Likewise.
11740 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
11741 (SET_TARGET_NO_TUNE): Likewise.
11742 (TARGET_EXPLICIT_NO_80387_P): Likewise.
11743 (SET_TARGET_NO_80387): Likewise.
11745 * config/i386/i386.h (TARGET_*): Remove.
11746 * opth-gen.awk: Generate new used macros.
11748 2021-04-21 Martin Liska <mliska@suse.cz>
11750 * config/i386/i386.h (PTA_*): Remove.
11751 (enum pta_flag): New.
11752 (DEF_PTA): Generate PTA_* values from i386-isa.def.
11753 * config/i386/i386-isa.def: New file.
11755 2021-04-21 Alex Coplan <alex.coplan@arm.com>
11758 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
11759 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
11760 jump table targets.
11762 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
11764 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
11765 x86_64-*-* targets.
11766 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
11768 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
11769 (ix86_handle_option): Handle -mmwait.
11770 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11771 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
11772 __builtin_ia32_monitor and __builtin_ia32_mwait.
11773 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
11774 (ix86_valid_target_attribute_inner_p): Likewise.
11775 (ix86_option_override_internal): Enable mwait/monitor
11776 instructions for -msse3.
11777 * config/i386/i386.h (TARGET_MWAIT): New.
11778 (TARGET_MWAIT_P): Likewise.
11779 * config/i386/i386.opt: Add -mmwait.
11780 * config/i386/mwaitintrin.h: New file.
11781 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
11782 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
11784 (@sse3_monitor_<mode>): Likewise.
11785 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
11786 * doc/extend.texi: Document mwait target attribute.
11787 * doc/invoke.texi: Document -mmwait.
11789 2021-04-21 Martin Liska <mliska@suse.cz>
11791 * config/i386/i386-options.c (DEF_ENUM): Remove it.
11792 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
11793 * config/i386/stringop.def (DEF_ENUM): Likewise.
11795 2021-04-21 Martin Liska <mliska@suse.cz>
11797 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
11798 of print_generic_expr.
11800 2021-04-21 Jakub Jelinek <jakub@redhat.com>
11802 PR rtl-optimization/100148
11803 * cprop.c (constprop_register): Use next_nondebug_insn instead of
11806 2021-04-21 Martin Liska <mliska@suse.cz>
11809 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
11810 free_dominance_info calls.
11812 2021-04-21 Richard Biener <rguenther@suse.de>
11814 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
11815 parameter (and assume it to be false).
11816 (fold_gimple_assign): Adjust, remove all callers of
11817 maybe_fold_reference calling it with is_lhs true.
11818 (gimple_fold_call): Likewise.
11819 (fold_stmt_1): Likewise.
11821 2021-04-21 Richard Biener <rguenther@suse.de>
11823 * fold-const.c (pedantic_non_lvalue_loc): Remove.
11824 (fold_binary_loc): Adjust.
11825 (fold_ternary_loc): Likewise.
11827 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
11829 PR middle-end/100130
11830 * varasm.c (get_block_for_decl): Make sure that any use of the
11831 retain attribute matches the section's retain flag.
11832 (switch_to_section): Check for retain mismatches even when
11833 changing sections, but do not warn if the given decl is the
11834 section's named.decl.
11835 (output_object_block): Pass the first decl in the block (if any)
11836 to switch_to_section.
11838 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
11840 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11841 __CRC32__ for -mcrc32.
11842 * config/i386/i386-options.c (ix86_option_override_internal):
11843 Enable crc32 instruction for -msse4.2.
11844 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
11846 (sse4_2_crc32di): Likewise.
11847 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
11850 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
11853 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
11856 2021-04-20 Martin Liska <mliska@suse.cz>
11858 * doc/invoke.texi: Fix typo.
11859 * params.opt: Likewise.
11861 2021-04-20 Martin Liska <mliska@suse.cz>
11863 * doc/invoke.texi: Document new param.
11865 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
11867 PR tree-optimization/100081
11868 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
11869 rather than gori_compute_cache.
11870 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
11871 (range_def_chain::m_logical_depth): New member.
11872 (range_def_chain::range_def_chain): Initialize m_logical_depth.
11873 (range_def_chain::get_def_chain): Don't build defchains through more
11874 than LOGICAL_LIMIT logical expressions.
11875 * params.opt (param_ranger_logical_depth): New.
11877 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
11880 * config/arm/arm.c (arm_configure_build_target): Do not strip
11881 extended FPU/SIMD feature bits from the target ISA when -mfpu
11882 is specified (partial revert of r11-8168).
11884 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
11886 * params.opt (-param=openacc-kernels=): Add.
11887 * omp-oacc-kernels-decompose.cc
11888 (pass_omp_oacc_kernels_decompose::gate): Use it.
11889 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
11890 (--param): ... here, 'openacc-kernels'.
11892 2021-04-19 Martin Liska <mliska@suse.cz>
11895 * gengtype.c (finish_root_table): Align function arguments
11896 in between declaration and definition.
11898 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
11900 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
11901 frames larger than the SEH maximum frame size.
11903 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11905 PR rtl-optimization/99927
11906 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
11907 is dead, just drop it.
11909 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
11912 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
11913 * doc/tm.texi: Regenerate.
11914 * doc/tm.texi.in (D language and ABI): Add @hook for
11915 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
11917 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
11919 * config/darwin-d.c (darwin_d_handle_target_object_format): New
11921 (darwin_d_register_target_info): New function.
11922 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11923 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
11925 (dragonfly_d_register_target_info): New function.
11926 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11927 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
11929 (freebsd_d_register_target_info): New function.
11930 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11931 * config/glibc-d.c (glibc_d_handle_target_object_format): New
11933 (glibc_d_register_target_info): New function.
11934 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11935 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
11937 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
11938 as handler for objectFormat key.
11939 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
11941 (winnt_d_register_target_info): New function.
11942 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11943 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
11945 (netbsd_d_register_target_info): New function.
11946 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11947 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
11949 (openbsd_d_register_target_info): New function.
11950 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11951 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
11952 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
11953 handler for objectFormat key.
11954 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
11956 (rs6000_d_register_target_info): Add
11957 rs6000_d_handle_target_object_format as handler for objectFormat key.
11958 * config/sol2-d.c (solaris_d_handle_target_object_format): New
11960 (solaris_d_register_target_info): New function.
11961 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11963 2021-04-16 Jakub Jelinek <jakub@redhat.com>
11966 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
11967 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
11969 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
11970 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
11971 the old and new alignment after applying MIN/MAX to it is different.
11973 2021-04-16 Tamar Christina <tamar.christina@arm.com>
11976 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
11977 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
11979 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
11981 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
11983 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
11984 this section and its subsections.
11986 2021-04-16 Jakub Jelinek <jakub@redhat.com>
11989 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
11990 define_insn patterns.
11992 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
11994 PR rtl-optimization/98689
11995 * reg-notes.def (UNTYPED_CALL): New note.
11996 * combine.c (distribute_notes): Handle it.
11997 * emit-rtl.c (try_split): Likewise.
11998 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
11999 that calls with the note implicitly set all return value registers.
12000 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
12003 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
12005 PR rtl-optimization/99596
12006 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
12007 register accesses for const calls. Assume that pure functions
12008 can only read from global registers. Ignore cases in which
12009 the stack pointer has been marked global.
12011 2021-04-16 Jakub Jelinek <jakub@redhat.com>
12014 * tree-vect-loop.c (vect_transform_loop): Don't remove just
12015 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
12016 them by their last argument.
12018 2021-04-15 Martin Liska <mliska@suse.cz>
12020 * doc/invoke.texi: Other params don't use it, remove it.
12022 2021-04-15 Richard Biener <rguenther@suse.de>
12024 * gimple-builder.h: Add deprecation note.
12026 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
12029 * attribs.h (restrict_type_identity_attributes_to): Declare.
12030 * attribs.c (restrict_type_identity_attributes_to): New function.
12032 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
12035 * attribs.h (affects_type_identity_attributes): Declare.
12036 * attribs.c (remove_attributes_matching): New function.
12037 (affects_type_identity_attributes): Likewise.
12039 2021-04-15 Jakub Jelinek <jakub@redhat.com>
12042 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
12043 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
12044 ZERO_EXTEND, SIGN_EXTEND or AND.
12046 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
12048 PR rtl-optimization/99929
12049 * rtl.h (same_vector_encodings_p): New function.
12050 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
12051 * cselib.c (rtx_equal_for_cselib_1): Likewise.
12052 * jump.c (rtx_renumbered_equal_p): Likewise.
12053 * lra-constraints.c (operands_match_p): Likewise.
12054 * reload.c (operands_match_p): Likewise.
12055 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
12057 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
12059 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
12060 more information about variable-length CONST_VECTORs.
12062 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
12064 PR rtl-optimization/100066
12065 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
12066 ordered modes when choosing splitting mode for hard reg.
12068 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
12071 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
12073 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
12075 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
12077 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
12078 for mask operand types.
12079 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
12080 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
12082 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
12084 * config/s390/s390.c (s390_const_operand_ok): Check the new
12085 operand types and generate a list of valid values.
12087 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
12089 * doc/tm.texi: Regenerate.
12090 * doc/tm.texi.in (D language and ABI): Add @hook for
12091 TARGET_D_REGISTER_OS_TARGET_INFO.
12093 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
12095 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
12097 (aarch64_d_register_target_info): New function.
12098 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
12100 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
12102 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
12103 (arm_d_register_target_info): New function.
12104 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
12105 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12106 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
12107 (ix86_d_register_target_info): New function.
12108 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
12109 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12110 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
12111 (mips_d_register_target_info): New function.
12112 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
12113 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12114 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
12115 (pa_d_register_target_info): New function.
12116 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
12117 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12118 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
12120 (riscv_d_register_target_info): New function.
12121 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
12122 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12123 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
12125 (rs6000_d_register_target_info): New function.
12126 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
12128 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12129 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
12130 (s390_d_register_target_info): New function.
12131 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
12132 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12133 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
12135 (sparc_d_register_target_info): New function.
12136 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
12137 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12138 * doc/tm.texi: Regenerate.
12139 * doc/tm.texi.in (D language and ABI): Add @hook for
12140 TARGET_D_REGISTER_CPU_TARGET_INFO.
12142 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
12144 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
12145 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
12146 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
12147 * doc/tm.texi: Regenerate.
12148 * doc/tm.texi.in (D language and ABI): Add @hook for
12149 TARGET_D_HAS_STDCALL_CONVENTION.
12151 2021-04-14 Richard Biener <rguenther@suse.de>
12153 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
12154 VEC_COND_EXPRs have a gimple_val condition.
12155 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
12156 can no longer have a GENERIC condition.
12158 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
12161 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
12162 from the isa_delta when -mfpu has been used.
12163 (arm_options_perform_arch_sanity_checks): It's the architecture that
12164 lacks an FPU not the processor.
12166 2021-04-13 Richard Biener <rguenther@suse.de>
12168 PR tree-optimization/100053
12169 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
12170 not use optimistic dominance queries for backedges to validate
12172 (dominated_by_p_w_unex): Add parameter to ignore executable
12173 state on backedges.
12174 (rpo_elim::eliminate_avail): Adjust.
12176 2021-04-13 Jakub Jelinek <jakub@redhat.com>
12179 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
12180 *aarch64_bfxilsi_extrdi): New define_insn patterns.
12182 2021-04-13 Jakub Jelinek <jakub@redhat.com>
12185 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
12186 outermode, return NULL if the result doesn't encode back to the
12187 original byte sequence.
12188 (simplify_gen_subreg): Don't create SUBREGs from constants to
12189 MODE_COMPOSITE_P outermode.
12191 2021-04-12 Jakub Jelinek <jakub@redhat.com>
12193 PR rtl-optimization/99905
12194 * combine.c (expand_compound_operation): If pos + len > modewidth,
12195 perform the right shift by pos in inner_mode and then convert to mode,
12196 instead of trying to simplify a shift of rtx with inner_mode by pos
12197 as if it was a shift in mode.
12199 2021-04-12 Jakub Jelinek <jakub@redhat.com>
12202 * combine.c (simplify_and_const_int_1): Don't optimize varop
12203 away if it has side-effects.
12205 2021-04-12 Martin Liska <mliska@suse.cz>
12207 * doc/extend.texi: Escape @smallexample content.
12209 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
12211 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
12212 alternative in order to load a DFP zero.
12214 2021-04-12 Martin Liska <mliska@suse.cz>
12216 * doc/extend.texi: Be more precise in documentation
12217 of symver attribute.
12219 2021-04-12 Martin Liska <mliska@suse.cz>
12222 * gimplify.c (gimplify_expr): Right now, we unpoison all
12223 variables before a goto <dest>. We should not do it if we are
12226 2021-04-12 Cui,Lili <lili.cui@intel.com>
12228 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
12230 * common/config/i386/i386-common.c (processor_names): Add
12232 (processor_alias_table): Add rocketlake.
12233 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
12234 INTEL_COREI7_ROCKETLAKE.
12235 * config.gcc: Add -march=rocketlake.
12236 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12238 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
12239 (processor_cost_table): Add rocketlake cost.
12240 * config/i386/i386.h (ix86_size_cost) : Define
12242 (processor_type) : Add PROCESSOR_ROCKETLAKE.
12243 (PTA_ROCKETLAKE): Ditto.
12244 * doc/extend.texi: Add rocketlake.
12245 * doc/invoke.texi: Add rocketlake.
12247 2021-04-12 Cui,Lili <lili.cui@intel.com>
12249 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
12250 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
12251 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
12252 * doc/invoke.texi: Change alderlake ISA list.
12254 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
12256 PR middle-end/98088
12257 * omp-expand.c (expand_oacc_collapse_init): Update condition in
12260 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
12263 * config/i386/serializeintrin.h (_serialize): Defined as macro.
12265 2021-04-10 Jakub Jelinek <jakub@redhat.com>
12268 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
12269 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
12271 2021-04-10 Jakub Jelinek <jakub@redhat.com>
12273 PR middle-end/99989
12274 * gimple-ssa-warn-alloca.c
12275 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
12276 0 with integer precision unconditionally.
12278 2021-04-10 Jakub Jelinek <jakub@redhat.com>
12280 PR rtl-optimization/98601
12281 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
12282 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
12283 unaligned_mems handle VOIDmode like BLKmode.
12285 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
12288 * tree.c (free_lang_data_in_decl): Do not release body of
12289 declare_variant_alt.
12291 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
12293 * config/aarch64/aarch64.c (aarch64_option_restore): If the
12294 architecture was specified explicitly and the tuning wasn't,
12295 tune for the architecture rather than the configured default CPU.
12297 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
12299 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
12300 as the temporary register.
12302 2021-04-09 Martin Liska <mliska@suse.cz>
12304 * doc/extend.texi: Move non-target attributes on the top level.
12306 2021-04-09 Martin Liska <mliska@suse.cz>
12308 * doc/invoke.texi: Document minimum and maximum value of the
12309 argument for both supported compression algorithms.
12311 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
12313 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
12314 TLS BSS before TLS data.
12315 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
12317 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
12319 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
12321 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
12323 * match.pd: Extend vec_cond folds to handle shifts.
12325 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
12327 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
12330 2021-04-08 Alex Coplan <alex.coplan@arm.com>
12333 * config/arm/iterators.md (MVE_vecs): New.
12334 (V_elem): Also handle V2DF.
12335 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
12336 (*mve_vdup<mode>): ... this. Remove second alternative since
12337 vec_duplicate of const_int is not canonical RTL, and we don't
12338 want to match symbol_refs.
12339 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
12341 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
12343 * fold-const.c (fold_single_bit_test): Fix typo.
12344 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
12347 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
12349 PR tree-optimization/97513
12350 * tree-vect-slp.c (vect_add_slp_permutation): New function,
12352 (vectorizable_slp_permutation): ...here. Detect cases in which
12353 all VEC_PERM_EXPRs are guaranteed to have the same stepped
12354 permute vector and only generate one permute vector for that case.
12355 Extend that case to handle variable-length vectors.
12357 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
12359 PR tree-optimization/99873
12360 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
12361 (vect_build_slp_instance): Don't split store groups that could
12362 use IFN_STORE_LANES.
12364 2021-04-07 Jakub Jelinek <jakub@redhat.com>
12367 * varasm.c (output_constant_pool_contents): Don't strip name encoding
12368 from XSTR (desc->sym, 0) or from label before passing those to
12371 2021-04-07 Richard Biener <rguenther@suse.de>
12373 PR tree-optimization/99954
12374 * tree-loop-distribution.c: Include tree-affine.h.
12375 (generate_memcpy_builtin): Try using tree-affine to prove
12377 (loop_distribution::classify_builtin_ldst): Always classify
12380 2021-04-07 Richard Biener <rguenther@suse.de>
12382 PR tree-optimization/99947
12383 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
12384 steps vector to avoid pushing elements from the reallocated
12387 2021-04-07 Richard Biener <rguenther@suse.de>
12389 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
12390 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
12392 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
12394 (debug_vn_reference_ops): New.
12396 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
12398 PR tree-optimization/98736
12399 * tree-loop-distribution.c
12400 * (loop_distribution::bb_top_order_init):
12401 Compute RPO with programing order preserved by calling function
12402 rev_post_order_and_mark_dfs_back_seme.
12404 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
12407 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
12408 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
12410 (process_bb_lives): Don't update biggest mode of hard reg for
12411 implicit in multi-register group. Use the new functions for
12412 updating dead_set and unused_set by register notes.
12414 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
12416 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
12419 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
12421 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
12422 (skylake_memset): Likewise.
12423 (skylake_cost): Change CLEAR_RATIO to 17.
12424 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
12425 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
12426 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
12428 2021-04-06 Richard Biener <rguenther@suse.de>
12430 PR tree-optimization/99880
12431 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
12432 set vectorized defs of relevant PHIs.
12434 2021-04-06 Richard Biener <rguenther@suse.de>
12436 PR tree-optimization/99924
12437 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
12438 nodes w/o scalar stmts as visited.
12440 2021-04-06 Alex Coplan <alex.coplan@arm.com>
12443 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
12444 PCS for [su]fix_optab.
12446 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
12448 * config/darwin.c (machopic_legitimize_pic_address): Check
12449 that the current pic register is one of the hard reg set
12450 before setting liveness.
12452 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
12454 * config/darwin.c (machopic_legitimize_pic_address): Fix
12455 whitespace, remove unused code.
12457 2021-04-03 Jakub Jelinek <jakub@redhat.com>
12459 PR tree-optimization/99882
12460 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
12463 2021-04-03 Jakub Jelinek <jakub@redhat.com>
12465 PR rtl-optimization/99863
12466 * dse.c (replace_read): Drop regs_live argument. Instead of
12467 regs_live, use store_insn->fixed_regs_live if non-NULL,
12468 otherwise punt if insns sequence clobbers or sets any hard
12471 2021-04-03 Jakub Jelinek <jakub@redhat.com>
12474 * targhooks.h (default_print_patchable_function_entry_1): Declare.
12475 * targhooks.c (default_print_patchable_function_entry_1): New function,
12476 copied from default_print_patchable_function_entry with an added flags
12478 (default_print_patchable_function_entry): Rewritten into a small
12479 wrapper around default_print_patchable_function_entry_1.
12480 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
12482 (rs6000_print_patchable_function_entry): New function.
12484 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
12486 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
12488 2021-04-01 Jason Merrill <jason@redhat.com>
12491 * common.opt: Document v15 and v16.
12493 2021-04-01 Richard Biener <rguenther@suse.de>
12495 PR tree-optimization/99863
12496 * gimplify.c (gimplify_init_constructor): Recompute vector
12499 2021-04-01 Jakub Jelinek <jakub@redhat.com>
12501 * doc/extend.texi (symver attribute): Fix up syntax errors
12504 2021-04-01 Jakub Jelinek <jakub@redhat.com>
12506 PR tree-optimization/96573
12507 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
12508 also pointer types.
12510 2021-04-01 Richard Biener <rguenther@suse.de>
12512 PR tree-optimization/99856
12513 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
12514 precision to vector element precision.
12516 2021-04-01 Martin Jambor <mjambor@suse.cz>
12518 PR tree-optimization/97009
12519 * tree-sra.c (access_or_its_child_written): New function.
12520 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
12523 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
12526 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
12528 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
12531 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
12532 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
12533 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
12534 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
12535 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
12536 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
12538 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
12539 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
12540 (define_attr "prefixed"): Update initializer.
12542 2021-03-31 Jakub Jelinek <jakub@redhat.com>
12545 * dwarf2out.c (debug_ranges_dwo_section): New variable.
12546 (DW_RANGES_IDX_SKELETON): Define.
12547 (struct dw_ranges): Add begin_entry and end_entry members.
12548 (DEBUG_DWO_RNGLISTS_SECTION): Define.
12549 (add_ranges_num): Adjust r initializer for addition of *_entry
12551 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
12552 set idx to DW_RANGES_IDX_SKELETON.
12553 (use_distinct_base_address_for_range): New function.
12554 (index_rnglists): Don't set r->idx if it is equal to
12555 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
12556 r->end_entry for -gsplit-dwarf if those will be needed by
12558 (output_rnglists): Add DWO argument. If true, switch to
12559 debug_ranges_dwo_section rather than debug_ranges_section.
12560 Adjust l1/l2 label indexes. Only output the offset table when
12561 dwo is true and don't include in there the skeleton range
12562 entry if present. For -gsplit-dwarf, skip ranges that belong
12563 to the other rnglists section. Change return type from void
12564 to bool and return true if there are any range entries for
12565 the other section. For dwarf_split_debug_info use
12566 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
12567 entries instead of DW_RLE_start_end, DW_RLE_start_length and
12568 DW_RLE_base_address. Use use_distinct_base_address_for_range.
12569 (init_sections_and_labels): Initialize debug_ranges_dwo_section
12570 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
12571 and range_base_label indexes.
12572 (dwarf2out_finish): Call index_rnglists earlier before finalizing
12573 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
12574 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
12575 with different dwo arguments.
12576 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
12578 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12580 PR tree-optimization/98268
12581 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
12582 recompute_tree_invariant_for_addr_expr after successfully
12583 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
12585 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12587 PR tree-optimization/99726
12588 * tree-data-ref.c (create_intersect_range_checks_index): Bail
12589 out if there is more than one access function SCEV for the loop
12592 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12594 PR rtl-optimization/97141
12595 PR rtl-optimization/98726
12596 * emit-rtl.c (valid_for_const_vector_p): Return true for
12598 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
12599 poly_wide_int instead of a wide_int.
12600 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
12602 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
12603 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
12604 false for CONST_VECTORs that cannot be forced to memory.
12605 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
12606 is too complex to force to memory, build it up from individual
12609 2021-03-31 Jan Hubicka <jh@suse.cz>
12612 * cgraph.c (cgraph_node::release_body): Fix overactive check.
12614 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
12617 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
12620 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
12622 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
12623 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
12625 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
12626 "rep movsb/stosb" only for known sizes.
12627 * config/i386/i386-options.c (processor_cost_table): Use Ice
12628 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
12629 Rapids and Alder Lake.
12630 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
12631 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
12632 (icelake_memset): Likewise.
12633 (icelake_cost): Likewise.
12634 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
12637 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12640 * config/aarch64/aarch64.c
12641 (aarch64_vectorize_preferred_vector_alignment): Query the size
12642 of the provided SVE vector; do not assume that all SVE vectors
12643 have the same size.
12645 2021-03-31 Jan Hubicka <jh@suse.cz>
12648 * cgraph.c (cgraph_node::release_body): Remove all callers and
12650 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
12651 * cgraphunit.c (cgraph_node::expand): And here.
12653 2021-03-31 Martin Liska <mliska@suse.cz>
12655 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
12656 and one negated condition.
12658 2021-03-31 Jakub Jelinek <jakub@redhat.com>
12659 Richard Sandiford <richard.sandiford@arm.com>
12662 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
12663 constraints on operands[2] and similarly 0 and rk constraints
12664 on operands[1] corresponding to that.
12666 2021-03-31 Jakub Jelinek <jakub@redhat.com>
12669 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
12670 linker doesn't support DWARF sections new in DWARF5.
12671 * config/i386/i386-options.c (ix86_option_override_internal): Default
12672 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
12674 * config.in: Regenerated.
12675 * configure: Regenerated.
12677 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12680 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
12681 available issue_info before using it.
12683 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12686 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
12689 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
12692 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
12693 (altivec_lvsl_reg_<mode>): ... this.
12694 (altivec_lvsr_reg): Change to ...
12695 (altivec_lvsr_reg_<mode>): ... this.
12696 * config/rs6000/predicates.md (vec_set_index_operand): New.
12697 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12698 Enable 32bit variable vec_insert for all TARGET_VSX.
12699 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
12700 Enable 32bit variable vec_insert for p9 and above.
12701 (rs6000_expand_vector_set_var_p8): Rename to ...
12702 (rs6000_expand_vector_set_var_p7): ... this.
12703 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
12705 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
12706 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
12707 gen_altivec_lvsr_reg_di.
12709 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
12712 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
12713 (__rdtscp): Likewise.
12715 2021-03-30 Tamar Christina <tamar.christina@arm.com>
12717 PR tree-optimization/99825
12718 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
12719 Reject non-mult 2 lanes.
12721 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
12724 * config/arm/arm.c (arm_file_start): Fix emission of
12725 Tag_ABI_VFP_args attribute.
12727 2021-03-30 Richard Biener <rguenther@suse.de>
12729 PR tree-optimization/99824
12730 * stor-layout.c (set_min_and_max_values_for_integral_type):
12731 Assert the precision is within the bounds of
12732 WIDE_INT_MAX_PRECISION.
12733 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
12734 the outermost component ref only to lower the access size
12735 and initialize that from the access type.
12737 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
12740 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
12741 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
12743 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
12745 * config/aarch64/aarch64.md
12746 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
12747 attribute to disambiguate between SIMD and FP variants of the
12750 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
12752 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
12753 (analyze_ssa_name_flags): Fix typo in comment.
12755 2021-03-29 Alex Coplan <alex.coplan@arm.com>
12758 * config/aarch64/aarch64-sve-builtins.cc
12759 (function_builder::add_function): Add placeholder_p argument, use
12760 placeholder decls if this is set.
12761 (function_builder::add_unique_function): Instead of conditionally adding
12762 direct overloads, unconditionally add either a direct overload or a
12764 (function_builder::add_overloaded_function): Set placeholder_p if we're
12765 using C++ overloads. Use the obstack for string storage instead
12766 of relying on the tree nodes.
12767 (function_builder::add_overloaded_functions): Don't return early for
12768 m_direct_overloads: we need to add placeholders.
12769 * config/aarch64/aarch64-sve-builtins.h
12770 (function_builder::add_function): Add placeholder_p argument.
12772 2021-03-29 Richard Biener <rguenther@suse.de>
12774 PR tree-optimization/99807
12775 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
12776 assert below VEC_PERM handling.
12778 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12781 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
12782 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
12783 matching const_int 0.
12784 (move_lo_quad_internal_be_<mode>): Likewise.
12785 (move_lo_quad_<mode>): Update for the above.
12786 * config/aarch64/iterators.md (VQ_2E): Delete.
12788 2021-03-29 Jakub Jelinek <jakub@redhat.com>
12790 PR tree-optimization/99777
12791 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
12792 types other than scalar integral types.
12794 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
12796 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
12797 XCOFF TLS reloc decorations.
12799 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
12801 * doc/analyzer.texi (Analyzer Internals): Update link to
12802 "A Memory Model for Static Analysis of C Programs".
12804 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
12806 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
12807 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
12809 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
12810 (rs6000_special_round_type_align): Recursively check innermost first
12813 2021-03-26 Jakub Jelinek <jakub@redhat.com>
12816 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
12817 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
12818 assignment with drap_reg active, queue reg save for hfp with offset 0
12819 and flush queued reg saves. When handling a push with rule18,
12820 defer queueing reg save for hfp and just assert the offset is 0.
12821 (scan_trace): Assert that fde->rule18 is false.
12823 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
12826 * ira-costs.c (record_reg_classes): Put case with
12827 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
12828 * ira.c (ira_setup_alts): Ditto.
12829 * lra-constraints.c (process_alt_operands): Ditto.
12830 * recog.c (asm_operand_ok): Ditto.
12831 * reload.c (find_reloads): Ditto.
12833 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12835 * config/aarch64/aarch64-protos.h
12836 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
12837 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
12838 * config/aarch64/aarch64.c (generic_addrcost_table): Update
12839 accordingly, using the same costs as for post_modify.
12840 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
12841 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
12842 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
12843 (a64fx_addrcost_table): Likewise.
12844 (neoversev1_addrcost_table): New.
12845 (neoversev1_tunings): Use neoversev1_addrcost_table.
12846 (aarch64_address_cost): Use the new post_modify costs for CImode
12849 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12851 * config/aarch64/aarch64.opt
12852 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
12853 * doc/invoke.texi: Document it.
12854 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
12855 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
12856 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
12857 (aarch64_vec_issue_info): New structures.
12858 (cpu_vector_cost): Write comments above the variables rather
12860 (cpu_vector_cost::issue_info): New member variable.
12861 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
12862 and tree-ssa-loop-niter.h.
12863 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
12864 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
12865 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
12866 (thunderx3t110_vector_cost): Initialize issue_info to null.
12867 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
12868 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
12869 (neoversev1_vector_cost): Use them.
12870 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
12871 (aarch64_vector_costs::saw_sve_only_op): New member variable.
12872 (aarch64_vector_costs::num_vector_iterations): Likewise.
12873 (aarch64_vector_costs::scalar_ops): Likewise.
12874 (aarch64_vector_costs::advsimd_ops): Likewise.
12875 (aarch64_vector_costs::sve_ops): Likewise.
12876 (aarch64_vector_costs::seen_loads): Likewise.
12877 (aarch64_simd_vec_costs_for_flags): New function.
12878 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
12879 Count the number of predicate operations required by SVE WHILE
12881 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
12882 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
12883 (aarch64_count_ops): Likewise.
12884 (aarch64_add_stmt_cost): Record whether see an SVE operation
12885 that cannot currently be implementing using Advanced SIMD.
12886 Record issue information about the scalar, Advanced SIMD
12887 and (where relevant) SVE versions of a loop.
12888 (aarch64_vec_op_count::dump): New function.
12889 (aarch64_sve_op_count::dump): Likewise.
12890 (aarch64_estimate_min_cycles_per_iter): Likewise.
12891 (aarch64_adjust_body_cost): If issue information is available,
12892 try to compare the issue rates of the various loop implementations
12893 and increase or decrease the vector body cost accordingly.
12895 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12897 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
12898 Assume a zero cost for induction phis.
12900 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12902 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
12904 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
12905 vector comparisons.
12907 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12909 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
12911 (aarch64_add_stmt_cost): Call it.
12913 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12915 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
12916 New tuning parameter.
12917 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
12918 (aarch64_estimated_sve_vq): New function.
12919 (aarch64_vector_costs::analyzed_vinfo): New member variable.
12920 (aarch64_vector_costs::is_loop): Likewise.
12921 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
12922 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
12923 (aarch64_record_potential_advsimd_unrolling): New function.
12924 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
12925 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
12926 aarch64_analyze_bb_vinfo on the first use of a costs structure.
12927 Detect whether we're vectorizing a loop for SVE that might be
12928 completely unrolled if it used Advanced SIMD instead.
12929 (aarch64_adjust_body_cost_for_latency): New function.
12930 (aarch64_finish_cost): Call it.
12932 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12934 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
12935 (aarch64_init_cost): New function.
12936 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
12937 the default unsigned[3].
12938 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
12939 (TARGET_VECTORIZE_INIT_COST): Override.
12940 (TARGET_VECTORIZE_FINISH_COST): Likewise.
12941 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
12943 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12945 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
12946 (neoversev1_sve_vector_cost): New cost structures.
12947 (neoversev1_vector_cost): Likewise.
12948 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
12950 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12952 * config/aarch64/aarch64-protos.h
12953 (sve_vec_cost::scatter_store_elt_cost): New member variable.
12954 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
12955 accordingly, taking the cost from the cost of a scalar_store.
12956 (a64fx_sve_vector_cost): Likewise.
12957 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
12959 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12961 * config/aarch64/aarch64-protos.h
12962 (simd_vec_cost::store_elt_extra_cost): New member variable.
12963 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
12964 accordingly, using the vec_to_scalar cost for the new field.
12965 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
12966 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
12967 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
12968 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
12969 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
12970 (thunderx3t110_advsimd_vector_cost): Likewise.
12971 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
12973 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12975 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
12976 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
12977 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
12978 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
12979 accordingly, using zero for the new costs.
12980 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
12981 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
12982 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
12983 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
12984 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
12985 (thunderx3t110_advsimd_vector_cost): Likewise.
12986 (aarch64_ld234_st234_vectors): New function.
12987 (aarch64_adjust_stmt_cost): Likewise.
12988 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
12989 the new vector costs.
12991 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12993 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
12994 derived class of simd_vec_cost. Add information about CLAST[AB]
12995 and FADDA instructions.
12996 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
12997 accordingly, using the vec_to_scalar costs for the new fields.
12998 (a64fx_sve_vector_cost): Likewise.
12999 (aarch64_reduc_type): New function.
13000 (aarch64_sve_in_loop_reduction_latency): Likewise.
13001 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
13002 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
13003 that occur in the loop body.
13004 (aarch64_add_stmt_cost): Update call accordingly.
13006 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
13008 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
13010 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
13011 above the fields rather than to the right.
13012 (simd_vec_cost::reduc_i8_cost): New member variable.
13013 (simd_vec_cost::reduc_i16_cost): Likewise.
13014 (simd_vec_cost::reduc_i32_cost): Likewise.
13015 (simd_vec_cost::reduc_i64_cost): Likewise.
13016 (simd_vec_cost::reduc_f16_cost): Likewise.
13017 (simd_vec_cost::reduc_f32_cost): Likewise.
13018 (simd_vec_cost::reduc_f64_cost): Likewise.
13019 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
13020 accordingly, using the vec_to_scalar_cost for the new fields.
13021 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
13022 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
13023 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
13024 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
13025 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
13026 (thunderx3t110_advsimd_vector_cost): Likewise.
13027 (aarch64_use_new_vector_costs_p): New function.
13028 (aarch64_simd_vec_costs): New function, split out from...
13029 (aarch64_builtin_vectorization_cost): ...here.
13030 (aarch64_is_reduction): New function.
13031 (aarch64_detect_vector_stmt_subtype): Likewise.
13032 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
13033 using the new vector costs.
13035 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
13038 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
13039 TLS declarations as public.
13041 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
13043 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
13044 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
13045 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
13046 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
13047 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
13048 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
13049 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
13050 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
13051 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
13053 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
13056 * config.gcc (*-*-cygwin*): Add winnt-d.o
13057 (*-*-mingw*): Likewise.
13058 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
13059 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
13060 * config/i386/t-cygming: Add winnt-d.o.
13061 * config/i386/winnt-d.c: New file.
13063 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
13065 * config/freebsd-d.c: Include memmodel.h.
13067 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
13070 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
13071 * config/t-openbsd: Add openbsd-d.o.
13072 * config/openbsd-d.c: New file.
13074 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
13076 PR tree-optimization/96974
13077 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
13078 with graceful exit.
13080 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
13083 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
13087 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
13088 always_inline in system headers.
13090 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
13092 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
13094 2021-03-25 Jakub Jelinek <jakub@redhat.com>
13097 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
13098 * fold-const.c (operand_compare::operand_equal_p): Don't compare
13099 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
13101 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
13105 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
13106 always_inline in system headers.
13108 2021-03-25 Richard Biener <rguenther@suse.de>
13110 PR tree-optimization/99746
13111 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
13112 the scalar stmt as patterned. Instead set up required things
13115 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
13117 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
13120 2021-03-24 Martin Liska <mliska@suse.cz>
13123 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
13125 * config/i386/i386-options.c (ix86_option_override_internal):
13126 Add run-time assert.
13128 2021-03-24 Martin Jambor <mjambor@suse.cz>
13131 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
13132 parameters with unknown type.
13133 (ipacp_value_safe_for_type): New function.
13134 (propagate_vals_across_arith_jfunc): Verify that the constant type
13135 can be used for a type of the formal parameter.
13136 (propagate_vals_across_ancestor): Likewise.
13137 (propagate_scalar_across_jump_function): Likewise. Pass the type
13138 also to propagate_vals_across_ancestor.
13140 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
13143 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
13145 (movmisalign<mode>_mve_load): Likewise.
13147 2021-03-24 Jakub Jelinek <jakub@redhat.com>
13150 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
13151 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
13153 2021-03-24 Alexandre Oliva <oliva@adacore.com>
13155 * doc/sourcebuild.texi (sysconf): New effective target.
13157 2021-03-24 Alexandre Oliva <oliva@adacore.com>
13159 * config/i386/predicates.md (reg_or_const_vec_operand): New.
13160 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
13161 the now *-prefixed insn_and_split, turn the splitter const vec
13162 into an input for the insn, making it an ignored immediate for
13163 non-split cases, and loaded into the scratch register
13166 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
13169 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
13170 Use define_relaxed_memory_constraint for them.
13172 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
13175 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
13176 colon to the diagnostic message.
13178 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
13180 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
13182 (try_fwprop_subst_note): Use set_info instead of insn_info.
13183 (try_fwprop_subst_pattern): Likewise.
13184 (try_fwprop_subst_notes): Likewise.
13185 (try_fwprop_subst): Likewise.
13186 (forward_propagate_subreg): Likewise.
13187 (forward_propagate_and_simplify): Likewise.
13188 (forward_propagate_into): Likewise.
13189 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
13191 (set_info::single_nondebug_insn_use): Likewise.
13192 (set_info::single_phi_use): Likewise.
13193 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
13195 (set_info::single_nondebug_insn_use): Likewise.
13196 (set_info::single_phi_use): Likewise.
13198 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
13200 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
13202 2021-03-23 Jakub Jelinek <jakub@redhat.com>
13205 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
13206 expand_mult to perform an unsigned rather than a signed
13209 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
13212 * config/i386/cpuid.h (__cpuid): Add __volatile__.
13213 (__cpuid_count): Likewise.
13215 2021-03-23 Richard Biener <rguenther@suse.de>
13217 PR tree-optimization/99721
13218 * tree-vect-slp.c (vect_slp_analyze_node_operations):
13219 Make sure we can schedule the node.
13221 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
13223 * config/riscv/riscv.c (riscv_subword): Take endianness into
13224 account when calculating the byte offset.
13226 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
13228 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
13229 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
13230 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
13231 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
13232 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
13233 new predicate "subreg_lowpart_operator"
13235 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
13237 * config/riscv/riscv.c (riscv_swap_instruction): New function
13238 to byteswap an SImode rtx containing an instruction.
13239 (riscv_trampoline_init): Byteswap the generated instructions
13242 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
13244 * common/config/riscv/riscv-common.c
13245 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
13246 * config.gcc (riscv32be-*, riscv64be-*): Set
13247 TARGET_BIG_ENDIAN_DEFAULT to 1.
13248 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
13249 depending on default endianness.
13250 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13251 * config/riscv/linux.h (LINK_SPEC): Likewise.
13252 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
13253 default endianness.
13254 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
13256 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
13258 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
13259 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13260 * config/riscv/linux.h (LINK_SPEC): Likewise.
13261 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
13263 (BYTES_BIG_ENDIAN): Handle big endian.
13264 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13265 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
13267 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
13269 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13271 * regcprop.c (find_oldest_value_reg): Ask target whether
13272 different mode is fine for replacement register.
13274 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
13276 PR tree-optimization/99296
13277 * value-range.cc (irange::irange_set_1bit_anti_range): New.
13278 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
13279 * value-range.h (irange::irange_set_1bit_anti_range): New.
13281 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
13284 * config/aarch64/constraints.md (UtQ): Use
13285 define_relaxed_memory_constraint for it.
13286 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
13287 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13288 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
13289 (have_relaxed_memory_constraints): New static var.
13290 (relaxed_memory_start, relaxed_memory_end): Ditto.
13291 (add_constraint): Add arg is_relaxed_memory. Check name for
13292 relaxed memory. Set up is_relaxed_memory in constraint_data and
13293 have_relaxed_memory_constraints. Adjust calls.
13294 (choose_enum_order): Process relaxed memory.
13295 (write_tm_preds_h): Ditto.
13296 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13297 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13298 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
13299 * ira-lives.c (single_reg_class): Use
13300 insn_extra_relaxed_memory_constraint.
13301 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
13302 * lra-constraints.c (valid_address_p): Use
13303 insn_extra_relaxed_memory_constraint instead of other memory
13305 (process_alt_operands): Process CT_RELAXED_MEMORY.
13306 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
13307 * recog.c (asm_operand_ok, preprocess_constraints): Process
13309 * reload.c (find_reloads): Ditto.
13310 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
13311 * stmt.c (parse_input_constraint): Use
13312 insn_extra_relaxed_memory_constraint.
13314 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
13317 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
13320 2021-03-22 Alex Coplan <alex.coplan@arm.com>
13323 * config/arm/arm-protos.h (neon_make_constant): Add generate
13324 argument to guard emitting insns, default to true.
13325 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
13326 CONST_VECTORs which neon_make_constant can't handle.
13327 (neon_vdup_constant): Add generate argument, avoid emitting
13328 insns if it's not set.
13329 (neon_make_constant): Plumb new generate argument through.
13330 * config/arm/constraints.md (Ui): New. Use it...
13331 * config/arm/mve.md (*mve_mov<mode>): ... here.
13332 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
13333 synthesize constants.
13335 2021-03-22 Richard Biener <rguenther@suse.de>
13337 * debug.h: Add deprecation warning.
13339 2021-03-22 Richard Biener <rguenther@suse.de>
13341 PR tree-optimization/99694
13342 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
13345 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
13348 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
13349 after type checking.
13351 2021-03-22 Jakub Jelinek <jakub@redhat.com>
13355 * dwarf2out.c (get_full_len): Use get_precision rather than
13357 (add_const_value_attribute): Make sure add_AT_wide argument has
13358 precision prec rather than some very wide one.
13360 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
13362 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
13363 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
13364 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
13365 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
13366 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
13367 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
13368 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
13369 *fix_trunc<mode>si2_internal): Fix empty split condition.
13370 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
13371 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
13372 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
13373 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
13375 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
13378 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
13379 Convert idx to DImode.
13380 (rs6000_expand_vector_set_var_p8): Likewise.
13382 2021-03-21 Jakub Jelinek <jakub@redhat.com>
13385 * dwarf2out.c (insert_float): Change return type from void to
13386 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
13387 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
13390 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
13393 * config/i386/i386.c (construct_container): Check cfun != NULL
13394 before accessing silent_p.
13396 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
13398 * asan.c: Fix typos in comments.
13400 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
13402 PR rtl-optimization/99680
13403 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
13404 (process_address_1): Check empty constraint before using
13407 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
13409 * config/rs6000/rs6000.c (power10_cost): New.
13410 (rs6000_option_override_internal): Set Power10 costs.
13411 (rs6000_issue_rate): Set Power10 issue rate.
13412 * config/rs6000/power10.md: Rewrite for Power10.
13414 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
13417 * lra-constraints.c (process_address_1): Don't use unknown
13418 constraint for address constraint.
13420 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
13423 * config.gcc (powerpc-*-darwin8): Delete the reference to
13424 the now removed darwin8.h.
13426 2021-03-19 Olivier Hainque <hainque@adacore.com>
13429 * config/vxworksae.h (VX_CPU_PREFIX): Define.
13431 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
13433 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
13435 2021-03-19 Tamar Christina <tamar.christina@arm.com>
13437 PR tree-optimization/99656
13438 * tree-vect-slp-patterns.c (linear_loads_p,
13439 complex_add_pattern::matches, is_eq_or_top,
13440 vect_validate_multiplication, complex_mul_pattern::matches,
13441 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
13442 * tree-vectorizer.h: (complex_load_perm_t): Removed.
13443 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
13444 complex_load_perm_t.
13446 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
13449 * config/i386/i386-options.c (ix86_init_machine_status): Set
13451 * config/i386/i386.c (init_cumulative_args): Set silent_p to
13453 (construct_container): Return early for return and argument
13454 errors if silent_p is true.
13455 * config/i386/i386.h (machine_function): Add silent_p.
13457 2021-03-19 Jakub Jelinek <jakub@redhat.com>
13460 * config/arm/constraints.md (Ds): New constraint.
13461 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
13462 constraint instead of w,Dm.
13464 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
13466 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
13469 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
13471 PR middle-end/99641
13472 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
13473 array type, do the computation of the current position in sizetype.
13475 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
13478 * lra-constraints.c (process_address_1): Use lookup_constraint
13479 only for a single constraint.
13481 2021-03-18 Martin Sebor <msebor@redhat.com>
13483 PR middle-end/99502
13484 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
13485 (inbounds_memaccess_p): ...to this. Check the ending offset of
13486 the accessed member.
13488 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
13490 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
13491 %> quote markers to error messages.
13492 (gcn_goacc_validate_dims): Likewise.
13493 (gcn_conditional_register_usage): Remove exclaimation mark from error
13495 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
13497 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
13499 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
13502 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
13503 Kito Cheng <kito.cheng@sifive.com>
13505 * config/riscv/riscv.c (riscv_block_move_straight): Change type
13506 to unsigned HOST_WIDE_INT for parameter and local variable with
13507 HOST_WIDE_INT type.
13508 (riscv_adjust_block_mem): Ditto.
13509 (riscv_block_move_loop): Ditto.
13510 (riscv_expand_block_move): Ditto.
13512 2021-03-18 Nick Clifton <nickc@redhat.com>
13514 * config/v850/v850.c (construct_restore_jr): Increase static
13516 (construct_save_jarl): Likewise.
13517 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
13519 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13521 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
13522 (aarch64_override_options_internal): Use it.
13523 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
13526 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
13528 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
13529 error message format issues.
13530 (nios2_option_override): Likewise.
13531 (nios2_expand_fpu_builtin): Likewise.
13532 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
13533 truncation warning.
13534 (nios2_expand_custom_builtin): More error message format fixes.
13535 (nios2_expand_rdwrctl_builtin): Likewise.
13536 (nios2_expand_rdprs_builtin): Likewise.
13537 (nios2_expand_eni_builtin): Likewise.
13538 (nios2_expand_builtin): Likewise.
13539 (nios2_register_custom_code): Likewise.
13540 (nios2_valid_target_attribute_rec): Likewise.
13541 (nios2_add_insn_asm): Fix uninitialized variable warning.
13543 2021-03-17 Jan Hubicka <jh@suse.cz>
13545 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
13546 of gather to match reality.
13547 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
13549 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13551 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
13552 to compare against CC_REG rather than NE.
13554 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
13557 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
13558 inline assembly statements.
13559 (ix86_print_operand): Update 'P' handling for -fno-plt.
13561 2021-03-17 Tamar Christina <tamar.christina@arm.com>
13564 * config/aarch64/aarch64.c
13565 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
13567 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
13570 * config/rs6000/predicates.md (branch_comparison_operator): Allow
13571 ordered and unordered for CCFPmode, if flag_finite_math_only.
13573 2021-03-16 Jakub Jelinek <jakub@redhat.com>
13576 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
13577 rather than ASHIFT.
13578 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
13580 2021-03-16 Martin Liska <mliska@suse.cz>
13583 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
13584 cl_optimization_compare function.
13586 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
13588 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
13591 2021-03-16 Jakub Jelinek <jakub@redhat.com>
13594 * config/i386/i386.h (struct machine_function): Add
13595 has_explicit_vzeroupper bitfield.
13596 * config/i386/i386-expand.c (ix86_expand_builtin): Set
13597 cfun->machine->has_explicit_vzeroupper when expanding
13598 IX86_BUILTIN_VZEROUPPER.
13599 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
13600 Do the mode switching only when TARGET_VZEROUPPER, expensive
13601 optimizations turned on and not optimizing for size.
13602 (pass_insert_vzeroupper::gate): Enable even when
13603 cfun->machine->has_explicit_vzeroupper is set.
13605 2021-03-16 Jakub Jelinek <jakub@redhat.com>
13608 * config/aarch64/aarch64.c
13609 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
13610 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
13611 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
13613 2021-03-15 Richard Biener <rguenther@suse.de>
13615 PR tree-optimization/98834
13616 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
13617 subsetting by truncating the access size.
13619 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
13621 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
13622 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
13625 2021-03-15 Martin Liska <mliska@suse.cz>
13627 * spellcheck.c: Add missing comma in initialization.
13629 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
13631 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
13632 alternative 2 and alternative 1 with alternative 3 using
13633 YW register constraint.
13634 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
13635 using YW register constraint.
13636 (*vec_extractv16qi_zext): Ditto.
13637 (*vec_extractv4si): Merge alternatives 4 and 5
13638 using Yw register constraint.
13639 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
13641 2021-03-13 Martin Sebor <msebor@redhat.com>
13643 PR tree-optimization/99489
13644 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
13645 is not a call statement.
13647 2021-03-13 Jakub Jelinek <jakub@redhat.com>
13649 PR tree-optimization/99544
13650 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
13651 if for vector types multiplication can't be done in type's mode.
13653 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
13656 * config/sparc/constraints.md (w): Rename to...
13657 (W): ... this and ditch previous implementation.
13658 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
13659 (*movdf_insn_sp64): Likewise.
13660 (*mov<VM64:mode>_insn_sp64): Likewise.
13661 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
13663 (atomic_compare_and_swap_leon3_1): Likewise.
13664 (*atomic_compare_and_swapdi_v8plus): Likewise.
13665 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
13666 architecture and add missing address validity check during LRA.
13668 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
13671 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
13672 occuring for assumed-size arrays in use_device_{ptr,addr}.
13674 2021-03-12 Jakub Jelinek <jakub@redhat.com>
13677 * config/i386/constraints.md (YW): New internal constraint.
13678 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
13679 (*<sse2_avx2>_<insn><mode>3<mask_name>,
13680 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
13681 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
13683 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
13684 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
13685 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
13686 into one, use Yw instead of former x,v.
13687 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
13688 the last alternative.
13689 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
13690 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
13691 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
13692 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
13693 into one, use <v_Yw> instead of former x,v.
13694 (avx2_interleave_highv32qi<mask_name>,
13695 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
13696 constraints. Add && <mask_avx512bw_condition> to condition.
13697 (avx2_interleave_lowv32qi<mask_name>,
13698 vec_interleave_lowv16qi<mask_name>,
13699 avx2_interleave_highv16hi<mask_name>,
13700 vec_interleave_highv8hi<mask_name>,
13701 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
13702 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
13703 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
13704 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
13705 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
13706 Yw instead of v in constraints.
13707 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
13708 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
13709 instead of Yv in constraints.
13710 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
13711 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
13712 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
13713 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13714 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
13716 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
13717 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
13718 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
13719 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
13720 two, one with just x, another isa avx512vl with v.
13722 2021-03-12 Martin Liska <mliska@suse.cz>
13724 * doc/invoke.texi: Add missing param documentation.
13726 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13729 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
13730 analyzer/trimmed-graph.o.
13731 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
13732 feasibility checking to reflect new implementation.
13733 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
13735 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
13737 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13739 * digraph.cc (selftest::test_shortest_paths): Update
13740 shortest_paths init for new param. Add test of
13741 SPS_TO_GIVEN_TARGET.
13742 * shortest-paths.h (enum shortest_path_sense): New.
13743 (shortest_paths::shortest_paths): Add "sense" param.
13744 Update for renamings. Generalize to use "sense" param.
13745 (shortest_paths::get_shortest_path): Rename param.
13746 (shortest_paths::m_sense): New field.
13747 (shortest_paths::m_prev): Rename...
13748 (shortest_paths::m_best_edge): ...to this.
13749 (shortest_paths::get_shortest_path): Update for renamings.
13750 Conditionalize flipping of path on sense of traversal.
13752 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13754 * digraph.cc (selftest::test_shortest_paths): Add test coverage
13755 for paths from B and C.
13756 * shortest-paths.h (shortest_paths::shortest_paths): Handle
13757 unreachable nodes, rather than asserting.
13759 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
13762 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
13763 xcoff_tbss_section_name.
13764 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
13765 * xcoffout.c (xcoff_tbss_section_name): Delete.
13766 * xcoffout.h (xcoff_tbss_section_name): Delete.
13768 2021-03-11 Richard Biener <rguenther@suse.de>
13770 PR tree-optimization/99523
13771 * tree-cfg.c (dump_function_to_file): Dump SSA names
13772 w/o identifier to the decls section as well, not only those
13773 without a VAR_DECL.
13775 2021-03-11 Jakub Jelinek <jakub@redhat.com>
13778 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
13779 function calls with lhs fail if the lhs don't have compatible types.
13781 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
13783 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
13784 Change FRAME_POINTER_REGNUM to correspond to a new faked
13785 register faked_fp, part of GENNONACR_REGS like faked_ap.
13786 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
13787 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
13788 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
13789 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
13790 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
13792 (CRIS_REAL_FP_REGNUM): New constant.
13793 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
13794 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
13795 (cris_initial_elimination_offset): Handle elimination changes
13796 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
13797 and add one from FRAME_POINTER_REGNUM to
13798 HARD_FRAME_POINTER_REGNUM.
13799 (cris_expand_prologue, cris_expand_epilogue): Emit code for
13800 hard_frame_pointer_rtx instead of frame_pointer_rtx.
13802 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
13805 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
13806 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
13808 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
13811 * lra-constraints.c (process_address_1): Don't check unknown
13812 constraint, use X for empty constraint.
13814 2021-03-10 Alex Coplan <alex.coplan@arm.com>
13816 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
13817 Fix typo in comment describing "is_ha" argument.
13819 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
13821 * doc/sourcebuild.texi: Document LRA target selector.
13823 2021-03-10 David Malcolm <dmalcolm@redhat.com>
13825 * doc/ux.texi: Add subsection contrasting interactive versus
13826 batch usage of GCC.
13828 2021-03-10 Joel Hutton <joel.hutton@arm.com>
13831 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
13833 (vectorizable_load): Fix gather load mask check condition.
13835 2021-03-10 Richard Biener <rguenther@suse.de>
13837 PR tree-optimization/99510
13838 * tree.c (check_aligned_type): Check that the candidate
13839 has TYPE_USER_ALIGN set instead of matching with the
13842 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
13844 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
13845 float and vector integer modes only if the mode is not larger.
13847 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
13849 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
13851 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13853 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
13855 * ira-lives.c (single_reg_class): Ditto.
13857 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13859 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
13860 the architecture-specific rtems.h.
13861 (aarch64-*-rtems*): Likewise.
13862 (arm*-*-rtems*): Likewise.
13863 (epiphany-*-rtems*): Likewise.
13864 (riscv*-*-rtems*): Likewise.
13866 2021-03-09 Jakub Jelinek <jakub@redhat.com>
13868 PR tree-optimization/99305
13869 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
13870 before integer_all_onesp instead of vice versa.
13872 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
13874 * common/config/arm/arm-common.c (arm_config_default): Change type
13875 of 'i' to unsigned.
13877 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13880 * lra-constraints.c (process_address_1): Process constraint 'g'
13881 separately and digital constraints containing more one digit.
13883 2021-03-09 Nick Clifton <nickc@redhat.com>
13885 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
13886 (DWARF"_DEBUGGING_INFO): Define.
13888 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
13891 * calls.c (initialize_argument_information): When the argument
13892 is passed by reference, do not make a copy in a thunk only if
13893 the argument is already in memory. Remove redundant test for
13894 the case of callee copy.
13896 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13899 * lra-constraints.c (process_address_1): Process 0..9 constraints
13900 in process_address_1.
13902 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
13904 * config/s390/s390.c (struct s390_processor processor_table):
13905 Binutils name string must not be empty.
13907 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
13909 * config/arc/arc.c (arc_attr_type): Remove function.
13911 2021-03-09 Martin Liska <mliska@suse.cz>
13914 * config/i386/i386-options.c (ix86_option_override_internal):
13915 Set isa_flags for OPTS argument and not for the global
13918 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13920 * config/rs6000/predicates.md (ds_form_mem_operand): Check
13923 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13926 * config/rs6000/predicates.md (ds_form_mem_operand) New
13928 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
13929 ds_form_mem_operand in ld/lwa patterns.
13930 * config/rs6000/fusion.md: Regenerate file.
13932 2021-03-08 Martin Sebor <msebor@redhat.com>
13934 PR middle-end/98266
13935 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
13936 (array_bounds_checker::check_array_bounds): Call it.
13938 2021-03-08 Martin Sebor <msebor@redhat.com>
13940 PR middle-end/97631
13941 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
13942 (handle_builtin_stxncpy_strncat): Rename locals. Determine
13943 destination size from allocation calls. Issue a more appropriate
13945 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
13946 (handle_builtin_memset): Same.
13948 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
13951 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
13952 to ensure we do not have an Altivec style address.
13953 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
13954 an Altivec style address.
13955 (*vsx_le_perm_store_<mode>): Likewise.
13956 (splitters after *vsx_le_perm_store_<mode>): Likewise.
13957 (vsx_load_<mode>): Disable special expander if passed an Altivec
13959 (vsx_store_<mode>): Likewise.
13961 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13964 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
13965 (aarch64_simd_shift_imm_vec_hi): Likewise.
13966 (aarch64_simd_shift_imm_vec_si): Likewise.
13967 (aarch64_simd_shift_imm_vec_di): Likewise.
13968 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
13969 predicate from above.
13970 (aarch64_shrn<mode>_insn_be): Likewise.
13971 (aarch64_rshrn<mode>_insn_le): Likewise.
13972 (aarch64_rshrn<mode>_insn_be): Likewise.
13973 (aarch64_shrn2<mode>_insn_le): Likewise.
13974 (aarch64_shrn2<mode>_insn_be): Likewise.
13975 (aarch64_rshrn2<mode>_insn_le): Likewise.
13976 (aarch64_rshrn2<mode>_insn_be): Likewise.
13978 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
13981 * lra-constraints.c (skip_contraint_modifiers): New function.
13982 (process_address_1): Use it before lookup_constraint call.
13984 2021-03-08 Martin Liska <mliska@suse.cz>
13987 * config/i386/i386-options.c (ix86_option_override_internal):
13988 Enable UINTR and HRESET for -march that supports it.
13990 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
13992 * config/s390/s390.c (f_constraint_p): New function.
13993 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
13994 (TARGET_MD_ASM_ADJUST): Likewise.
13996 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
13999 * tree-nested.c (convert_local_reference_stmt): Avoid calling
14000 lookup_field_for_decl for Fortran module (= namespace context).
14002 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
14004 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
14005 comparison with arithmetic right shift.
14006 (s390_expand_vcond): No need for a force_reg anymore.
14007 s390_vec_compare will do it.
14008 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
14009 immediate operands.
14011 2021-03-07 Jakub Jelinek <jakub@redhat.com>
14014 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
14015 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
14017 * config/i386/sse.md (v_Yw): New define_mode_attr.
14018 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
14019 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
14021 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
14022 xYw in constraints.
14024 2021-03-06 Julian Brown <julian@codesourcery.com>
14026 * tree-pretty-print.c (dump_generic_node): Emit non-generic
14027 address space info for aggregates.
14029 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
14031 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
14033 2021-03-05 Jakub Jelinek <jakub@redhat.com>
14035 PR middle-end/99322
14036 * tree-cfg.c (bb_to_omp_idx): New variable.
14037 (execute_build_cfg): Release the bb_to_omp_idx vector after
14038 cleanup_tree_cfg returns.
14039 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
14040 for bb_to_omp_idx being a vec<int> instead of pointer to array
14042 (make_edges): Remove bb_to_omp_idx local variable, don't pass
14043 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
14044 vec<int> instead of pointer to array of ints and don't free/release
14046 (remove_bb): When removing a bb and placing forced label somewhere
14047 else, ensure it is put into the same OpenMP region during cfg
14048 pass if possible or to entry successor as fallback. Unregister
14049 bb from bb_to_omp_idx.
14051 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
14054 * lra-constraints.c (process_address_1): Skip decomposing address
14055 for asm insn operand with unknown constraint.
14057 2021-03-05 Martin Jambor <mjambor@suse.cz>
14060 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
14061 corresponding speculative edges if we are about to resolve
14062 sepculation. Make edge direct (and so resolve speculations) before
14063 removing it from call_site_hash.
14064 (cgraph_edge::make_direct): Relax the initial assert to allow calling
14065 the function on speculative direct edges.
14067 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
14069 PR rtl-optimization/99376
14070 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
14071 of low-order zero bits is too large, set the result to 0 directly.
14073 2021-03-04 Jakub Jelinek <jakub@redhat.com>
14075 PR middle-end/93235
14076 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
14077 SUBREG and a SUBREG to op_mode can't be created.
14079 2021-03-04 Alex Coplan <alex.coplan@arm.com>
14082 * config/aarch64/aarch64-sve-builtins.cc
14083 (function_resolver::require_vector_type): Handle error_mark_node.
14085 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
14087 * cfgexpand.c (expand_asm_loc): Pass new parameter.
14088 (expand_asm_stmt): Likewise.
14089 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
14091 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
14092 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
14093 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
14094 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
14095 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
14096 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
14097 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
14098 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
14099 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
14100 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
14101 * doc/tm.texi (md_asm_adjust): Likewise.
14102 * target.def (md_asm_adjust): Likewise.
14104 2021-03-04 Richard Biener <rguenther@suse.de>
14106 PR middle-end/97855
14107 * tree-pretty-print.c: Poison pp_printf.
14108 (dump_decl_name): Avoid use of pp_printf.
14109 (dump_block_node): Likewise.
14110 (dump_generic_node): Likewise.
14112 2021-03-04 Martin Sebor <msebor@redhat.com>
14114 PR middle-end/96963
14115 PR middle-end/94655
14116 * builtins.c (handle_array_ref): New helper.
14117 (handle_mem_ref): New helper.
14118 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
14119 into new helper functions. Correct a workaround for vectorized
14122 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
14124 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
14125 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
14126 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
14127 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
14128 attribute for Power10.
14129 * config/rs6000/mma.md (*movoo): Likewise.
14130 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
14131 (define_mode_attr bits): Add DD/TD modes.
14132 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
14133 store_conditionalpti): Update size attribute for Power10.
14135 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
14139 -Wuninitialized, -Wmaybe-uninitialized.
14140 (wide-int.o-warn): Likewise.
14142 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
14144 * common/config/arm/arm-common.c: Include configargs.h.
14145 (arm_config_default): New function.
14146 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
14147 processors that do not support Thumb. Take into account the
14148 --with-mode configuration setting for selecting the default.
14149 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
14150 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
14152 2021-03-03 Martin Liska <mliska@suse.cz>
14154 PR gcov-profile/97461
14155 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
14157 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
14160 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
14161 point back the hard frame pointer to its default location when the
14162 frame is larger than SEH_MAX_FRAME_SIZE.
14164 2021-03-03 Jakub Jelinek <jakub@redhat.com>
14167 * config/i386/predicates.md (logic_operator): New define_predicate.
14168 * config/i386/i386.md (mov + mem using comm arith peephole2):
14169 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
14170 and the inner mode is [QH]Imode.
14172 2021-03-03 Jakub Jelinek <jakub@redhat.com>
14175 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
14176 (new_loc_list): Clear end_entry.
14177 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
14178 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
14180 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
14181 initialize also end_entry.
14183 2021-03-03 Jakub Jelinek <jakub@redhat.com>
14186 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
14187 partitions, if in non-layout mode after reorder_blocks also move
14188 affected blocks to ensure a single partition transition.
14190 2021-03-03 Jason Merrill <jason@redhat.com>
14193 * cgraphunit.c (process_function_and_variable_attributes): Don't
14194 warn about flatten on an alias if the target also has it.
14195 * cgraph.h (symtab_node::get_alias_target_tree): New.
14197 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
14199 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
14200 period to symbol name.
14201 (tls_get_addr_internal<mode>): Same.
14203 2021-03-02 David Malcolm <dmalcolm@redhat.com>
14206 * diagnostic-show-locus.c
14207 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
14210 2021-03-02 Martin Sebor <msebor@redhat.com>
14212 PR middle-end/99276
14213 * builtins.c (warn_for_access): Remove stray warning text.
14215 2021-03-02 Martin Sebor <msebor@redhat.com>
14217 PR middle-end/99295
14218 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
14221 2021-03-02 Jakub Jelinek <jakub@redhat.com>
14224 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
14225 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
14226 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
14227 DW_MACRO_define_strx and DW_MACRO_undef_strx.
14228 (save_macinfo_strings): Use DW_MACRO_*_str* even with
14229 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
14230 DW_MACRO_undef_strx.
14232 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
14234 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
14236 (BT_FN_V8HI_V8HI_UINT): Likewise.
14237 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
14238 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
14239 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
14240 New builtin definitions.
14241 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
14242 vector extension version.
14243 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
14244 available with current -march level.
14245 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
14246 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
14247 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
14248 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
14249 (vec_extend_to_fp32_lo): Likewise.
14250 (vec_round_from_fp32): Likewise.
14251 (vec_convert_to_fp16): Likewise.
14252 (vec_convert_from_fp16): Likewise.
14253 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
14254 (vclfnls_v8hi): Likewise.
14255 (vcrnfs_v8hi): Likewise.
14256 (vcfn_v8hi): Likewise.
14257 (vcnf_v8hi): Likewise.
14259 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
14261 * common/config/s390/s390-common.c (processor_flags_table): New entry.
14262 * config.gcc: Enable arch14 for --with-arch and --with-tune.
14263 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
14264 arch14 for unknown CPU models.
14265 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
14266 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
14267 (s390_get_sched_attrmask): Likewise.
14268 (s390_get_unit_mask): Likewise.
14269 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
14270 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
14271 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
14272 (TARGET_NNPA_P): New macro definitions.
14273 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
14274 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
14276 2021-03-02 Jakub Jelinek <jakub@redhat.com>
14278 PR middle-end/95757
14279 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
14280 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
14281 != 1 comparisons if name is lhs of a comparison.
14283 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
14287 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
14288 * config/darwin.c (darwin_should_restore_cfa_state): New.
14289 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
14290 * doc/tm.texi: Regenerated.
14291 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
14292 * dwarf2cfi.c (connect_traces): If the target requests, restore
14293 the CFA expression after a DW_CFA_restore.
14294 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
14296 2021-03-01 Martin Liska <mliska@suse.cz>
14299 * optc-save-gen.awk: Add 4 more exceptions.
14301 2021-03-01 Nathan Sidwell <nathan@acm.org>
14304 * tree.h (TYPE_ALIGN_RAW): New accessor.
14305 (TYPE_ALIGN): Use it.
14307 2021-03-01 Jan Hubicka <jh@suse.cz>
14310 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
14312 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
14315 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
14316 point the hard frame pointer to the SSE register save area instead
14317 of the general register save area. Perform only minimal adjustment
14318 for small frames if it is initially not correctly aligned.
14319 (ix86_expand_prologue): Remove early saves for a SEH target.
14320 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
14322 2021-02-28 Jakub Jelinek <jakub@redhat.com>
14325 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
14326 typo - referneced -> referenced.
14327 * tree.c (component_ref_size): Fix comment typo -
14328 refernce -> reference.
14329 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
14330 traling -> trailing.
14331 (aliasing_component_refs_p): Fix comment typos -
14332 refernce -> reference and refernece -> reference and
14333 traling -> trailing.
14334 (nonoverlapping_refs_since_match_p): Fix comment typo -
14335 referneces -> references.
14336 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
14337 referneces -> references.
14339 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
14341 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
14342 diagnostic message to avoid use of a contraction and format
14345 2021-02-27 Jakub Jelinek <jakub@redhat.com>
14348 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
14349 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
14350 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
14351 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
14354 2021-02-26 Richard Biener <rguenther@suse.de>
14356 PR middle-end/99281
14357 * expr.c (store_field): For calls with return-slot optimization
14358 and addressable return type expand the store directly.
14360 2021-02-26 Richard Biener <rguenther@suse.de>
14363 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
14365 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
14368 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
14371 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
14373 * config.gcc: Add rs6000-pcrel-opt.o.
14374 * config/rs6000/rs6000-pcrel-opt.c: New file.
14375 * config/rs6000/pcrel-opt.md: New file.
14376 * config/rs6000/predicates.md: Add d_form_memory predicate.
14377 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
14378 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
14379 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
14380 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
14381 and make_pass_pcrel_opt().
14382 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
14383 (rs6000_option_override_internal): Add pcrel-opt.
14384 (rs6000_delegitimize_address): Support pcrel-opt.
14385 (rs6000_opt_masks): Add pcrel-opt.
14386 (pcrel_opt_valid_mem_p): New function.
14387 (reg_to_non_prefixed): Make global.
14388 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
14389 (output_pcrel_opt_reloc): New function.
14390 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
14391 (pcrel_extern_addr): Set loads_extern_addr.
14392 Add include for pcrel-opt.md.
14393 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
14394 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
14397 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
14400 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
14401 If TARGET_64BIT and dest is SUBREG, we check the width, if it
14402 equal to SImode, we use SImode operation, just like what we are
14405 2021-02-26 Marek Polacek <polacek@redhat.com>
14407 * builtins.c (warn_for_access): Fix typos.
14409 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
14411 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
14412 mark in front of the immediate quantity.
14413 (<optab>_rolsi3_uxtw): Likewise.
14415 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
14418 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
14419 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
14420 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
14421 address and disable when the FPCXT is not available.
14422 (nonsecure_call_value_reg_thumb2): Likewise.
14424 2021-02-25 Nathan Sidwell <nathan@acm.org>
14427 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
14429 2021-02-25 Tamar Christina <tamar.christina@arm.com>
14431 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
14433 2021-02-25 Richard Biener <rguenther@suse.de>
14435 PR tree-optimization/99253
14436 * tree-vect-loop.c (check_reduction_path): First compute
14437 code, then verify out-of-loop uses.
14439 2021-02-25 Jakub Jelinek <jakub@redhat.com>
14442 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
14444 2021-02-25 Jakub Jelinek <jakub@redhat.com>
14446 PR tree-optimization/80635
14447 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
14448 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
14449 has mode precision.
14451 2021-02-25 Richard Biener <rguenther@suse.de>
14453 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
14454 load_map population.
14455 (vect_match_slp_patterns_2): Revert part of last change.
14456 (vect_analyze_slp): Do not interleave optimize_load_redistribution
14457 with pattern detection but do it afterwards. Dump the
14458 whole SLP graph after pattern recognition and load
14459 redistribution optimization finished.
14461 2021-02-24 Jakub Jelinek <jakub@redhat.com>
14464 * omp-low.c (struct omp_context): Add teams_nested_p and
14465 nonteams_nested_p members.
14466 (scan_omp_target): Diagnose teams nested inside of target with other
14467 directives strictly nested inside of the same target.
14468 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
14469 ctx->nonteams_nested_p as needed.
14471 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
14473 PR inline-asm/99123
14474 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
14476 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
14478 * config/cris/cris.c (cris_expand_prologue): Set
14479 current_function_static_stack_size, if flag_stack_usage_info.
14481 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
14483 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
14484 (rs6000_final_prescan_insn): Adjust.
14485 (rs6000_asm_output_opcode): Likewise.
14487 2021-02-24 Martin Sebor <msebor@redhat.com>
14489 PR middle-end/97172
14490 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
14491 from function arguments.
14493 2021-02-24 Tamar Christina <tamar.christina@arm.com>
14495 PR tree-optimization/99220
14496 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
14497 node from cache when it's about to be deleted.
14499 2021-02-24 Jakub Jelinek <jakub@redhat.com>
14501 PR tree-optimization/99225
14502 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
14503 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
14504 build_int_cst (..., 1). Formatting fixes.
14506 2021-02-24 Tamar Christina <tamar.christina@arm.com>
14508 PR tree-optimization/99149
14509 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
14511 (vect_slp_reset_pattern): Remove.
14512 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
14513 (complex_mul_pattern::build, complex_fma_pattern::build,
14514 complex_fms_pattern::build): Fix ref counts.
14515 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
14516 when node is being deleted.
14517 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
14518 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
14520 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
14522 2021-02-24 Matthias Klose <doko@ubuntu.com>
14525 2020-12-07 Matthias Klose <doko@ubuntu.com>
14527 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
14528 and ENABLE_RTL_FLAG_CHECKING.
14530 2021-02-24 Richard Biener <rguenther@suse.de>
14533 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
14535 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
14537 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
14538 (vsx_assemble_pair): ...to this.
14539 (*mma_assemble_pair): Rename from this...
14540 (*vsx_assemble_pair): ...to this.
14541 (mma_disassemble_pair): Rename from this...
14542 (vsx_disassemble_pair): ...to this.
14543 (*mma_disassemble_pair): Rename from this...
14544 (*vsx_disassemble_pair): ...to this.
14545 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
14546 BU_COMPAT): New macros.
14547 (mma_assemble_pair): Rename from this...
14548 (vsx_assemble_pair): ...to this.
14549 (mma_disassemble_pair): Rename from this...
14550 (vsx_disassemble_pair): ...to this.
14551 (mma_assemble_pair): New compatibility built-in.
14552 (mma_disassemble_pair): Likewise.
14553 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
14554 (RS6000_BUILTIN_COMPAT): Define.
14555 (bdesc_compat): New.
14556 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
14557 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
14558 and VSX_BUILTIN_ASSEMBLE_PAIR.
14559 (rs6000_init_builtins): Register compatibility built-ins.
14560 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
14561 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
14562 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
14563 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
14564 (__builtin_vsx_assemble_pair): ...to this.
14565 (__builtin_mma_disassemble_pair): Rename from this...
14566 (__builtin_vsx_disassemble_pair): ...to this.
14568 2021-02-23 Martin Liska <mliska@suse.cz>
14571 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
14572 with different alignment. That leads to an invalid red zone
14573 size allocated in runtime.
14575 2021-02-23 Jakub Jelinek <jakub@redhat.com>
14577 PR tree-optimization/99204
14578 * fold-const.c (fold_read_from_constant_string): Check that
14579 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
14581 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
14582 Kewen Lin <linkw@gcc.gnu.org>
14584 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
14585 (rotl<mode>3_insert_3): ...this.
14586 (plus_ior_xor): New code_iterator.
14587 (define_split for GPR rl*imi): New splitter.
14588 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
14589 for integer merging.
14591 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14593 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
14595 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
14596 into a register when the above is enabled.
14597 * config/aarch64/aarch64.c (neoversev1_tunings):
14598 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
14599 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
14601 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
14603 * config/cris/cris.c (cris_print_operand) <'T'>: Change
14604 valid operand from is now an addi mult-value to shift-value.
14605 * config/cris/cris.md (*addi): Change expression of scaled
14606 operand from mult to ashift.
14607 * config/cris/cris.md (*addi_reload): New insn_and_split.
14609 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
14612 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
14613 hook_bool_const_tree_hwi_hwi_const_tree_true.
14614 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
14616 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
14618 PR rtl-optimization/98791
14619 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
14620 for unordered modes.
14622 2021-02-22 Martin Liska <mliska@suse.cz>
14624 * tree-inline.c (inline_forbidden_p): Set
14625 inline_forbidden_reason.
14627 2021-02-22 Richard Biener <rguenther@suse.de>
14629 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
14632 2021-02-22 Richard Biener <rguenther@suse.de>
14634 PR tree-optimization/99165
14635 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
14636 Accumulate changed to ret.
14638 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
14641 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
14643 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
14645 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
14648 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
14650 (trunctf<DFP_ALL:mode>2): Likewise.
14651 (trunctdtf2_vr): Likewise.
14652 (trunctdtf2): Likewise.
14653 (extend<DFP_ALL:mode>tf2_vr): Likewise.
14654 (extend<DFP_ALL:mode>tf2): Likewise.
14655 (extendtftd2_vr): Likewise.
14656 (extendtftd2): Likewise.
14658 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
14660 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
14661 add memory alternative.
14662 (tf_to_fprx2): New pattern.
14664 2021-02-19 Martin Sebor <msebor@redhat.com>
14667 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
14668 (attr_access::free_lang_data): Remove a spurious test.
14670 2021-02-19 Nathan Sidwell <nathan@acm.org>
14672 * doc/invoke.texi (flang-info-module-read): Document.
14674 2021-02-19 Martin Liska <mliska@suse.cz>
14676 PR translation/99167
14677 * params.opt: Fix typo.
14679 2021-02-19 Richard Biener <rguenther@suse.de>
14681 PR middle-end/99122
14682 * tree-inline.c (inline_forbidden_p): Do not inline functions
14683 with VLA arguments or return value.
14685 2021-02-19 Jakub Jelinek <jakub@redhat.com>
14688 * config/arm/arm.md (*stack_protect_combined_set_insn,
14689 *stack_protect_combined_test_insn): If force_const_mem result
14690 is not valid general operand, force its address into the destination
14693 2021-02-19 Jakub Jelinek <jakub@redhat.com>
14696 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
14697 pad or non-local label, put FORCED_LABELs from bb b after that label
14698 rather than before it.
14700 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
14703 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
14704 expand_vector_broadcast' to emit the vec_duplicate operand.
14706 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
14708 PR rtl-optimization/96264
14709 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
14712 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
14715 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
14716 looking up the retain attribute.
14717 (resolve_unique_section): Likewise.
14718 (get_variable_section): Likewise.
14719 (switch_to_section): Likewise. Warn when a symbol without the
14720 retain attribute and a symbol with the retain attribute are
14721 placed in the section with the same name, instead of the used
14723 * doc/extend.texi: Document the "retain" attribute.
14725 2021-02-18 Nathan Sidwell <nathan@acm.org>
14728 * doc/invoke.texi (flang-info-include-translate): Document header
14731 2021-02-18 Richard Biener <rguenther@suse.de>
14733 PR middle-end/99122
14734 * ipa-fnsummary.c (analyze_function_body): Set
14735 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
14736 * tree-inline.c (insert_init_debug_bind): Pass NULL for
14737 error_mark_node values.
14738 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
14740 (setup_one_parameter): Delay force_value_to_type until when
14743 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
14745 PR tree-optimization/99142
14746 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
14748 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14750 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
14751 wide_int_bitmask::wide_int_bitmask (uint64_t),
14752 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
14753 wide_int_bitmask::operator ~ () const,
14754 wide_int_bitmask::operator | (wide_int_bitmask) const,
14755 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
14757 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
14758 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
14759 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
14760 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
14761 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
14762 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
14763 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
14764 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
14765 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
14766 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
14767 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
14768 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
14769 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
14770 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
14771 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
14772 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
14773 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
14774 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
14775 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
14776 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
14777 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
14778 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
14779 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
14780 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
14782 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14784 PR middle-end/99109
14785 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
14786 (build_printable_array_type): ... this. Add nelts argument. For
14787 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
14788 nelts, call build_array_type_nelts.
14789 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
14790 instead of build_zero_elt_array_type and build_array_type_nelts.
14792 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14795 * config/i386/i386.c (distance_non_agu_define): Don't call
14796 extract_insn_cached here.
14797 (ix86_lea_outperforms): Save and restore recog_data around call
14798 to distance_non_agu_define and distance_agu_use.
14799 (ix86_ok_to_clobber_flags): Remove.
14800 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
14801 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
14802 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
14803 into define_insn. Move the splitting to define_peephole2 and
14804 check there using peep2_regno_dead_p if FLAGS_REG is dead.
14806 2021-02-17 Julian Brown <julian@codesourcery.com>
14808 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
14811 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
14814 * config/mips/mips.c (mips_symbol_insns): Do not use
14815 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
14817 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
14819 PR inline-asm/98096
14820 * stmt.c (resolve_operand_name_1): Take inout operands into account
14821 for access to labels by names.
14822 * doc/extend.texi: Describe counting operands for accessing labels.
14824 2021-02-16 Richard Biener <rguenther@suse.de>
14826 PR tree-optimization/38474
14827 * tree-ssa-structalias.c (variable_info::address_taken): New.
14828 (new_var_info): Initialize address_taken.
14829 (process_constraint): Set address_taken.
14830 (solve_constraints): Use the new address_taken flag rather
14831 than is_reg_var for sorting variables.
14832 (dump_constraint): Dump the variable number if the name
14835 2021-02-16 Jakub Jelinek <jakub@redhat.com>
14838 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
14839 multiply by 4096 and for inbranch by 8192.
14840 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
14841 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
14843 2021-02-15 Maya Rashish <coypu@sdf.org>
14845 * config/aarch64/aarch64.c (aarch64_init_builtins):
14846 Call SUBTARGET_INIT_BUILTINS.
14848 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
14850 PR rtl-optimization/98872
14851 * init-regs.c (initialize_uninitialized_regs): Skip initialization
14852 if CONST0_RTX is NULL.
14854 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
14856 PR rtl-optimization/98863
14857 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
14858 (function_info::build_info): Turn into a declaration, moving the
14859 definition to internals.h.
14860 (function_info::bb_walker): Declare.
14861 (function_info::create_reg_use): Likewise.
14862 (function_info::calculate_potential_phi_regs): Take a build_info
14864 (function_info::place_phis, function_info::create_ebbs): Declare.
14865 (function_info::calculate_ebb_live_in_for_debug): Likewise.
14866 (function_info::populate_backedge_phis): Delete.
14867 (function_info::start_block, function_info::end_block): Declare.
14868 (function_info::populate_phi_inputs): Delete.
14869 (function_info::m_potential_phi_regs): Move information to build_info.
14870 * rtl-ssa/internals.h: New file.
14871 (function_info::bb_phi_info): New class.
14872 (function_info::build_info): Moved from functions.h.
14873 Add a constructor and destructor.
14874 (function_info::build_info::ebb_use): Delete.
14875 (function_info::build_info::ebb_def): Likewise.
14876 (function_info::build_info::bb_live_out): Likewise.
14877 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
14878 (function_info::build_info::potential_phi_regs): Likewise.
14879 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
14880 (function_info::build_info::ebb_def_regs): Likewise.
14881 (function_info::build_info::bb_phis): Likewise.
14882 (function_info::build_info::bb_mem_live_out): Likewise.
14883 (function_info::build_info::bb_to_rpo): Likewise.
14884 (function_info::build_info::def_stack): Likewise.
14885 (function_info::build_info::old_def_stack_limit): Likewise.
14886 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
14887 Remove the regno argument. Push the previous definition onto the
14888 definition stack where necessary.
14889 * rtl-ssa/accesses.cc: Include internals.h.
14890 * rtl-ssa/changes.cc: Likewise.
14891 * rtl-ssa/blocks.cc: Likewise.
14892 (function_info::build_info::build_info): Define.
14893 (function_info::build_info::~build_info): Likewise.
14894 (function_info::bb_walker): New class.
14895 (function_info::bb_walker::bb_walker): Define.
14896 (function_info::add_live_out_use): Convert a logarithmic-complexity
14897 test into a linear one. Allow the same definition to be passed
14899 (function_info::calculate_potential_phi_regs): Moved from
14900 functions.cc. Take a build_info parameter and store the
14901 information there instead.
14902 (function_info::place_phis): New function.
14903 (function_info::add_entry_block_defs): Update call to record_reg_def.
14904 (function_info::calculate_ebb_live_in_for_debug): New function.
14905 (function_info::add_phi_nodes): Use bb_phis to decide which
14906 registers need phi nodes and initialize ebb_def_regs accordingly.
14907 Do not add degenerate phis here.
14908 (function_info::add_artificial_accesses): Use create_reg_use.
14909 Assert that all definitions are listed in the DF LR sets.
14910 Update call to record_reg_def.
14911 (function_info::record_block_live_out): Record live-out register
14912 values in the phis of successor blocks. Use the live-out set
14913 when processing the last block in an EBB, instead of always
14914 using the live-in sets of successor blocks. AND the live sets
14915 with the set of registers that have been defined in the EBB,
14916 rather than with all potential phi registers. Cope correctly
14917 with branches back to the start of the current EBB.
14918 (function_info::start_block): New function.
14919 (function_info::end_block): Likewise.
14920 (function_info::populate_phi_inputs): Likewise.
14921 (function_info::create_ebbs): Likewise.
14922 (function_info::process_all_blocks): Rewrite into a multi-phase
14924 * rtl-ssa/functions.cc: Include internals.h.
14925 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
14926 (function_info::init_function_data): Remove caller.
14927 * rtl-ssa/insns.cc: Include internals.h
14928 (function_info::create_reg_use): New function. Lazily any
14929 degenerate phis needed by the linear RPO view.
14930 (function_info::record_use): Use create_reg_use. When processing
14931 debug uses, use potential_phi_regs and test it before checking
14932 whether the register is live on entry to the current EBB. Lazily
14933 calculate ebb_live_in_for_debug.
14934 (function_info::record_call_clobbers): Update call to record_reg_def.
14935 (function_info::record_def): Likewise.
14937 2021-02-15 Martin Liska <mliska@suse.cz>
14939 * toplev.c (init_asm_output): Free output of
14940 gen_command_line_string function.
14941 (process_options): Likewise.
14943 2021-02-15 Martin Liska <mliska@suse.cz>
14945 * params.opt: Add 2 missing Param keywords.
14947 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
14949 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
14951 2021-02-15 Jakub Jelinek <jakub@redhat.com>
14953 PR tree-optimization/99079
14954 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
14955 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
14956 require both type and TREE_TYPE (@1) to be integral types and either
14957 type having smaller or equal precision, or TREE_TYPE (@1) being
14958 unsigned type, or type being signed type. If TREE_TYPE (@1)
14959 doesn't have wrapping overflow, perform the subtraction of one in
14962 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
14963 Richard Biener <rguether@suse.de>
14966 * ipa-reference.c (ipa_init): Only conditinally initialize
14967 reference_vars_to_consider.
14968 (propagate): Conditionally deninitialize reference_vars_to_consider.
14969 (ipa_reference_write_optimization_summary): Sanity check that
14970 reference_vars_to_consider is not allocated.
14972 2021-02-13 Levy Hsu <admin@levyhsu.com>
14975 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
14976 extend parameter to get_si_mem_base_reg declaration.
14977 (get_si_mem_base_reg): Add extend parameter. Set it.
14978 (analyze): Pass extend arg to get_si_mem_base_reg.
14979 (transform): Likewise. Use it when rewriting mems.
14980 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
14981 loads and emit sign/zero extending load followed by subreg move.
14983 2021-02-13 Jim Wilson <jimw@sifive.com>
14986 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
14987 exit when !reload_completed. Only perform check for compressed reg
14988 if reload_completed.
14989 (riscv_rtx_costs): In MEM case, when optimizing for size and
14990 shorten memrefs, if not compressible, then increase cost.
14992 2021-02-13 Jakub Jelinek <jakub@redhat.com>
14994 PR rtl-optimization/98439
14995 * recog.c (pass_split_before_regstack::gate): Enable even when
14996 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
14999 2021-02-13 Jakub Jelinek <jakub@redhat.com>
15002 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
15003 swap of V2SImode elements in memory into DImode memory rotate by 32.
15005 2021-02-12 Martin Sebor <msebor@redhat.com>
15007 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
15009 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
15011 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
15012 m_temp_obstack rather than m_obstack to allocate the temporary use.
15014 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
15016 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
15017 as read-modify operations.
15019 2021-02-12 Richard Biener <rguenther@suse.de>
15021 PR middle-end/38474
15022 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
15023 fbi->aa_walk_budget is bigger than zero. Update
15024 fbi->aa_walk_budget.
15025 (param_change_prob): Likewise.
15026 * ipa-prop.c (detect_type_change_from_memory_writes):
15027 Properly account walk_aliased_vdefs.
15028 (parm_preserved_before_stmt_p): Canonicalize updates.
15029 (parm_ref_data_preserved_p): Likewise.
15030 (parm_ref_data_pass_through_p): Likewise.
15031 (determine_known_aggregate_parts): Account own alias queries.
15033 2021-02-12 Martin Liska <mliska@suse.cz>
15035 * opts-common.c (decode_cmdline_option): Release werror_arg.
15036 * opts.c (gen_producer_string): Release output of
15037 gen_command_line_string.
15039 2021-02-12 Richard Biener <rguenther@suse.de>
15041 PR tree-optimization/38474
15042 * params.opt (-param=max-store-chains-to-track=): New param.
15043 (-param=max-stores-to-track=): Likewise.
15044 * doc/invoke.texi (max-store-chains-to-track): Document.
15045 (max-stores-to-track): Likewise.
15046 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
15048 (pass_store_merging::m_n_stores): Likewise.
15049 (pass_store_merging::terminate_and_process_chain): Update
15050 m_n_stores and m_n_chains.
15051 (pass_store_merging::process_store): Likewise. Terminate
15052 oldest chains if the number of stores or chains get too large.
15053 (imm_store_chain_info::terminate_and_process_chain): Dump
15056 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
15058 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
15059 the cold section, emit a nop before the directive if the previous
15060 active instruction can throw.
15062 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
15065 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
15066 memory addresses that are legal for quad word accesses.
15068 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
15071 * config/arm/thumb2.md (*doloop_end_internal): Generate
15072 alternative sequence to handle long range branches.
15074 2021-02-11 Joel Hutton <joel.hutton@arm.com>
15076 PR tree-optimization/98772
15077 * optabs-tree.c (supportable_half_widening_operation): New function
15078 to check for supportable V8QI->V8HI widening patterns.
15079 * optabs-tree.h (supportable_half_widening_operation): New function.
15080 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
15081 to create promotion stmts for V8QI->V8HI widening patterns.
15082 (vectorizable_conversion): Add case for V8QI->V8HI.
15084 2021-02-11 Richard Biener <rguenther@suse.de>
15086 * sparseset.h (SPARSESET_ELT_BITS): Remove.
15087 (SPARSESET_ELT_TYPE): Use unsigned int.
15088 * fwprop.c: Do not include sparseset.h.
15090 2021-02-10 Jakub Jelinek <jakub@redhat.com>
15093 * varasm.c (declare_weak): For -fsyntax-only, allow even
15094 TREE_ASM_WRITTEN function decls.
15096 2021-02-10 Jakub Jelinek <jakub@redhat.com>
15099 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
15100 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
15101 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
15102 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
15103 calling simplify_gen_subreg on it.
15105 2021-02-10 Martin Liska <mliska@suse.cz>
15107 * config/nvptx/nvptx.c (nvptx_option_override): Use
15108 flag_patchable_function_entry instead of the removed
15109 function_entry_patch_area_size.
15111 2021-02-10 Martin Liska <mliska@suse.cz>
15113 PR tree-optimization/99002
15114 PR tree-optimization/99026
15115 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
15116 leak when adjacent cases are merged.
15117 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
15119 (make_pass_lower_switch): Remove trailing whitespace.
15120 * tree-switch-conversion.h (release_clusters): New.
15122 2021-02-10 Richard Biener <rguenther@suse.de>
15124 PR rtl-optimization/99054
15125 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
15126 (fixup_partitions): Adjust.
15127 (rtl_verify_edges): Likewise.
15129 2021-02-10 Jakub Jelinek <jakub@redhat.com>
15131 PR middle-end/99007
15132 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
15133 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
15136 2021-02-10 Richard Biener <rguenther@suse.de>
15139 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
15142 2021-02-10 Richard Biener <rguenther@suse.de>
15144 PR tree-optimization/99024
15145 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
15146 clear loop->aux if it is associated with the destroyed loop_vinfo.
15148 2021-02-10 Martin Liska <mliska@suse.cz>
15150 PR tree-optimization/99002
15151 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
15154 2021-02-10 Martin Liska <mliska@suse.cz>
15157 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
15158 a reference exists.
15160 2021-02-10 Jakub Jelinek <jakub@redhat.com>
15163 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
15164 at class scope for DWARF5+.
15166 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
15168 PR rtl-optimization/96015
15169 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
15170 (relax_delay_slots): When deleting a jump to the next active
15171 instruction over a barrier, first delete the barrier if the
15172 jump is the only way to reach the target label.
15174 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
15176 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
15177 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
15178 vector multiplies and vect.alu for SSRA.
15179 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
15180 vect.mul cost field.
15181 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
15182 * config/arm/arm.c: Likewise.
15184 2021-02-09 Richard Biener <rguenther@suse.de>
15186 PR tree-optimization/98863
15187 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
15188 * tree-ssa-sccvn.c (last_pushed_avail): New global.
15189 (rpo_elim::eliminate_push_avail): Chain pushed avails.
15190 (unwind_state::avail_top): Add.
15191 (do_unwind): Rewrite unwinding of avail entries.
15192 (do_rpo_vn): Initialize last_pushed_avail and
15193 avail_top of the undo state.
15195 2021-02-09 Jakub Jelinek <jakub@redhat.com>
15197 PR middle-end/99004
15198 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
15199 const char * to char * and free those pointers after use.
15201 2021-02-09 Richard Biener <rguenther@suse.de>
15203 PR tree-optimization/99017
15204 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
15205 zero vector cost entries.
15207 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15209 PR middle-end/98974
15210 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
15211 parameter in vectorizable_condition.
15213 2021-02-08 Richard Biener <rguenther@suse.de>
15216 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
15218 2021-02-08 Martin Liska <mliska@suse.cz>
15221 * cfgexpand.c (pass_expand::execute): Parse per-function option
15222 flag_patchable_function_entry and use it.
15223 * common.opt: Remove function_entry_patch_area_size and
15224 function_entry_patch_area_start global variables.
15225 * opts.c (parse_and_check_patch_area): New function.
15226 (common_handle_option): Use it.
15227 * opts.h (parse_and_check_patch_area): New function.
15228 * toplev.c (process_options): Parse and use
15229 function_entry_patch_area_size.
15231 2021-02-08 Martin Sebor <msebor@redhat.com>
15233 * doc/extend.texi (attribute malloc): Correct typos.
15235 2021-02-05 Nathan Sidwell <nathan@acm.org>
15238 * gcc.c (driver::maybe_run_linker): Check for input file
15239 accessibility if not linking.
15241 2021-02-05 Richard Biener <rguenther@suse.de>
15243 PR tree-optimization/98855
15244 * tree-vectorizer.h (add_stmt_cost): New overload.
15245 * tree-vect-slp.c (li_cost_vec_cmp): New.
15246 (vect_bb_slp_scalar_cost): Cost individual loop regions
15247 separately. Account for the scalar instance root stmt.
15249 2021-02-05 Tom de Vries <tdevries@suse.de>
15252 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
15254 (bit_test_cluster::emit): Reuse location_t for newly created
15256 (switch_decision_tree::try_switch_expansion): Preserve
15258 * tree-switch-conversion.h: Change function signatures.
15260 2021-02-05 Jakub Jelinek <jakub@redhat.com>
15263 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
15264 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
15265 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
15266 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
15268 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15270 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
15271 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
15272 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
15273 (vget_high_f16): Reimplement using new builtin.
15274 (vget_high_f32): Likewise.
15275 (vget_high_f64): Likewise.
15276 (vget_high_p8): Likewise.
15277 (vget_high_p16): Likewise.
15278 (vget_high_p64): Likewise.
15279 (vget_high_s8): Likewise.
15280 (vget_high_s16): Likewise.
15281 (vget_high_s32): Likewise.
15282 (vget_high_s64): Likewise.
15283 (vget_high_u8): Likewise.
15284 (vget_high_u16): Likewise.
15285 (vget_high_u32): Likewise.
15286 (vget_high_u64): Likewise.
15288 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15290 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
15291 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
15292 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
15293 (vget_low_f16): Reimplement using new builtin.
15294 (vget_low_f32): Likewise.
15295 (vget_low_f64): Likewise.
15296 (vget_low_p8): Likewise.
15297 (vget_low_p16): Likewise.
15298 (vget_low_p64): Likewise.
15299 (vget_low_s8): Likewise.
15300 (vget_low_s16): Likewise.
15301 (vget_low_s32): Likewise.
15302 (vget_low_s64): Likewise.
15303 (vget_low_u8): Likewise.
15304 (vget_low_u16): Likewise.
15305 (vget_low_u32): Likewise.
15306 (vget_low_u64): Likewise.
15308 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
15310 * gcc.c (print_multilib_info): Check all required argument is provided
15313 2021-02-05 liuhongt <hongtao.liu@intel.com>
15316 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
15317 generate integer mask comparison for 128/256-bits vector when
15318 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
15319 delete redundant !maskcmp condition.
15320 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
15322 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
15323 condition directly to if (maskcmp), add extra check for
15324 cmpmode, it should be MODE_INT.
15325 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
15326 parameters op_true/op_false.
15327 (ix86_use_mask_cmp_p): New.
15329 2021-02-05 liuhongt <hongtao.liu@intel.com>
15332 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
15333 Remove m_GENERIC from ~list.
15334 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
15336 2021-02-04 David Malcolm <dmalcolm@redhat.com>
15339 * diagnostic-show-locus.c (compatible_locations_p): Require
15340 locations in the same macro map to be either both from the
15341 macro definition, or both from the macro arguments.
15343 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
15345 * config/aarch64/aarch64-simd-builtins.def: Add
15346 [su]mull_hi_lane[q] builtin generator macros.
15347 * config/aarch64/aarch64-simd.md
15348 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
15349 (aarch64_<su>mull_hi_lane<mode>): Define.
15350 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
15351 (aarch64_<su>mull_hi_laneq<mode>): Define.
15352 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
15353 builtin instead of inline asm.
15354 (vmull_high_lane_s32): Likewise.
15355 (vmull_high_lane_u16): Likewise.
15356 (vmull_high_lane_u32): Likewise.
15357 (vmull_high_laneq_s16): Likewise.
15358 (vmull_high_laneq_s32): Likewise.
15359 (vmull_high_laneq_u16): Likewise.
15360 (vmull_high_laneq_u32): Liekwise.
15362 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
15364 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
15365 builtin generator macros.
15366 * config/aarch64/aarch64-simd.md
15367 (aarch64_<su>mull_hi_n<mode>_insn): Define.
15368 (aarch64_<su>mull_hi_n<mode>): Define.
15369 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
15370 instead of inline asm.
15371 (vmull_high_n_s32): Likewise.
15372 (vmull_high_n_u16): Likewise.
15373 (vmull_high_n_u32): Likewise.
15375 2021-02-04 Richard Biener <rguenther@suse.de>
15377 PR tree-optimization/98855
15378 * tree-vect-loop.c (vectorizable_phi): Do not cost
15379 single-argument PHIs.
15380 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
15381 * tree-vect-stmts.c (vectorizable_bswap): Also perform
15382 costing for SLP operation.
15384 2021-02-04 Martin Liska <mliska@suse.cz>
15386 * doc/extend.texi: Mention -mprefer-vector-width in target
15389 2021-02-03 Martin Sebor <msebor@redhat.com>
15391 PR tree-optimization/98937
15392 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
15393 Flush pointer_query cache.
15395 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15397 * config/rs6000/genfusion.pl (gen_2logical): Add missing
15398 fixes based on patch review.
15399 * config/rs6000/fusion.md: Regenerate file.
15401 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15403 * config/rs6000/t-rs6000: Comment out auto generation of
15406 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
15408 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
15409 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
15410 (output_file_start): Add gfx908.
15411 * config/gcn/gcn.opt (gpu_type): Add gfx908.
15412 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
15413 (MULTILIB_DIRNAMES): Add gfx908.
15414 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
15415 (main): Recognize gfx908.
15416 * config/gcn/t-omp-device: Add gfx908.
15418 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
15420 * config/aarch64/aarch64-simd-builtins.def: Add
15421 [su]mlsl_hi_lane[q] builtin macro generators.
15422 * config/aarch64/aarch64-simd.md
15423 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
15424 (aarch64_<su>mlsl_hi_lane<mode>): Define.
15425 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
15426 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
15427 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
15428 builtin instead of inline asm.
15429 (vmlsl_high_lane_s32): Likewise.
15430 (vmlsl_high_lane_u16): Likewise.
15431 (vmlsl_high_lane_u32): Likewise.
15432 (vmlsl_high_laneq_s16): Likewise.
15433 (vmlsl_high_laneq_s32): Likewise.
15434 (vmlsl_high_laneq_u16): Likewise.
15435 (vmlsl_high_laneq_u32): Likewise.
15436 (vmlal_high_laneq_u32): Likewise.
15438 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
15440 * config/aarch64/aarch64-simd-builtins.def: Add
15441 [su]mlal_hi_lane[q] builtin generator macros.
15442 * config/aarch64/aarch64-simd.md
15443 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
15444 (aarch64_<su>mlal_hi_lane<mode>): Define.
15445 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
15446 (aarch64_<su>mlal_hi_laneq<mode>): Define.
15447 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
15448 builtin instead of inline asm.
15449 (vmlal_high_lane_s32): Likewise.
15450 (vmlal_high_lane_u16): Likewise.
15451 (vmlal_high_lane_u32): Likewise.
15452 (vmlal_high_laneq_s16): Likewise.
15453 (vmlal_high_laneq_s32): Likewise.
15454 (vmlal_high_laneq_u16): Likewise.
15455 (vmlal_high_laneq_u32): Likewise.
15457 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
15459 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
15460 builtin generator macros.
15461 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
15463 (aarch64_<su>mlsl_hi_n<mode>): Define.
15464 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
15465 instead of inline asm.
15466 (vmlsl_high_n_s32): Likewise.
15467 (vmlsl_high_n_u16): Likewise.
15468 (vmlsl_high_n_u32): Likewise.
15470 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
15472 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
15473 builtin generator macros.
15474 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
15476 (aarch64_<su>mlal_hi_n<mode>): Define.
15477 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
15478 instead of inline asm.
15479 (vmlal_high_n_s32): Likewise.
15480 (vmlal_high_n_u16): Likewise.
15481 (vmlal_high_n_u32): Likewise.
15483 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
15485 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
15487 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
15489 (aarch64_<su>mlal_hi<mode>_insn): This.
15490 (aarch64_<su>mlal_hi<mode>): Define.
15491 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
15492 instead of inline asm.
15493 (vmlal_high_s16): Likewise.
15494 (vmlal_high_s32): Likewise.
15495 (vmlal_high_u8): Likewise.
15496 (vmlal_high_u16): Likewise.
15497 (vmlal_high_u32): Likewise.
15499 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
15501 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
15502 after calling alter_subreg() on a (mem).
15504 2021-02-03 Martin Liska <mliska@suse.cz>
15507 * lto-streamer-out.c (produce_lto_section): Fill up missing
15509 * lto-streamer.h (struct lto_section): Add _padding field.
15511 2021-02-03 Richard Biener <rguenther@suse.de>
15513 * lto-streamer.c (lto_get_section_name): Free temporary
15515 * tree-loop-distribution.c
15516 (loop_distribution::merge_dep_scc_partitions): Free edge data.
15518 2021-02-03 Jakub Jelinek <jakub@redhat.com>
15520 PR middle-end/97487
15521 * ifcvt.c (noce_can_force_operand): New function.
15522 (noce_emit_move_insn): Use it.
15523 (noce_try_sign_mask): Likewise. Formatting fix.
15525 2021-02-03 Jakub Jelinek <jakub@redhat.com>
15527 PR middle-end/97971
15528 * lra-constraints.c (process_alt_operands): For inline asm, don't call
15529 fatal_insn, but instead return false.
15531 2021-02-03 Jakub Jelinek <jakub@redhat.com>
15533 PR tree-optimization/98287
15534 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
15537 2021-02-03 Tamar Christina <tamar.christina@arm.com>
15539 PR tree-optimization/98928
15540 * tree-vect-loop.c (vect_analyze_loop_2): Change
15541 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
15542 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
15543 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
15544 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
15546 2021-02-02 Richard Biener <rguenther@suse.de>
15548 * gimple-loop-interchange.cc (prepare_data_references):
15550 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
15551 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
15552 * tree-vect-stmts.c (vectorizable_condition): Do not
15554 (vectorizable_comparison): Likewise.
15556 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15558 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
15559 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
15560 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
15561 (vrsqrteq_u32): Likewise.
15563 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15565 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
15566 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
15567 (aarch64_sqxtun2<mode>_be): Likewise.
15568 (aarch64_sqxtun2<mode>): Likewise.
15569 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
15570 (vqmovun_high_s32): Likewise.
15571 (vqmovun_high_s64): Likewise.
15572 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
15574 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15576 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
15578 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
15580 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15582 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
15583 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
15584 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
15585 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
15586 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
15587 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
15588 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
15589 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
15591 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15593 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
15594 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
15595 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
15597 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15599 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
15600 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
15602 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15604 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
15605 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
15606 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
15607 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
15608 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
15609 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
15610 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
15611 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
15612 NONE builtin flags.
15614 2021-02-02 Jakub Jelinek <jakub@redhat.com>
15616 PR tree-optimization/98848
15617 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
15618 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
15620 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
15623 * expr.c: Check mode before calling store_expr.
15625 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
15627 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
15629 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
15630 instruction using expression ior.
15631 (mve_vornq_u<mode>): New expander.
15632 (mve_vornq_f<mode>): Use ior code instead of unspec.
15633 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
15635 2021-02-02 Alexandre Oliva <oliva@adacore.com>
15637 * tree-nested.c (convert_nonlocal_reference_op): Move
15638 current_function_decl restore after re-gimplification.
15639 (convert_local_reference_op): Likewise.
15641 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15643 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
15645 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
15647 (aarch64_rshrn<mode>_insn_be): Likewise.
15648 (aarch64_rshrn<mode>): Likewise.
15649 (aarch64_rshrn2<mode>_insn_le): Likewise.
15650 (aarch64_rshrn2<mode>_insn_be): Likewise.
15651 (aarch64_rshrn2<mode>): Likewise.
15652 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
15653 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
15655 (vrshrn_high_n_s32): Likewise.
15656 (vrshrn_high_n_s64): Likewise.
15657 (vrshrn_high_n_u16): Likewise.
15658 (vrshrn_high_n_u32): Likewise.
15659 (vrshrn_high_n_u64): Likewise.
15660 (vrshrn_n_s16): Likewise.
15661 (vrshrn_n_s32): Likewise.
15662 (vrshrn_n_s64): Likewise.
15663 (vrshrn_n_u16): Likewise.
15664 (vrshrn_n_u32): Likewise.
15665 (vrshrn_n_u64): Likewise.
15667 2021-02-01 Sergei Trofimovich <siarheit@google.com>
15669 PR tree-optimization/98499
15670 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
15671 conservatively and assume all possible side-effects.
15673 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15675 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
15676 vec_unpacku_hi_): Define builtins.
15677 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
15679 (vmovl_high_s16): Likewise.
15680 (vmovl_high_s32): Likewise.
15681 (vmovl_high_u8): Likewise.
15682 (vmovl_high_u16): Likewise.
15683 (vmovl_high_u32): Likewise.
15685 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15687 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
15689 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
15691 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
15693 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
15695 (vabdl_s16): Likewise.
15696 (vabdl_s32): Likewise.
15697 (vabdl_u8): Likewise.
15698 (vabdl_u16): Likewise.
15699 (vabdl_u32): Likewise.
15700 * config/aarch64/iterators.md (ABDL): New int iterator.
15701 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
15703 2021-02-01 Martin Sebor <msebor@redhat.com>
15705 * tree.h (BLOCK_VARS): Add comment.
15706 (BLOCK_SUBBLOCKS): Same.
15707 (BLOCK_SUPERCONTEXT): Same.
15708 (BLOCK_ABSTRACT_ORIGIN): Same.
15709 (inlined_function_outer_scope_p): Same.
15711 2021-02-01 Martin Sebor <msebor@redhat.com>
15713 PR middle-end/97172
15714 * attribs.c (attr_access::free_lang_data): Define new function.
15715 * attribs.h (attr_access::free_lang_data): Declare new function.
15717 2021-02-01 Richard Biener <rguenther@suse.de>
15719 * vec.h (auto_vec::auto_vec): Add memory stat parameters
15721 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
15723 2021-02-01 Tamar Christina <tamar.christina@arm.com>
15725 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
15726 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
15728 2021-02-01 Richard Biener <rguenther@suse.de>
15730 PR rtl-optimization/98863
15731 * config/i386/i386-features.c (convert_scalars_to_vector):
15732 Set DF_RD_PRUNE_DEAD_DEFS.
15734 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
15736 * system.h (SIZE_MAX): Define if not already defined.
15738 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
15740 * config/rs6000/genfusion.pl (gen_2logical): New function to
15741 generate patterns for logical-logical fusion.
15742 * config/rs6000/fusion.md: Regenerated patterns.
15743 * config/rs6000/rs6000-cpus.def: Add
15744 OPTION_MASK_P10_FUSION_2LOGICAL.
15745 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15746 Enable logical-logical fusion for p10.
15747 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
15749 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
15751 * config/rs6000/rs6000.opt: Add periods to new AIX options.
15753 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
15755 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
15756 (mabi=vec-default): New.
15757 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
15758 __EXTABI__ for AIX Vector extended ABI.
15759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
15761 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
15763 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
15765 2021-01-30 Jakub Jelinek <jakub@redhat.com>
15767 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
15768 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
15770 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
15773 * lra-constraints.c (in_class_p): Don't narrow class only for REG
15776 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
15778 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
15779 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
15780 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
15782 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
15784 PR tree-optimization/98866
15785 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
15786 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
15787 (gori_map::m_maybe_invariant): Rename from all_outgoing.
15788 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
15789 (gori_map::is_export_p): Ditto.
15790 (gori_map::calculate_gori): Ditto.
15791 (gori_compute::set_range_invariant): New.
15792 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
15793 invariant for pointers evaluating to [1, +INF].
15795 2021-01-29 Richard Biener <rguenther@suse.de>
15797 PR rtl-optimization/98863
15798 * config/i386/i386-features.c (remove_partial_avx_dependency):
15799 Do not perform DF analysis.
15800 (pass_data_remove_partial_avx_dependency): Remove
15803 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
15805 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
15806 builtin generator macros.
15807 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
15809 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
15810 instead of inline asm.
15811 (vmull_n_s32): Likewise.
15812 (vmull_n_u16): Likewise.
15813 (vmull_n_u32): Likewise.
15815 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15817 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
15819 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
15821 (aarch64_<sur>abdl2<mode>): ... This.
15822 (<sur>sadv16qi): Adjust use of above.
15823 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
15825 (vabdl_high_s16): Likewise.
15826 (vabdl_high_s32): Likewise.
15827 (vabdl_high_u8): Likewise.
15828 (vabdl_high_u16): Likewise.
15829 (vabdl_high_u32): Likewise.
15831 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15833 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
15835 (uabal2): Likewise.
15836 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
15838 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
15840 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
15842 (vabal_high_s16): Likewise.
15843 (vabal_high_s32): Likewise.
15844 (vabal_high_u8): Likewise.
15845 (vabal_high_u16): Likewise.
15846 (vabal_high_u32): Likewise.
15847 * config/aarch64/iterators.md (ABAL2): New mode iterator.
15848 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
15850 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15852 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
15855 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
15857 (aarch64_<sur>abal<mode>): ... This
15858 (<sur>sadv16qi): Adust use of the above.
15859 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
15861 (vabal_s16): Likewise.
15862 (vabal_s32): Likewise.
15863 (vabal_u8): Likewise.
15864 (vabal_u16): Likewise.
15865 (vabal_u32): Likewise.
15867 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15869 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
15871 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
15873 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
15875 (vaddlv_s16): Likewise.
15876 (vaddlv_u8): Likewise.
15877 (vaddlv_u16): Likewise.
15878 (vaddlvq_s8): Likewise.
15879 (vaddlvq_s16): Likewise.
15880 (vaddlvq_s32): Likewise.
15881 (vaddlvq_u8): Likewise.
15882 (vaddlvq_u16): Likewise.
15883 (vaddlvq_u32): Likewise.
15884 (vaddlv_s32): Likewise.
15885 (vaddlv_u32): Likewise.
15886 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
15887 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
15888 (Vwstype): New mode attribute.
15890 (VWIDE_S): Likewise.
15891 (USADDLV): New int iterator.
15892 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
15894 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
15896 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
15897 builtin generator macros.
15898 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
15900 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
15901 instead of inline asm.
15902 (vmlsl_lane_s32): Likewise.
15903 (vmlsl_lane_u16): Likewise.
15904 (vmlsl_lane_u32): Likewise.
15905 (vmlsl_laneq_s16): Likewise.
15906 (vmlsl_laneq_s32): Likewise.
15907 (vmlsl_laneq_u16): Likewise.
15908 (vmlsl_laneq_u32): Likewise.
15910 2021-01-29 Richard Biener <rguenther@suse.de>
15912 * doc/invoke.texi (--param max-gcse-memory): Document unit
15914 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
15915 * params.opt (--param max-gcse-memory): Adjust default and
15916 document unit of size.
15918 2021-01-29 Richard Biener <rguenther@suse.de>
15920 PR rtl-optimization/98863
15921 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
15922 HOST_WIDE_INT for the memory estimate.
15924 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
15925 Richard Biener <rguenther@suse.de>
15927 PR tree-optimization/97627
15928 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15929 Do not analyze fake edges.
15931 2021-01-29 Richard Biener <rguenther@suse.de>
15933 PR rtl-optimization/98144
15934 * df.h (df_mir_bb_info): Add con_visited member.
15935 * df-problems.c (df_mir_alloc): Initialize con_visited,
15936 do not fully populate IN and OUT.
15937 (df_mir_reset): Likewise.
15938 (df_mir_confluence_0): Set con_visited.
15939 (df_mir_confluence_n): Properly handle implicitely
15940 fully populated IN and OUT as designated by con_visited
15941 and update con_visited accordingly.
15943 2021-01-29 Jakub Jelinek <jakub@redhat.com>
15946 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
15947 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
15948 && !TARGET_REALLY_IWMMXT to conditions.
15950 2021-01-29 Jakub Jelinek <jakub@redhat.com>
15953 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
15956 2021-01-28 Marek Polacek <polacek@redhat.com>
15959 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
15960 the main variant, maybe reset it in its variants too.
15961 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
15962 (check_aligned_type): Check if TYPE_USER_ALIGN match.
15964 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
15967 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
15968 of constant zero for comparisons.
15970 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
15972 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
15973 support for mapping built-in function names for long double
15974 built-in functions if long double is IEEE 128-bit.
15976 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
15978 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
15979 builtin generator macros.
15980 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
15982 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
15983 instead of inline asm.
15984 (vmlsl_n_s32): Likewise.
15985 (vmlsl_n_u16): Likewise.
15986 (vmlsl_n_u32): Likewise.
15988 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
15990 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
15991 builtin generator macros.
15992 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
15994 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
15995 instead of inline asm.
15996 (vmlal_n_s32): Likewise.
15997 (vmlal_n_u16): Likewise.
15998 (vmlal_n_u32): Likewise.
16000 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16002 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
16004 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
16006 (aarch64_shrn2<mode>_insn_be): Likewise.
16007 (aarch64_shrn2<mode>): Likewise.
16008 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
16010 (vshrn_high_n_s32): Likewise.
16011 (vshrn_high_n_s64): Likewise.
16012 (vshrn_high_n_u16): Likewise.
16013 (vshrn_high_n_u32): Likewise.
16014 (vshrn_high_n_u64): Likewise.
16016 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16018 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
16020 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
16022 (aarch64_shrn<mode>_insn_be): Likewise.
16023 (aarch64_shrn<mode>): Likewise.
16024 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
16026 (vshrn_n_s32): Likewise.
16027 (vshrn_n_s64): Likewise.
16028 (vshrn_n_u16): Likewise.
16029 (vshrn_n_u32): Likewise.
16030 (vshrn_n_u64): Likewise.
16031 * config/aarch64/iterators.md (vn_mode): New mode attribute.
16033 2021-01-28 Richard Biener <rguenther@suse.de>
16035 PR rtl-optimization/80960
16036 * dse.c (check_mem_read_rtx): Call get_addr on the
16039 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
16040 David Edelsohn <dje.gcc@gmail.com>
16043 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16044 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
16046 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
16048 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
16049 wrapper call rs6000_expand_vector_set_var for cleanup. Call
16050 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
16052 (rs6000_expand_vector_set_var): Delete.
16053 (rs6000_expand_vector_set_var_p9): Make static.
16054 (rs6000_expand_vector_set_var_p8): Make static.
16056 2021-01-28 Xing GUO <higuoxing@gmail.com>
16058 * common/config/riscv/riscv-common.c
16059 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
16060 when `p` extension exists.
16062 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
16064 PR rtl-optimization/97684
16065 * ira.c (ira): Call ira_set_pseudo_classes before
16066 update_equiv_regs when it is necessary.
16068 2021-01-27 Jakub Jelinek <jakub@redhat.com>
16071 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
16072 %w0, %w1 and %2 instead of %0, %1 and %2.
16074 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
16076 * config/rs6000/genfusion.pl: New script to generate
16077 define_insn_and_split patterns so combine can arrange fused
16078 instructions next to each other.
16079 * config/rs6000/fusion.md: New file, generated fused instruction
16080 patterns for combine.
16081 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
16082 (non_update_memory_operand): New predicate.
16083 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
16084 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
16086 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
16088 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16089 Automatically set OPTION_MASK_P10_FUSION and
16090 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
16091 (rs600_opt_masks): Allow -mpower10-fusion
16092 in function attributes.
16093 (address_is_non_pfx_d_or_x): New function.
16094 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
16095 * config/rs6000/rs6000.md: Include fusion.md.
16096 * config/rs6000/rs6000.opt: Add -mpower10-fusion
16097 and -mpower10-fusion-ld-cmpi.
16098 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
16100 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
16102 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
16103 builtin generator macros.
16104 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
16106 (aarch64_<su>mlal<mode>): This.
16107 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
16108 instead of inline asm.
16109 (vmlal_s16): Likewise.
16110 (vmlal_s32): Likewise.
16111 (vmlal_u8): Likewise.
16112 (vmlal_u16): Likewise.
16113 (vmlal_u32): Likewise.
16115 2021-01-27 Richard Biener <rguenther@suse.de>
16117 PR tree-optimization/98854
16118 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
16119 PHIs from scalars when the number of CTORs matches the
16120 number of children.
16122 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
16124 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
16126 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
16128 (aarch64_mls_n<mode>): This.
16129 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
16131 (vmls_n_s32): Likewise.
16132 (vmls_n_u16): Likewise.
16133 (vmls_n_u32): Likewise.
16134 (vmlsq_n_s16): Likewise.
16135 (vmlsq_n_s32): Likewise.
16136 (vmlsq_n_u16): Likewise.
16137 (vmlsq_n_u32): Likewise.
16139 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
16141 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
16143 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
16145 (vmls_s16): Likewise.
16146 (vmls_s32): Likewise.
16147 (vmls_u8): Likewise.
16148 (vmls_u16): Likewise.
16149 (vmls_u32): Likewise.
16150 (vmlsq_s8): Likewise.
16151 (vmlsq_s16): Likewise.
16152 (vmlsq_s32): Likewise.
16153 (vmlsq_u8): Likewise.
16154 (vmlsq_u16): Likewise.
16155 (vmlsq_u32): Likewise.
16157 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
16159 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
16161 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
16163 (aarch64_mla_n<mode>): This.
16164 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
16166 (vmla_n_s32): Likewise.
16167 (vmla_n_u16): Likewise.
16168 (vmla_n_u32): Likewise.
16169 (vmlaq_n_s16): Likewise.
16170 (vmlaq_n_s32): Likewise.
16171 (vmlaq_n_u16): Likewise.
16172 (vmlaq_n_u32): Likewise.
16174 2021-01-27 liuhongt <hongtao.liu@intel.com>
16177 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
16178 (*sse2_eq<mode>3): Ditto.
16180 2021-01-27 Jakub Jelinek <jakub@redhat.com>
16182 * tree-pass.h (PROP_trees): Rename to ...
16183 (PROP_gimple): ... this.
16184 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
16185 * passes.c (execute_function_dump, execute_function_todo,
16186 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
16187 * varpool.c (ctor_for_folding): Likewise.
16189 2021-01-27 Jakub Jelinek <jakub@redhat.com>
16191 PR tree-optimization/97260
16192 * varpool.c: Include tree-pass.h.
16193 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
16194 non-TREE_SIDE_EFFECTS automatic variables.
16196 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
16198 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
16200 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
16201 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
16202 (gen_compile_unit_die): Recognise C++23.
16204 2021-01-26 Jakub Jelinek <jakub@redhat.com>
16207 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
16210 2021-01-26 Jakub Jelinek <jakub@redhat.com>
16213 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16214 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
16215 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
16217 2021-01-26 Richard Biener <rguenther@suse.de>
16219 * gimple-pretty-print.c (dump_binary_rhs): Handle
16220 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
16222 2021-01-26 Richard Biener <rguenther@suse.de>
16224 PR middle-end/98726
16225 * tree.h (vector_cst_int_elt): Remove.
16226 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
16229 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
16231 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
16232 for V64DFmode min/max reductions.
16234 2021-01-26 Jakub Jelinek <jakub@redhat.com>
16236 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
16237 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
16238 two halves, one with x and the other with const0_rtx, ordered
16239 depending on endianity.
16241 2021-01-26 Alexandre Oliva <oliva@adacore.com>
16243 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
16244 temporaries not seen in binding block, and not about to be
16245 added as gimple variables.
16247 2021-01-25 Martin Sebor <msebor@redhat.com>
16250 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
16252 2021-01-25 Martin Liska <mliska@suse.cz>
16254 * value-prof.c (get_nth_most_common_value): Use %s instead
16257 2021-01-25 Jakub Jelinek <jakub@redhat.com>
16260 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
16261 readelf -wi is able to read the emitted .debug_info back.
16262 * configure: Regenerated.
16264 2021-01-25 Martin Liska <mliska@suse.cz>
16266 PR gcov-profile/98739
16267 * common.opt: Add missing sign symbol.
16268 * value-prof.c (get_nth_most_common_value): Restore handling
16269 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
16270 PROFILE_REPRODUCIBILITY_MULTITHREADED.
16272 2021-01-25 Richard Biener <rguenther@suse.de>
16274 PR middle-end/98807
16275 * tree.c (vector_element_bits): Always use precision of
16276 the element type for boolean vectors.
16278 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
16280 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
16281 (ENDFILE_SPEC): Evaluate qnolinkcmds.
16283 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
16285 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
16286 nostartfiles handling since this is already done by
16287 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
16288 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
16289 is already done by LINK_COMMAND_SPEC.
16290 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
16291 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
16294 2021-01-25 Jakub Jelinek <jakub@redhat.com>
16297 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
16298 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
16299 value rather than host size_t.
16300 (fold_const_call): Change type of s2 from size_t to
16301 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
16302 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
16303 instead of s2 as last argument.
16305 2021-01-25 Tamar Christina <tamar.christina@arm.com>
16307 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
16308 VCMLA_OP, VCMUL_OP): New.
16309 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
16310 * config/arm/neon.md (cmul<conj_op><mode>3): New.
16311 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
16312 UNSPEC_VCMUL_CONJ): New.
16313 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
16314 cml<fcmac1><conj_op><mode>4): New.
16316 2021-01-23 Jakub Jelinek <jakub@redhat.com>
16319 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
16321 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
16323 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
16325 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
16327 (vmla_s16): Likewise.
16328 (vmla_s32): Likewise.
16329 (vmla_u8): Likewise.
16330 (vmla_u16): Likewise.
16331 (vmla_u32): Likewise.
16332 (vmlaq_s8): Likewise.
16333 (vmlaq_s16): Likewise.
16334 (vmlaq_s32): Likewise.
16335 (vmlaq_u8): Likewise.
16336 (vmlaq_u16): Likewise.
16337 (vmlaq_u32): Likewise.
16339 2021-01-22 David Malcolm <dmalcolm@redhat.com>
16341 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
16344 2021-01-22 Jakub Jelinek <jakub@redhat.com>
16347 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
16348 filenames to emit, still emit the required 0 index directory and
16349 filename entries that match DW_AT_comp_dir and DW_AT_name of the
16352 2021-01-22 Marek Polacek <polacek@redhat.com>
16355 * doc/invoke.texi: Update C++ ABI Version 15 description.
16357 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16359 PR tree-optimization/98766
16360 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
16361 comparing against type size with param_avoid_fma_max_bits.
16363 2021-01-22 Richard Biener <rguenther@suse.de>
16365 PR middle-end/98793
16366 * tree.c (vector_element_bits): Key single-bit bool vector on
16367 integer mode rather than not vector mode.
16369 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
16372 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16373 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
16375 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
16376 to call different path for P8 and P9.
16377 (rs6000_expand_vector_set_var_p9): New function.
16378 (rs6000_expand_vector_set_var_p8): New function.
16380 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
16384 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16385 Ajdust variable index vec_insert from address dereference to
16386 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
16387 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
16389 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
16391 2021-01-22 Martin Liska <mliska@suse.cz>
16393 PR gcov-profile/98739
16394 * profile.c (compute_value_histograms): Drop time profile for
16395 -fprofile-reproducible=multithreaded.
16397 2021-01-22 Nathan Sidwell <nathan@acm.org>
16399 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
16402 2021-01-22 Richard Biener <rguenther@suse.de>
16404 PR middle-end/98773
16405 * tree-data-ref.c (initalize_matrix_A): Revert previous
16406 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
16408 2021-01-22 Jakub Jelinek <jakub@redhat.com>
16410 PR tree-optimization/90248
16411 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
16412 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
16414 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
16415 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
16417 2021-01-22 Jakub Jelinek <jakub@redhat.com>
16419 PR tree-optimization/98255
16420 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
16421 extend index - low_bound from sizetype's precision rather than index
16423 (get_addr_base_and_unit_offset_1): Likewise.
16424 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
16425 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
16427 2021-01-22 Richard Biener <rguenther@suse.de>
16429 PR tree-optimization/98786
16430 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
16431 adding new uses of abnormals. Verify we deal with a conditional
16434 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16437 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
16439 2021-01-22 liuhongt <hongtao.liu@intel.com>
16443 * config/i386/sse.md (VI_128_256): New mode iterator.
16444 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
16445 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
16446 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
16447 define_insn_and_split to lower avx512 vector comparison to avx
16448 version when dest is vector.
16449 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
16450 define_insn_and_split for negating the comparison result.
16451 * config/i386/predicates.md (float_vector_all_ones_operand):
16453 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
16454 general NOT operator without UNSPEC_MASKOP.
16456 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
16458 PR rtl-optimization/98777
16459 * lra-int.h (lra_pmode_pseudo): New extern.
16460 * lra.c (lra_pmode_pseudo): New global.
16462 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
16464 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
16466 * fwprop.c (fwprop_propagation::classify_result): Allow
16467 (subreg (mem)) simplifications.
16469 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16471 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
16473 (aarch64_sqdmlal<mode>): ... This...
16474 (aarch64_sqdmlsl<mode>): ... And this.
16475 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
16476 (aarch64_sqdmlal_lane<mode>): ... This...
16477 (aarch64_sqdmlsl_lane<mode>): ... And this.
16478 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
16479 (aarch64_sqdmlsl_laneq<mode>): ... This...
16480 (aarch64_sqdmlal_laneq<mode>): ... And this.
16481 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
16482 (aarch64_sqdmlsl_n<mode>): ... This...
16483 (aarch64_sqdmlal_n<mode>): ... And this.
16484 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
16485 (aarch64_sqdmlal2<mode>_internal): ... This...
16486 (aarch64_sqdmlsl2<mode>_internal): ... And this.
16488 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
16490 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
16492 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
16495 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
16497 2021-01-21 liuhongt <hongtao.liu@intel.com>
16499 PR rtl-optimization/98694
16500 * regcprop.c (copy_value): If SRC had been assigned a mode
16501 narrower than the copy, we can't link DEST into the chain even
16502 they have same hard_regno_nregs(i.e. HImode/SImode in i386
16505 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16507 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
16508 Convert to define_insn_and_split. Split into simple move when moving
16511 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
16513 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
16514 Adjust comment. Simplify code.
16516 2021-01-20 Jakub Jelinek <jakub@redhat.com>
16519 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
16520 with DW_FORM_line_strp form.
16521 (prune_unused_types_update_strings): Don't add into debug_str_hash
16522 indirect strings with DW_FORM_line_strp form.
16523 (adjust_name_comp_dir): New function.
16524 (dwarf2out_finish): Call it on CU DIEs after resetting
16525 debug_line_str_hash.
16527 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
16529 PR rtl-optimization/98722
16530 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
16531 has no 3-op add insn to transform insns containing two pluses.
16533 2021-01-20 Richard Biener <rguenther@suse.de>
16535 * hwint.h (add_hwi): New function.
16536 (mul_hwi): Likewise.
16537 * tree-data-ref.c (initialize_matrix_A): Properly translate
16538 tree constants and avoid HOST_WIDE_INT_MIN.
16539 (lambda_matrix_row_add): Avoid undefined integer overflow
16540 and return true on such overflow.
16541 (lambda_matrix_right_hermite): Handle overflow from
16542 lambda_matrix_row_add gracefully. Simplify previous fix.
16543 (analyze_subscript_affine_affine): Likewise.
16545 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
16547 PR tree-optimization/96674
16548 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
16549 x >= y && y != XXX_MIN --> x > y - 1
16551 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
16553 PR tree-optimization/98535
16554 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
16555 If the high and low permutes are the same, remove the high permutes
16556 from the working set and only continue with the low ones.
16558 2021-01-20 Jakub Jelinek <jakub@redhat.com>
16560 PR tree-optimization/98721
16561 * builtins.c (access_ref::inform_access): Don't assume
16562 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
16563 object whenever allocfn is NULL, rather than only when DECL_P
16564 is true. Use %qE instead of %qD for that. Formatting fixes.
16566 2021-01-20 Richard Biener <rguenther@suse.de>
16568 PR tree-optimization/98758
16569 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
16570 (lambda_matrix_right_hermite): Avoid undefinedness with
16571 signed integer abs and multiplication.
16572 (analyze_subscript_affine_affine): Use lambda_int.
16574 2021-01-20 David Malcolm <dmalcolm@redhat.com>
16577 * dwarf2out.c (output_line_info): Rename static variable
16578 "generation", moving it out of the function to...
16579 (output_line_info_generation): New.
16580 (init_sections_and_labels): Likewise, renaming the variable to...
16581 (init_sections_and_labels_generation): New.
16582 (dwarf2out_c_finalize): Reset the new variables.
16584 2021-01-19 Martin Sebor <msebor@redhat.com>
16586 PR middle-end/98664
16587 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
16588 all functions, even if they're not declared artificial or inline.
16589 * tree.c (tree_inlined_location): Use macro expansion location
16590 only if scope traversal fails to expose one.
16592 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
16594 PR rtl-optimization/92294
16595 * alias.c (compare_base_symbol_refs): Take an extra parameter
16596 and add the distance between two symbols to it. Enshrine in
16597 comments that -1 means "either 0 or 1, but we can't tell
16598 which at compile time".
16599 (memrefs_conflict_p): Update call accordingly.
16600 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
16603 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16605 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
16606 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
16607 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
16608 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
16609 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
16610 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
16611 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
16612 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
16613 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
16614 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
16615 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
16616 sqmovun): Use NONE flags.
16618 2021-01-19 Richard Biener <rguenther@suse.de>
16621 * ipa-modref.c (analyze_stmt): Only record a summary for a
16624 2021-01-19 Richard Biener <rguenther@suse.de>
16626 PR middle-end/98638
16627 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
16629 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
16631 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
16632 built-in define __FIX_LEON3FT_TN0018.
16634 2021-01-19 Richard Biener <rguenther@suse.de>
16637 * tree-inline.c (tree_function_versioning): Set input_location
16638 to UNKNOWN_LOCATION throughout the function.
16640 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
16643 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
16645 2021-01-19 Martin Jambor <mjambor@suse.cz>
16648 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
16649 whether non-call exceptions allow removal of a statement.
16650 (isra_analyze_call): Pass the appropriate function to
16651 ssa_name_only_returned_p.
16653 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
16655 * config/riscv/arch-canonicalize (longext_sort): New function for
16656 sorting 'multi-letter'.
16657 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
16658 'alts'. The 'arch' may not be the first of 'alts'.
16659 (_expand_combination): Add underline for the 'ext' without '*'.
16660 This is because, a single-letter extension can always be treated well
16661 with a '_' prefix, but it cannot be separated out if it is appended
16664 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
16667 * ira.c (ira): Skip abnormal critical edge splitting.
16669 2021-01-18 Jakub Jelinek <jakub@redhat.com>
16671 PR tree-optimization/98727
16672 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
16673 second .MUL_OVERFLOW operand for signed multiplication with overflow
16674 checking if the second operand of multiplication is not constant.
16676 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
16678 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
16679 defaults to version 4.
16681 2021-01-18 David Malcolm <dmalcolm@redhat.com>
16683 * attribs.h (fndecl_dealloc_argno): New decl.
16684 * builtins.c (call_dealloc_argno): Split out second half of
16686 (fndecl_dealloc_argno): New.
16687 * doc/extend.texi (Common Function Attributes): Document the
16688 interaction between the analyzer and the malloc attribute.
16689 * doc/invoke.texi (Static Analyzer Options): Likewise.
16691 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
16693 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
16694 dwarf_version to 4.
16695 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
16697 2021-01-17 Martin Jambor <mjambor@suse.cz>
16700 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
16703 2021-01-17 Mark Wielaard <mark@klomp.org>
16705 * common.opt (gdwarf-): Init(5).
16706 * doc/invoke.texi (-gdwarf): Document default to 5.
16708 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
16710 * builtin-types.def
16711 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
16713 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
16714 ...this. Add extra argument.
16715 * gimplify.c (omp_default_clause): Ensure that event handle is
16716 firstprivate in a task region.
16717 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
16718 (gimplify_adjust_omp_clauses): Likewise.
16719 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
16720 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
16721 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
16722 if detach clause specified. Add detach argument when generating
16724 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
16726 (finish_taskreg_scan): Move field for variable containing the event
16727 handle to the front of the struct.
16728 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
16730 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
16731 OMP_CLAUSE_DETACH clause.
16732 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
16733 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
16734 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
16736 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
16738 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
16740 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16742 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
16743 multilib directory names. Use MULTILIB_REQUIRED instead of
16744 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
16745 -mcustom-fpu-cfg=fph2 multilib.
16747 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16749 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
16750 (nios2_init_fpu_configs): Provide register values for new
16751 -mcustom-fpu-cfg=fph2 option variant.
16752 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
16755 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16757 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
16758 custom instruction warnings.
16760 2021-01-16 Jakub Jelinek <jakub@redhat.com>
16762 PR tree-optimization/96669
16763 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
16765 2021-01-16 Jakub Jelinek <jakub@redhat.com>
16767 PR tree-optimization/96271
16768 * passes.def: Pass false argument to first two pass_cd_dce
16769 instances and true to last instance. Add comment that
16770 last instance rewrites no longer addressed locals.
16771 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
16773 (pass_cd_dce::set_pass_param): New method.
16774 (pass_cd_dce::execute): Return TODO_update_address_taken from
16775 last cd_dce instance.
16777 2021-01-15 Carl Love <cel@us.ibm.com>
16779 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
16781 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
16782 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
16783 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
16784 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
16785 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
16786 Add builtin define.
16787 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
16788 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
16789 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
16790 New overloaded definitions.
16791 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
16792 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
16793 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
16794 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
16795 P10V_BUILTIN_MULHU_V4SI]: Add case
16796 statement for builtins.
16797 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
16798 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
16799 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
16800 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
16801 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
16802 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
16803 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
16804 Add define_insn, mode is VIlong.
16805 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
16806 Add builtin descriptions.
16808 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
16810 * final.c (final_start_function_1): Reset force_source_line.
16812 2021-01-15 Jakub Jelinek <jakub@redhat.com>
16814 PR tree-optimization/96669
16815 * match.pd (((1 << A) & 1) != 0 -> A == 0,
16816 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
16817 possibly different power of two constants and to right shift too.
16819 2021-01-15 Jakub Jelinek <jakub@redhat.com>
16821 PR tree-optimization/96681
16822 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
16823 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
16824 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
16825 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
16827 2021-01-15 Alexandre Oliva <oliva@adacore.com>
16829 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
16831 2021-01-15 Tamar Christina <tamar.christina@arm.com>
16833 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
16834 cmul<conj_op><mode>3): New.
16835 * config/aarch64/iterators.md (UNSPEC_FCMUL,
16836 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
16837 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
16838 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
16839 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
16840 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
16841 (rot_op): Renamed to conj_op.
16842 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
16843 cmul<conj_op><mode>3): New.
16844 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
16845 cmul<conj_op><mode>3): New.
16847 2021-01-15 David Malcolm <dmalcolm@redhat.com>
16851 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
16852 Escape the tempfile name when constructing the expected output.
16854 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16856 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
16858 (aarch64_<su>mlsl_hi<mode>): ... This.
16859 (aarch64_<su>mlsl_hi<mode>): Define.
16860 (*aarch64_<su>mlsl<mode): Rename to...
16861 (aarch64_<su>mlsl<mode): ... This.
16862 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
16863 smlsl_hi, umlsl_hi): Define builtins.
16864 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
16865 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
16866 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
16867 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
16869 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
16871 * config/i386/i386-c.c (ix86_target_macros):
16872 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
16874 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16877 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
16878 * Makefile.in (RTL_SSA_H): New variable.
16879 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
16880 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
16881 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
16883 * config/aarch64/aarch64-cc-fusion.cc: New file.
16885 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16887 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
16888 calling cancel_changes for changes that no longer exist.
16890 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16892 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
16893 (function_info::reg_defs): ...this.
16894 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
16895 (function_info::reg_defs): ...this.
16897 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16900 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16902 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16905 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16908 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16910 2021-01-15 Richard Biener <rguenther@suse.de>
16912 PR tree-optimization/96376
16913 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
16914 for VMAT_INVARIANT.
16916 2021-01-15 Martin Liska <mliska@suse.cz>
16918 * doc/install.texi: Document that some tests need pytest module.
16919 * doc/sourcebuild.texi: Likewise.
16921 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16924 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16926 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16928 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
16929 (mve_vshrq_n_u<mode>_imm): Likewise.
16930 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
16931 * config/arm/vec-common.md: ... here.
16933 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16935 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
16937 * config/arm/neon.md (vashl<mode>3): Delete.
16938 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
16939 (vasl<mode>3): New expander.
16941 2021-01-15 Richard Biener <rguenther@suse.de>
16943 PR tree-optimization/98685
16944 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
16945 of vector extern defs.
16947 2021-01-14 David Malcolm <dmalcolm@redhat.com>
16950 * diagnostic.c (diagnostic_kind_text): Break out this array
16952 (diagnostic_build_prefix): ...here.
16953 (fancy_abort): Detect when diagnostic_initialize has not yet been
16954 called and fall back to a minimal implementation of printing the
16955 ICE, rather than segfaulting in internal_error.
16957 2021-01-14 David Malcolm <dmalcolm@redhat.com>
16959 * diagnostic.c (diagnostic_initialize): Eliminate
16960 parseable_fixits_p in favor of initializing extra_output_kind from
16961 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
16962 (convert_column_unit): New function, split out from...
16963 (diagnostic_converted_column): ...this.
16964 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
16965 Use them to call convert_column_unit on the column values.
16966 (diagnostic_report_diagnostic): Eliminate conditional on
16967 parseable_fixits_p in favor of a switch statement on
16968 extra_output_kind, passing the appropriate values to the new
16969 params of print_parseable_fixits.
16970 (selftest::test_print_parseable_fixits_none): Update for new
16971 params of print_parseable_fixits.
16972 (selftest::test_print_parseable_fixits_insert): Likewise.
16973 (selftest::test_print_parseable_fixits_remove): Likewise.
16974 (selftest::test_print_parseable_fixits_replace): Likewise.
16975 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
16977 (selftest::diagnostic_c_tests): Call it.
16978 * diagnostic.h (enum diagnostics_extra_output_kind): New.
16979 (diagnostic_context::parseable_fixits_p): Delete field in favor
16981 (diagnostic_context::extra_output_kind): ...this new field.
16982 * doc/invoke.texi (Environment Variables): Add
16983 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
16984 * opts.c (common_handle_option): Update handling of
16985 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
16988 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16990 * tree-vect-slp-patterns.c (class complex_operations_pattern,
16991 complex_operations_pattern::matches,
16992 complex_operations_pattern::recognize,
16993 complex_operations_pattern::build): New.
16994 (slp_patterns): Use it.
16996 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16998 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
16999 * optabs.def (cmls_optab, cmls_conj_optab): New.
17000 * doc/md.texi: Document them.
17001 * tree-vect-slp-patterns.c (class complex_fms_pattern,
17002 complex_fms_pattern::matches, complex_fms_pattern::recognize,
17003 complex_fms_pattern::build): New.
17005 2021-01-14 Tamar Christina <tamar.christina@arm.com>
17007 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
17008 * optabs.def (cmla_optab, cmla_conj_optab): New.
17009 * doc/md.texi: Document them.
17010 * tree-vect-slp-patterns.c (vect_match_call_p,
17011 class complex_fma_pattern, vect_slp_reset_pattern,
17012 complex_fma_pattern::matches, complex_fma_pattern::recognize,
17013 complex_fma_pattern::build): New.
17015 2021-01-14 Tamar Christina <tamar.christina@arm.com>
17017 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
17018 * optabs.def (cmul_optab, cmul_conj_optab): New.
17019 * doc/md.texi: Document them.
17020 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
17021 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
17022 vect_build_combine_node, class complex_mul_pattern,
17023 complex_mul_pattern::matches, complex_mul_pattern::recognize,
17024 complex_mul_pattern::build): New.
17026 2021-01-14 Tamar Christina <tamar.christina@arm.com>
17028 * tree-vect-slp.c (optimize_load_redistribution_1): New.
17029 (optimize_load_redistribution, vect_is_slp_load_node): New.
17030 (vect_match_slp_patterns): Use it.
17032 2021-01-14 Tamar Christina <tamar.christina@arm.com>
17034 * tree-vect-slp-patterns.c (complex_add_pattern::build):
17037 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
17039 * config/gcn/mkoffload.c (main): Create an offload image only in
17040 64-bit configurations.
17042 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
17045 * config/i386/i386-options.c (ix86_option_override_internal):
17046 Issue an error for -fcf-protection with CF_BRANCH when compiling
17047 for 32-bit non-TARGET_CMOV targets.
17049 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
17052 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
17053 Remove declaration and initialization of shadow variable "ret".
17054 (ix86_option_override_internal): Remove delcaration of
17055 shadow variable "i". Redeclare shadowed variable to unsigned.
17056 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
17057 * config/i386/i386-builtins.c (get_builtin_code_for_version):
17058 Update for redeclaration.
17059 * config/i386/i386.h (pta_size): Ditto.
17061 2021-01-14 Richard Biener <rguenther@suse.de>
17063 PR tree-optimization/98674
17064 * tree-data-ref.c (base_supports_access_fn_components_p): New.
17065 (initialize_data_dependence_relation): For two bases without
17066 possible access fns resort to type size equality when determining
17067 shape compatibility.
17069 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17072 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
17073 <=, >= operators in vcle and vcge intrinsics respectively.
17074 * config/arm/arm_neon_builtins.def: Remove entry for
17077 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
17080 * config/i386/i386-options.c (ix86_function_specific_save):
17081 Remove redundant assignment to opts->x_ix86_branch_cost.
17082 * config/i386/i386.c (ix86_prefetch_sse):
17083 Rename from x86_prefetch_sse. Update all uses.
17084 * config/i386/i386.h: Update for rename.
17085 * config/i386/i386-options.h: Ditto.
17087 2021-01-14 Jakub Jelinek <jakub@redhat.com>
17090 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
17091 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
17092 Use Bm instead of m for non-avx. Add isa attribute.
17094 2021-01-14 Jakub Jelinek <jakub@redhat.com>
17096 PR tree-optimization/96688
17097 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
17098 ~X can be simplified.
17100 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
17102 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
17103 IFN_LOAD_LANES results.
17105 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17107 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
17109 (aarch64_xtn<mode>): Likewise.
17110 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
17113 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
17115 (vmovl_s16): Likewise.
17116 (vmovl_s32): Likewise.
17117 (vmovl_u8): Likewise.
17118 (vmovl_u16): Likewise.
17119 (vmovl_u32): Likewise.
17120 (vmovn_s16): Likewise.
17121 (vmovn_s32): Likewise.
17122 (vmovn_s64): Likewise.
17123 (vmovn_u16): Likewise.
17124 (vmovn_u32): Likewise.
17125 (vmovn_u64): Likewise.
17127 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17129 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
17131 (aarch64_<su>qxtn2<mode>_be): Likewise.
17132 (aarch64_<su>qxtn2<mode>): Likewise.
17133 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
17135 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
17136 (su): Handle ss_truncate and us_truncate.
17137 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
17139 (vqmovn_high_s32): Likewise.
17140 (vqmovn_high_s64): Likewise.
17141 (vqmovn_high_u16): Likewise.
17142 (vqmovn_high_u32): Likewise.
17143 (vqmovn_high_u64): Likewise.
17145 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17147 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
17149 (aarch64_xtn2<mode>_be): Likewise.
17150 (aarch64_xtn2<mode>): Likewise.
17151 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
17153 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
17155 (vmovn_high_s32): Likewise.
17156 (vmovn_high_s64): Likewise.
17157 (vmovn_high_u16): Likewise.
17158 (vmovn_high_u32): Likewise.
17159 (vmovn_high_u64): Likewise.
17161 2021-01-13 Stafford Horne <shorne@gmail.com>
17163 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
17165 2021-01-13 Stafford Horne <shorne@gmail.com>
17167 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
17169 2021-01-13 Stafford Horne <shorne@gmail.com>
17171 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
17172 define for __or1k_hard_float__.
17174 2021-01-13 Stafford Horne <shorne@gmail.com>
17176 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
17177 (PROFILE_HOOK): Define to call _mcount.
17178 (FUNCTION_PROFILER): Change from abort to no-op.
17180 2021-01-13 Jakub Jelinek <jakub@redhat.com>
17182 PR tree-optimization/96691
17183 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
17184 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
17185 (~D ^ C) or (D ^ C) can be simplified.
17187 2021-01-13 Richard Biener <rguenther@suse.de>
17189 PR tree-optimization/92645
17190 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
17191 until after vector lowering.
17193 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
17195 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
17197 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
17198 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
17200 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
17202 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
17204 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
17205 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
17207 2021-01-13 Richard Biener <rguenther@suse.de>
17209 PR tree-optimization/92645
17210 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
17211 BIT_FIELD_REF argument.
17212 (vect_build_slp_tree_2): Record the desired vector type
17213 on the external vector def.
17214 (vectorizable_slp_permutation): Handle required punning
17215 of existing vector defs.
17217 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
17219 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
17221 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
17223 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
17225 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
17227 * config.gcc [$target == *-*-gnu*]: Enable
17228 'default_gnu_indirect_function'.
17230 2021-01-13 Jakub Jelinek <jakub@redhat.com>
17233 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
17234 registers before calling targetm.vectorize.vec_perm_const, only after
17236 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
17237 two argument permutation when one operand is zero vector and only
17238 after that force operands into registers.
17239 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
17240 define_insn_and_split pattern.
17241 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
17242 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
17243 (*avx2_zero_extendv8hiv8si2_1): Likewise.
17244 (*avx512f_zero_extendv8siv8di2_1): Likewise.
17245 (*avx2_zero_extendv4siv4di2_1): Likewise.
17246 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
17248 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
17249 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
17250 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
17251 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
17252 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
17253 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
17255 2021-01-13 Martin Liska <mliska@suse.cz>
17257 PR tree-optimization/98455
17258 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
17259 Record also virtual PHIs.
17260 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
17263 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
17265 * doc/invoke.texi (C++ Modules): Fix typos.
17267 2021-01-13 Richard Biener <rguenther@suse.de>
17269 PR tree-optimization/98640
17270 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
17271 handle plus or minus from a truncated operand to be
17274 2021-01-13 Jakub Jelinek <jakub@redhat.com>
17277 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
17278 define_insn_and_split patterns.
17279 (splitter after *btr<mode>_2): New splitter.
17281 2021-01-13 Martin Liska <mliska@suse.cz>
17284 * cgraphunit.c (analyze_functions): Remove dead code.
17286 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
17288 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
17289 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
17290 (a64fx_regmove_cost, a64fx_vector_cost): New.
17291 (a64fx_tunings): Use the new added cost tables.
17293 2021-01-13 Jakub Jelinek <jakub@redhat.com>
17296 * config/i386/predicates.md (pmovzx_parallel): New predicate.
17297 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
17298 define_insn_and_split pattern.
17299 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
17300 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
17302 2021-01-13 Julian Brown <julian@codesourcery.com>
17304 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
17305 to fix v0 register.
17307 2021-01-13 Julian Brown <julian@codesourcery.com>
17309 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
17312 2021-01-13 Julian Brown <julian@codesourcery.com>
17314 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
17315 for reciprocal-approximation instructions.
17316 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
17317 refinement and division result.
17318 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
17320 2021-01-13 Julian Brown <julian@codesourcery.com>
17322 * config/gcn/gcn-valu.md (subdf): Rename to...
17325 2021-01-12 Martin Liska <mliska@suse.cz>
17327 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
17329 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
17331 * function-abi.h: Fix typo.
17333 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
17337 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
17338 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
17339 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
17340 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
17341 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
17342 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
17343 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
17344 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
17345 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
17346 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
17347 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
17348 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
17349 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
17350 (ARM_HAVE_V2DI_LDST): Likewise.
17351 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
17352 (*movmisalign<mode>_mve_load): New pattern.
17353 * config/arm/neon.md (movmisalign<mode>): Move to ...
17354 * config/arm/vec-common.md: ... here.
17356 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
17359 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
17360 of pattern 'plus (plus (hard reg, const), pseudo)'.
17362 2021-01-12 Richard Biener <rguenther@suse.de>
17364 PR tree-optimization/98550
17365 * tree-vect-slp.c (vect_record_max_nunits): Check whether
17366 the group size is a multiple of the vector element count.
17367 (vect_build_slp_tree_1): When we need to fail because
17368 the vector type choosen causes unrolling do so lazily
17369 without affecting matches only at the end to guide group splitting.
17371 2021-01-12 Martin Liska <mliska@suse.cz>
17374 * optc-save-gen.awk: Compare also n_target_save vars with
17377 2021-01-12 Martin Liska <mliska@suse.cz>
17379 * gcov.c (source_info::debug): New.
17380 (print_usage): Add --debug (-D) option.
17381 (process_args): Likewise.
17382 (generate_results): Call src->debug after
17383 accumulate_line_counts.
17384 (read_graph_file): Properly assign id for EXIT_BLOCK.
17385 * profile.c (branch_prob): Dump function body before it is
17388 2021-01-12 Jakub Jelinek <jakub@redhat.com>
17390 PR tree-optimization/98629
17391 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
17392 unless returning non-zero.
17394 2021-01-12 Jakub Jelinek <jakub@redhat.com>
17396 PR tree-optimization/95731
17397 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
17398 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
17399 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
17400 only after optimize_range_tests_var_bound.
17402 2021-01-12 Jakub Jelinek <jakub@redhat.com>
17404 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
17405 * configure: Regenerated.
17407 2021-01-12 liuhongt <hongtao.liu@intel.com>
17410 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
17412 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
17415 2021-01-12 Alexandre Oliva <oliva@adacore.com>
17417 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
17419 (auto_end_imm_use_stmt_traverse): New struct.
17420 (FOR_EACH_IMM_USE_STMT): Use it.
17421 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
17423 * gimple-ssa-strength-reduction.c: ... here, ...
17424 * graphite-scop-detection.c: ... here, ...
17425 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
17426 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
17427 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
17428 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
17429 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
17430 * tree-vect-slp.c: ... and here, ...
17431 * doc/tree-ssa.texi: ... and the example here.
17433 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17435 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
17436 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
17437 (*sdiv_pow2<mode>3): New pattern.
17438 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
17439 Wrap the ASRD in an UNSPEC_PRED_X.
17440 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
17441 predicate with a constant PTRUE, if it isn't already.
17442 (*cond_<sve_int_op><mode>_z): Replace with...
17443 (*cond_<sve_int_op><mode>_any): ...this new pattern.
17445 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17447 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
17448 SVE_FULL_I to SVE_I.
17449 (*cond_bic<mode>_any): Likewise.
17451 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17453 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
17454 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
17457 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17459 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
17460 SVE_FULL_I to SVE_I.
17461 (*aarch64_cond_<su>abd<mode>_2): Likewise.
17462 (*aarch64_cond_<su>abd<mode>_any): Likewise.
17463 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
17464 for the max and min but not for the minus.
17465 (*aarch64_cond_<su>abd<mode>_3): New pattern.
17467 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17469 * config/aarch64/iterators.md (SVE_24I): New iterator.
17470 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
17471 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
17473 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17475 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
17476 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
17478 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
17479 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
17480 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
17481 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
17483 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17485 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
17486 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
17487 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
17490 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
17492 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
17493 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
17494 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
17496 2021-01-11 Martin Liska <mliska@suse.cz>
17499 * symtab-clones.h (clone_info::release): Release
17500 symtab::m_clones with ggc_delete as it's a GGC memory.
17502 2021-01-11 Matthias Klose <doko@ubuntu.com>
17504 * Makefile.in (LINK_PROGRESS): Show the link target.
17506 2021-01-11 Richard Biener <rguenther@suse.de>
17508 PR tree-optimization/91403
17509 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
17510 single-element interleaving group size at 4096 elements.
17512 2021-01-11 Richard Biener <rguenther@suse.de>
17514 PR tree-optimization/98526
17515 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
17516 of the actual reduction op for the regular case.
17517 (vectorizable_reduction): Cost the stmts
17518 vect_transform_reduction produces here.
17520 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
17522 * tree-ssa-forwprop.c (simplify_vector_constructor): For
17523 big-endian, use UNPACK[_FLOAT]_HI.
17525 2021-01-11 Tamar Christina <tamar.christina@arm.com>
17527 * tree-vect-slp-patterns.c (class complex_pattern,
17528 class complex_add_pattern): Add parameters to matches.
17529 (complex_add_pattern::build): Free memory.
17530 (complex_add_pattern::matches): Move validation end of match.
17531 (complex_add_pattern::recognize): Likewise.
17533 2021-01-11 Tamar Christina <tamar.christina@arm.com>
17535 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
17537 2021-01-11 Tamar Christina <tamar.christina@arm.com>
17539 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
17541 2021-01-11 Jakub Jelinek <jakub@redhat.com>
17543 PR tree-optimization/95867
17544 * tree-ssa-math-opts.h: New header.
17545 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
17546 (powi_as_mults): No longer static. Use build_one_cst instead of
17547 build_real. Formatting fix.
17548 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
17549 (attempt_builtin_powi): Handle multiplication reassociation without
17550 powi_fndecl using powi_as_mults.
17551 (reassociate_bb): For integral types don't require
17552 -funsafe-math-optimizations to call attempt_builtin_powi.
17554 2021-01-11 Jakub Jelinek <jakub@redhat.com>
17556 PR tree-optimization/95852
17557 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
17558 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
17559 allow in the bb any of the stmts in that vector, div_stmt and
17560 up to 3 cast stmts.
17561 (arith_cast_equal_p): New function.
17562 (arith_overflow_check_p): Add cast_stmt argument, handle signed
17563 multiply overflow checks.
17564 (match_arith_overflow): Adjust caller. Handle signed multiply
17567 2021-01-11 Jakub Jelinek <jakub@redhat.com>
17569 PR tree-optimization/95852
17570 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
17571 (uaddsub_overflow_check_p): Renamed to ...
17572 (arith_overflow_check_p): ... this. Handle also multiplication
17573 with overflow check.
17574 (match_uaddsub_overflow): Renamed to ...
17575 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
17576 also multiplication with overflow check. Adjust function comment.
17577 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
17578 match_arith_overflow also for MULT_EXPR.
17580 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17582 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
17583 __builtin_convertvector.
17584 (vmovl_s16): Likewise.
17585 (vmovl_s32): Likewise.
17586 (vmovl_u8): Likewise.
17587 (vmovl_u16): Likewise.
17588 (vmovl_u32): Likewise.
17589 (vmovn_s16): Likewise.
17590 (vmovn_s32): Likewise.
17591 (vmovn_s64): Likewise.
17592 (vmovn_u16): Likewise.
17593 (vmovn_u32): Likewise.
17594 (vmovn_u64): Likewise.
17596 2021-01-11 Martin Liska <mliska@suse.cz>
17598 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
17599 (if_chain::is_beneficial): Delete clusters
17600 (find_conditions): Make second argument of conditions_in_bbs a
17601 pointer so that we control over it's lifetime.
17602 (pass_if_to_switch::execute): Delete them.
17604 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
17606 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
17609 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17611 * config/vax/vax.md (cc): Remove mode attribute.
17612 (subst_<cc>, subst_f<cc>): Rename to...
17613 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
17614 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
17615 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
17616 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
17618 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17620 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
17621 `const_double_zero'.
17623 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17625 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
17626 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
17629 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17631 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
17633 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
17634 with `const_double_zero'.
17635 * doc/rtl.texi (Constant Expression Types): Document it.
17637 2021-01-09 Jakub Jelinek <jakub@redhat.com>
17640 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
17641 POINTER_DIFF_EXPR to be any integral type.
17643 2021-01-09 Jakub Jelinek <jakub@redhat.com>
17645 PR rtl-optimization/98603
17646 * function.c (instantiate_virtual_regs_in_insn): For asm goto
17647 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
17648 if any, set ASM_OPERANDS mode to VOIDmode and change
17649 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
17651 2021-01-09 Alexandre Oliva <oliva@gnu.org>
17654 * final.c (notice_source_line): Narrow down the condition to
17655 skip a line-0 marker.
17657 2021-01-08 Sergei Trofimovich <siarheit@google.com>
17659 * ipa-modref.c (merge_call_side_effects): Fix
17660 linebreak split by reordering two print calls.
17662 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
17664 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
17665 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
17666 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
17667 consistency, fix constraint.
17669 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
17671 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
17672 callables instead of mask values.
17673 (struct target_flag_set_p): New predicate.
17674 (s390_cpu_cpp_builtins_internal): Define or undefine
17675 __LONG_DOUBLE_VX__ macro.
17677 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
17680 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
17681 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
17684 2021-01-08 Richard Biener <rguenther@suse.de>
17686 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
17688 2021-01-08 Richard Biener <rguenther@suse.de>
17690 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
17691 (vect_build_slp_tree): On cache hit release the matched
17692 scalar stmts vector.
17693 * tree-vect-stmts.c (vectorizable_store): Properly free
17694 vec_oprnds before possibly gathering them again.
17696 2021-01-08 Richard Biener <rguenther@suse.de>
17698 PR tree-optimization/98544
17699 * tree-vect-slp.c (vect_optimize_slp): Always materialize
17700 permutes at a permute node.
17702 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
17705 * config/i386/i386.c (x86_function_profiler): Use R10 to call
17706 mcount in large model. Sorry for large model with PIC.
17708 2021-01-08 Jakub Jelinek <jakub@redhat.com>
17711 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
17712 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
17713 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
17714 TargetSave and initialize for variables with enum types.
17715 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
17716 mstack-protector-guard-symbol=): Add Save.
17717 * config/i386/i386-options.c (ix86_function_specific_save,
17718 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
17719 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
17720 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
17721 x_ix86_veclibabi_type.
17723 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
17725 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
17726 SVE_FULL_I to SVE_I.
17727 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17729 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
17731 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
17732 SVE_FULL_I to SVE_I.
17733 (*cond_uxt<mode>_any): Likewise.
17735 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17737 * config/aarch64/iterators.md (Vwhalf): New iterator.
17738 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
17740 (aarch64_<sur>adalp<mode>): ... This. Make more
17742 (<sur>sadv16qi): Adjust callsite of the above.
17743 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
17745 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
17747 (vpadal_s16): Likewise.
17748 (vpadal_u8): Likewise.
17749 (vpadal_u16): Likewise.
17750 (vpadalq_s8): Likewise.
17751 (vpadalq_s16): Likewise.
17752 (vpadalq_s32): Likewise.
17753 (vpadalq_u8): Likewise.
17754 (vpadalq_u16): Likewise.
17755 (vpadalq_u32): Likewise.
17757 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17759 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
17761 (aarch64_<su>abd<mode>): ... This.
17762 (<sur>sadv16qi): Adjust callsite of the above.
17763 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
17765 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
17767 (vabd_s16): Likewise.
17768 (vabd_s32): Likewise.
17769 (vabd_u8): Likewise.
17770 (vabd_u16): Likewise.
17771 (vabd_u32): Likewise.
17772 (vabdq_s8): Likewise.
17773 (vabdq_s16): Likewise.
17774 (vabdq_s32): Likewise.
17775 (vabdq_u8): Likewise.
17776 (vabdq_u16): Likewise.
17777 (vabdq_u32): Likewise.
17779 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17781 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
17783 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
17784 (vaba_s16): Likewise.
17785 (vaba_s32): Likewise.
17786 (vaba_u8): Likewise.
17787 (vaba_u16): Likewise.
17788 (vaba_u32): Likewise.
17789 (vabaq_s8): Likewise.
17790 (vabaq_s16): Likewise.
17791 (vabaq_s32): Likewise.
17792 (vabaq_u8): Likewise.
17793 (vabaq_u16): Likewise.
17794 (vabaq_u32): Likewise.
17796 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17798 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
17799 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
17800 Change RTL pattern to match.
17802 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
17804 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
17805 * config/riscv/riscv-c.c (riscv-subset.h): New.
17806 (INCLUDE_STRING): Define.
17807 (riscv_cpu_cpp_builtins): Add new style architecture extension
17809 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
17810 (riscv_subset_list::end): New.
17811 (riscv_current_subset_list): New.
17813 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
17815 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
17816 Move to riscv-subset.h.
17817 (struct riscv_subset_t): Ditto.
17818 (class riscv_subset_list): Ditto.
17819 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
17820 from riscv-common.c.
17821 (struct riscv_subset_t): Ditto.
17822 (class riscv_subset_list): Ditto.
17823 * config/riscv/t-riscv ($(common_out_file)): Add file
17826 2021-01-07 Jakub Jelinek <jakub@redhat.com>
17829 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
17830 New define_insn patterns.
17832 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17834 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
17835 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
17836 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
17838 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17840 PR tree-optimization/98560
17841 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
17842 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
17844 (vec_cond_direct): Likewise argument 2.
17845 (vec_condu_direct, vec_condeq_direct): Delete.
17846 (expand_vect_cond_optab_fn): Rename to...
17847 (expand_vec_cond_optab_fn): ...this, replacing old macro.
17848 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
17849 (expand_vect_cond_mask_optab_fn): Rename to...
17850 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
17851 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
17853 (direct_vec_cond_optab_supported_p): Likewise.
17854 (direct_vec_condu_optab_supported_p): Delete.
17855 (direct_vec_condeq_optab_supported_p): Delete.
17856 * gimple-isel.cc: Include internal-fn.h.
17857 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
17860 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17862 PR tree-optimization/98560
17863 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
17864 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
17866 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
17868 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
17869 rotate_insn and optab code attributes.
17870 Update all uses to merged code attribute.
17871 * config/i386/sse.md: Update all uses to merged code attribute.
17872 * config/i386/mmx.md: Update all uses to merged code attribute.
17874 2021-01-07 Jakub Jelinek <jakub@redhat.com>
17876 PR tree-optimization/98568
17877 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
17878 (bswap_replace): Use it.
17880 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
17882 PR rtl-optimization/97978
17883 * lra-int.h (lra_hard_reg_split_p): New external.
17884 * lra.c (lra_hard_reg_split_p): New global.
17885 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
17886 * lra-assigns.c (lra_assign): Don't check allocation correctness
17887 after hard reg splitting.
17889 2021-01-06 Martin Sebor <msebor@redhat.com>
17892 * builtins.c (new_delete_mismatch_p): New overload.
17893 (new_delete_mismatch_p (tree, tree)): Call it.
17895 2021-01-06 Alexandre Oliva <oliva@adacore.com>
17897 * Makefile.in (T_GLIMITS_H): New.
17898 (stmp-int-hdrs): Depend on it, use it.
17899 * config/t-vxworks (T_GLIMITS_H): Override it.
17900 (vxw-glimits.h): New.
17902 2021-01-06 Richard Biener <rguenther@suse.de>
17904 PR tree-optimization/98513
17905 * value-range.cc (intersect_ranges): Compare the upper bounds
17906 for the expected relation.
17908 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17911 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
17913 * doc/standards.texi (HSAIL): Remove section.
17915 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17917 * configure: Re-generate.
17919 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17921 * doc/invoke.texi (-std=c++20): Adjust for the publication of
17922 ISO 14882:2020 standard.
17923 * doc/standards.texi: Likewise.
17925 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17927 PR tree-optimization/94802
17928 * expr.h (maybe_optimize_sub_cmp_0): Declare.
17929 * expr.c: Include tree-pretty-print.h and flags.h.
17930 (maybe_optimize_sub_cmp_0): New function.
17931 (do_store_flag): Use it.
17932 * cfgexpand.c (expand_gimple_cond): Likewise.
17934 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17936 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
17937 * rtlanal.c (simple_regno_set): Tweak description to clarify the
17940 2021-01-05 Richard Biener <rguenther@suse.de>
17942 PR tree-optimization/98516
17943 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
17944 lanes when materializing on a VEC_PERM node.
17945 (vectorizable_slp_permutation): Dump the permute properly.
17947 2021-01-05 Richard Biener <rguenther@suse.de>
17949 * tree-vect-slp.c (vect_slp_region): Move debug counter
17950 to cover individual subgraphs.
17952 2021-01-05 Richard Biener <rguenther@suse.de>
17954 PR tree-optimization/98428
17955 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
17956 vector lane extracts for loop vectorization.
17958 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17960 PR tree-optimization/98514
17961 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
17963 (operand_rank): Change type from hash_map<tree, long> to
17964 hash_map<tree, int64_t>.
17965 (phi_rank): Change return type from long to int64_t.
17966 (loop_carried_phi): Change block_rank variable type from long to
17968 (propagate_rank): Change return type, rank parameter type and
17969 op_rank variable type from long to int64_t.
17970 (find_operand_rank): Change return type from long to int64_t
17971 and change slot variable type from long * to int64_t *.
17972 (insert_operand_rank): Change rank parameter type from long to
17974 (get_rank): Change return type and rank variable type from long to
17975 int64_t. Use PRId64 instead of ld to print the rank.
17976 (init_reassoc): Change rank variable type from long to int64_t
17977 and adjust correspondingly bb_rank and operand_rank initialization.
17979 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17981 PR tree-optimization/96928
17982 * tree-ssa-phiopt.c (xor_replacement): New function.
17983 (tree_ssa_phiopt_worker): Call it.
17985 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17987 PR tree-optimization/96930
17988 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
17989 from narrower value which has the same type as 1 << B, perform
17990 the right shift on the narrower value followed by extension.
17992 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17994 PR tree-optimization/96239
17995 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
17997 (get_status_for_store_merging): Don't return BB_INVALID for blocks
17998 with potential bswap optimizable CONSTRUCTORs.
17999 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
18002 2021-01-05 Richard Biener <rguenther@suse.de>
18004 PR tree-optimization/98381
18005 * tree.c (vector_element_bits): Properly compute bool vector
18007 * tree-vect-loop.c (vectorizable_live_operation): Properly
18008 compute the last lane bit offset.
18010 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
18013 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
18014 Clear the top 64 bytes of the input XMM register.
18015 (sse_cvttps2pi): Ditto.
18017 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
18020 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
18022 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
18025 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
18028 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
18030 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
18031 (umaddsidi4_split): Likewise.
18033 2021-01-05 liuhongt <hongtao.liu@intel.com>
18036 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
18037 define_insn_and_split for zero_extend of subreg HI of pmovskb
18039 (*sse2_pmovskb_zexthisi): Add new combine splitters for
18040 zero_extend of not of subreg HI of pmovskb result.
18042 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
18045 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
18047 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
18048 convert_memory_address to convert symbolic immediates to ptr_mode
18049 before forcing them to memory.
18051 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
18053 PR rtl-optimization/97144
18054 * recog.c (constrain_operands): Initialize matching_operand
18055 for each alternative, rather than only doing it once.
18057 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
18059 PR rtl-optimization/98403
18060 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
18061 why we don't remove call clobbers.
18062 (function_info::apply_changes_to_insn): Don't attempt to add
18063 call clobbers here.
18065 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
18067 PR tree-optimization/98371
18068 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
18069 (vect_analyze_loop): If an epilogue loop appears to be cheaper
18070 than the main loop, re-analyze it as a main loop before adopting
18073 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18076 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
18077 * aclocal.m4, configure: Regenerate.
18078 * Makefile.in (NETLIBS): Define.
18079 (BACKEND): Remove $(CODYLIB).
18081 2021-01-05 Jakub Jelinek <jakub@redhat.com>
18083 PR rtl-optimization/98334
18084 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
18085 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
18087 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18089 * tree-inline.c (expand_call_inline): Restore input_location.
18090 Return result from recursive call.
18092 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
18094 PR tree-optimization/95401
18095 * config/aarch64/aarch64-sve-builtins.cc
18096 (gimple_folder::load_store_cookie): Use bits rather than bytes
18097 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
18098 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
18099 * tree-vect-stmts.c (vectorizable_store): Likewise.
18100 (vectorizable_load): Likewise.
18102 2021-01-04 Richard Biener <rguenther@suse.de>
18104 PR tree-optimization/98308
18105 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
18108 2021-01-04 Jakub Jelinek <jakub@redhat.com>
18110 PR tree-optimization/95771
18111 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
18112 with precision smaller than int's precision and types with precision
18113 twice as large as long long. Formatting fixes.
18115 2021-01-04 Richard Biener <rguenther@suse.de>
18117 PR tree-optimization/98464
18118 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
18119 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
18120 (process_bb): Adjust.
18122 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
18125 * doc/invoke.texi (-fsanitize=address): Fix wording describing
18126 clash with -fsanitize=hwaddress.
18128 2021-01-04 Richard Biener <rguenther@suse.de>
18130 PR tree-optimization/98282
18131 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
18132 invariants as VN_NARY.
18134 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
18137 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
18138 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
18139 to handle zero operands.
18141 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
18143 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
18144 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
18145 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
18148 2021-01-04 Richard Biener <rguenther@suse.de>
18150 PR tree-optimization/98393
18151 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
18152 when hitting the limit.
18154 2021-01-04 Richard Biener <rguenther@suse.de>
18156 PR tree-optimization/98291
18157 * tree-vect-loop.c (vectorizable_reduction): Bypass
18158 associativity check for SLP reductions with VF 1.
18160 2021-01-04 Jakub Jelinek <jakub@redhat.com>
18162 PR tree-optimization/96782
18163 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
18165 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18167 * collect-utils.c (collect_execute): Check dumppfx.
18168 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
18169 to collect_execute.
18170 (do_link): Add new parameter atsuffix.
18171 (main): Handle -dumpdir option. Skip one argument for
18172 -o, -isystem and -B options.
18173 * gcc.c (make_at_file): New helper function.
18174 (close_at_file): Use it.
18176 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18178 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
18179 Amend handling for LD64_VERSION fallback defaults.
18181 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18183 * config.gcc: Compute default version information
18184 from the configured target. Likewise defaults for
18186 * config/darwin10.h: Removed.
18187 * config/darwin12.h: Removed.
18188 * config/darwin9.h: Removed.
18189 * config/rs6000/darwin8.h: Removed.
18191 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18193 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
18195 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18197 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
18198 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
18200 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18202 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
18204 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
18206 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18208 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
18209 for the Darwin10 unwinder stub from here ...
18210 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
18212 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
18214 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
18215 (ASM_DEBUG_SPEC):Only define if the assembler supports
18217 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
18218 (DARWIN_PREFER_DWARF): Define.
18219 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
18220 (DARWIN_PREFER_DWARF): Likewise
18221 (DSYMUTIL_SPEC): Likewise.
18222 (COLLECT_RUN_DSYMUTIL): Likewise.
18223 (ASM_DEBUG_SPEC): Likewise.
18224 (ASM_DEBUG_OPTION_SPEC): Likewise.
18226 2021-01-02 Jan Hubicka <jh@suse.cz>
18228 * cfg.c (free_block): ggc_free bb.
18230 2021-01-01 Jakub Jelinek <jakub@redhat.com>
18232 * gcc.c (process_command): Update copyright notice dates.
18233 * gcov-dump.c (print_version): Ditto.
18234 * gcov.c (print_version): Ditto.
18235 * gcov-tool.c (print_version): Ditto.
18236 * gengtype.c (create_file): Ditto.
18237 * doc/cpp.texi: Bump @copying's copyright year.
18238 * doc/cppinternals.texi: Ditto.
18239 * doc/gcc.texi: Ditto.
18240 * doc/gccint.texi: Ditto.
18241 * doc/gcov.texi: Ditto.
18242 * doc/install.texi: Ditto.
18243 * doc/invoke.texi: Ditto.
18245 2021-01-01 Jakub Jelinek <jakub@redhat.com>
18247 * ChangeLog-2020: Rotate ChangeLog. New file.
18250 Copyright (C) 2021 Free Software Foundation, Inc.
18252 Copying and distribution of this file, with or without modification,
18253 are permitted in any medium without royalty provided the copyright
18254 notice and this notice are preserved.