1 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3 PR tree-optimization/78888
4 * gimple-range-fold.cc (get_letter_range): New.
5 (fold_using_range::range_of_builtin_call): Call get_letter_range.
7 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
9 PR tree-optimization/78888
10 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
11 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
13 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
14 Marc Glisse <marc.glisse@inria.fr>
16 * match.pd (rotate): Simplify equality/inequality of rotations.
17 (bswap): Simplify equality/inequality tests of byte swapping.
19 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
21 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
24 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
26 * range-op.cc (operator_lshift::fold_range): Pass rel to
27 base class fold_range.
28 (operator_rshift::fold_range): Same.
30 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
33 * toplev.h (min_align_loops_log): Remove declaration.
34 (min_align_jumps_log, min_align_labels_log): Likewise.
35 (min_align_functions_log): Likewise.
37 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
39 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
41 (execute_vrp): Abstract out simplification of conditionals...
42 (simplify_casted_conds): ...here.
44 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
46 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
48 (array_bounds_checker::check_array_ref): Same.
49 (array_bounds_checker::check_addr_expr): Same.
50 (array_bounds_checker::check_array_bounds): Pass statement to
51 check_array_bounds and check_addr_expr.
52 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
53 (check_addr_expr): Same.
54 (get_value_range): Same.
56 2021-07-26 Tamar Christina <tamar.christina@arm.com>
58 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
59 (sdot_prod, udot_prod): ... This.
60 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
62 (<sur>dot_prod<vsi2qi>): ... this.
63 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
64 Change operands order.
65 (<sur>sadv16qi): Use new operands order.
66 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
67 vdotq_s32): Use new RTL ordering.
69 2021-07-26 Tamar Christina <tamar.christina@arm.com>
71 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
72 aarch64_types_ternop_suss_qualifiers): New.
73 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
74 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
75 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
77 2021-07-23 Jakub Jelinek <jakub@redhat.com>
79 PR rtl-optimization/101562
80 * expmed.c (store_integral_bit_field): Only use movstrict_optab
81 if the operand isn't paradoxical.
83 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
85 * gimple-array-bounds.h (class array_bounds_checker): Change
86 ranges type to range_query.
88 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
90 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
91 __builtin_memcpy instead of constructing
92 __builtin_aarch64_simd_oi one vector at a time.
93 (vst1_u64_x2): Likewise.
94 (vst1_f64_x2): Likewise.
95 (vst1_s8_x2): Likewise.
96 (vst1_p8_x2): Likewise.
97 (vst1_s16_x2): Likewise.
98 (vst1_p16_x2): Likewise.
99 (vst1_s32_x2): Likewise.
100 (vst1_u8_x2): Likewise.
101 (vst1_u16_x2): Likewise.
102 (vst1_u32_x2): Likewise.
103 (vst1_f16_x2): Likewise.
104 (vst1_f32_x2): Likewise.
105 (vst1_p64_x2): Likewise.
106 (vst1q_s8_x2): Likewise.
107 (vst1q_p8_x2): Likewise.
108 (vst1q_s16_x2): Likewise.
109 (vst1q_p16_x2): Likewise.
110 (vst1q_s32_x2): Likewise.
111 (vst1q_s64_x2): Likewise.
112 (vst1q_u8_x2): Likewise.
113 (vst1q_u16_x2): Likewise.
114 (vst1q_u32_x2): Likewise.
115 (vst1q_u64_x2): Likewise.
116 (vst1q_f16_x2): Likewise.
117 (vst1q_f32_x2): Likewise.
118 (vst1q_f64_x2): Likewise.
119 (vst1q_p64_x2): Likewise.
121 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
123 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
124 __builtin_memcpy instead of constructing
125 __builtin_aarch64_simd_ci one vector at a time.
126 (vst1_u64_x3): Likewise.
127 (vst1_f64_x3): Likewise.
128 (vst1_s8_x3): Likewise.
129 (vst1_p8_x3): Likewise.
130 (vst1_s16_x3): Likewise.
131 (vst1_p16_x3): Likewise.
132 (vst1_s32_x3): Likewise.
133 (vst1_u8_x3): Likewise.
134 (vst1_u16_x3): Likewise.
135 (vst1_u32_x3): Likewise.
136 (vst1_f16_x3): Likewise.
137 (vst1_f32_x3): Likewise.
138 (vst1_p64_x3): Likewise.
139 (vst1q_s8_x3): Likewise.
140 (vst1q_p8_x3): Likewise.
141 (vst1q_s16_x3): Likewise.
142 (vst1q_p16_x3): Likewise.
143 (vst1q_s32_x3): Likewise.
144 (vst1q_s64_x3): Likewise.
145 (vst1q_u8_x3): Likewise.
146 (vst1q_u16_x3): Likewise.
147 (vst1q_u32_x3): Likewise.
148 (vst1q_u64_x3): Likewise.
149 (vst1q_f16_x3): Likewise.
150 (vst1q_f32_x3): Likewise.
151 (vst1q_f64_x3): Likewise.
152 (vst1q_p64_x3): Likewise.
154 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
157 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
158 hard register when LRA is in progress.
160 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
162 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
163 __builtin_memcpy instead of using a union.
164 (vst1q_s8_x4): Likewise.
165 (vst1_s16_x4): Likewise.
166 (vst1q_s16_x4): Likewise.
167 (vst1_s32_x4): Likewise.
168 (vst1q_s32_x4): Likewise.
169 (vst1_u8_x4): Likewise.
170 (vst1q_u8_x4): Likewise.
171 (vst1_u16_x4): Likewise.
172 (vst1q_u16_x4): Likewise.
173 (vst1_u32_x4): Likewise.
174 (vst1q_u32_x4): Likewise.
175 (vst1_f16_x4): Likewise.
176 (vst1q_f16_x4): Likewise.
177 (vst1_f32_x4): Likewise.
178 (vst1q_f32_x4): Likewise.
179 (vst1_p8_x4): Likewise.
180 (vst1q_p8_x4): Likewise.
181 (vst1_p16_x4): Likewise.
182 (vst1q_p16_x4): Likewise.
183 (vst1_s64_x4): Likewise.
184 (vst1_u64_x4): Likewise.
185 (vst1_p64_x4): Likewise.
186 (vst1q_s64_x4): Likewise.
187 (vst1q_u64_x4): Likewise.
188 (vst1q_p64_x4): Likewise.
189 (vst1_f64_x4): Likewise.
190 (vst1q_f64_x4): Likewise.
192 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
194 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
195 instead of constructing __builtin_aarch64_simd_oi one vector
197 (vst2_u64): Likewise.
198 (vst2_f64): Likewise.
201 (vst2_s16): Likewise.
202 (vst2_p16): Likewise.
203 (vst2_s32): Likewise.
205 (vst2_u16): Likewise.
206 (vst2_u32): Likewise.
207 (vst2_f16): Likewise.
208 (vst2_f32): Likewise.
209 (vst2_p64): Likewise.
210 (vst2q_s8): Likewise.
211 (vst2q_p8): Likewise.
212 (vst2q_s16): Likewise.
213 (vst2q_p16): Likewise.
214 (vst2q_s32): Likewise.
215 (vst2q_s64): Likewise.
216 (vst2q_u8): Likewise.
217 (vst2q_u16): Likewise.
218 (vst2q_u32): Likewise.
219 (vst2q_u64): Likewise.
220 (vst2q_f16): Likewise.
221 (vst2q_f32): Likewise.
222 (vst2q_f64): Likewise.
223 (vst2q_p64): Likewise.
225 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
227 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
228 instead of constructing __builtin_aarch64_simd_ci one vector
230 (vst3_u64): Likewise.
231 (vst3_f64): Likewise.
234 (vst3_s16): Likewise.
235 (vst3_p16): Likewise.
236 (vst3_s32): Likewise.
238 (vst3_u16): Likewise.
239 (vst3_u32): Likewise.
240 (vst3_f16): Likewise.
241 (vst3_f32): Likewise.
242 (vst3_p64): Likewise.
243 (vst3q_s8): Likewise.
244 (vst3q_p8): Likewise.
245 (vst3q_s16): Likewise.
246 (vst3q_p16): Likewise.
247 (vst3q_s32): Likewise.
248 (vst3q_s64): Likewise.
249 (vst3q_u8): Likewise.
250 (vst3q_u16): Likewise.
251 (vst3q_u32): Likewise.
252 (vst3q_u64): Likewise.
253 (vst3q_f16): Likewise.
254 (vst3q_f32): Likewise.
255 (vst3q_f64): Likewise.
256 (vst3q_p64): Likewise.
258 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
260 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
261 instead of constructing __builtin_aarch64_simd_xi one vector
263 (vst4_u64): Likewise.
264 (vst4_f64): Likewise.
267 (vst4_s16): Likewise.
268 (vst4_p16): Likewise.
269 (vst4_s32): Likewise.
271 (vst4_u16): Likewise.
272 (vst4_u32): Likewise.
273 (vst4_f16): Likewise.
274 (vst4_f32): Likewise.
275 (vst4_p64): Likewise.
276 (vst4q_s8): Likewise.
277 (vst4q_p8): Likewise.
278 (vst4q_s16): Likewise.
279 (vst4q_p16): Likewise.
280 (vst4q_s32): Likewise.
281 (vst4q_s64): Likewise.
282 (vst4q_u8): Likewise.
283 (vst4q_u16): Likewise.
284 (vst4q_u32): Likewise.
285 (vst4q_u64): Likewise.
286 (vst4q_f16): Likewise.
287 (vst4q_f32): Likewise.
288 (vst4q_f64): Likewise.
289 (vst4q_p64): Likewise.
291 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
293 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
294 instead of constructing __builtin_aarch64_simd_oi one vector
296 (vtbx4_u8): Likewise.
297 (vtbx4_p8): Likewise.
299 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
301 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
302 instead of constructing __builtin_aarch64_simd_oi one vector
304 (vtbl3_u8): Likewise.
305 (vtbl3_p8): Likewise.
306 (vtbl4_s8): Likewise.
307 (vtbl4_u8): Likewise.
308 (vtbl4_p8): Likewise.
310 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
312 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
313 instead of constructing __builtin_aarch64_simd_oi one vector
315 (vqtbx2_u8): Likewise.
316 (vqtbx2_p8): Likewise.
317 (vqtbx2q_s8): Likewise.
318 (vqtbx2q_u8): Likewise.
319 (vqtbx2q_p8): Likewise.
320 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
321 __builtin_aarch64_simd_ci one vector at a time.
322 (vqtbx3_u8): Likewise.
323 (vqtbx3_p8): Likewise.
324 (vqtbx3q_s8): Likewise.
325 (vqtbx3q_u8): Likewise.
326 (vqtbx3q_p8): Likewise.
327 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
328 __builtin_aarch64_simd_xi one vector at a time.
329 (vqtbx4_u8): Likewise.
330 (vqtbx4_p8): Likewise.
331 (vqtbx4q_s8): Likewise.
332 (vqtbx4q_u8): Likewise.
333 (vqtbx4q_p8): Likewise.
335 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
337 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
338 instead of constructing __builtin_aarch64_simd_oi one vector
340 (vqtbl2_u8): Likewise.
341 (vqtbl2_p8): Likewise.
342 (vqtbl2q_s8): Likewise.
343 (vqtbl2q_u8): Likewise.
344 (vqtbl2q_p8): Likewise.
345 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
346 __builtin_aarch64_simd_ci one vector at a time.
347 (vqtbl3_u8): Likewise.
348 (vqtbl3_p8): Likewise.
349 (vqtbl3q_s8): Likewise.
350 (vqtbl3q_u8): Likewise.
351 (vqtbl3q_p8): Likewise.
352 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
353 __builtin_aarch64_simd_xi one vector at a time.
354 (vqtbl4_u8): Likewise.
355 (vqtbl4_p8): Likewise.
356 (vqtbl4q_s8): Likewise.
357 (vqtbl4q_u8): Likewise.
358 (vqtbl4q_p8): Likewise.
360 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
363 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
365 2021-07-22 Andrew Pinski <apinski@marvell.com>
367 PR tree-optimization/10153
368 * tree-tailcall.c (create_tailcall_accumulator):
369 Don't call fold_convert as the type should be correct already.
370 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
371 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
373 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
375 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
376 varying_p check for null/non-null check.
378 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
380 PR tree-optimization/101511
381 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
382 is in ssa2's equiv set, and don't trap if so.
384 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
386 PR tree-optimization/101497
387 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
390 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
392 PR tree-optimization/101496
393 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
394 first, then vrp_visit_cond_Stmt.
396 2021-07-22 liuhongt <hongtao.liu@intel.com>
398 * config/i386/i386-expand.c
399 (ix86_broadcast_from_integer_constant): Rename to ..
400 (ix86_broadcast_from_constant): .. this, and extend it to
402 (ix86_expand_vector_move): Extend to float mode.
403 * config/i386/i386-features.c
404 (replace_constant_pool_with_broadcast): Remove.
405 (remove_partial_avx_dependency_gate): Ditto.
406 (constant_pool_broadcast): Ditto.
407 (class pass_constant_pool_broadcast): Ditto.
408 (make_pass_constant_pool_broadcast): Ditto.
409 (remove_partial_avx_dependency): Adjust gate.
410 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
411 * config/i386/i386-protos.h
412 (make_pass_constant_pool_broadcast): Remove.
414 2021-07-22 liuhongt <hongtao.liu@intel.com>
416 * config/i386/constraints.md (Wb): New constraint.
418 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
421 (*<insn><mode>3_1): Split to ..
422 (*ashr<mode>3_1): this, ...
423 (*lshr<mode>3_1): and this, also extend this pattern to avx512
425 (*<insn><mode>3_1): Split to ..
426 (*ashr<mode>3_1): this, ...
427 (*lshrqi3_1): and this, also extend this pattern to avx512
429 (*lshrhi3_1): And this, also extend this pattern to avx512
431 * config/i386/sse.md (k<code><mode>): New define_split after
432 it to convert generic shift pattern to mask shift ones.
434 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
435 Joseph Myers <joseph@codesourcery.com>
436 Cesar Philippidis <cesar@codesourcery.com>
438 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
439 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
441 * tree-pretty-print.c (dump_omp_clause): Likewise.
442 * omp-general.c (oacc_verify_routine_clauses): Likewise.
443 * gimplify.c (gimplify_scan_omp_clauses)
444 (gimplify_adjust_omp_clauses): Likewise.
445 * tree-nested.c (convert_nonlocal_omp_clauses)
446 (convert_local_omp_clauses): Likewise.
447 * omp-low.c (scan_sharing_clauses): Likewise.
448 * omp-offload.c (execute_oacc_device_lower): Update.
450 2021-07-21 Martin Sebor <msebor@redhat.com>
452 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
454 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
456 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
459 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
461 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
463 (write_fntype_init): New stub function.
464 (write_init_bif_table): Likewise.
465 (write_init_ovld_table): New function.
466 (write_init_file): Implement.
468 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
470 * config/rs6000/rs6000-gen-builtins.c
471 (write_autogenerated_header): New function.
472 (write_decls): Likewise.
473 (write_extern_fntype): New callback function.
474 (write_header_file): Implement.
476 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
478 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
481 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
483 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
485 (complete_base_type): Likewise.
486 (construct_fntype_id): Likewise.
487 (parse_bif_entry): Call contruct_fntype_id.
488 (parse_ovld_entry): Likewise.
490 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
492 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
493 (MAXOVLDSTANZAS): New macro.
494 (ovld_stanzas): New variable.
495 (curr_ovld_stanza): Likewise.
496 (MAXOVLDS): New macro.
497 (ovlddata): New struct.
498 (ovlds): New variable.
499 (curr_ovld): Likewise.
500 (max_ovld_args): Likewise.
501 (parse_ovld_entry): New function.
502 (parse_ovld_stanza): Likewise.
503 (parse_ovld): Implement.
505 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
507 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
510 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
512 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
513 (parse_prototype): Implement.
515 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
517 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
518 (curr_bif_stanza): New variable.
519 (stanza_entry): New struct.
520 (stanza_map): New initialized variable.
521 (enable_string): Likewise.
523 (typelist): New struct.
524 (attrinfo): Likewise.
525 (MAXRESTROPNDS): New macro.
526 (prototype): New struct.
527 (MAXBIFS): New macro.
528 (bifdata): New struct.
529 (bifs): New variable.
530 (curr_bif): Likewise.
531 (bif_order): Likewise.
532 (bif_index): Likewise.
533 (fatal): New function.
534 (stanza_name_to_stanza): Likewise.
535 (parse_bif_attrs): New stub function.
536 (parse_prototype): Likewise.
537 (parse_bif_entry): New function.
538 (parse_bif_stanza): Likewise.
539 (parse_bif): Implement.
540 (set_bif_order): New function.
541 (create_bif_order): Implement.
543 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
545 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
546 (num_bifs): New variable.
547 (num_ovld_stanzas): Likewise.
548 (num_ovlds): Likewise.
549 (parse_codes): New enum.
550 (bif_rbt): New variable.
551 (ovld_rbt): Likewise.
552 (fntype_rbt): Likewise.
553 (bifo_rbt): Likewise.
554 (parse_bif): New stub function.
555 (create_bif_order): Likewise.
556 (parse_ovld): Likewise.
557 (write_header_file): Likewise.
558 (write_init_file): Likewise.
559 (write_defines_file): Likewise.
560 (delete_output_files): New function.
563 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
566 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
567 from CRC32 _builtin functions.
569 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
571 * coverage.c (build_gcov_info_var_registration): Mark the object placed
572 in the linker set as referenced so that it does not get optimized away.
574 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
577 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
579 * config.gcc (riscv*-*-*): Detect which python is available.
581 2021-07-21 Jakub Jelinek <jakub@redhat.com>
584 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
585 contexts in which decl isn't privatized and for ORT_TARGET return
586 false if decl is mapped.
588 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
590 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
591 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
592 has been successfully unrolled.
594 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
596 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
597 exit condition if no tail loop is needed, and if the original exit
598 condition should therefore be kept as-is.
599 (tree_transform_and_unroll_loop): Handle that case here too.
601 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
603 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
605 (free_data_refs): Likewise.
606 * tree-data-ref.h (free_dependence_relations): Likewise.
607 (free_data_refs): Likewise.
608 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
610 (struct component): Likewise.
611 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
612 (pcom_worker::~pcom_worker): Likewise.
613 (pcom_worker::release_chain): Adjust as auto_vec changes.
614 (pcom_worker::loop): Rename to ...
615 (pcom_worker::m_loop): ... this.
616 (pcom_worker::datarefs): Rename to ...
617 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
618 (pcom_worker::dependences): Rename to ...
619 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
620 (pcom_worker::chains): Rename to ...
621 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
622 (pcom_worker::looparound_phis): Rename to ...
623 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
625 (pcom_worker::cache): Rename to ...
626 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
627 (pcom_worker::release_chain): Adjust for auto_vec changes.
628 (pcom_worker::release_chains): Adjust for auto_vec and renaming
630 (release_component): Remove.
631 (release_components): Adjust for release_component removal.
632 (component_of): Adjust to use vec.
633 (merge_comps): Likewise.
634 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
635 (pcom_worker::determine_offset): Likewise.
636 (class comp_ptrs): Remove.
637 (pcom_worker::split_data_refs_to_components): Adjust for renaming
638 changes, for comp_ptrs removal with auto_vec.
639 (pcom_worker::suitable_component_p): Adjust for renaming changes.
640 (pcom_worker::filter_suitable_components): Adjust for release_component
642 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
643 (pcom_worker::find_looparound_phi): Likewise.
644 (pcom_worker::add_looparound_copies): Likewise.
645 (pcom_worker::determine_roots_comp): Likewise.
646 (pcom_worker::single_nonlooparound_use): Likewise.
647 (pcom_worker::execute_pred_commoning_chain): Likewise.
648 (pcom_worker::execute_pred_commoning): Likewise.
649 (pcom_worker::try_combine_chains): Likewise.
650 (pcom_worker::prepare_initializers_chain): Likewise.
651 (pcom_worker::prepare_initializers): Likewise.
652 (pcom_worker::prepare_finalizers_chain): Likewise.
653 (pcom_worker::prepare_finalizers): Likewise.
654 (pcom_worker::tree_predictive_commoning_loop): Likewise.
656 2021-07-20 Martin Sebor <msebor@redhat.com>
659 * builtins.c (gimple_call_return_array): Add argument. Correct
660 offsets for memchr, mempcpy, stpcpy, and stpncpy.
661 (compute_objsize_r): Adjust offset computation for argument returning
664 2021-07-20 Martin Sebor <msebor@redhat.com>
667 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
669 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
671 * function.c (assign_parm_setup_block): Use adjust_address instead
672 of change_address to preserve MEM_EXPR and friends.
674 2021-07-20 Martin Sebor <msebor@redhat.com>
676 * cfgloop.h (single_likely_exit): Adjust by-value argument to
678 * cfgloopanal.c (single_likely_exit): Same.
679 * cgraph.h (struct cgraph_node): Same.
680 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
681 * genautomata.c (merge_states): Same.
682 * genextract.c (VEC_char_to_string): Same.
683 * genmatch.c (dt_node::gen_kids_1): Same.
684 (walk_captures): Adjust by-value argument to by-reference.
685 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
686 to by-const-reference.
687 * gimple.c (gimple_build_call_vec): Same.
688 (gimple_build_call_internal_vec): Same.
689 (gimple_build_switch): Same.
690 (sort_case_labels): Same.
691 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
693 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
695 (gimple_build_call_internal_vec): Same.
696 (gimple_build_switch): Same.
697 (sort_case_labels): Same.
698 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
700 * haifa-sched.c (calc_priorities): Adjust by-value argument to
702 (sched_init_luids): Same.
703 (haifa_init_h_i_d): Same.
704 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
705 (adjust_callers_for_value_intersection): Adjust by-value argument to
707 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
709 (find_more_contexts_for_caller_subset): Same.
710 (find_aggregate_values_for_callers_subset): Same.
711 (copy_useful_known_contexts): Same.
712 * ipa-fnsummary.c (remap_edge_summaries): Same.
713 (remap_freqcounting_predicate): Same.
714 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
716 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
717 to by-const-reference.
718 * ipa-predicate.h (predicate::remap_after_inlining): Same.
719 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
720 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
721 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
722 * read-rtl.c (add_overload_instance): Same.
723 * rtl.h (native_decode_rtx): Same.
724 (native_decode_vector_rtx): Same.
725 * sched-int.h (sched_init_luids): Same.
726 (haifa_init_h_i_d): Same.
727 * simplify-rtx.c (native_decode_vector_rtx): Same.
728 (native_decode_rtx): Same.
729 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
730 (shrink_wrap_one_built_in_call_with_conds): Same.
731 (shrink_wrap_conditional_dead_built_in_calls): Same.
732 * tree-data-ref.c (create_runtime_alias_checks): Same.
733 (compute_all_dependences): Same.
734 * tree-data-ref.h (compute_all_dependences): Same.
735 (create_runtime_alias_checks): Same.
736 (index_in_loop_nest): Same.
737 * tree-if-conv.c (mask_exists): Same.
738 * tree-loop-distribution.c (class loop_distribution): Same.
739 (loop_distribution::create_rdg_vertices): Same.
740 (dump_rdg_partitions): Same.
741 (debug_rdg_partitions): Same.
742 (partition_contains_all_rw): Same.
743 (loop_distribution::distribute_loop): Same.
744 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
745 (oacc_entry_exit_single_gang): Same.
746 * tree-ssa-loop-im.c (hoist_memory_references): Same.
747 (loop_suitable_for_sm): Same.
748 * tree-ssa-loop-niter.c (bound_index): Same.
749 * tree-ssa-reassoc.c (update_ops): Same.
750 (swap_ops_for_binary_stmt): Same.
751 (rewrite_expr_tree): Same.
752 (rewrite_expr_tree_parallel): Same.
753 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
754 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
755 * tree-ssa-structalias.c (process_all_all_constraints): Same.
756 (make_constraints_to): Same.
757 (handle_lhs_call): Same.
758 (find_func_aliases_for_builtin_call): Same.
759 (sort_fieldstack): Same.
760 (check_for_overlaps): Same.
761 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
762 (vect_create_cond_for_unequal_addrs): Same.
763 (vect_create_cond_for_lower_bounds): Same.
764 (vect_create_cond_for_alias_checks): Same.
765 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
766 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
767 (vect_make_slp_decision): Same.
768 (vect_slp_bbs): Same.
769 (duplicate_and_interleave): Same.
770 (vect_transform_slp_perm_load): Same.
771 (vect_schedule_slp): Same.
772 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
773 (vect_schedule_slp): Same.
774 (duplicate_and_interleave): Same.
775 * tree.c (build_vector_from_ctor): Same.
776 (build_vector): Same.
777 (check_vector_cst): Same.
778 (check_vector_cst_duplicate): Same.
779 (check_vector_cst_fill): Same.
780 (check_vector_cst_stepped): Same.
781 * tree.h (build_vector_from_ctor): Same.
783 2021-07-20 Jakub Jelinek <jakub@redhat.com>
786 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
787 type from bool to int.
788 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
789 EASY_VECTOR_MSB case if either step or copies is not 1.
790 (vspltis_shifted): Fix comment typo.
791 (easy_altivec_constant): Change return type from bool to int, instead
792 of returning true return byte size of the element mode that should be
793 used to synthetize the constant.
794 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
795 that vspltis_shifted is 0, handle the case where easy_altivec_constant
796 assumes using different vector mode from CONST_VECTOR's mode.
797 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
798 easy_altivec_constant to determine mode in which -1 >> -1 should be
799 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
801 2021-07-20 Richard Biener <rguenther@suse.de>
804 * dwarf2out.h (dwarf_file_data): Add key member.
805 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
806 (dwarf_file_hasher::hash): Hash key.
807 (lookup_filename): Remap the filename and store it in the
808 filename member of dwarf_file_data when creating a new
810 (file_name_acquire): Do not remap the filename again.
811 (maybe_emit_file): Likewise.
813 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
815 * config/aarch64/aarch64-simd-builtins.def: Use two variant
816 generators for all TBL/TBX intrinsics and rename to
817 consistent forms: qtbl[1234] or qtbx[1234].
818 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
820 (aarch64_qtbl1<mode>): This.
821 (aarch64_tbx1<mode>): Rename to...
822 (aarch64_qtbx1<mode>): This.
823 (aarch64_tbl2v16qi): Delete.
824 (aarch64_tbl3<mode>): Rename to...
825 (aarch64_qtbl2<mode>): This.
826 (aarch64_tbx4<mode>): Rename to...
827 (aarch64_qtbx2<mode>): This.
828 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
829 renamed qtbl1 and qtbl2 RTL patterns.
830 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
832 (vqtbl1_s8): Likewise.
833 (vqtbl1_u8): Likewise.
834 (vqtbl1q_p8): Likewise.
835 (vqtbl1q_s8): Likewise.
836 (vqtbl1q_u8): Likewise.
837 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
838 (vqtbx1_u8): Likewise.
839 (vqtbx1_p8): Likewise.
840 (vqtbx1q_s8): Likewise.
841 (vqtbx1q_u8): Likewise.
842 (vqtbx1q_p8): Likewise.
843 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
844 (vtbl1_u8): Likewise.
845 (vtbl1_p8): Likewise.
847 (vtbl2_u8): Likewise.
848 (vtbl2_p8): Likewise.
849 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
850 (vtbl3_u8): Likewise.
851 (vtbl3_p8): Likewise.
852 (vtbl4_s8): Likewise.
853 (vtbl4_u8): Likewise.
854 (vtbl4_p8): Likewise.
855 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
856 (vtbx2_u8): Likewise.
857 (vtbx2_p8): Likewise.
858 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
859 (vqtbl2_u8): Likewise.
860 (vqtbl2_p8): Likewise.
861 (vqtbl2q_s8): Likewise.
862 (vqtbl2q_u8): Likewise.
863 (vqtbl2q_p8): Likewise.
864 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
865 (vqtbx2_u8): Likewise.
866 (vqtbx2_p8): Likewise.
867 (vqtbx2q_s8): Likewise.
868 (vqtbx2q_u8): Likewise.
869 (vqtbx2q_p8): Likewise.
870 (vtbx4_s8): Likewise.
871 (vtbx4_u8): Likewise.
872 (vtbx4_p8): Likewise.
874 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
877 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
879 (define_peephole2 atomic_loaddi_fpu): Ditto.
881 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
883 * config.gcc (riscv*-*-*): Detect which python is available.
885 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
887 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
888 (smul<mode>3_highpart): ... this.
889 (mulhu_<mode>): Rename to...
890 (umul<mode>3_highpart): ... this.
891 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
892 MULHU_V2DI, MULHU_V4SI): Adjust.
894 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
896 PR tree-optimization/100696
897 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
898 * internal-fn.def (IFN_MULH): New internal function.
899 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
900 recog normal multiply highpart as IFN_MULH.
901 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
904 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
906 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
907 (BTF_DEBUGGING_INFO): Likewise.
908 * doc/tm.texi.in: Document the new macros.
909 * doc/tm.texi: Regenerated.
910 * toplev.c: Guard initialization of debug hooks.
912 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
914 * flags.h (ctf_debuginfo_p): New function declaration.
915 * opts.c (ctf_debuginfo_p): New function definition.
917 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
920 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
921 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
922 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
923 * config/gcn/gcn-valu.md: Add a warning comment.
924 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
925 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
926 * config/gcn/gcn.md: Add a warning comment.
927 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
928 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
930 (EF_AMDGPU_XNACK): New.
931 (EF_AMDGPU_SRAM_ECC): New.
933 (copy_early_debug_info): Use elf_flags.
934 (main): Handle -mxnack and -msram-ecc options.
935 * doc/invoke.texi: Document -mxnack and -msram-ecc.
937 2021-07-19 Andrew Pinski <apinski@marvell.com>
940 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
941 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
943 2021-07-19 Richard Biener <rguenther@suse.de>
945 PR tree-optimization/101505
946 * tree-vect-patterns.c (vect_determine_precisions): Walk
947 PHIs also for loop vectorization.
949 2021-07-19 Richard Biener <rguenther@suse.de>
951 * gimple.h (gimple_expr_type): Remove.
952 * doc/gimple.texi: Remove gimple_expr_type documentation.
954 2021-07-19 Richard Biener <rguenther@suse.de>
956 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
957 (ao_ref_init_from_vn_reference): Likewise.
958 (fully_constant_reference): Likewise.
959 (vn_reference_lookup_call): Do not set vr->type to random
961 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
963 * tree-vect-generic.c (expand_vector_piecewise): Pass in
964 whether we expanded parallel.
965 (expand_vector_parallel): Adjust.
966 (expand_vector_addition): Likewise.
967 (expand_vector_comparison): Likewise.
968 (expand_vector_operation): Likewise.
969 (expand_vector_scalar_condition): Likewise.
970 (expand_vector_conversion): Likewise.
972 2021-07-19 Richard Biener <rguenther@suse.de>
974 * tree-vrp.c (register_edge_assert_for_2): Use the
976 (vrp_folder::fold_predicate_in): Likewise.
977 * vr-values.c (gimple_assign_nonzero_p): Likewise.
978 (vr_values::extract_range_from_comparison): Likewise.
979 (vr_values::extract_range_from_ubsan_builtin): Use the
980 type of the first operand.
981 (vr_values::extract_range_basic): Push down type
982 computation, use the appropriate LHS.
983 (vr_values::extract_range_from_assignment): Use the
986 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
989 * common/config/i386/i386-common.c (ix86_handle_option): For
990 -mgeneral-regs-only, enable the GPR only instructions which are
991 enabled implicitly by SSE ISAs unless they have been disabled
994 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
997 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
998 ix86_avx_u128_mode_needed.
999 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
1000 returns AVX register.
1002 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
1004 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
1005 (handle_const_call): Liekise
1006 (handle_pure_call): Liekise
1008 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
1010 PR tree-optimization/96542
1011 * range-op.cc (range_operator::wi_fold_in_parts): New.
1012 (range_operator::fold_range): Call wi_fold_in_parts.
1013 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
1014 * range-op.h (wi_fold_in_parts): Add prototype.
1016 2021-07-16 David Malcolm <dmalcolm@redhat.com>
1018 * doc/analyzer.texi: Add __analyzer_dump_state.
1020 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1022 * config/rs6000/rbtree.c: New file.
1023 * config/rs6000/rbtree.h: New file.
1025 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1027 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
1028 (typeinfo): Add restr field.
1029 (match_bracketed_pair): New function.
1030 (match_const_restriction): Implement.
1032 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1034 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
1036 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1038 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
1039 (basetype): Likewise.
1040 (typeinfo): Likewise.
1041 (handle_pointer): New function.
1042 (match_basetype): New stub function.
1043 (match_const_restriction): Likewise.
1044 (match_type): New function.
1046 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1048 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
1050 (advance_line): Likewise.
1051 (safe_inc_pos): Likewise.
1052 (match_identifier): Likewise.
1053 (match_integer): Likewise.
1054 (match_to_right_bracket): Likewise.
1056 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1058 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
1059 (ovld_file): Likewise.
1060 (header_file): Likewise.
1061 (init_file): Likewise.
1062 (defines_file): Likewise.
1063 (pgm_path): Likewise.
1064 (bif_path): Likewise.
1065 (ovld_path): Likewise.
1066 (header_path): Likewise.
1067 (init_path): Likewise.
1068 (defines_path): Likewise.
1069 (LINELEN): New macro.
1070 (linebuf): New variable.
1074 (bif_diag): New function.
1075 (ovld_diag): Likewise.
1077 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1079 * config/rs6000/rs6000-builtin-new.def: New.
1080 * config/rs6000/rs6000-overload.def: New.
1082 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1084 * config/rs6000/rs6000-gen-builtins.c: New.
1086 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1088 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
1089 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
1090 * gengtype-state.c (state_writer::write_state_file_list): Add a
1091 parameter to the fileslist expression for the number of build
1093 (read_state_files_list): Detect build headers and strip the
1094 initial "./" or ".\" from their names.
1095 * gengtype.c (build_headers): New global variable.
1096 (num_build_headers): Likewise.
1097 (open_base_files): Emit #include for each build header.
1098 (main): Detect and count build headers.
1099 * gengtype.h (build_headers): New extern variable.
1100 (num_build_headers): Likewise.
1102 2021-07-16 Richard Biener <rguenther@suse.de>
1104 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
1105 the type of the LHS.
1106 (find_bswap_or_nop_1): Likewise.
1107 (find_bswap_or_nop): Likewise.
1108 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
1110 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
1111 Remove unused parameters, pass in the scalar type. Fix
1112 internal store function handling.
1113 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
1114 (vect_get_vector_types_for_stmt): Move down check for
1115 existing vector stmt after we've determined a scalar type.
1116 Pass down the used scalar type to vect_get_smallest_scalar_type.
1117 * tree-vect-generic.c (expand_vector_condition): Use
1118 the type of the LHS.
1119 (expand_vector_scalar_condition): Likewise.
1120 (expand_vector_operations_1): Likewise.
1121 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
1122 (vect_recog_dot_prod_pattern): Likewise.
1123 (vect_recog_sad_pattern): Likewise.
1124 (vect_recog_widen_op_pattern): Likewise.
1125 (vect_recog_widen_sum_pattern): Likewise.
1126 (vect_recog_mixed_size_cond_pattern): Likewise.
1128 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
1130 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
1131 (dump_eaf_flags): Dump EAF_NOT_RETURNED
1132 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
1133 and EAF_NOT_RETURNED.
1134 (modref_summary::useful_p): Likewise.
1135 (modref_summary_lto::useful_p): Likewise.
1136 (struct) modref_summary_lto: Use eaf_fleags_t.
1137 (deref_flags): Handle EAF_NOT_RETURNED.
1138 (struct escape_point): Use min_flags.
1139 (modref_lattice::init): Add EAF_NOT_RETURNED.
1140 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
1141 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
1143 (analyze_parms): Also analyze const functions; update conition on
1145 (modref_write): Update streaming.
1146 (read_section): Update streaming.
1147 (remap_arg_flags): Use eaf_flags_t.
1148 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
1149 * ipa-modref.h: (eaf_flags_t): New typedef.
1150 (struct modref_summary): Use eaf_flags_t.
1151 * tree-core.h (EAF_NOT_RETURNED): New constant.
1153 2021-07-16 Richard Biener <rguenther@suse.de>
1155 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
1156 the type of the LHS.
1157 (gimple_assign_nonnegative_warnv_p): Likewise.
1158 (gimple_call_nonnegative_warnv_p): Likewise. Return false
1159 if the call has no LHS.
1160 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
1161 * tree-eh.c (stmt_could_throw_1_p): Likewise.
1162 * tree-inline.c (insert_init_stmt): Likewise.
1163 * tree-ssa-loop-niter.c (get_val_for): Likewise.
1164 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
1166 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
1167 gassign *. Use the type of the lhs.
1168 (vn_nary_op_lookup_stmt): Adjust.
1169 (vn_nary_op_insert_stmt): Likewise.
1171 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
1173 * config/s390/predicates.md (bras_sym_operand): Accept all
1174 functions in 64-bit mode, use UNSPEC_PLT31.
1175 (larl_operand): Use UNSPEC_PLT31.
1176 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
1177 (legitimize_pic_address): Likewise.
1178 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
1180 (s390_delegitimize_address): Use UNSPEC_PLT31.
1181 (s390_output_addr_const_extra): Likewise.
1182 (print_operand): Add @PLT to TLS calls, handle %K.
1183 (s390_function_profiler): Mark __fentry__/_mcount as function,
1184 use %K, use UNSPEC_PLT31.
1185 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
1186 (s390_emit_call): Use UNSPEC_PLT31.
1187 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
1188 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
1189 (*movdi_64): Use %K.
1190 (reload_base_64): Likewise.
1191 (*sibcall_brc): Likewise.
1192 (*sibcall_brcl): Likewise.
1193 (*sibcall_value_brc): Likewise.
1194 (*sibcall_value_brcl): Likewise.
1197 (*bras_r): Likewise.
1198 (*brasl_r): Likewise.
1199 (*bras_tls): Likewise.
1200 (*brasl_tls): Likewise.
1201 (main_base_64): Likewise.
1202 (reload_base_64): Likewise.
1203 (@split_stack_call<mode>): Likewise.
1205 2021-07-16 Richard Biener <rguenther@suse.de>
1207 PR tree-optimization/101467
1208 * tree-vect-stmts.c (vect_gen_while): Properly guard
1209 make_temp_ssa_name usage.
1211 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
1213 * config.gcc: Don't use forked print-sysroot-suffix.sh and
1214 t-sysroot-suffix for C-SKY.
1215 * config/csky/print-sysroot-suffix.sh: Delete.
1216 * config/csky/t-csky-linux: Delete.
1217 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
1218 instead of CSKY_MULTILIB_DIRNAMES.
1220 2021-07-16 Richard Biener <rguenther@suse.de>
1222 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
1223 conversion issues with the partial reduction of the reused
1226 2021-07-16 Richard Biener <rguenther@suse.de>
1228 * config/i386/i386-options.c (ix86_option_override_internal): Set
1229 param_vect_partial_vector_usage to zero if not set.
1231 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
1234 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
1235 (VALID_INT_MODE_P): Add SDmode and DDmode.
1236 Add TDmode for TARGET_64BIT.
1237 (VALID_DFP_MODE_P): Remove.
1238 * config/i386/i386.c (ix86_hard_regno_mode_ok):
1239 Do not use VALID_DFP_MODE_P.
1241 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
1243 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
1245 (fold_using_range::fold_stmt): Ditto.
1246 (fold_using_range::range_of_range_op): Ditto.
1247 (fold_using_range::range_of_phi): Ditto.
1248 (fold_using_range::range_of_call): Ditto.
1249 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
1250 (fold_using_range::range_of_builtin_call): Ditto.
1251 (fold_using_range::range_of_cond_expr): Ditto.
1252 * gimple-range-fold.h (gimple_range_type): New.
1254 2021-07-15 Martin Sebor <msebor@redhat.com>
1257 * tree-ssa-strlen.c (handle_assign): New function.
1258 (maybe_warn_overflow): Add argument.
1259 (nonzero_bytes_for_type): New function.
1260 (count_nonzero_bytes): Handle more tree types. Call
1261 nonzero_bytes_for_tye.
1262 (count_nonzero_bytes): Handle types.
1263 (handle_store): Handle stores from function calls.
1264 (strlen_check_and_optimize_call): Move code to handle_assign. Call
1265 it for assignments from function calls.
1267 2021-07-15 David Malcolm <dmalcolm@redhat.com>
1272 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
1274 2021-07-15 David Malcolm <dmalcolm@redhat.com>
1276 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
1278 2021-07-15 Martin Sebor <msebor@redhat.com>
1282 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
1283 (operand_compare::verify_hash_value): Same.
1284 * tree-core.h (OEP_DECL_NAME): New.
1286 2021-07-15 Martin Jambor <mjambor@suse.cz>
1288 * profile-count.h (profile_count::value): Change the return type to
1290 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
1292 * tree-cfg.c (dump_function_to_file): Likewise.
1294 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
1297 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
1298 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
1301 2021-07-15 Richard Biener <rguenther@suse.de>
1303 * tree-vectorizer.h (vect_gen_while): Match up with
1305 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
1306 of vect_gen_while_not.
1307 (vect_gen_while_not): Adjust.
1308 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
1310 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
1312 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
1313 (ranger_cache::range_of_def): Call adjust_range.
1314 (ranger_cache::entry_range): Same.
1315 * gimple-range-cache.h (non_null_ref::adjust_range): New.
1316 * gimple-range.cc (gimple_ranger::range_of_expr): Call
1318 (gimple_ranger::range_on_entry): Same.
1320 2021-07-15 Tamar Christina <tamar.christina@arm.com>
1323 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1325 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
1327 2021-07-15 Tamar Christina <tamar.christina@arm.com>
1330 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1332 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
1333 (sdot_prod, udot_prod): ...These.
1334 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
1335 (aarch64_<sur>dot<vsi2qi>): Rename to...
1336 (<sur>dot_prod<vsi2qi>): ...This.
1337 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
1340 2021-07-15 Jakub Jelinek <jakub@redhat.com>
1342 PR middle-end/101437
1343 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
1344 types even if they have non-BLKmode TYPE_MODE.
1346 2021-07-15 Richard Biener <rguenther@suse.de>
1349 * gcc.c (process_command): Process -gtoggle like process_options
1350 would after parsing options.
1352 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
1354 * cfgexpand.c (expand_asm_loc): Adjust.
1355 (expand_asm_stmt): Likewise.
1356 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
1357 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
1358 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
1359 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
1360 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
1361 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
1362 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
1363 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
1364 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
1365 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
1366 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
1367 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
1368 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
1369 * doc/tm.texi: Regenerate.
1370 * target.def: Add location argument to md_asm_adjust.
1372 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
1374 * tree-diagnostic.c (diagnostic_report_current_function): Use the
1375 diagnostic's location, not input_location.
1377 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
1379 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
1381 (expand_asm_stmt): Likewise.
1383 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
1385 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
1386 addressed memory rtx, if any.
1387 (rs6000_split_multireg_move): Fix code formatting.
1388 Handle MMA build built-ins with operands in adjacent memory locations.
1390 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
1392 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
1395 2021-07-14 Jason Merrill <jason@redhat.com>
1397 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
1399 2021-07-14 Jason Merrill <jason@redhat.com>
1401 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
1404 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1406 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
1407 Remove erroneous line.
1409 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
1411 * params.opt (param_evrp_mode): Change default.
1413 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1415 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
1416 (sdot_prod, udot_prod): ...These.
1417 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
1418 (aarch64_<sur>dot<vsi2qi>): Rename to...
1419 (<sur>dot_prod<vsi2qi>): ...This.
1420 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
1423 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1425 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
1427 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1429 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
1431 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1433 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
1435 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1437 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
1438 (usdot_prod<vsi2qi>): ... This.
1439 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
1440 (usdot_prod): ...This.
1441 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
1442 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
1444 (@<sur>dot_prod<vsi2qi>): ...This.
1445 * config/aarch64/aarch64-sve-builtins-base.cc
1446 (svusdot_impl::expand): Use it.
1448 2021-07-14 Tamar Christina <tamar.christina@arm.com>
1450 * optabs.def (usdot_prod_optab): New.
1451 * doc/md.texi: Document it and clarify other dot prod optabs.
1452 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
1453 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
1454 * optabs.c (expand_widen_pattern_expr): Likewise.
1455 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1456 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
1457 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
1459 (vect_widened_op_tree): Optionally ignore
1461 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
1463 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
1466 * config/i386/driver-i386.c (host_detect_local_cpu): Check
1467 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
1468 Enable UINTR only for 64-bit codegen.
1469 * config/i386/i386-options.c
1470 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
1472 * config/i386/i386.h (ARCH_ARG): New.
1473 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
1474 "[arch|tune] 64" for 64-bit codegen.
1476 2021-07-14 Richard Biener <rguenther@suse.de>
1478 PR tree-optimization/101445
1479 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
1480 of the IV in the correct direction for negative stride
1483 2021-07-14 Jakub Jelinek <jakub@redhat.com>
1486 * godump.c (godump_str_hash): New type.
1487 (godump_container::pot_dummy_types): Use string_hash instead of
1488 ptr_hash in the hash_set.
1490 2021-07-14 Richard Biener <rguenther@suse.de>
1492 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
1493 vector types where the old vector type has a multiple of
1494 the new vector type elements.
1495 (vect_create_partial_epilog): New function, split out from...
1496 (vect_create_epilog_for_reduction): ... here.
1497 (vect_transform_cycle_phi): Reduce the re-used accumulator
1498 to the new vector type.
1500 2021-07-14 Alexandre Oliva <oliva@adacore.com>
1502 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
1503 non-'t'-sized arg check.
1505 2021-07-14 Alexandre Oliva <oliva@adacore.com>
1507 * tree-cfg.c (cleanup_dead_labels_eh): Update
1508 post_landing_pad label upon change of landing pad block's
1510 (cleanup_dead_labels): Check that a removed label is not that
1513 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
1515 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
1517 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
1518 Add Neon to general purpose register case for zero-extend
1520 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
1521 case to prevent some cases opting to go through memory.
1522 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
1523 * rtl.c (rtvec_series_p): Define predicate to determine
1524 whether a vector contains a linear series of integers.
1525 * rtl.h (rtvec_series_p): Define.
1526 * rtlanal.c (vec_series_lowpart_p): Define predicate to
1527 determine if a vector selection is equivalent to the low part
1529 * rtlanal.h (vec_series_lowpart_p): Define.
1530 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
1531 Add vec_select -> subreg simplification.
1533 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
1535 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
1536 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
1537 _mm_test_mix_ones_zeros): New.
1539 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
1540 Richard Biener <rguenther@suse.de>
1542 * gimple.c (gimple_could_trap_p_1): Make S argument a
1543 "const gimple*". Preserve constness in call to
1544 gimple_asm_volatile_p.
1545 (gimple_could_trap_p): Make S argument a "const gimple*".
1546 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
1547 Update function prototypes.
1549 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1551 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
1552 (_loop_vec_info::main_loop_edge): New field.
1553 (_loop_vec_info::skip_main_loop_edge): Likewise.
1554 (_loop_vec_info::skip_this_loop_edge): Likewise.
1555 (_loop_vec_info::reusable_accumulators): Likewise.
1556 (_stmt_vec_info::reduc_scalar_results): Likewise.
1557 (_stmt_vec_info::reused_accumulator): Likewise.
1558 (vect_get_main_loop_result): Declare.
1559 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1560 reduc_scalar_inputs.
1561 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
1562 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
1563 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
1564 skip_main_loop_edge and skip_this_loop_edge fields.
1565 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
1566 (vect_emit_reduction_init_stmts): New function.
1567 (get_initial_def_for_reduction): Use it.
1568 (get_initial_defs_for_reduction): Likewise. Change the vinfo
1569 parameter to a loop_vec_info.
1570 (vect_create_epilog_for_reduction): Store the scalar results
1571 in the reduc_info. If an epilogue loop is reusing an accumulator
1572 from the main loop, and if the epilogue loop can also be skipped,
1573 try to place the reduction code in the join block. Record
1574 accumulators that could potentially be reused by epilogue loops.
1575 (vect_transform_cycle_phi): When vectorizing epilogue loops,
1576 try to reuse accumulators from the main loop. Record the initial
1577 value in reduc_info for non-SLP reductions too.
1579 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1581 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
1582 adjustment handling. Take the neutral value as an argument,
1583 in place of the code argument.
1584 (vect_transform_cycle_phi): Update accordingly. Handle the
1585 initial values of cond reductions separately from code reductions.
1586 Choose the adjustment here rather than in
1587 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
1589 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1591 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
1592 (neutral_op_for_reduction): ...this, providing a more general
1594 (vect_create_epilog_for_reduction): Update accordingly.
1595 (vectorizable_reduction): Likewise.
1596 (vect_transform_cycle_phi): Likewise.
1598 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1600 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
1601 reduc_info instead of the original stmt_vec_info.
1602 (vect_transform_cycle_phi): Update accordingly.
1604 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1606 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
1607 reduc_info as an additional parameter.
1608 (vect_transform_cycle_phi): Update accordingly.
1610 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1612 * tree-vectorizer.h: Include tree-ssa-operands.h.
1613 (vect_phi_initial_value): New function.
1614 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
1615 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
1616 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
1617 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
1619 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1621 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
1622 the phi results to vectype after creating them. Remove later
1623 conversion code that thus becomes redundant.
1625 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1627 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
1628 the new_phis vector with a reduc_inputs vector. Combine handling
1629 of reduction chains and ncopies > 1.
1631 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1633 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
1634 scalar_results to group_size elements after reducing down from
1635 N*group_size elements. Construct an array_slice of the live-out
1636 stmts and assert that there is one stmt per scalar result.
1638 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1640 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1641 nested_in_vect_loop and use double_reduc everywhere. Remove dead
1642 assignment to "loop".
1644 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
1646 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
1647 vector types first. For scalar types, consider both the preferred
1648 vector mode and the alternative vector modes.
1649 * optabs-query.c (can_vec_mask_load_store_p): Use the same
1650 structure as above, in particular using related_vector_mode
1651 for modes provided by autovectorize_vector_modes.
1653 2021-07-13 Jakub Jelinek <jakub@redhat.com>
1654 Richard Biener <rguenther@suse.de>
1656 PR tree-optimization/101419
1657 * tree-pass.h (PROP_objsz): Define.
1658 (make_pass_early_object_sizes): Declare.
1659 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
1660 there to pass_early_object_sizes, drop parameter.
1661 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
1662 drop parameter, move pass_post_ipa_warn right after that.
1663 * tree-object-size.c (pass_object_sizes::execute): Rename to...
1664 (object_sizes_execute): ... this. Add insert_min_max_p argument.
1665 (pass_data_object_sizes): Move after object_sizes_execute.
1666 (pass_object_sizes): Likewise. In execute method call
1667 object_sizes_execute, drop set_pass_param method and insert_min_max_p
1668 non-static data member and its initializer in the ctor.
1669 (pass_data_early_object_sizes, pass_early_object_sizes,
1670 make_pass_early_object_sizes): New.
1671 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
1672 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
1674 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
1677 * config/riscv/constraints.md ("S"): Update description and remove
1679 * doc/md.texi (Machine Constraints): Document the 'S' constraints
1682 2021-07-13 Richard Biener <rguenther@suse.de>
1685 2021-07-12 Richard Biener <rguenther@suse.de>
1687 * tree-vect-slp.c (vect_slp_region): Show the number of
1688 SLP graph entries in the optimization message.
1690 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
1692 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
1694 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
1695 return type to long.
1696 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
1699 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
1701 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
1702 Query relation between the 2 operands and use it.
1704 2021-07-12 Sergei Trofimovich <siarheit@google.com>
1706 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
1708 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
1711 * config/i386/predicates.md (vec_setm_sse41_operand):
1712 Rename from vec_setm_operand.
1713 (vec_setm_avx2_operand): New predicate.
1714 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
1715 Use vec_setm_sse41_operand as operand 2 predicate.
1716 (vec_set<V_256_512:mode): New expander.
1717 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
1718 as operand 2 predicate.
1720 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
1722 PR tree-optimization/101335
1723 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
1725 2021-07-12 Andrew Pinski <apinski@marvell.com>
1727 * tree-ssa-phiopt.c (match_simplify_replacement): Move
1728 insert of the sequence before the movement of the
1729 statement. Check if to see if the statement is used
1730 outside of the original phi to see if we should move it.
1732 2021-07-12 Richard Biener <rguenther@suse.de>
1734 * dump-context.h (debug_dump_context::debug_dump_context):
1735 Add FILE * parameter defaulted to stderr.
1736 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
1737 * tree-vect-slp.c (dot_slp_tree): New functions.
1739 2021-07-12 Richard Biener <rguenther@suse.de>
1741 PR tree-optimization/101373
1742 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
1743 references when the BB may not return.
1744 (compute_avail): Pass in the function we're working on and
1745 replace cfun references with it. Externally throwing
1746 const calls also possibly terminate the function.
1747 (pass_pre::execute): Pass down the function we're working on.
1748 * gcse.c (compute_hash_table_work): Externally throwing
1749 const/pure calls also need record_last_mem_set_info.
1750 * postreload-gcse.c (record_opr_changes): Looping or externally
1751 throwing const/pure calls also need record_last_mem_set_info.
1753 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
1755 * recog.c (memory_address_addr_space_p): Change the type to bool.
1756 Return true/false instead of 1/0.
1757 (offsettable_memref_p): Ditto.
1758 (offsettable_nonstrict_memref_p): Ditto.
1759 (offsettable_address_addr_space_p): Ditto.
1760 Change the type of addressp indirect function to bool.
1761 * recog.h (memory_address_addr_space_p): Change the type to bool.
1762 (strict_memory_address_addr_space_p): Ditto.
1763 (offsettable_memref_p): Ditto.
1764 (offsettable_nonstrict_memref_p): Ditto.
1765 (offsettable_address_addr_space_p): Ditto.
1766 * reload.c (maybe_memory_address_addr_space_p): Ditto.
1767 (strict_memory_address_addr_space_p): Change the type to bool.
1768 Return true/false instead of 1/0.
1769 (maybe_memory_address_addr_space_p): Change the type to bool.
1771 2021-07-12 Richard Biener <rguenther@suse.de>
1773 * tree-vect-slp.c (vect_slp_region): Show the number of
1774 SLP graph entries in the optimization message.
1776 2021-07-12 Richard Biener <rguenther@suse.de>
1778 PR tree-optimization/101394
1779 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
1780 copies from abnormals for a full redundancy.
1782 2021-07-12 Richard Biener <rguenther@suse.de>
1784 PR middle-end/101423
1785 * gimple.c (gimple_could_trap_p_1): Internal function calls
1787 * tree-eh.c (tree_could_trap_p): Likewise.
1789 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1792 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
1794 (vmulq_n_u32): Likewise.
1795 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
1796 (vmulq_n_f32): Likewise.
1797 (vmul_n_f16): Likewise.
1798 (vmulq_n_f16): Likewise.
1800 2021-07-12 Martin Liska <mliska@suse.cz>
1803 * gcc.c (check_offload_target_name): Call
1804 candidates_list_and_hint only if we have a candidate.
1806 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1809 * config/arm/neon.md (vec_init): Move to ...
1810 * config/arm/vec-common.md (vec_init): ... here.
1811 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
1813 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
1815 PR tree-optimization/101403
1816 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
1817 signedness of the shift is not the same as the signedness of
1820 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
1821 Uroš Bizjak <ubizjak@gmail.com>
1823 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
1824 divmod of a constant numerator with new define_insn_and_split.
1826 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
1829 * config/i386/i386-expand.c (ix86_expand_call): If a call is
1830 to a non-local-binding, or local but to a public symbol, then
1831 assume that it might be indirected via the lazy symbol binder.
1832 Mark R10 and R10 as clobbered in that case.
1834 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
1837 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
1838 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
1839 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
1841 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
1843 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
1844 log2 range of operands[3] to [1,31].
1845 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
1847 2021-07-09 Sergei Trofimovich <siarheit@google.com>
1849 * doc/md.texi: Don't split @smallexample in multiple @groups.
1851 2021-07-09 Sergei Trofimovich <siarheit@google.com>
1853 * doc/md.texi: Add missing 'see' word.
1855 2021-07-09 Andrew Pinski <apinski@marvell.com>
1857 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
1858 to take sequence and gimple_match_op. Accept the case where
1859 op is a SSA_NAME and one statement in the sequence.
1860 Also allow constants.
1861 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
1862 Update call to phiopt_early_allow. Discard the sequence if not
1865 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
1870 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
1871 instead of ISA_HAS_MSA.
1872 (mips_expand_vec_unpack): Likewise.
1873 (mips_expand_vector_init): Likewise.
1875 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
1877 * config/rs6000/vsx.md (mods_<mode>): Rename to...
1878 (mod<mode>3): ... this.
1879 (modu_<mode>): Rename to...
1880 (umod<mode>3): ... this.
1881 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
1884 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
1886 * config/h8300/shiftrotate.md (variable shifts): Expose condition
1887 code handling for the test before the loop.
1889 2021-07-08 Martin Jambor <mjambor@suse.cz>
1892 * ipa-sra.c (class isra_call_summary): New member
1893 m_before_any_store, initialize it in the constructor.
1894 (isra_call_summary::dump): Dump the new field.
1895 (ipa_sra_call_summaries::duplicate): Copy it.
1896 (process_scan_results): Set it.
1897 (isra_write_edge_summary): Stream it.
1898 (isra_read_edge_summary): Likewise.
1899 (param_splitting_across_edge): Only override
1900 safe_to_import_accesses if m_before_any_store is set.
1902 2021-07-08 Martin Sebor <msebor@redhat.com>
1905 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
1906 Use Object Size Type 0 instead of 1.
1908 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
1910 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
1913 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
1915 * match.pd: Simplify an extend-operate-truncate sequence involving
1918 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
1919 Richard Biener <rguenther@suse.de>
1921 PR tree-optimization/40210
1922 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
1923 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
1924 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
1926 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
1929 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
1931 * config/i386/mmx.md (V_32): New mode iterator.
1932 (mov<V_32:mode>): Use V_32 mode iterator.
1933 (*mov<V_32:mode>_internal): Ditto.
1934 (*push<V_32:mode>2_rex64): Ditto.
1935 (*push<V_32:mode>2): Ditto.
1936 (movmisalign<V_32:mode>): Ditto.
1937 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
1938 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
1939 (vec_unpacks_lo_v4qi): New expander.
1940 (vec_unpacks_hi_v4qi): Ditto.
1941 (vec_unpacku_lo_v4qi): Ditto.
1942 (vec_unpacku_hi_v4qi): Ditto.
1943 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
1944 (VALID_INT_MODE_P): Ditto.
1946 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
1949 * config/rs6000/rs6000.md (udivti3): New insn.
1951 (umodti3): New insn.
1954 2021-07-07 Martin Sebor <msebor@redhat.com>
1956 PR tree-optimization/100137
1957 PR tree-optimization/99121
1958 PR tree-optimization/97027
1959 * builtins.c (access_ref::access_ref): Also set offmax.
1960 (access_ref::offset_in_range): Define new function.
1961 (access_ref::add_offset): Set offmax.
1962 (access_ref::inform_access): Handle access_none.
1963 (handle_mem_ref): Clear ostype.
1964 (compute_objsize_r): Handle ASSERT_EXPR.
1965 * builtins.h (struct access_ref): Add offmax member.
1966 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
1967 compute_objsize() and simplify.
1969 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
1971 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
1972 and VSX_BUILTIN_STXVP.
1974 2021-07-07 Martin Sebor <msebor@redhat.com>
1977 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
1978 a stray %K from error_at() missed in r12-2088.
1980 2021-07-07 Richard Biener <rguenther@suse.de>
1982 PR tree-optimization/99728
1983 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
1985 (mem_refs_may_alias_p): Add assert we handled aggregate
1987 (sm_seq_valid_bb): Give up when running into aggregate copies.
1988 (ref_indep_loop_p): Handle aggregate copies as never
1989 being invariant themselves but allow other refs to be
1990 disambiguated against them.
1991 (can_sm_ref_p): Do not try to apply store-motion to aggregate
1994 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
1997 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
2000 2021-07-06 Martin Sebor <msebor@redhat.com>
2002 * gimple-pretty-print.c (percent_G_format): Remove.
2003 * tree-diagnostic.c (default_tree_printer): Remove calls.
2004 * tree-pretty-print.c (percent_K_format): Remove.
2005 * tree-pretty-print.h (percent_K_format): Remove.
2007 2021-07-06 Martin Sebor <msebor@redhat.com>
2009 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2010 Remove %K and use error_at.
2011 (aarch64_expand_fcmla_builtin): Same.
2012 (aarch64_expand_builtin_tme): Same.
2013 (aarch64_expand_builtin_memtag): Same.
2014 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
2015 (arm_expand_builtin): Same.
2016 * config/arm/arm.c (bounds_check): Same.
2018 2021-07-06 Martin Sebor <msebor@redhat.com>
2020 * builtins.c (warn_string_no_nul): Remove %G.
2021 (maybe_warn_for_bound): Same.
2022 (warn_for_access): Same.
2023 (check_access): Same.
2024 (check_strncat_sizes): Same.
2025 (expand_builtin_strncat): Same.
2026 (expand_builtin_strncmp): Same.
2027 (expand_builtin): Same.
2028 (expand_builtin_object_size): Same.
2029 (warn_dealloc_offset): Same.
2030 (maybe_emit_free_warning): Same.
2031 * calls.c (maybe_warn_alloc_args_overflow): Same.
2032 (maybe_warn_nonstring_arg): Same.
2033 (maybe_warn_rdwr_sizes): Same.
2034 * expr.c (expand_expr_real_1): Remove %K.
2035 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
2036 (gimple_fold_builtin_strncat): Same.
2037 * gimple-ssa-sprintf.c (format_directive): Same.
2038 (handle_printf_call): Same.
2039 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
2040 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
2041 (maybe_diag_access_bounds): Same. Call gimple_location.
2042 (check_bounds_or_overlap): Same.
2043 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
2044 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
2045 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
2046 (maybe_diag_stxncpy_trunc): Same.
2047 (handle_builtin_stxncpy_strncat): Same.
2048 (maybe_warn_pointless_strcmp): Same.
2049 * tree-ssa-uninit.c (maybe_warn_operand): Same.
2051 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
2054 * config/i386/predicates.md (vec_setm_operand): Enable
2055 register_operand for TARGET_SSE4_1.
2056 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
2057 as operand 2 predicate. Call ix86_expand_vector_set_var
2058 for non-constant index operand.
2059 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
2060 Call ix86_expand_vector_set_var for non-constant index operand.
2062 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
2064 * config/h8300/jumpcall.md (*branch): When possible, generate
2065 the comparison in CCZN mode.
2066 * config/h8300/predicates.md (simple_memory_operand): Reject all
2067 auto-increment addressing modes.
2069 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
2072 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
2075 2021-07-06 Richard Biener <rguenther@suse.de>
2077 * doc/md.texi (vec_fmaddsub<mode>4): Document.
2078 (vec_fmsubadd<mode>4): Likewise.
2079 * optabs.def (vec_fmaddsub$a4): Add.
2080 (vec_fmsubadd$a4): Likewise.
2081 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
2082 (IFN_VEC_FMSUBADD): Likewise.
2083 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
2084 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
2085 (addsub_pattern::build): Likewise.
2086 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
2087 and CFN_VEC_FMSUBADD are not transparent for permutes.
2088 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
2089 (vec_fmsubadd<mode>4): Likewise.
2091 2021-07-06 Richard Biener <rguenther@suse.de>
2093 * doc/invoke.texi (fmove-loop-stores): Document.
2094 * common.opt (fmove-loop-stores): New option.
2095 * opts.c (default_options_table): Enable -fmove-loop-stores
2097 * tree-ssa-loop-im.c (pass_lim::execute): Pass
2098 flag_move_loop_stores instead of true to
2099 loop_invariant_motion_in_fun.
2101 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
2103 * doc/install.texi: Document --with-dsymutil.
2105 2021-07-06 Andrew Pinski <apinski@marvell.com>
2107 PR tree-optimization/101256
2108 * dbgcnt.def (phiopt_edge_range): New counter.
2109 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
2110 Check to make sure the new name is defined in the same
2111 bb as the conditional before duplicating range info.
2112 Also add debug counter.
2114 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
2116 PR rtl-optimization/100328
2117 * config/i386/i386-options.c (ix86_option_override_internal):
2118 Set param_ira_consider_dup_in_all_alts to 0.
2120 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
2122 PR rtl-optimization/100328
2123 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
2125 * ira.c (ira_get_dup_out_num): Adjust as parameter
2126 param_ira_consider_dup_in_all_alts.
2127 * params.opt (ira-consider-dup-in-all-alts): New.
2128 * ira-conflicts.c (process_regs_for_copy): Add one parameter
2129 single_input_op_has_cstr_p.
2130 (get_freq_for_shuffle_copy): New function.
2131 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
2132 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
2134 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
2136 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
2137 generate condition code aware RTL directly.
2139 2021-07-05 Andrew Pinski <apinski@marvell.com>
2141 PR tree-optimization/101039
2142 * match.pd (A CMP 0 ? A : -A): New patterns.
2143 * tree-ssa-phiopt.c (abs_replacement): Delete function.
2144 (tree_ssa_phiopt_worker): Don't call abs_replacement.
2145 Update comment about abs_replacement.
2147 2021-07-05 Andrew Pinski <apinski@marvell.com>
2149 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
2150 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
2152 2021-07-05 Andrew Pinski <apinski@marvell.com>
2154 * tree-ssa-phiopt.c (match_simplify_replacement):
2155 Add early_p argument. Call gimple_simplify_phiopt
2156 instead of gimple_simplify.
2157 (tree_ssa_phiopt_worker): Update call to
2158 match_simplify_replacement and allow unconditionally.
2159 (phiopt_early_allow): New function.
2160 (gimple_simplify_phiopt): New function.
2162 2021-07-05 Andrew Pinski <apinski@marvell.com>
2164 PR middle-end/101237
2165 * fold-const.c (negate_expr_p): Remove call to element_mode
2166 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
2167 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
2168 (fold_negate_expr_1): Likewise.
2169 (const_unop): Likewise.
2170 (fold_cond_expr_with_comparison): Likewise.
2171 (fold_binary_loc): Likewise.
2172 (fold_ternary_loc): Likewise.
2173 (tree_call_nonnegative_warnv_p): Likewise.
2174 * match.pd (-(A + B) -> (-B) - A): Likewise.
2176 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
2178 * configure.ac: Handle --with-dsymutil in the same way as we
2179 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
2180 Extract the type and version for the dsymutil configured or
2181 found by the default searches.
2182 * config.in: Regenerated.
2183 * configure: Regenerated.
2184 * collect2.c (do_dsymutil): Handle locating dsymutil in the
2185 same way as for the assembler and linker.
2186 * config/darwin.h (DSYMUTIL): Delete.
2187 * gcc.c: Report a configured dsymutil correctly.
2188 * exec-tool.in: Allow for dsymutil.
2190 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
2192 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
2193 Handle V4QI and V2HI modes.
2194 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
2195 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
2196 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
2197 Handle 4-byte dual operands with TARGET_XOP and single operands
2198 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
2199 mmx_pshufbv4qi3 for TARGET_SSSE3.
2200 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
2201 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
2202 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
2203 (expand_vec_perm_even_odd_1): Handle V4QI mode.
2204 (expand_vec_perm_broadcast_1): Handle V4QI mode.
2205 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
2206 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
2207 (mmx_pshufbv4qi3): Ditto.
2208 (*mmx_pblendw32): Ditto.
2209 (*mmx_pblendw64): Rename from *mmx_pblendw.
2210 (mmx_punpckhbw_low): New insn_and_split pattern.
2211 (mmx_punpcklbw_low): Ditto.
2213 2021-07-05 Richard Biener <rguenther@suse.de>
2215 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
2216 set LOOP_C_INFINITE on the vectorized loop.
2218 2021-07-05 Richard Biener <rguenther@suse.de>
2220 PR middle-end/101291
2221 * cfgloopmanip.c (loop_version): Set the loop copy of the
2222 versioned loop to the new loop.
2224 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
2227 * config.gcc: Ensure that Darwin biarch definitions are
2228 added before i386.h.
2229 * config/i386/darwin.h (TARGET_64BIT): Remove.
2230 (PR80556_WORKAROUND): New.
2231 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
2232 (DARWIN_SUBARCH_SPEC): New.
2233 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
2234 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
2235 (REAL_LIBGCC_SPEC): Remove.
2236 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
2237 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
2238 (REAL_LIBGCC_SPEC): Remove.
2240 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
2242 PR middle-end/101294
2243 * expr.c (store_constructor): Don't use vec_duplicate on vector.
2245 2021-07-02 Martin Sebor <msebor@redhat.com>
2249 * diagnostic.c (get_any_inlining_info): New.
2250 (update_effective_level_from_pragmas): Handle inlining context.
2251 (diagnostic_enabled): Same.
2252 (diagnostic_report_diagnostic): Same.
2253 * diagnostic.h (struct diagnostic_info): Add ctor.
2254 (struct diagnostic_context): Add new member.
2255 * tree-diagnostic.c (set_inlining_locations): New.
2256 (tree_diagnostics_defaults): Set new callback pointer.
2258 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
2260 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
2262 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
2263 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
2264 lxvp and stxvp built-ins.
2265 (mma_init_builtins): Handle lxvp and stxvp built-ins.
2266 (builtin_function_type): Likewise.
2267 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
2269 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
2271 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
2272 additional argument for the code.
2273 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
2274 argument for the code. Just return if the ZN bits are useful or
2275 not rather than the old style CC_* enums.
2276 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
2277 more generic shiftqi patterns.
2278 (shifthi_noscratch, shiftsi_noscratch): Similarly.
2279 (shiftqi_noscratch_set_flags): New pattern.
2280 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
2282 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
2284 PR tree-optimization/101223
2285 * range-op.cc (build_lt): Add -1 for signed values.
2286 (built_gt): Subtract -1 for signed values.
2288 2021-07-02 David Faust <david.faust@oracle.com>
2290 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
2291 (btf_asm_type): Likewise.
2293 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
2295 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
2296 an array of rtx rather than a pointer to rtx. Add code argument.
2297 (compute_a_shift_length): Similarly.
2298 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
2299 shift itself isn't an operand. Create dummy operand[0] to carry
2300 a mode and pass a suitable rtx code to compute_a_shift_length.
2301 (get_shift_alg): Adjust operand number of clobber in output templates.
2302 (output_a_shift): Make first argument an array of rtx rather than
2303 a pointer to rtx. Add code argument for the type of shift.
2304 Adjust now that the shift itself is no longer an operand.
2305 (compute_a_shift_length): Similarly.
2306 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
2307 iterator rather than nshift_operator.
2308 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
2309 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
2310 and compute_a_shift_length.
2311 (shiftqi_noscratch_clobber_flags): Likewise.
2312 (shifthi_noscratch_clobber_flags): Likewise.
2313 (shiftsi_noscratch_clobber_flags): Likewise.
2315 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
2318 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
2319 dsymutil for BTF/CTF.
2321 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
2324 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
2325 segment to include BTF.
2326 (BTF_INFO_SECTION_NAME): New.
2328 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
2330 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
2331 (small_data_operand, memreg_operand, small_insn_p): Likewise.
2332 * config/m32r/m32r.c (call_operand): Adjust return type.
2333 (small_data_operand, memreg_operand): Likewise.
2335 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
2337 * config/frv/frv-protos.h (integer_register_operand): Adjust return
2339 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
2340 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
2341 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
2342 (move_source_operand, move_destination_operand): Likewise.
2343 (condexec_source_operand, condexec_dest_operand): Likewise.
2344 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
2345 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
2346 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
2347 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
2348 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
2349 (even_fpr_operand, odd_fpr_operand): Likewise.
2350 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
2351 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
2352 (uint4_operand, uint1_operand, int_2word_operand): Likewise
2353 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
2354 (relational_operator, float_relational_operator): Likewise.
2355 (ccr_eqne_operator, minmax_operator): Likewise.
2356 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
2357 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
2358 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
2359 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
2360 (quad_acc_operand, accg_operand): Likewise.
2362 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
2364 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
2365 return type to a bool.
2366 (nonimmediate_nonstack_operand): Likewise.
2367 (xstormy16_splittable_below100_operand): Likewise.
2368 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
2370 (xstormy16_splittable_below100_operand): Likewise.
2372 2021-07-02 Richard Biener <rguenther@suse.de>
2374 PR tree-optimization/101293
2375 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
2376 with combined offsets.
2377 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
2378 combined with the rest of the offset.
2380 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
2382 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
2383 PIC encodings for PE-COFF targets.
2385 2021-07-02 Jakub Jelinek <jakub@redhat.com>
2388 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
2389 Return nullptr for TImode inner mode.
2391 2021-07-02 Richard Biener <rguenther@suse.de>
2393 PR tree-optimization/101280
2394 PR tree-optimization/101173
2395 * gimple-loop-interchange.cc
2396 (tree_loop_interchange::valid_data_dependences): Properly
2397 guard all dependence checks with DDR_REVERSED_P or its
2400 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
2402 * config/i386/i386-expand.c (ix86_expand_builtin):
2403 Add branch to clear odata when ZF is set for asedecenc_expand
2404 and wideaesdecenc_expand.
2406 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
2408 * config/i386/gcc-auto-profile: regenerate
2410 2021-07-02 liuhongt <hongtao.liu@intel.com>
2412 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
2413 (trunc<mode><pmov_dst_4_lower>2): this.
2415 2021-07-01 David Malcolm <dmalcolm@redhat.com>
2417 * diagnostic.h (diagnostic_context::m_file_cache): New field.
2418 * input.c (class fcache): Rename to...
2419 (class file_cache_slot): ...this, making most members private and
2420 prefixing fields with "m_".
2421 (file_cache_slot::get_file_path): New accessor.
2422 (file_cache_slot::get_use_count): New accessor.
2423 (file_cache_slot::missing_trailing_newline_p): New accessor.
2424 (file_cache_slot::inc_use_count): New.
2425 (fcache_buffer_size): Move to...
2426 (file_cache_slot::buffer_size): ...here.
2427 (fcache_line_record_size): Move to...
2428 (file_cache_slot::line_record_size): ...here.
2429 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
2430 (fcache_tab_size): Move to file_cache::num_file_slots.
2431 (diagnostic_file_cache_init): Update for move of fcache_tab
2432 to global_dc->m_file_cache.
2433 (diagnostic_file_cache_fini): Likewise.
2434 (lookup_file_in_cache_tab): Convert to...
2435 (file_cache::lookup_file): ...this.
2436 (diagnostics_file_cache_forcibly_evict_file): Update for move of
2437 fcache_tab to global_dc->m_file_cache, moving most of
2438 implementation to...
2439 (file_cache::forcibly_evict_file): ...this new function and...
2440 (file_cache_slot::evict): ...this new function.
2441 (evicted_cache_tab_entry): Convert to...
2442 (file_cache::evicted_cache_tab_entry): ...this.
2443 (add_file_to_cache_tab): Convert to...
2444 (file_cache::add_file): ...this, moving bulk of implementation
2446 (file_cache_slot::create): ..this new function.
2447 (file_cache::file_cache): New.
2448 (file_cache::~file_cache): New.
2449 (lookup_or_add_file_to_cache_tab): Convert to...
2450 (file_cache::lookup_or_add_file): ..this new function.
2451 (fcache::fcache): Rename to...
2452 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
2454 (fcache::~fcache): Rename to...
2455 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
2457 (needs_read): Convert to...
2458 (file_cache_slot::needs_read_p): ...this.
2459 (needs_grow): Convert to...
2460 (file_cache_slot::needs_grow_p): ...this.
2461 (maybe_grow): Convert to...
2462 (file_cache_slot::maybe_grow): ...this.
2463 (read_data): Convert to...
2464 (file_cache_slot::read_data): ...this.
2465 (maybe_read_data): Convert to...
2466 (file_cache_slot::maybe_read_data): ...this.
2467 (get_next_line): Convert to...
2468 (file_cache_slot::get_next_line): ...this.
2469 (goto_next_line): Convert to...
2470 (file_cache_slot::goto_next_line): ...this.
2471 (read_line_num): Convert to...
2472 (file_cache_slot::read_line_num): ...this.
2473 (location_get_source_line): Update for moving of globals to
2474 global_dc->m_file_cache.
2475 (location_missing_trailing_newline): Likewise.
2476 * input.h (class file_cache_slot): New forward decl.
2477 (class file_cache): New.
2479 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
2481 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
2482 128-bit floating point conditional move support.
2483 (have_compare_and_set_mask): Add IEEE 128-bit floating point
2485 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
2486 (mov<mode>cc_p10, IEEE128 iterator): New insn.
2487 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
2488 (fpmask<mode>, IEEE128 iterator): New insn.
2489 (xxsel<mode>, IEEE128 iterator): New insn.
2491 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
2494 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
2496 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
2498 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
2500 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
2502 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
2503 (vec_duplicate<mode>): New expander.
2505 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
2508 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
2510 (ix86_byte_broadcast): New function.
2511 (ix86_convert_const_wide_int_to_broadcast): Likewise.
2512 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
2513 size is 16 bytes or bigger.
2514 (ix86_broadcast_from_integer_constant): New function.
2515 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
2516 to broadcast if mode size is 16 bytes or bigger.
2517 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
2519 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
2521 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
2523 * config/i386/predicates.md (ix86_endbr_immediate_operand):
2524 Return true/false instead of 1/0.
2525 (movq_parallel): Ditto.
2527 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
2529 * recog.c (general_operand): Return true/false instead of 1/0.
2530 (register_operand): Ditto.
2531 (immediate_operand): Ditto.
2532 (const_int_operand): Ditto.
2533 (const_scalar_int_operand): Ditto.
2534 (const_double_operand): Ditto.
2535 (push_operand): Ditto.
2536 (pop_operand): Ditto.
2537 (memory_operand): Ditto.
2538 (indirect_operand): Ditto.
2540 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
2542 * genpreds.c (write_predicate_subfunction):
2543 Change the type of written subfunction to bool.
2544 (write_one_predicate_function):
2545 Change the type of written function to bool.
2546 (write_tm_preds_h): Ditto.
2547 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
2548 * recog.c (general_operand): Change the type to bool.
2549 (address_operand): Ditto.
2550 (register_operand): Ditto.
2551 (pmode_register_operand): Ditto.
2552 (scratch_operand): Ditto.
2553 (immediate_operand): Ditto.
2554 (const_int_operand): Ditto.
2555 (const_scalar_int_operand): Ditto.
2556 (const_double_operand): Ditto.
2557 (nonimmediate_operand): Ditto.
2558 (nonmemory_operand): Ditto.
2559 (push_operand): Ditto.
2560 (pop_operand): Ditto.
2561 (memory_operand): Ditto.
2562 (indirect_operand): Ditto.
2563 (ordered_comparison_operator): Ditto.
2564 (comparison_operator): Ditto.
2565 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
2566 Change the type of indirect predicate function to bool.
2567 * config/rs6000/rs6000.c (easy_vector_constant):
2568 Change the type to bool.
2569 * config/mips/mips-protos.h (m16_based_address_p):
2570 Change the type of operand 3 to bool.
2572 2021-07-01 Richard Biener <rguenther@suse.de>
2574 PR tree-optimization/101280
2575 PR tree-optimization/101173
2576 * gimple-loop-interchange.cc
2577 (tree_loop_interchange::valid_data_dependences): Revert
2578 previous change and instead correctly handle DDR_REVERSED_P
2581 2021-07-01 Richard Biener <rguenther@suse.de>
2583 PR tree-optimization/101278
2584 * tree-ssa-dse.c (dse_classify_store): First check for
2585 uses, then ignore stmt for chaining purposes.
2587 2021-07-01 Richard Biener <rguenther@suse.de>
2589 PR tree-optimization/100778
2590 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
2591 vectorized ops ahead of their scalar BB.
2593 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
2596 * config/i386/i386.md (*nabs<dwi>2_doubleword):
2597 New insn_and_split pattern.
2598 (*nabs<dwi>2_1): Ditto.
2599 * config/i386/i386-features.c
2600 (general_scalar_chain::compute_convert_gain):
2601 Handle (NEG (ABS (...))) RTX. Rewrite src code
2602 scanner as switch statement.
2603 (general_scalar_chain::convert_insn):
2604 Handle (NEG (ABS (...))) RTX.
2605 (general_scalar_to_vector_candidate_p):
2606 Detect (NEG (ABS (...))) RTX. Reorder case statements
2607 for (AND (NOT (...) ...)) fallthrough.
2609 2021-07-01 Richard Biener <rguenther@suse.de>
2611 PR tree-optimization/101178
2612 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
2613 (slpg::perm_in): Add.
2614 (slpg::get_perm_in): Remove.
2615 (slpg::get_perm_materialized): Add.
2616 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
2617 during permute propagation and materialization.
2619 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2622 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
2624 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2627 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
2628 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
2629 use boolean_type_node instead of integer_type_node as NE_EXPR type.
2630 (lower_reduction_clauses): Likewise.
2632 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2634 * config/gcn/gcn.c: Include dwarf2.h.
2635 (gcn_addr_space_debug): New function.
2636 (TARGET_ADDR_SPACE_DEBUG): New hook.
2638 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2640 * common/config/gcn/gcn-common.c
2641 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
2642 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
2644 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
2645 (gcn_frame_pointer_rqd): New function.
2646 (TARGET_FRAME_POINTER_REQUIRED): New hook.
2648 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2650 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
2651 prologue register saves.
2652 (gcn_debug_unwind_info): Use UI_DWARF2.
2653 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
2654 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
2655 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
2656 (DWARF_LINK_REGISTER): New define.
2657 (FIRST_PSEUDO_REGISTER): Increment.
2658 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
2659 (CALL_USED_REGISTERS): Likewise.
2660 (REGISTER_NAMES): Likewise.
2662 2021-06-30 Richard Biener <rguenther@suse.de>
2664 PR tree-optimization/101267
2665 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
2666 API and use SLP compatible interface of vect_is_simple_use.
2667 Reject not vectorized SLP defs for callers that do not support
2669 (vect_check_store_rhs): Handle masked stores and pass down
2670 the appropriate operator index.
2671 (vectorizable_call): Adjust.
2672 (vectorizable_store): Likewise.
2673 (vectorizable_load): Likewise. Handle SLP pecularity of
2675 (vect_is_simple_use): Remove special-casing of masked stores.
2677 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
2679 * common.opt (foffload): Remove help as Driver only.
2680 * gcc.c (display_help): Add -foffload.
2682 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
2684 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
2685 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
2686 a candidate list; better inform no offload target is configured
2687 and fix hint extraction when passed target is not '\0' at [len].
2688 * common.opt (foffload): Add tailing '.'.
2689 (foffload-options): Likewise; fix flag name in the help string.
2691 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2694 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
2695 (vcage_f32): Gate comparison on __FAST_MATH__.
2696 (vcageq_f32): Likewise.
2697 (vcale_f32): Likewise.
2698 (vcaleq_f32): Likewise.
2699 (vcagt_f32): Likewise.
2700 (vcagtq_f32): Likewise.
2701 (vcalt_f32): Likewise.
2702 (vcaltq_f32): Likewise.
2703 (vcage_f16): Likewise.
2704 (vcageq_f16): Likewise.
2705 (vcale_f16): Likewise.
2706 (vcaleq_f16): Likewise.
2707 (vcagt_f16): Likewise.
2708 (vcagtq_f16): Likewise.
2709 (vcalt_f16): Likewise.
2710 (vcaltq_f16): Likewise.
2712 2021-06-30 Richard Biener <rguenther@suse.de>
2714 PR tree-optimization/101264
2715 * tree-vect-slp.c (vect_optimize_slp): Propagate the
2716 computed perm_in to all "any" permute successors
2717 we cannot de-duplicate immediately.
2719 2021-06-30 liuhongt <hongtao.liu@intel.com>
2722 * config/i386/sse.md
2723 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
2725 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
2727 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
2728 * config/i386/subst.md (maskz_scalar): New define_subst.
2729 (maskz_scalar_name): New subst_attr.
2730 (maskz_scalar_op5): Ditto.
2731 (round_saeonly_maskz_scalar_op5): Ditto.
2732 (round_saeonly_maskz_scalar_operand5): Ditto.
2734 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
2736 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
2737 Increase code CSECT alignment to at least 32 bytes.
2738 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
2739 alignment designation.
2741 2021-06-29 Sergei Trofimovich <siarheit@google.com>
2743 * doc/generic.texi: Fix s/net yet/not yet/ typo.
2745 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
2747 PR tree-optimization/101254
2748 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
2749 wrapping/non-wrapping when setting the result range.
2751 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
2753 * value-query.cc (gimple_range_global): Allow phis.
2755 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
2757 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
2758 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
2759 statement for location context.
2760 (check_for_binary_op_overflow): Ditto.
2761 (simplify_using_ranges::get_vr_for_comparison): Ditto.
2762 (simplify_using_ranges::compare_name_with_value): Ditto.
2763 (simplify_using_ranges::compare_names): Ditto.
2764 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
2765 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
2766 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
2767 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
2768 (simplify_using_ranges::two_valued_val_range_p): Ditto.
2769 (simplify_using_ranges::simplify): Ditto.
2770 * vr-values.h: Adjust prototypes.
2772 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
2775 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
2777 2021-06-29 Julian Brown <julian@codesourcery.com>
2779 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
2780 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
2781 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
2783 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
2784 (MAX_FIXED_MODE_SIZE): Change to 128.
2786 2021-06-29 Julian Brown <julian@codesourcery.com>
2788 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
2789 (s_mnemonic): Add clrsb.
2790 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
2791 (clrsb<mode>2): Add expander for SImode/DImode.
2793 2021-06-29 Julian Brown <julian@codesourcery.com>
2795 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
2796 muldi3): Add patterns.
2798 2021-06-29 Julian Brown <julian@codesourcery.com>
2800 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
2801 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
2803 2021-06-29 Julian Brown <julian@codesourcery.com>
2805 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
2807 2021-06-29 Joseph Myers <joseph@codesourcery.com>
2809 * btfout.c, ctfout.c: Include "memmodel.h".
2811 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2813 * gcc.c (check_offload_target_name): Cast len argument to
2814 %q.*s to 'int'; avoid -Wstringop-truncation warning.
2816 2021-06-29 Richard Biener <rguenther@suse.de>
2818 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
2819 to "any" permute nodes and relax "any" permute proapgation
2820 during iterative backward propagation.
2822 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2825 * common.opt (-foffload=): Update description.
2826 (-foffload-options=): New.
2827 * doc/invoke.texi (C Language Options): Document
2828 -foffload and -foffload-options.
2829 * gcc.c (check_offload_target_name): New, split off from
2830 handle_foffload_option.
2831 (check_foffload_target_names): New.
2832 (handle_foffload_option): Handle -foffload=default.
2833 (driver_handle_option): Update for -foffload-options.
2834 * lto-opts.c (lto_write_options): Use -foffload-options
2835 instead of -foffload.
2836 * lto-wrapper.c (merge_and_complain, append_offload_options):
2838 * opts.c (common_handle_option): Likewise.
2840 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2842 * doc/invoke.texi (C Language Options): Sort options
2843 alphabetically in optlist and also the description itself.
2844 Remove leftover -fallow-single-precision from and add missing
2845 -fgnu-tm to the optlist.
2847 2021-06-29 Richard Biener <rguenther@suse.de>
2849 * tree-vect-slp.c (slpg_vertex::visited): Remove.
2850 (vect_slp_perms_eq): Handle -1 permutes.
2851 (vect_optimize_slp): Rewrite permute propagation.
2853 2021-06-29 Jakub Jelinek <jakub@redhat.com>
2856 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
2857 perform the optimization in GENERIC when sanitizing and x has a
2860 2021-06-29 Richard Biener <rguenther@suse.de>
2862 PR tree-optimization/101242
2863 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
2864 PHIs with not represented initial values as leafs.
2866 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
2868 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
2869 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
2871 (pdp11_initial_elimination_offset) Remove unused variable.
2872 (pdp11_cmp_length) Ditto.
2873 (pdp11_insn_cost): Ditto, and fix signedness warning.
2875 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
2877 * btfout.c: Include tm_p.h.
2880 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
2882 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
2884 (bpf_expand_epilogue): Likewise.
2885 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
2886 Do not define DBX_DEBUGGING_INFO.
2888 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
2890 * doc/invoke.texi: Document the CTF and BTF debug info options.
2892 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
2893 David Faust <david.faust@oracle.com>
2894 Jose E. Marchesi <jose.marchesi@oracle.com>
2895 Weimin Pan <weimin.pan@oracle.com>
2897 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
2898 GTFILES. Add new object files.
2899 * common.opt: Add CTF and BTF debug info options.
2900 * btfout.c: New file.
2903 * ctfout.c: Likewise.
2904 * dwarf2ctf.c: Likewise.
2905 * dwarf2ctf.h: Likewise.
2906 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
2908 * dwarf2out.c (dwarf2out_source_line): Likewise.
2909 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
2911 (debug_format_do_cu): New function.
2912 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
2914 Include dwarf2ctf.c.
2915 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
2917 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
2918 (CTF_DEBUG): New bitmask.
2919 (BTF_DEBUG): Likewise.
2920 (enum ctf_debug_info_levels): New enum.
2921 * gengtype.c (open_base_files): Handle ctfc.h.
2922 (main): Handle uint32_t type.
2923 * flags.h (btf_debuginfo_p): New definition.
2924 (dwarf_based_debuginfo_p): Likewise.
2925 * opts.c (debug_type_names): Add entries for CTF and BTF.
2926 (btf_debuginfo_p): New function.
2927 (dwarf_based_debuginfo_p): Likewise.
2928 (common_handle_option): Handle -gctfN and -gbtf options.
2929 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
2930 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
2933 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
2935 * dwarf2out.c (AT_class): Function is no longer static.
2937 (AT_unsigned): Likewise.
2940 (get_AT_string): Likewise.
2941 (get_AT_flag): Likewise.
2942 (get_AT_unsigned): Likewise.
2943 (get_AT_ref): Likewise.
2944 (new_die_raw): Likewise.
2945 (lookup_decl_die): Likewise.
2946 (base_type_die): Likewise.
2947 (add_name_attribute): Likewise.
2948 (add_AT_int): Likewise.
2949 (add_AT_unsigned): Likewise.
2950 (add_AT_loc): Likewise.
2951 (dw_get_die_tag): New function.
2952 (dw_get_die_child): Likewise.
2953 (dw_get_die_sib): Likewise.
2954 (struct dwarf_file_data): Move from here to dwarf2out.h
2955 (struct dw_attr_struct): Likewise.
2956 * dwarf2out.h: Analogous changes.
2958 2021-06-28 Martin Jambor <mjambor@suse.cz>
2961 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
2962 members m_dead_stmts and m_dead_ssas.
2963 * ipa-param-manipulation.c
2964 (ipa_param_body_adjustments::mark_dead_statements): New function.
2965 (ipa_param_body_adjustments::common_initialization): Call it on
2966 all removed but not split parameters.
2967 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
2969 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
2971 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
2972 dead debug statements.
2973 (copy_phis_for_bb): Do not copy dead PHI nodes.
2975 2021-06-28 Martin Jambor <mjambor@suse.cz>
2978 * symtab-clones.h (clone_info): Removed member param_adjustments.
2979 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
2980 deal with pass-through splits now.
2981 (ipa_param_performed_split): Removed.
2982 (ipa_param_adjustments::modify_call): Adjusted parameters.
2983 (class ipa_param_body_adjustments): Adjusted parameters of
2984 register_replacement, modify_gimple_stmt and modify_call_stmt.
2985 (ipa_verify_edge_has_no_modifications): Declare.
2986 (ipa_edge_modifications_finalize): Declare.
2987 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
2988 performed_splits processing, pas only edge to padjs->modify_call,
2989 check that call arguments were not modified if they should not have
2991 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
2993 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
2994 (ipa_edge_modification_info): Likewise.
2995 (ipa_edge_modification_sum): Likewise.
2996 (ipa_edge_modifications): New edge summary.
2997 (ipa_verify_edge_has_no_modifications): New function.
2998 (transitive_split_p): Removed.
2999 (transitive_split_map): Likewise.
3000 (init_transitive_splits): Likewise.
3001 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
3002 summary instead of performed_splits.
3003 (ipa_param_body_adjustments::register_replacement): Drop dummy
3004 parameter, set base_index of the created ipa_param_body_replacement.
3005 (phi_arg_will_live_p): New function.
3006 (ipa_param_body_adjustments::common_initialization): Do not create
3007 IPA_SRA dummy decls.
3008 (simple_tree_swap_info): Removed.
3009 (remap_split_decl_to_dummy): Likewise.
3010 (record_argument_state_1): New function.
3011 (record_argument_state): Likewise.
3012 (ipa_param_body_adjustments::modify_call_stmt): New parameter
3013 orig_stmt. Do not work with dummy decls, save necessary info about
3014 changes to ipa_edge_modifications.
3015 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
3016 orig_stmt, pass it to modify_call_stmt.
3017 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
3019 (ipa_edge_modifications_finalize): New function.
3020 * tree-inline.c (remap_gimple_stmt): Pass original statement to
3022 (copy_phis_for_bb): Do not copy dead PHI nodes.
3023 (expand_call_inline): Do not remap performed_splits.
3024 (update_clone_info): Likewise.
3025 * toplev.c: Include ipa-param-manipulation.h.
3026 (toplev::finalize): Call ipa_edge_modifications_finalize.
3028 2021-06-28 Andrew Pinski <apinski@marvell.com>
3030 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
3031 info if we're the only things setting the target PHI.
3032 (value_replacement): Don't duplicate range here.
3033 (minmax_replacement): Likewise.
3035 2021-06-28 Richard Biener <rguenther@suse.de>
3037 PR tree-optimization/101229
3038 * gimple-walk.c (gimple_walk_op): Handle PHIs.
3040 2021-06-28 Martin Liska <mliska@suse.cz>
3042 * config/v850/v850.c (construct_dispose_instruction): Allocate
3044 (construct_prepare_instruction): Likewise.
3046 2021-06-28 Martin Liska <mliska@suse.cz>
3048 * config/v850/v850.c (v850_option_override): Build default
3050 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
3051 ignored for inlining.
3052 (TARGET_CAN_INLINE_P): New.
3054 2021-06-28 Richard Biener <rguenther@suse.de>
3056 PR tree-optimization/101207
3057 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
3058 permute eliding for load permutations properly.
3060 2021-06-28 Richard Biener <rguenther@suse.de>
3062 PR tree-optimization/101173
3063 * gimple-loop-interchange.cc
3064 (tree_loop_interchange::valid_data_dependences): Disallow outer
3065 loop dependence distance of zero.
3067 2021-06-28 liuhongt <hongtao.liu@intel.com>
3070 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
3071 define_insn_and_split.
3072 (*avx_cmp<mode>3_ltint): Ditto.
3073 (*avx2_pcmp<mode>3_3): Ditto.
3074 (*avx2_pcmp<mode>3_4): Ditto.
3075 (*avx2_pcmp<mode>3_5): Ditto.
3077 2021-06-28 liuhongt <hongtao.liu@intel.com>
3079 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
3080 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
3081 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
3082 IX86_BUILTIN_PBLENDVB128): Replace icode with
3084 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
3086 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
3087 New pre_reload splitter.
3089 2021-06-27 Andrew Pinski <apinski@marvell.com>
3091 PR middle-end/101230
3092 * fold-const.c (fold_ternary_loc): Check
3093 the return value of invert_tree_comparison.
3095 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
3097 * config.gcc: Add SPDX License Identifier.
3098 (powerpc-ibm-aix789): Default to aix73.h.
3099 (powerpc-ibm-aix7.2.*.*): New stanza.
3100 * config/rs6000/aix72.h: Add SPDX License Identifier.
3101 * config/rs6000/aix73.h: New file.
3103 2021-06-26 Jason Merrill <jason@redhat.com>
3105 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
3107 2021-06-26 Andrew Pinski <apinski@marvell.com>
3109 * genmatch.c (lower_cond): Copy for_subst_vec
3110 for the simplify also.
3111 (lower): Swap the order for lower_for and lower_cond.
3113 2021-06-26 Andrew Pinski <apinski@marvell.com>
3115 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
3116 flow senatitive info on the moved ssa set.
3118 2021-06-26 Andrew Pinski <apinski@marvell.com>
3120 * fold-const.c (fold_cond_expr_with_comparison):
3121 Exand arg0 into comp_code, arg00, and arg01.
3122 (fold_ternary_loc): Use invert_tree_comparison
3123 instead of fold_invert_truthvalue for the case
3124 where we have A CMP B ? C : A.
3126 2021-06-25 Martin Sebor <msebor@redhat.com>
3128 PR middle-end/101216
3129 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
3131 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
3133 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
3135 2021-06-25 Richard Biener <rguenther@suse.de>
3137 PR tree-optimization/101202
3138 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
3141 2021-06-25 Richard Biener <rguenther@suse.de>
3143 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
3144 STMT_VINFO_REDUC_DEF from the original representative.
3146 2021-06-25 Martin Sebor <msebor@redhat.com>
3148 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
3149 gimple_no_warning_p and gimple_set_no_warning with
3150 warning_suppressed_p, and suppress_warning.
3152 (maybe_warn_for_bound): Same.
3153 (warn_for_access): Same.
3154 (check_access): Same.
3155 (expand_builtin_strncmp): Same.
3156 (fold_builtin_varargs): Same.
3157 * calls.c (maybe_warn_nonstring_arg): Same.
3158 (maybe_warn_rdwr_sizes): Same.
3159 * cfgexpand.c (expand_call_stmt): Same.
3160 * cgraphunit.c (check_global_declaration): Same.
3161 * fold-const.c (fold_undefer_overflow_warnings): Same.
3162 (fold_truth_not_expr): Same.
3163 (fold_unary_loc): Same.
3164 (fold_checksum_tree): Same.
3165 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
3166 (array_bounds_checker::check_mem_ref): Same.
3167 (array_bounds_checker::check_addr_expr): Same.
3168 (array_bounds_checker::check_array_bounds): Same.
3169 * gimple-expr.c (copy_var_decl): Same.
3170 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
3171 (gimple_fold_builtin_strncat): Same.
3172 (gimple_fold_builtin_stxcpy_chk): Same.
3173 (gimple_fold_builtin_stpcpy): Same.
3174 (gimple_fold_builtin_sprintf): Same.
3175 (fold_stmt_1): Same.
3176 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
3177 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
3178 * gimple-ssa-sprintf.c (handle_printf_call): Same.
3179 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
3180 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
3181 * gimple-ssa-warn-restrict.h: Adjust declarations.
3182 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
3183 gimple_no_warning_p and gimple_set_no_warning with
3184 warning_suppressed_p, and suppress_warning.
3186 (check_bounds_or_overlap): Same.
3187 * gimple.c (gimple_build_call_from_tree): Same.
3188 * gimplify.c (gimplify_return_expr): Same.
3189 (gimplify_cond_expr): Same.
3190 (gimplify_modify_expr_complex_part): Same.
3191 (gimplify_modify_expr): Same.
3192 (gimple_push_cleanup): Same.
3193 (gimplify_expr): Same.
3194 * omp-expand.c (expand_omp_for_generic): Same.
3195 (expand_omp_taskloop_for_outer): Same.
3196 * omp-low.c (lower_rec_input_clauses): Same.
3197 (lower_lastprivate_clauses): Same.
3198 (lower_send_clauses): Same.
3199 (lower_omp_target): Same.
3200 * tree-cfg.c (pass_warn_function_return::execute): Same.
3201 * tree-complex.c (create_one_component_var): Same.
3202 * tree-inline.c (remap_gimple_op_r): Same.
3203 (copy_tree_body_r): Same.
3204 (declare_return_variable): Same.
3205 (expand_call_inline): Same.
3206 * tree-nested.c (lookup_field_for_decl): Same.
3207 * tree-sra.c (create_access_replacement): Same.
3208 (generate_subtree_copies): Same.
3209 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
3210 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
3211 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
3212 * tree-ssa-loop-im.c (execute_sm): Same.
3213 * tree-ssa-phiopt.c (cond_store_replacement): Same.
3214 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
3215 (handle_builtin_strcpy): Same.
3216 (maybe_diag_stxncpy_trunc): Same.
3217 (handle_builtin_stxncpy_strncat): Same.
3218 (handle_builtin_strcat): Same.
3219 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
3220 (set_no_uninit_warning): Same.
3221 (uninit_undefined_value_p): Same.
3222 (warn_uninit): Same.
3223 (maybe_warn_operand): Same.
3224 * tree-vrp.c (compare_values_warnv): Same.
3225 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
3226 (test_for_singularity): Same.
3227 * gimple.h (warning_suppressed_p): New function.
3228 (suppress_warning): Same.
3229 (copy_no_warning): Same.
3230 (gimple_set_block): Call gimple_set_location.
3231 (gimple_set_location): Call copy_warning.
3233 2021-06-25 Martin Sebor <msebor@redhat.com>
3235 * tree.h (warning_suppressed_at, copy_warning,
3236 warning_suppressed_p, suppress_warning): New functions.
3238 2021-06-25 Martin Sebor <msebor@redhat.com>
3240 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
3241 * gengtype.c (open_base_files): Add diagnostic-spec.h.
3242 * diagnostic-spec.c: New file.
3243 * diagnostic-spec.h: New file.
3244 * tree.h (no_warning, all_warnings, suppress_warning_at): New
3246 * warning-control.cc: New file.
3248 2021-06-25 liuhongt <hongtao.liu@intel.com>
3251 * config/i386/i386.c (x86_order_regs_for_local_alloc):
3254 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
3256 PR tree-optimization/101189
3257 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
3258 LHS range of condition to postfold routine.
3259 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
3260 FALSE edge if the LHS range supports it being taken.
3261 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
3263 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
3265 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
3266 (relation_oracle::find_relation_block): Check correct bitmap.
3267 (relation_oracle::dump): Do not dump NULL blocks.
3269 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
3271 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
3272 range_on_edge instead of manually calculating.
3274 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
3276 * range-op.cc: Fix comment.
3278 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
3281 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
3282 Handle V8QI and V4HI modes.
3283 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
3285 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
3286 (mmxpackmode): New mode attribute.
3287 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
3288 (mmxunpackmode): New mode attribute.
3289 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
3290 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
3291 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
3292 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
3293 * config/i386/i386.md (extsuffix): Move from ...
3294 * config/i386/sse.md: ... here.
3296 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
3298 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
3299 (dwarf2out_finish): ...instead of here.
3301 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
3303 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
3304 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
3305 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
3306 * configure: Regenerate.
3308 2021-06-24 Richard Biener <rguenther@suse.de>
3310 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
3311 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
3312 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
3314 2021-06-24 Richard Biener <rguenther@suse.de>
3316 * config/i386/sse.md (avx_addsubv4df3): Rename to
3318 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
3319 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
3320 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
3321 * config/i386/i386-builtin.def: Adjust.
3322 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
3323 * optabs.def (vec_addsub_optab): New optab.
3324 * tree-vect-slp-patterns.c (class addsub_pattern): New.
3325 (slp_patterns): Add addsub_pattern.
3326 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
3327 across CFN_VEC_ADDSUB.
3328 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
3330 * doc/md.texi (vec_addsub<mode>3): Document.
3332 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3334 PR middle-end/101170
3335 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
3336 where regno + subreg_regno_offset wraps around use 0 as starting
3339 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3341 PR middle-end/101172
3342 * stor-layout.c (finish_bitfield_representative): If nextf has
3343 error_mark_node type, set repr type to error_mark_node too.
3345 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
3347 * config/s390/s390.c (s390_function_profiler): Ignore labelno
3349 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
3351 2021-06-24 Richard Biener <rguenther@suse.de>
3353 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
3354 across operations that have different semantics on different
3357 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3359 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
3360 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
3361 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
3362 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
3363 OMP_TARGET user outer_ctx instead of ctx for placeholders and
3364 initializer/combiner gimplification.
3365 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
3366 on target constructs.
3367 (lower_rec_input_clauses): Likewise.
3368 (lower_omp_target): Likewise.
3369 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
3370 on target if in_reduction is present.
3372 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
3374 * tree-predcom.c (class pcom_worker): New class.
3375 (release_chain): Renamed to...
3376 (pcom_worker::release_chain): ...this.
3377 (release_chains): Renamed to...
3378 (pcom_worker::release_chains): ...this.
3379 (aff_combination_dr_offset): Renamed to...
3380 (pcom_worker::aff_combination_dr_offset): ...this.
3381 (determine_offset): Renamed to...
3382 (pcom_worker::determine_offset): ...this.
3383 (class comp_ptrs): New class.
3384 (split_data_refs_to_components): Renamed to...
3385 (pcom_worker::split_data_refs_to_components): ...this,
3386 and update with class comp_ptrs.
3387 (suitable_component_p): Renamed to...
3388 (pcom_worker::suitable_component_p): ...this.
3389 (filter_suitable_components): Renamed to...
3390 (pcom_worker::filter_suitable_components): ...this.
3391 (valid_initializer_p): Renamed to...
3392 (pcom_worker::valid_initializer_p): ...this.
3393 (find_looparound_phi): Renamed to...
3394 (pcom_worker::find_looparound_phi): ...this.
3395 (add_looparound_copies): Renamed to...
3396 (pcom_worker::add_looparound_copies): ...this.
3397 (determine_roots_comp): Renamed to...
3398 (pcom_worker::determine_roots_comp): ...this.
3399 (determine_roots): Renamed to...
3400 (pcom_worker::determine_roots): ...this.
3401 (single_nonlooparound_use): Renamed to...
3402 (pcom_worker::single_nonlooparound_use): ...this.
3403 (remove_stmt): Renamed to...
3404 (pcom_worker::remove_stmt): ...this.
3405 (execute_pred_commoning_chain): Renamed to...
3406 (pcom_worker::execute_pred_commoning_chain): ...this.
3407 (execute_pred_commoning): Renamed to...
3408 (pcom_worker::execute_pred_commoning): ...this.
3409 (struct epcc_data): New member worker.
3410 (execute_pred_commoning_cbck): Call execute_pred_commoning
3411 with pcom_worker pointer.
3412 (find_use_stmt): Renamed to...
3413 (pcom_worker::find_use_stmt): ...this.
3414 (find_associative_operation_root): Renamed to...
3415 (pcom_worker::find_associative_operation_root): ...this.
3416 (find_common_use_stmt): Renamed to...
3417 (pcom_worker::find_common_use_stmt): ...this.
3418 (combinable_refs_p): Renamed to...
3419 (pcom_worker::combinable_refs_p): ...this.
3420 (reassociate_to_the_same_stmt): Renamed to...
3421 (pcom_worker::reassociate_to_the_same_stmt): ...this.
3422 (stmt_combining_refs): Renamed to...
3423 (pcom_worker::stmt_combining_refs): ...this.
3424 (combine_chains): Renamed to...
3425 (pcom_worker::combine_chains): ...this.
3426 (try_combine_chains): Renamed to...
3427 (pcom_worker::try_combine_chains): ...this.
3428 (prepare_initializers_chain): Renamed to...
3429 (pcom_worker::prepare_initializers_chain): ...this.
3430 (prepare_initializers): Renamed to...
3431 (pcom_worker::prepare_initializers): ...this.
3432 (prepare_finalizers_chain): Renamed to...
3433 (pcom_worker::prepare_finalizers_chain): ...this.
3434 (prepare_finalizers): Renamed to...
3435 (pcom_worker::prepare_finalizers): ...this.
3436 (tree_predictive_commoning_loop): Renamed to...
3437 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
3438 some calls and remove some cleanup code.
3439 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
3440 (static variable looparound_phis): Remove.
3441 (static variable name_expansions): Remove.
3443 2021-06-24 Richard Biener <rguenther@suse.de>
3445 * tree-vect-slp.c (slpg_vertex): New struct.
3446 (vect_slp_build_vertices): Adjust.
3447 (vect_optimize_slp): Likewise. Maintain an outgoing permute
3448 and a materialized one.
3450 2021-06-24 Richard Biener <rguenther@suse.de>
3452 PR tree-optimization/101105
3453 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3454 Only ignore steps when they are equal or scalar order is preserved.
3456 2021-06-24 liuhongt <hongtao.liu@intel.com>
3459 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
3460 Adjust comments for ix86_expand_vecop_qihi2.
3461 (ix86_expand_vecmul_qihi): Renamed to ..
3462 (ix86_expand_vecop_qihi2): Adjust function prototype to
3463 support shift operation, add static to definition.
3464 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
3465 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
3466 ix86_expand_vec_shift_qihi_constant.
3467 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
3468 (ix86_expand_vec_shift_qihi_constant): Deleted.
3469 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
3471 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
3472 condition TARGET_64BIT.
3473 (mul<mode>3): Ditto.
3474 (<insn><mode>3): Ditto.
3475 (vlshr<mode>3): Extend to support avx512 vlshr.
3476 (v<insn><mode>3): New expander for
3478 (v<insn>v8qi3): Ditto.
3479 (vashrv8hi3<mask_name>): Renamed to ..
3480 (vashr<mode>3): And extend to support V16QImode for avx512.
3481 (vashrv16qi3): Deleted.
3482 (vashrv2di3<mask_name>): Extend expander to support avx512
3485 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
3487 * doc/lto.texi (Design Overview): Update that slim objects are
3490 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
3492 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
3493 of OTHER_POWER10_MASKS so it will not be enabled by default.
3495 2021-06-23 Richard Biener <rguenther@suse.de>
3496 Martin Jambor <mjambor@suse.cz>
3498 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
3499 param replacement unconditionally. Adjust comment.
3501 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
3503 * Makefile.in (OBJS): Add gimple-range-fold.o
3504 * gimple-range-fold.cc: New.
3505 * gimple-range-fold.h: New.
3506 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
3507 (gimple_range_calc_op2): Ditto.
3508 * gimple-range-gori.h: Move prototypes to here.
3509 * gimple-range.cc: Adjust include files.
3510 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
3511 (fur_source::get_operand): Ditto.
3512 (fur_source::get_phi_operand): Ditto.
3513 (fur_source::query_relation): Ditto.
3514 (fur_source::register_relation): Ditto.
3515 (class fur_edge): Ditto.
3516 (fur_edge::fur_edge): Ditto.
3517 (fur_edge::get_operand): Ditto.
3518 (fur_edge::get_phi_operand): Ditto.
3519 (fur_stmt::fur_stmt): Ditto.
3520 (fur_stmt::get_operand): Ditto.
3521 (fur_stmt::get_phi_operand): Ditto.
3522 (fur_stmt::query_relation): Ditto.
3523 (class fur_depend): Relocate to gimple-range-fold.h.
3524 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
3525 (fur_depend::register_relation): Ditto.
3526 (fur_depend::register_relation): Ditto.
3527 (class fur_list): Ditto.
3528 (fur_list::fur_list): Ditto.
3529 (fur_list::get_operand): Ditto.
3530 (fur_list::get_phi_operand): Ditto.
3531 (fold_range): Ditto.
3532 (adjust_pointer_diff_expr): Ditto.
3533 (gimple_range_adjustment): Ditto.
3534 (gimple_range_base_of_assignment): Ditto.
3535 (gimple_range_operand1): Ditto.
3536 (gimple_range_operand2): Ditto.
3537 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
3538 (gimple_range_calc_op2): Ditto.
3539 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
3540 (fold_using_range::range_of_range_op): Ditto.
3541 (fold_using_range::range_of_address): Ditto.
3542 (fold_using_range::range_of_phi): Ditto.
3543 (fold_using_range::range_of_call): Ditto.
3544 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
3545 (fold_using_range::range_of_builtin_call): Ditto.
3546 (fold_using_range::range_of_cond_expr): Ditto.
3547 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
3548 (fold_using_range::relation_fold_and_or): Ditto.
3549 (fold_using_range::postfold_gcond_edges): Ditto.
3550 * gimple-range.h: Add gimple-range-fold.h to include files. Change
3551 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
3552 (gimple_range_handler): Relocate to gimple-range-fold.h.
3553 (gimple_range_ssa_p): Ditto.
3554 (range_compatible_p): Ditto.
3555 (class fur_source): Ditto.
3556 (class fur_stmt): Ditto.
3557 (class fold_using_range): Ditto.
3558 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
3559 (gimple_range_calc_op2): Ditto.
3561 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
3563 PR tree-optimization/101148
3564 PR tree-optimization/101014
3565 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
3566 (ranger_cache::~ranger_cache): Adjust.
3567 (ranger_cache::block_range): Check if propagation disallowed.
3568 (ranger_cache::propagate_cache): Disallow propagation if new value
3569 can't be stored properly.
3570 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
3572 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
3574 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
3575 (sbr_vector::set_bb_range): Return true.
3576 (class sbr_sparse_bitmap): Adjust.
3577 (sbr_sparse_bitmap::set_bb_range): Return value.
3578 (block_range_cache::set_bb_range): Return value.
3579 (ranger_cache::propagate_cache): Use return value to print msg.
3580 * gimple-range-cache.h (class block_range_cache): Adjust.
3582 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
3584 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
3586 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
3588 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
3589 so this pattern can be used for test/compare removal. Pass
3590 current insn to compute_logical_op_length and output_logical_op.
3591 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
3592 (h8300_and_costs): Add argument to compute_logical_op_length.
3593 (output_logical_op): Add new argument. Use it to determine if the
3594 condition codes are used and adjust the output accordingly.
3595 (compute_logical_op_length): Add new argument and update length
3596 computations when condition codes are used.
3597 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
3599 (output_logical_op): Likewise.
3601 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
3604 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
3605 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
3606 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
3607 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
3608 * config/i386/sse.md (unspec): ... here.
3610 2021-06-23 Martin Liska <mliska@suse.cz>
3613 * optc-save-gen.awk: Put back arm_fp16_format to
3616 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
3619 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
3622 (clz<mode>2): Update RTX pattern for additions.
3624 2021-06-23 Jakub Jelinek <jakub@redhat.com>
3626 PR middle-end/101167
3627 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
3628 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
3630 2021-06-22 Sergei Trofimovich <siarheit@google.com>
3632 * doc/rtl.texi: drop unbalanced parenthesis.
3634 2021-06-22 Richard Biener <rguenther@suse.de>
3636 PR middle-end/101156
3637 * gimplify.c (gimplify_expr): Remove premature incorrect
3640 2021-06-22 Jakub Jelinek <jakub@redhat.com>
3642 PR tree-optimization/101159
3643 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
3646 2021-06-22 Jakub Jelinek <jakub@redhat.com>
3648 PR middle-end/101160
3649 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
3650 clear crtl->return_rtx instead of keeping it referencing a pseudo.
3652 2021-06-22 Jakub Jelinek <jakub@redhat.com>
3653 Andrew Pinski <apinski@marvell.com>
3655 PR tree-optimization/101162
3656 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
3659 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3661 * range-op.cc (range_relational_tests): New.
3662 (range_op_tests): Call range_relational_tests.
3664 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3666 * range-op.cc (operator_cast::lhs_op1_relation): New.
3667 (operator_identity::lhs_op1_relation): Mew.
3669 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3671 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
3673 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3675 * range-op.cc (operator_plus::lhs_op1_relation): New.
3676 (operator_plus::lhs_op2_relation): New.
3678 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3680 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
3681 relation_oracle if dominators exist.
3682 (ranger_cache::~ranger_cache): Dispose of oracle.
3683 (ranger_cache::dump_bb): Dump oracle.
3684 * gimple-range.cc (fur_source::fur_source): New.
3685 (fur_source::get_operand): Use mmeber query.
3686 (fur_source::get_phi_operand): Use member_query.
3687 (fur_source::query_relation): New.
3688 (fur_source::register_dependency): Delete.
3689 (fur_source::register_relation): New.
3690 (fur_edge::fur_edge): Adjust.
3691 (fur_edge::get_phi_operand): Fix comment.
3692 (fur_edge::query): Delete.
3693 (fur_stmt::fur_stmt): Adjust.
3694 (fur_stmt::query): Delete.
3695 (fur_depend::fur_depend): Adjust.
3696 (fur_depend::register_relation): New.
3697 (fur_depend::register_relation): New.
3698 (fur_list::fur_list): Adjust.
3699 (fur_list::get_operand): Use member query.
3700 (fold_using_range::range_of_range_op): Process and query relations.
3701 (fold_using_range::range_of_address): Adjust dependency call.
3702 (fold_using_range::range_of_phi): Ditto.
3703 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
3704 (fold_using_range::relation_fold_and_or): New.
3705 (fold_using_range::postfold_gcond_edges): New.
3706 * gimple-range.h (class gimple_ranger): Adjust.
3707 (class fur_source): Adjust members.
3708 (class fur_stmt): Ditto.
3709 (class fold_using_range): Ditto.
3711 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3713 * range-op.cc (range_operator::wi_fold): Apply relation effect.
3714 (range_operator::fold_range): Adjust and apply relation effect.
3715 (*::fold_range): Add relation parameters.
3716 (*::op1_range): Ditto.
3717 (*::op2_range): Ditto.
3718 (range_operator::lhs_op1_relation): New.
3719 (range_operator::lhs_op2_relation): New.
3720 (range_operator::op1_op2_relation): New.
3721 (range_operator::op1_op2_relation_effect): New.
3722 (relop_early_resolve): New.
3723 (operator_equal::op1_op2_relation): New.
3724 (operator_equal::fold_range): Call relop_early_resolve.
3725 (operator_not_equal::op1_op2_relation): New.
3726 (operator_not_equal::fold_range): Call relop_early_resolve.
3727 (operator_lt::op1_op2_relation): New.
3728 (operator_lt::fold_range): Call relop_early_resolve.
3729 (operator_le::op1_op2_relation): New.
3730 (operator_le::fold_range): Call relop_early_resolve.
3731 (operator_gt::op1_op2_relation): New.
3732 (operator_gt::fold_range): Call relop_early_resolve.
3733 (operator_ge::op1_op2_relation): New.
3734 (operator_ge::fold_range): Call relop_early_resolve.
3735 * range-op.h (class range_operator): Adjust parameters and methods.
3737 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
3739 * Makefile.in (OBJS): Add value-relation.o.
3740 * gimple-range.h: Adjust include files.
3741 * tree-data-ref.c: Adjust include file order.
3742 * value-query.cc (range_query::get_value_range): Default to no oracle.
3743 (range_query::query_relation): New.
3744 (range_query::query_relation): New.
3745 * value-query.h (class range_query): Adjust.
3746 * value-relation.cc: New.
3747 * value-relation.h: New.
3749 2021-06-22 Richard Biener <rguenther@suse.de>
3751 PR tree-optimization/101151
3752 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
3755 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
3757 * config/riscv/riscv.c (thead_c906_tune_info): New.
3758 (riscv_tune_info_table): Use new tune.
3760 2021-06-22 Richard Biener <rguenther@suse.de>
3762 PR tree-optimization/101158
3763 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
3764 checking after checking for matching operation.
3766 2021-06-22 Richard Biener <rguenther@suse.de>
3768 PR tree-optimization/101159
3769 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
3770 missing NULL vectype check.
3772 2021-06-22 Richard Biener <rguenther@suse.de>
3774 PR tree-optimization/101154
3775 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
3777 2021-06-22 Jakub Jelinek <jakub@redhat.com>
3780 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
3781 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
3782 * config/i386/i386.c (ix86_expand_prologue): Clear it.
3783 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
3784 Remove "" from match_operand. Emit new insns using emit_move_insn and
3785 set ix86_last_zero_store_uid to INSN_UID of the last store.
3786 Add peephole2s for 1/2/4 stores of const0_rtx following previous
3789 2021-06-22 Martin Liska <mliska@suse.cz>
3791 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
3794 2021-06-22 Martin Liska <mliska@suse.cz>
3796 * gcov-io.h: Remove padding entries.
3798 2021-06-22 liuhongt <hongtao.liu@intel.com>
3800 PR tree-optimization/97770
3801 * tree-vect-patterns.c (vect_recog_popcount_pattern):
3803 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
3805 2021-06-22 liuhongt <hongtao.liu@intel.com>
3808 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
3809 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
3810 (expand<mode>_mask): this ..
3811 (*expand<mode>_mask): New pre_reload splitter to transform
3812 v{,p}expand* to vmov* when mask is zero, all ones, or has all
3813 ones in it's lower part, otherwise still generate
3816 2021-06-22 liuhongt <hongtao.liu@intel.com>
3819 * config/i386/i386-expand.c
3820 (ix86_expand_special_args_builtin): Keep constm1_operand only
3821 if it satisfies insn's operand predicate.
3823 2021-06-21 Jason Merrill <jason@redhat.com>
3826 * df-scan.c (df_ref_record): Check that regno < endregno.
3827 * function.c (assign_parms, expand_function_end): Do nothing with a
3828 TYPE_EMPTY_P result.
3830 2021-06-21 Richard Biener <rguenther@suse.de>
3832 PR tree-optimization/101120
3833 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
3835 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
3836 DR chain DCE capability.
3837 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
3838 * tree-vect-stmts.c (vectorizable_load): Remove unused
3839 loads in the DR chain for SLP.
3841 2021-06-21 Jakub Jelinek <jakub@redhat.com>
3843 PR inline-asm/100785
3844 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
3845 output or input operands were already error_mark_node.
3846 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
3847 remove all inputs, outputs and clobbers from the asm and
3850 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3852 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
3853 (vceq_s16): Likewise.
3854 (vceq_s32): Likewise.
3855 (vceq_u8): Likewise.
3856 (vceq_u16): Likewise.
3857 (vceq_u32): Likewise.
3858 (vceq_p8): Likewise.
3859 (vceqq_s8): Likewise.
3860 (vceqq_s16): Likewise.
3861 (vceqq_s32): Likewise.
3862 (vceqq_u8): Likewise.
3863 (vceqq_u16): Likewise.
3864 (vceqq_u32): Likewise.
3865 (vceqq_p8): Likewise.
3866 (vceq_f32): Gate __a == __b on __FAST_MATH__.
3867 (vceqq_f32): Likewise.
3868 (vceq_f16): Likewise.
3869 (vceqq_f16): Likewise.
3871 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3874 * config/arm/iterators.md (NEON_VACMP): Remove.
3875 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
3877 (neon_vca<cmp_op><mode>_insn): Likewise.
3878 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
3881 2021-06-21 Richard Biener <rguenther@suse.de>
3883 PR tree-optimization/101121
3884 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
3885 when we just lack a stmt with the desired op when doing permutation.
3886 (vect_build_slp_tree): When caching a failed SLP build attempt
3887 assert that at least one lane is marked as not matching.
3889 2021-06-21 liuhongt <hongtao.liu@intel.com>
3892 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
3893 register alternative.
3894 (*and<mode>_1): Ditto.
3896 (*andn<mode>_1): Ditto.
3897 (*<code><mode>_1): Ditto.
3898 (*<code>qi_1): Ditto.
3899 (*one_cmpl<mode>2_1): Ditto.
3900 (*one_cmplsi2_1_zext): Ditto.
3901 (*one_cmplqi2_1): Ditto.
3902 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
3903 the order of mask registers to be before general registers.
3905 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
3908 * config/i386/i386.md: New define_peephole2s to shrink writing
3909 1, 2 or 4 consecutive zeros to memory when optimizing for size.
3911 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
3913 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
3914 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
3915 more efficient code when the source can be trivially simplified.
3917 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
3919 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
3920 a range if global is not available.
3921 (ranger_cache::entry_range): Fallback to range_of_def.
3922 * gimple-range-cache.h (range_of_def): Adjust prototype.
3924 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
3926 PR tree-optimization/101014
3927 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
3929 (ranger_cache::~ranger_cache): Ditto.
3930 (ranger_cache::enable_new_values): Delete.
3931 (ranger_cache::push_poor_value): Delete.
3932 (ranger_cache::range_of_def): Remove poor value processing.
3933 (ranger_cache::entry_range): Ditto.
3934 (ranger_cache::fill_block_cache): Ditto.
3935 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
3936 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
3937 * gimple-range.h (class gimple_ranger): Adjust.
3939 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3942 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
3943 derived from arm_canon_arch.
3944 (arm_canon_arch_option): Call it.
3945 (arm_canon_arch_multilib_option): New function.
3946 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
3947 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
3948 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
3949 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
3950 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
3951 * config/arm/arm.opt (mlibarch): New option.
3952 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
3953 of march on RHS with mlibarch.
3955 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
3957 * config.in: Regenerate.
3958 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
3960 * configure: Regenerate.
3961 * configure.ac: Fix for global_load assembler functions.
3963 2021-06-18 Richard Biener <rguenther@suse.de>
3965 PR tree-optimization/101112
3966 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
3967 to lookup a pattern stmt def.
3969 2021-06-18 Jakub Jelinek <jakub@redhat.com>
3971 PR middle-end/101062
3972 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
3973 representatives in QUAL_UNION_TYPE.
3975 2021-06-18 Andrew Pinski <apinski@marvell.com>
3977 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
3978 Add counting of how many times it is done.
3979 (factor_out_conditional_conversion): Likewise.
3980 (match_simplify_replacement): Likewise.
3981 (value_replacement): Likewise.
3982 (spaceship_replacement): Likewise.
3983 (cond_store_replacement): Likewise.
3984 (cond_if_else_store_replacement_1): Likewise.
3985 (hoist_adjacent_loads): Likewise.
3987 2021-06-18 Andrew Pinski <apinski@marvell.com>
3989 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
3990 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
3991 (verify_gimple_assign_binary): Reject point and offset types on
3992 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
3993 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
3994 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
3996 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
3998 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
3999 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
4000 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
4003 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
4005 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
4006 earlyclobber to alts 0/1.
4007 (gen_addadd): Add earlyclobber to alts 0/1.
4008 * config/rs6000/fusion.md: Regenerate file.
4010 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4012 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
4014 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
4016 * gimple-range-cache.cc: Comment cleanups.
4017 * gimple-range-gori.cc: Comment cleanups.
4018 * gimple-range.cc: Comment/spacing cleanups
4019 * value-range.h: Comment cleanups.
4021 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
4024 * calls.c (expand_call): Replace PUSH_ARGS with
4025 targetm.calls.push_argument (0).
4026 (emit_library_call_value_1): Likewise.
4027 * defaults.h (PUSH_ARGS): Removed.
4028 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
4029 targetm.calls.push_argument (0).
4030 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4031 (emit_push_insn): Pass the number bytes to push to
4032 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
4033 * hooks.c (hook_bool_uint_true): New.
4034 * hooks.h (hook_bool_uint_true): Likewise.
4035 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
4036 targetm.calls.push_argument (0).
4037 * target.def (push_argument): Add a targetm.calls hook.
4038 * targhooks.c (default_push_argument): New.
4039 * targhooks.h (default_push_argument): Likewise.
4040 * config/bpf/bpf.h (PUSH_ARGS): Removed.
4041 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
4042 * config/cr16/cr16.h (PUSH_ARGS): Removed.
4043 * config/i386/i386.c (ix86_push_argument): New.
4044 (TARGET_PUSH_ARGUMENT): Likewise.
4045 * config/i386/i386.h (PUSH_ARGS): Removed.
4046 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
4047 * config/m32c/m32c.h (PUSH_ARGS): Removed.
4048 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
4049 * config/pru/pru.h (PUSH_ARGS): Likewise.
4050 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
4051 TARGET_PUSH_ARGUMENT hook.
4052 * doc/tm.texi: Regenerated.
4054 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
4057 * config/i386/i386-expand.c (expand_vector_set_var):
4058 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
4059 ix86_expand_vector_init_duplicate.
4060 (ix86_expand_vector_init_duplicate): Emit insv_1 for
4061 QImode for !TARGET_PARTIAL_REG_STALL.
4062 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
4063 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
4064 as operand 2 predicate. Call ix86_expand_vector_set_var
4065 for non-constant index operand.
4066 (vec_setv2si): Ditto.
4067 (vec_setv4hi): Ditto.
4068 (vec_setv8qi): ditto.
4070 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
4072 PR tree-optimization/100790
4073 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
4076 2021-06-17 Martin Liska <mliska@suse.cz>
4078 * doc/invoke.texi: Use consistently -O1 instead of -O.
4080 2021-06-17 Martin Liska <mliska@suse.cz>
4082 * gcov-io.h: Update documentation entry about string format.
4084 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
4087 * config/s390/vecintrin.h (vec_doublee): Fix to use
4088 __builtin_s390_vflls.
4089 (vec_floate): Fix to use __builtin_s390_vflrd.
4091 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4093 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
4094 * dominance.h (get_dominated_to_depth): Likewise.
4095 (get_all_dominated_blocks): Likewise.
4096 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
4097 * gcse.c (hoist_code): Likewise.
4098 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
4099 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
4100 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4101 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
4103 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4105 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
4106 * dominance.h (get_dominated_by_region): Likewise.
4107 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
4108 (gimple_duplicate_sese_tail): Likewise.
4109 (move_sese_region_to_fn): Likewise.
4111 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4113 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
4114 * dominance.h (get_dominated_by): Likewise.
4115 * auto-profile.c (afdo_find_equiv_class): Adjust.
4116 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
4117 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
4118 * tree-cfg.c (test_linear_chain): Likewise.
4119 (test_diamond): Likewise.
4121 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4123 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
4124 * cfgloopanal.c (get_loop_hot_path): Likewise.
4125 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
4127 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4129 * cgraph.c (cgraph_node::collect_callers): Return
4130 auto_vec<cgraph_edge *>.
4131 * cgraph.h (cgraph_node::collect_callers): Likewise.
4132 * ipa-cp.c (create_specialized_node): Adjust.
4133 (decide_about_value): Likewise.
4134 (decide_whether_version_node): Likewise.
4135 * ipa-sra.c (process_isra_node_results): Likewise.
4137 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4139 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
4140 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
4142 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
4145 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
4147 * gimple-range.cc (debug_seed_ranger): New.
4149 (debug_ranger): New.
4151 2021-06-17 Richard Biener <rguenther@suse.de>
4153 PR tree-optimization/54400
4154 * tree-vectorizer.h (enum slp_instance_kind): Add
4155 slp_inst_kind_bb_reduc.
4156 (reduction_fn_for_scalar_code): Declare.
4157 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
4158 Check SLP_INSTANCE_KIND instead of looking at the
4160 (vect_slp_analyze_instance_alignment): Likewise.
4161 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
4162 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
4163 chain linearization from vect_build_slp_tree_2 and generalize
4164 for the use of BB reduction vectorization.
4165 (vect_build_slp_tree_2): Adjust accordingly.
4166 (vect_optimize_slp): Elide permutes at the root of BB reduction
4168 (vectorizable_bb_reduc_epilogue): New function.
4169 (vect_slp_prune_covered_roots): Likewise.
4170 (vect_slp_analyze_operations): Use them.
4171 (vect_slp_check_for_constructors): Recognize associatable
4172 chains for BB reduction vectorization.
4173 (vectorize_slp_instance_root_stmt): Generate code for the
4174 BB reduction epilogue.
4176 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
4178 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
4180 (gori_compute::may_recompute_p): New.
4181 (gori_compute::outgoing_edge_range_p): Perform recomputations.
4182 * gimple-range-gori.h (class gori_compute): Add prototype.
4184 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
4186 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
4187 true when a range can be calculated.
4188 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
4190 2021-06-16 Martin Sebor <msebor@redhat.com>
4192 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
4193 Correct documented defaults.
4195 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
4197 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
4198 m_new_value_p directly.
4200 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
4203 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
4204 Handle 64bit modes for TARGET_SSE4_1.
4205 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
4206 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
4207 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
4208 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
4209 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
4210 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
4212 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
4214 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
4215 Change to an expander that emits the correct instruction
4216 depending on endianness.
4217 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
4218 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
4220 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
4222 * config/aarch64/aarch64-simd-builtins.def: Split generator
4223 for aarch64_<su>qmovn builtins into scalar and vector
4225 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
4227 (aarch64_<su>qmovn<mode>_insn_be): Define.
4228 (aarch64_<su>qmovn<mode>): Split into scalar and vector
4229 variants. Change vector variant to an expander that emits the
4230 correct instruction depending on endianness.
4232 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
4234 * config/aarch64/aarch64-simd-builtins.def: Split generator
4235 for aarch64_sqmovun builtins into scalar and vector variants.
4236 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
4237 Split into scalar and vector variants. Change vector variant
4238 to an expander that emits the correct instruction depending
4240 (aarch64_sqmovun<mode>_insn_le): Define.
4241 (aarch64_sqmovun<mode>_insn_be): Define.
4243 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
4245 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
4246 Define - modeling zero-high-half semantics.
4247 (aarch64_xtn<mode>): Change to an expander that emits the
4248 appropriate instruction depending on endianness.
4249 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
4251 (aarch64_xtn2<mode>_le): Rename to...
4252 (aarch64_xtn2<mode>_insn_le): This.
4253 (aarch64_xtn2<mode>_be): Rename to...
4254 (aarch64_xtn2<mode>_insn_be): This.
4255 (vec_pack_trunc_<mode>): Emit truncation instruction instead
4257 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
4260 2021-06-16 Martin Jambor <mjambor@suse.cz>
4262 PR tree-optimization/100453
4263 * tree-sra.c (create_access): Disqualify any const candidates
4264 which are written to.
4265 (sra_modify_expr): Do not store sub-replacements back to a const base.
4266 (handle_unscalarized_data_in_subtree): Likewise.
4267 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
4268 instead of constant_decl_p.
4270 2021-06-16 Jakub Jelinek <jakub@redhat.com>
4272 PR middle-end/101062
4273 * stor-layout.c (finish_bitfield_representative): For fields in unions
4274 assume nextf is always NULL.
4275 (finish_bitfield_layout): Compute bit field representatives also in
4276 unions, but handle it as if each bitfield was the only field in the
4279 2021-06-16 Richard Biener <rguenther@suse.de>
4281 PR tree-optimization/101088
4282 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
4283 supported refs on edges. Do not assert same ref but
4284 different kind stores are unsuported but mark them so.
4285 (hoist_memory_references): Only look for supported refs
4288 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
4290 PR rtl-optimization/46235
4291 * config/i386/i386.md: New define_split for bt followed by cmov.
4292 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
4293 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
4294 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
4295 by setnc with zero extension.
4297 2021-06-16 Richard Biener <rguenther@suse.de>
4299 PR tree-optimization/101083
4300 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
4301 vectype as argument.
4302 (vect_build_slp_tree_2): Adjust.
4304 2021-06-15 Martin Sebor <msebor@redhat.com>
4306 PR middle-end/100876
4307 * builtins.c: (gimple_call_return_array): Account for size_t
4308 mangling as either unsigned int or unsigned long
4310 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
4312 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
4313 up before eliminating comparisons.
4315 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
4317 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
4318 nonzero|X is nonzero.
4319 (range_op_bitwise_and_tests): Add tests for above.
4321 2021-06-15 Carl Love <cel@us.ibm.com>
4324 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
4326 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
4329 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4332 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
4333 (struct gimplify_omp_ctx): Extend defaultmap array by one.
4334 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
4335 (omp_notice_variable): Update type classification for Fortran.
4336 (gimplify_scan_omp_clauses): Update calls for new argument; handle
4337 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
4338 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
4339 * langhooks.c (lhd_omp_scalar_p): Likewise.
4340 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
4341 (LANG_HOOKS_DECLS): Add them.
4342 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
4343 omp_scalar_p pointer type to include the new bool argument.
4345 2021-06-15 David Malcolm <dmalcolm@redhat.com>
4348 (Special Functions for Debugging the Analyzer): Add
4349 __analyzer_dump_capacity.
4351 2021-06-15 Jakub Jelinek <jakub@redhat.com>
4354 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
4355 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
4357 2021-06-15 Richard Biener <rguenther@suse.de>
4359 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
4360 check to identify loop latches.
4361 * cfgloop.c (verify_loop_structure): Likewise.
4362 * loop-init.c (apply_loop_flags): Allow marked irreducible
4363 regions even with multiple latches.
4364 * predict.c (rebuild_frequencies): Simplify.
4366 2021-06-15 Richard Biener <rguenther@suse.de>
4368 * tree-ssa-threadupdate.c
4369 (jump_thread_path_registry::mark_threaded_blocks): Assert we
4370 have marked irreducible regions.
4372 2021-06-14 Martin Sebor <msebor@redhat.com>
4375 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
4376 Handle calls to placement new.
4377 (ndecl_dealloc_argno): Avoid placement delete.
4379 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
4382 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
4383 create_tmp_reg_or_ssa_name().
4385 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
4387 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
4388 (ranger_cache::enable_new_values): Set to specified value and
4389 return the old value.
4390 (ranger_cache::disable_new_values): Delete.
4391 (ranger_cache::fill_block_cache): Disable non 1st order derived
4393 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
4394 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
4396 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
4399 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
4400 Return true early when testing with V2HImode.
4401 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
4403 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
4405 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
4406 (mve_vec_unpack<US>_hi_<mode>): New pattern.
4407 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
4408 (mve_vmovntq_<supf><mode>): Prefix with '@'.
4409 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
4411 (vec_unpack<US>_lo_<mode>): Likewise.
4412 (vec_pack_trunc_<mode>): Rename to
4413 neon_quad_vec_pack_trunc_<mode>.
4414 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
4416 (vec_unpack<US>_lo_<mode>): New.
4417 (vec_pack_trunc_<mode>): New.
4419 2021-06-14 Richard Biener <rguenther@suse.de>
4421 PR tree-optimization/100934
4422 * tree-ssa-dom.c (pass_dominator::execute): Properly
4423 mark irreducible regions.
4425 2021-06-14 Martin Liska <mliska@suse.cz>
4427 * doc/invoke.texi: Put r{...} on the same line as @item.
4429 2021-06-14 Martin Liska <mliska@suse.cz>
4431 * doc/invoke.texi: Add missing newline.
4433 2021-06-14 Martin Liska <mliska@suse.cz>
4435 * doc/invoke.texi: Remove '+' charasters.
4437 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
4439 * config.gcc (arc): Add support for with_cpu option.
4440 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
4442 2021-06-14 Richard Biener <rguenther@suse.de>
4444 PR tree-optimization/101031
4445 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
4446 instead of size when accounting for a possibly string
4449 2021-06-14 Martin Liska <mliska@suse.cz>
4451 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
4453 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
4455 * value-query.cc (gimple_range_global): Call get_range_global
4456 if called after inlining.
4458 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
4461 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
4462 Emit constant permutation insn directly from here.
4464 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
4466 * attribs.c (find_attribute_namespace): Iterate over vec<> with
4468 * auto-profile.c (afdo_find_equiv_class): Likewise.
4469 * gcc.c (do_specs_vec): Likewise.
4470 (do_spec_1): Likewise.
4471 (driver::set_up_specs): Likewise.
4472 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
4473 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
4474 (imm_store_chain_info::try_coalesce_bswap): Likewise.
4475 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4476 (get_location_for_stmts): Likewise.
4477 * graphite-poly.c (print_iteration_domains): Likewise.
4478 (free_poly_bb): Likewise.
4479 (remove_gbbs_in_scop): Likewise.
4480 (free_scop): Likewise.
4481 (dump_gbb_cases): Likewise.
4482 (dump_gbb_conditions): Likewise.
4483 (print_pdrs): Likewise.
4484 (print_scop): Likewise.
4485 * ifcvt.c (cond_move_process_if_block): Likewise.
4486 * lower-subreg.c (decompose_multiword_subregs): Likewise.
4487 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
4488 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
4489 * sel-sched-dump.c (dump_insn_vector): Likewise.
4490 * store-motion.c (store_ops_ok): Likewise.
4491 (store_killed_in_insn): Likewise.
4492 * timevar.c (timer::named_items::print): Likewise.
4493 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
4494 (cleanup_tree_cfg_noloop): Likewise.
4495 * tree-data-ref.c (dump_data_references): Likewise.
4496 (print_dir_vectors): Likewise.
4497 (print_dist_vectors): Likewise.
4498 (dump_data_dependence_relations): Likewise.
4499 (dump_dist_dir_vectors): Likewise.
4500 (dump_ddrs): Likewise.
4501 (create_runtime_alias_checks): Likewise.
4502 (free_subscripts): Likewise.
4503 (save_dist_v): Likewise.
4504 (save_dir_v): Likewise.
4505 (invariant_access_functions): Likewise.
4506 (same_access_functions): Likewise.
4507 (access_functions_are_affine_or_constant_p): Likewise.
4508 (find_data_references_in_stmt): Likewise.
4509 (graphite_find_data_references_in_stmt): Likewise.
4510 (free_dependence_relations): Likewise.
4511 (free_data_refs): Likewise.
4512 * tree-inline.c (copy_debug_stmts): Likewise.
4513 * tree-into-ssa.c (dump_currdefs): Likewise.
4514 (rewrite_update_phi_arguments): Likewise.
4515 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
4516 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
4518 (vect_slp_analyze_node_dependences): Likewise.
4519 (vect_slp_analyze_instance_dependence): Likewise.
4520 (vect_record_base_alignments): Likewise.
4521 (vect_get_peeling_costs_all_drs): Likewise.
4522 (vect_peeling_supportable): Likewise.
4523 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
4524 (vec_info::free_stmt_vec_infos): Likewise.
4526 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
4528 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
4529 (andqi3_1<cczn>): Removed.
4530 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
4531 (H8/SX bit logicals): Split out from other patterns.
4532 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
4533 mulqihi3_const_clobber_flags.
4534 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
4536 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
4539 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
4540 to true if red zone is used.
4541 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
4543 * config/i386/i386.h (machine_function): Add red_zone_used.
4544 (ix86_red_zone_size): Removed.
4545 (ix86_red_zone_used): New.
4546 * config/i386/i386.md (peephole2 patterns): Replace
4547 ix86_red_zone_size with ix86_red_zone_used.
4549 2021-06-12 Jason Merrill <jason@redhat.com>
4551 * doc/extend.texi (unused variable attribute): Applies to
4552 structure fields as well.
4554 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
4556 * auto-profile.c (read_profile): fix a typo in an error string
4558 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
4560 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
4562 * tree-pretty-print.c (dump_omp_clauses): Update.
4563 (dump_generic_node) <OMP_CLAUSE>: Use it.
4565 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4568 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
4569 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
4570 the polymorphic variants matching code.
4571 (__arm_vld1q_z): Likewise.
4572 (__arm_vld2q): Likewise.
4573 (__arm_vld4q): Likewise.
4574 (__arm_vldrbq_gather_offset): Likewise.
4575 (__arm_vldrbq_gather_offset_z): Likewise.
4577 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
4579 PR tree-optimization/96392
4580 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
4582 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
4584 PR tree-optimization/96392
4585 * fold-const.c (fold_real_zero_addition_p): Take both arguments
4586 of the addition or subtraction, not just the zero. Use this
4587 other argument in tests for signaling NaNs and signed zeros.
4588 (tree_expr_maybe_real_minus_zero_p): New predicate.
4589 * fold-const.h (fold_real_zero_addition_p): Update prototype.
4590 (tree_expr_maybe_real_minus_zero_p): New function prototype.
4591 * match.pd: Update calls to fold_real_zero_addition_p.
4592 Replace HONOR_NANS with tree_expr_maybe_nan_p.
4593 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
4594 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
4595 * tree-ssa-reassoc.c (eliminate_using_constants): Update
4596 call to fold_real_zero_addition_p.
4598 2021-06-11 Richard Biener <rguenther@suse.de>
4600 PR tree-optimization/101025
4601 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
4602 all refs that require dependence checking.
4604 2021-06-11 Richard Biener <rguenther@suse.de>
4606 PR tree-optimization/101028
4607 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
4608 reassoc discovery fails fatally, mark appropriate lanes
4611 2021-06-11 Richard Biener <rguenther@suse.de>
4613 PR tree-optimization/101026
4614 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
4615 have a representative for the associated chain nodes.
4617 2021-06-11 Jakub Jelinek <jakub@redhat.com>
4619 PR rtl-optimization/101008
4620 * simplify-rtx.c (relational_result): New function.
4621 (simplify_logical_relational_operation,
4622 simplify_relational_operation): Use it.
4624 2021-06-11 Jakub Jelinek <jakub@redhat.com>
4627 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
4629 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
4632 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
4633 false if the permutation can be implemented with constant
4634 permutation instruction in wider mode.
4635 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
4636 Handle V8QImode and V4HImode.
4638 2021-06-11 Martin Liska <mliska@suse.cz>
4640 PR gcov-profile/100788
4641 * common.opt: Add new option.
4642 * coverage.c (coverage_begin_function): Emit warning instead on
4643 the internal compiler error.
4644 * doc/invoke.texi: Document the option.
4645 * toplev.c (process_options): Enable it by default.
4647 2021-06-11 Richard Biener <rguenther@suse.de>
4649 PR middle-end/101009
4650 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
4651 to set *init_b to true when we encounter a constant equal
4653 (compute_affine_dependence): Also dump the actual DR_REF.
4655 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
4657 PR tree-optimization/100984
4658 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
4660 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
4662 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
4664 * config/rs6000/rs6000.md
4665 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
4666 define_insn_and_split.
4668 2021-06-11 Richard Biener <rguenther@suse.de>
4670 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
4671 to sort operands of the associative chain.
4673 2021-06-11 Richard Biener <rguenther@suse.de>
4675 * system.h (gcc_stablesort_r): Declare.
4676 * sort.cc (gcc_sort_r): Support stable sort.
4677 (gcc_stablesort_r): Define.
4678 * vec.h (vec<>::stablesort): Add.
4680 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
4683 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
4684 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
4685 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
4686 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
4687 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
4688 (expand_vec_perm_interleave2): Handle 64bit modes.
4689 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
4690 (expand_vec_perm_even_odd_1): Ditto.
4691 (ix86_vectorize_vec_perm_const): Ditto.
4692 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
4693 * config/i386/sse.md: ... here.
4694 * config/i386/mmx.md (*vec_interleave_lowv2sf):
4695 New insn_and_split pattern.
4696 (*vec_interleave_highv2sf): Ditto.
4697 (mmx_pshufbv8qi3): New insn pattern.
4698 (*mmx_pblendw): Ditto.
4700 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
4702 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
4703 (build_acc): Likewise.
4704 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
4705 source operands in little-endian mode.
4706 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
4707 (mma_init_builtins): Likewise.
4708 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
4709 ordering for the MMA assemble and build source operands.
4710 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
4712 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
4715 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
4717 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
4719 * config/h8300/extensions.md: Replace _clobber_flags patterns
4722 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
4724 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
4725 (vcond_mask_<mode><tointvec>): this.
4727 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4728 Thomas Schwinge <thomas@codesourcery.com>
4730 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
4731 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
4732 * gimple.h (enum gf_mask): Split
4733 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
4734 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
4735 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
4736 (is_gimple_omp_oacc): Update.
4737 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
4738 * gimplify.c (gimplify_omp_target_update): Likewise.
4739 * omp-expand.c (expand_omp_target, build_omp_regions_1)
4740 (omp_make_gimple_edges): Likewise.
4741 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
4744 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
4746 * value-query.cc (value_query::value_on_edge): Rename name to
4748 (range_query::range_on_edge): Same.
4749 (range_query::value_of_expr): Same.
4750 (range_query::value_on_edge): Same.
4751 * value-query.h (class value_query): Same.
4752 (class range_query): Same.
4754 2021-06-10 Richard Biener <rguenther@suse.de>
4756 PR tree-optimization/101003
4757 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
4758 use the pattern stmt defs when linearizing a chain.
4760 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4763 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
4764 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
4766 2021-06-10 Clement Chigot <clement.chigot@atos.net>
4768 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
4769 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
4771 2021-06-09 Andrew Pinski <apinski@marvell.com>
4773 PR tree-optimization/100925
4774 * match.pd (a ? CST1 : CST2): Limit transformations
4775 that would produce a negative to integeral types only.
4776 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
4778 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
4781 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
4783 * doc/tm.texi: Correctly update.
4785 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
4787 * doc/tm.texi: Correctly update.
4789 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4792 * doc/tm.texi.in (Trampolines): Add a missing blank line.
4794 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
4797 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
4798 and -ftrampolines work only with Ada.
4799 * doc/tm.texi.in (Trampolines): Likewise.
4800 * doc/tm.texi: Regenerated.
4802 2021-06-09 Carl Love <cel@us.ibm.com>
4804 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
4805 Add define for new builtins.
4806 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
4807 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
4808 overloaded builtin definitions.
4809 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
4810 VSIGNEXTSD2Q): Add builtin expansions.
4811 (SIGNEXT): Add P10 overload definition.
4812 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
4813 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
4814 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
4815 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
4816 vsignextend_si_v2di)[VIlong]: Add define_expand.
4817 Make define_insn vsx_sign_extend_si_v2di visible.
4818 * doc/extend.texi: Add documentation for the vec_signexti,
4819 vec_signextll builtins and vec_signextq.
4821 2021-06-09 Carl Love <cel@us.ibm.com>
4823 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
4824 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
4825 __floattikf_sw, __floatuntikf_sw respectively.
4826 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
4827 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
4828 define_insn for mode IEEE 128.
4830 2021-06-09 Carl Love <cel@us.ibm.com>
4832 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
4833 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
4834 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
4835 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
4836 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
4837 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
4838 uses of VSX_TI to VEC_TI.
4840 2021-06-09 Carl Love <cel@us.ibm.com>
4842 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
4844 2021-06-09 Carl Love <cel@us.ibm.com>
4846 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
4848 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
4849 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
4850 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
4851 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
4852 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
4853 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
4854 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
4856 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
4857 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
4858 altivec_vrlqnm): New define_expands.
4859 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
4860 VCMPGTUT_P): Add macro expansions.
4861 (BU_P10V_AV_P): Add builtin predicate definition.
4862 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
4863 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
4864 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
4865 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
4866 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
4867 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
4868 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
4869 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
4870 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
4871 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
4872 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
4873 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
4874 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
4875 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
4876 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
4877 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
4878 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
4879 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
4880 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
4881 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
4882 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
4883 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
4884 P10V_BUILTIN_MODU_V1TI):
4885 New overloaded definitions.
4886 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
4887 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
4888 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
4889 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
4890 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
4891 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
4893 (altivec_init_builtins): New E_V1TImode case statement.
4894 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
4895 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
4896 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
4897 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
4898 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
4899 E_V1TImode]: New case statements.
4900 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
4901 value RS6000_BTI_bool_V1TI.
4902 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
4903 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
4904 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
4905 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
4906 vlshrv1ti3, vashrv1ti3): New define_expands.
4907 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
4908 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
4909 UNSPEC_VSX_MODUQ): New unspecs.
4910 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
4911 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
4913 (vcmpnet): New define_expand.
4914 * doc/extend.texi: Add documentation for the new builtins vec_rl,
4915 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
4916 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
4917 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
4918 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
4919 vec_any_ge, vec_any_le.
4921 2021-06-09 Carl Love <cel@us.ibm.com>
4923 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
4924 bug in argument generation.
4926 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
4928 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
4930 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
4931 remove <supf> iterator.
4932 (mve_vclzq_u<mode>): New.
4933 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
4934 (neon_vclz<mode): Move to ...
4935 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
4936 * config/arm/vec-common.md: ... here. Add support for MVE.
4938 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
4940 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
4941 (@mve_vrhaddq_<supf><mode): Likewise.
4942 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
4943 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
4944 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
4946 2021-06-09 imba-tjd <109224573@qq.com>
4948 * doc/invoke.texi: Fix typo.
4950 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
4953 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
4954 Support evaluation of fmod/fmodf/fmodl at compile-time.
4956 2021-06-09 Richard Biener <rguenther@suse.de>
4958 PR tree-optimization/100981
4959 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4960 gimple_get_lhs to also handle calls.
4961 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
4964 2021-06-09 Richard Biener <rguenther@suse.de>
4966 PR tree-optimization/97832
4967 * tree-vectorizer.h (_slp_tree::failed): New.
4968 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
4970 (_slp_tree::~_slp_tree): Free failed.
4971 (vect_build_slp_tree): Retain failed nodes and record
4972 matches in them, copying that back out when running
4973 into a cached fail. Dump start and end of discovery.
4975 (vect_build_slp_tree_2): Handle associatable chains
4976 together doing more aggressive operand swapping.
4978 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4981 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
4983 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
4984 Linux and GNU targets.
4986 2021-06-09 Richard Biener <rguenther@suse.de>
4988 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
4991 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
4993 * config/arc/arc.md (loop_end): Change it to
4994 define_insn_and_split.
4996 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
4998 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
4999 (machi): New pattern.
5000 (umaddhisi4): Use VMAC2HU instruction.
5001 (umachi): New pattern.
5003 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
5005 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
5006 * config/arc/arc.c (arc_split_move_p): New function.
5007 (arc_split_move): Clean up.
5008 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
5009 (movdf_insn): Likewise.
5010 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
5012 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
5015 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
5016 argument to "raw". Do not emit segment overrides when "raw" is true.
5018 2021-06-09 Martin Liska <mliska@suse.cz>
5020 * doc/gcov.texi: Create a proper JSON files.
5021 * doc/invoke.texi: Remove dots in order to make it a valid
5024 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
5026 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
5027 (insn_is_load_p): Use pattern_is_rotate64.
5028 (insn_is_swap_p): Likewise.
5029 (quad_aligned_load_p): Likewise.
5030 (const_load_sequence_p): Likewise.
5031 (replace_swapped_aligned_load): Likewise.
5032 (recombine_lvx_pattern): Likewise.
5033 (recombine_stvx_pattern): Likewise.
5035 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
5037 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
5038 fur_stmt source record.
5039 * gimple-range.cc (fur_source::get_operand): Generic range query.
5040 (fur_source::get_phi_operand): New.
5041 (fur_source::register_dependency): New.
5042 (fur_source::query): New.
5043 (class fur_edge): New. Edge source for operands.
5044 (fur_edge::fur_edge): New.
5045 (fur_edge::get_operand): New.
5046 (fur_edge::get_phi_operand): New.
5047 (fur_edge::query): New.
5048 (fur_stmt::fur_stmt): New.
5049 (fur_stmt::get_operand): New.
5050 (fur_stmt::get_phi_operand): New.
5051 (fur_stmt::query): New.
5052 (class fur_depend): New. Statement source and process dependencies.
5053 (fur_depend::fur_depend): New.
5054 (fur_depend::register_dependency): New.
5055 (class fur_list): New. List source for operands.
5056 (fur_list::fur_list): New.
5057 (fur_list::get_operand): New.
5058 (fur_list::get_phi_operand): New.
5059 (fold_range): New. Instantiate appropriate fur_source class and fold.
5060 (fold_using_range::range_of_range_op): Use new API.
5061 (fold_using_range::range_of_address): Ditto.
5062 (fold_using_range::range_of_phi): Ditto.
5063 (imple_ranger::fold_range_internal): Use fur_depend class.
5064 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
5065 * gimple-range.h (class fur_source): Now a base class.
5066 (class fur_stmt): New.
5067 (fold_range): New prototypes.
5068 (fur_source::fur_source): Delete.
5070 2021-06-08 Andrew Pinski <apinski@marvell.com>
5072 PR tree-optimization/25290
5073 * tree-ssa-phiopt.c (xor_replacement): Delete.
5074 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
5075 (match_simplify_replacement): Allow one cheap preparation
5076 statement that can be moved to before the if.
5078 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
5080 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
5081 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
5083 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
5085 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
5086 Create length attribute on define_insn_and_split. Only split for cases which we
5088 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
5089 fix length computation.
5090 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
5092 2021-06-08 Richard Biener <rguenther@suse.de>
5094 PR tree-optimization/100923
5095 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
5096 the operand vector to be valueized.
5097 (valueize_refs): Likewise.
5098 (valueize_shared_reference_ops_from_ref): Adjust.
5099 (valueize_shared_reference_ops_from_call): Likewise.
5100 (vn_reference_lookup_3): Likewise.
5101 (vn_reference_lookup_pieces): Likewise. Re-valueize
5102 with honoring availability when we are about to create
5103 the ao_ref and valueized before.
5104 (vn_reference_lookup): Likewise.
5105 (vn_reference_insert_pieces): Adjust.
5107 2021-06-08 Richard Biener <rguenther@suse.de>
5109 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
5110 (_slp_instance::root_stmts): ... a vector.
5111 (SLP_INSTANCE_ROOT_STMT): Rename to ...
5112 (SLP_INSTANCE_ROOT_STMTS): ... this.
5113 (slp_root::root): Change to...
5114 (slp_root::roots): ... a vector.
5115 (slp_root::slp_root): Adjust.
5116 * tree-vect-slp.c (_slp_instance::location): Adjust.
5117 (vect_free_slp_instance): Release the root stmt vector.
5118 (vect_build_slp_instance): Adjust.
5119 (vect_analyze_slp): Likewise.
5120 (_bb_vec_info::~_bb_vec_info): Likewise.
5121 (vect_slp_analyze_operations): Likewise.
5122 (vect_bb_vectorization_profitable_p): Likewise. Adjust
5123 costs for the root stmt.
5124 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
5126 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
5128 (vectorize_slp_instance_root_stmt): Adjust.
5129 (vect_schedule_slp): Likewise.
5131 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
5133 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
5134 (ssa_equiv_stack::ssa_equiv_stack): New.
5135 (ssa_equiv_stack::~ssa_equiv_stack): New.
5136 (ssa_equiv_stack::enter): New.
5137 (ssa_equiv_stack::leave): New.
5138 (ssa_equiv_stack::push_replacement): New.
5139 (ssa_equiv_stack::get_replacement): New.
5140 (is_pointer_ssa): New.
5141 (class pointer_equiv_analyzer): New.
5142 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
5143 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
5144 (pointer_equiv_analyzer::set_global_equiv): New.
5145 (pointer_equiv_analyzer::set_cond_equiv): New.
5146 (pointer_equiv_analyzer::get_equiv): New.
5147 (pointer_equiv_analyzer::enter): New.
5148 (pointer_equiv_analyzer::leave): New.
5149 (pointer_equiv_analyzer::get_equiv_expr): New.
5150 (pta_valueize): New.
5151 (pointer_equiv_analyzer::visit_stmt): New.
5152 (pointer_equiv_analyzer::visit_edge): New.
5153 (hybrid_folder::value_of_expr): Call PTA.
5154 (hybrid_folder::value_on_edge): Same.
5155 (hybrid_folder::pre_fold_bb): New.
5156 (hybrid_folder::post_fold_bb): New.
5157 (hybrid_folder::pre_fold_stmt): New.
5158 (rvrp_folder::pre_fold_bb): New.
5159 (rvrp_folder::post_fold_bb): New.
5160 (rvrp_folder::pre_fold_stmt): New.
5161 (rvrp_folder::value_of_expr): Call PTA.
5162 (rvrp_folder::value_on_edge): Same.
5164 2021-06-08 Jakub Jelinek <jakub@redhat.com>
5167 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
5168 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
5170 2021-06-08 Richard Biener <rguenther@suse.de>
5172 PR middle-end/100951
5173 * tree-vect-generic.c (expand_vector_piecewise): Build a
5174 VECTOR_CST if all elements are constant.
5175 (expand_vector_condition): Likewise.
5176 (lower_vec_perm): Likewise.
5177 (expand_vector_conversion): Likewise.
5179 2021-06-08 Martin Liska <mliska@suse.cz>
5181 * doc/invoke.texi: Document new param evrp-sparse-threshold.
5183 2021-06-08 Martin Liska <mliska@suse.cz>
5185 * genautomata.c (create_automata): Fix typo.
5187 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
5189 PR tree-optimization/100794
5190 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
5191 allow_unroll_p and only allow unrolling when it's true.
5192 (tree_predictive_commoning): Add parameter allow_unroll_p and
5194 (run_tree_predictive_commoning): Likewise.
5195 (pass_predcom::gate): Check flag_tree_loop_vectorize and
5196 global_options_set.x_flag_predictive_commoning.
5197 (pass_predcom::execute): Adjust for allow_unroll_p.
5199 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
5201 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
5202 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
5203 lambda function cleanup, remove scev_reset call, and adjust return
5205 (tree_predictive_commoning): Adjust for different changed values,
5206 only set flag TODO_update_ssa_only_virtuals if changed.
5207 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
5208 from todo_flags_finish.
5210 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
5212 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
5213 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
5214 (sbr_sparse_bitmap::bitmap_set_quad): New.
5215 (sbr_sparse_bitmap::bitmap_get_quad): New.
5216 (sbr_sparse_bitmap::set_bb_range): New.
5217 (sbr_sparse_bitmap::get_bb_range): New.
5218 (sbr_sparse_bitmap::bb_range_p): New.
5219 (block_range_cache::block_range_cache): initialize bitmap obstack.
5220 (block_range_cache::~block_range_cache): Destruct obstack.
5221 (block_range_cache::set_bb_range): Decide when to utilze the
5222 sparse on entry cache.
5223 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
5224 * params.opt (-param=evrp-sparse-threshold): New.
5226 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
5228 * bitmap.c (bitmap_set_aligned_chunk): New.
5229 (bitmap_get_aligned_chunk): New.
5230 (test_aligned_chunk): New.
5231 (bitmap_c_tests): Call test_aligned_chunk.
5232 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
5234 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
5237 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5239 (ix86_expand_vector_init_one_nonzero): Ditto.
5240 (ix86_expand_vector_init_one_var): Ditto.
5241 (ix86_expand_vector_init_general): Ditto.
5242 * config/i386/mmx.md (vec_initv4qiqi): New expander.
5244 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
5246 * config/h8300/movepush.md: Change most _clobber_flags
5247 patterns to instead use <cczn> subst.
5248 (movsi_cczn): New pattern with usable CC cases split out.
5249 (movsi_h8sx_cczn): Likewise.
5251 2021-06-07 Martin Liska <mliska@suse.cz>
5253 * common/common-target.def: Split long lines and replace them
5255 * target.def: Likewise.
5256 * doc/tm.texi: Re-generated.
5258 2021-06-07 Jakub Jelinek <jakub@redhat.com>
5261 * fold-const.c (fold_read_from_vector): Return NULL if trying to
5262 read from a CONSTRUCTOR with vector type elements.
5264 2021-06-07 Jakub Jelinek <jakub@redhat.com>
5266 PR middle-end/100898
5267 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
5268 should copy any arguments. Don't call gimple_call_num_args
5269 on id->call_stmt or call_stmt more than once.
5271 2021-06-07 liuhongt <hongtao.liu@intel.com>
5274 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
5276 (<insn>v4siv4di2): Delete constraints for define_expand.
5278 2021-06-07 liuhongt <hongtao.liu@intel.com>
5281 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
5282 assignment of cfun->machine->has_explicit_vzeroupper.
5283 * config/i386/i386-features.c
5284 (ix86_add_reg_usage_to_vzerouppers): Delete.
5285 (ix86_add_reg_usage_to_vzeroupper): Ditto.
5286 (rest_of_handle_insert_vzeroupper): Remove
5287 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
5289 (gate): Remove cfun->machine->has_explicit_vzeroupper.
5290 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
5292 * config/i386/i386.c (ix86_insn_callee_abi): New function.
5293 (ix86_initialize_callee_abi): Ditto.
5294 (ix86_expand_avx_vzeroupper): Ditto.
5295 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
5297 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
5298 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
5300 * config/i386/i386.h (struct GTY(()) machine_function): Delete
5301 has_explicit_vzeroupper.
5302 * config/i386/i386.md (enum unspec): New member
5304 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
5305 define_constants for insn callee abi index.
5306 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
5307 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
5308 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
5309 (*avx_vzeroupper): Rename to ..
5310 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
5311 call_insn which has a special vzeroupper ABI.
5312 (*avx_vzeroupper_1): Deleted.
5314 2021-06-07 liuhongt <hongtao.liu@intel.com>
5317 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
5318 it won't use stack pointer reg.
5319 * final.c (leaf_function_p): When call_insn is a fake call, it
5320 won't affect caller as a leaf function.
5321 * reg-stack.c (callee_clobbers_any_stack_reg): New.
5322 (subst_stack_regs): When call_insn doesn't clobber any stack
5323 reg, don't clear the arguments.
5324 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
5326 * shrink-wrap.c (requires_stack_frame_p): No need for stack
5327 frame for a fake call.
5328 * rtl.h (FAKE_CALL_P): New macro.
5330 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
5332 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
5334 (sparc_order_regs_for_local_alloc): ...this.
5335 (sparc_leaf_reg_remap): Declare.
5336 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
5337 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
5338 * config/sparc/sparc.c (leaf_reg_remap): Delete.
5339 (order_regs_for_local_alloc): Rename to...
5340 (sparc_order_regs_for_local_alloc): ...this.
5341 (sparc_leaf_reg_remap): New function.
5342 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
5344 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
5346 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
5347 Use assemble_name to output BSS section name.
5349 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
5351 * config/i386/constraints.md (Bs):
5352 Remove boolean operators from match_test RTX.
5355 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
5358 2021-06-06 Martin Liska <mliska@suse.cz>
5360 * doc/extend.texi: Add missing @headitem.
5361 * doc/invoke.texi: Likewise.
5362 * doc/objc.texi: Likewise.
5364 2021-06-06 Martin Liska <mliska@suse.cz>
5366 * genhooks.c (emit_findices): Remove unused function.
5367 (emit_documentation): Do not call emit_findices
5368 and do not search for @Fcode directives.
5370 2021-06-06 Martin Liska <mliska@suse.cz>
5372 * doc/invoke.texi: Remove extra character.
5374 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
5376 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
5378 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
5380 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
5381 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
5382 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
5383 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
5385 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
5387 * config/or1k/or1k.md (*movdi): Fix empty split condition.
5389 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
5391 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
5394 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
5396 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
5397 *zero_extendsidi2): Fix empty split condition.
5399 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
5401 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
5403 * config/h8300/bitfield.md: Likewise.
5404 * config/h8300/combiner.md: Likewise.
5405 * config/h8300/divmod.md: Likewise.
5406 * config/h8300/extensions.md: Likewise.
5407 * config/h8300/jumpcall.md: Likewise.
5408 * config/h8300/movepush.md: Likewise.
5409 * config/h8300/multiply.md: Likewise.
5410 * config/h8300/other.md: Likewise.
5411 * config/h8300/shiftrotate.md: Likewise.
5412 * config/h8300/logical.md: Likewise. Fix split pattern to use
5413 code iterator that somehow slipped through.
5415 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
5417 PR middle-end/100905
5418 * tree-nested.c (convert_nonlocal_omp_clauses,
5419 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
5421 2021-06-04 Martin Sebor <msebor@redhat.com>
5423 PR middle-end/100732
5424 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
5425 with either source or destination argument of invalid type.
5426 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
5427 calls with arguments of invalid type.
5429 2021-06-04 Martin Sebor <msebor@redhat.com>
5431 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
5433 (attr_access::vla_bounds): Also handle VLA bounds.
5435 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
5437 * config/i386/predicates.md (GOT_memory_operand):
5438 Implement using match_code RTXes.
5439 (GOT32_symbol_operand): Ditto.
5441 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
5444 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5446 (ix86_expand_vector_init_general): Ditto.
5447 Use SImode instead of word_mode for logic operations
5448 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
5449 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
5450 implemented by expand_vec_perm_1.
5451 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
5452 should be implemented using standard shuffle patterns.
5453 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
5454 V2HI modes to modes, implementable with shuffle for one operand.
5455 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
5456 (*pshufw_1): New insn pattern.
5457 (*vec_dupv2hi): Ditto.
5458 (vec_initv2hihi): New expander.
5460 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
5462 * config/arm/vfp.md (no_literal_pool_df_immediate,
5463 no_literal_pool_sf_immediate): Fix empty split condition.
5465 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
5467 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
5468 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
5469 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
5470 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
5471 *<sse4_1_avx2>_pblendvb_lt): Likewise.
5473 2021-06-04 Jakub Jelinek <jakub@redhat.com>
5476 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
5477 concatenation from half-sized modes with TImode elements.
5479 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
5481 * config/arc/arc.c (arc_override_options): Disable millicode
5482 thunks when RF16 is on.
5484 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
5486 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
5488 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
5490 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
5491 Replace PROMOTE_MODE marco with its content.
5493 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
5495 * config/cris/cris.md (*addi_reload): Fix empty split condition.
5497 2021-06-03 Jim Wilson <jimw@sifive.com>
5499 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
5500 turn it on for all riscv targets.
5502 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
5505 * config/i386/i386-expand.c (ix86_expand_vector_set):
5506 Handle V2HI and V4QI modes.
5507 (ix86_expand_vector_extract): Ditto.
5508 * config/i386/mmx.md (*pinsrw): New insn pattern.
5511 (*pextrw_zext): Ditto.
5513 (*pextrb_zext): Ditto.
5514 (vec_setv2hi): New expander.
5515 (vec_extractv2hihi): Ditto.
5516 (vec_setv4qi): Ditto.
5517 (vec_extractv4qiqi): Ditto.
5518 (vec_setv8qi): Enable only for TARGET_SSE4_1.
5519 (vec_extractv8qiqi): Ditto.
5521 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5523 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
5524 order to subf instruction.
5525 * config/rs6000/fusion.md: Regenerate.
5527 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
5529 * calls.c (get_size_range): Use range_of_expr instead of
5530 determine_value_range.
5531 * tree-affine.c (expr_to_aff_combination): Same.
5532 * tree-data-ref.c (split_constant_offset): Same.
5533 * tree-vrp.c (determine_value_range_1): Remove.
5534 (determine_value_range): Remove.
5535 * tree-vrp.h (determine_value_range): Remove.
5537 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
5539 * function-tests.c (test_ranges): Call gimple_range_tests.
5540 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
5542 * gimple-range.cc (fur_source::get_operand): Do not call
5543 get_tree_range or gimple_range_global.
5545 (get_tree_range): Move to value-query.cc.
5546 Call get_arith_expr_range.
5547 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
5548 Include gimple-range-tests.cc.
5549 * gimple-range.h (fold_range): Add argument.
5550 (get_tree_range): Remove.
5551 * selftest.h (gimple_range_tests): New.
5552 * value-query.cc (global_range_query::range_of_expr): Add
5554 (range_query::get_tree_range): Move from gimple-range.cc.
5555 * value-query.h (class range_query): Add get_tree_range and
5556 get_arith_expr_range. Make fur_source a friend.
5557 * vr-values.c (vr_values::range_of_expr): Pass stmt to
5559 * gimple-range-tests.cc: New file.
5561 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
5563 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
5564 update_global_range.
5565 * value-query.cc (update_global_range): New.
5566 * value-query.h (update_global_range): New.
5568 2021-06-03 David Malcolm <dmalcolm@redhat.com>
5570 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
5571 printing the same location twice if there are fix-it hints,
5572 multiple locations, or a label.
5574 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
5576 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
5577 thresholds to narrow the upper bound on epilogue iterations.
5579 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
5581 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
5582 (mve_vabsq_s<mode>): Likewise.
5583 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
5584 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
5585 * config/arm/vec-common.md (neg<mode>2): Rename to
5586 <absneg_str><mode>2.
5588 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
5590 * common/config/arc/arc-common.c (arc_option_optimization_table):
5592 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
5593 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
5594 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
5595 * config/arc/arc.md (abssi2_mixed): Remove pattern.
5596 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
5597 (malign-call): Likewise.
5598 (mmixed-code): Likewise.
5599 * doc/invoke.texi (ARC): Update doc.
5601 2021-06-03 Martin Liska <mliska@suse.cz>
5603 * common.opt: Use proper Enum values.
5604 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
5605 (parse_sanitizer_options): Handle only sanitizer_opts.
5606 (common_handle_option): Just assign value.
5608 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
5611 * tree-inline.c (inline_forbidden_p): Remove test on return type.
5613 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
5615 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
5616 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
5617 (type_byte_size): Inline into...
5618 (add_byte_size_attribute): ...this and call add_scalar_info.
5620 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
5622 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
5623 (typed_binop_from_tree): New function.
5624 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
5625 turn a divide by a power of 2 into a shift.
5626 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
5627 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
5628 typed divide by calling typed_binop_from_tree.
5630 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
5632 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
5633 (is_handled_procedure_type): Likewise.
5634 (struct loc_descr_context): Add strict_signedness field.
5635 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
5636 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
5637 (resolve_args_picking): Minor tweak.
5638 (function_to_dwarf_procedure): Initialize strict_signedness field.
5639 (type_byte_size): Likewise.
5640 (field_byte_offset): Likewise.
5641 (gen_descr_array_type_die): Likewise.
5642 (gen_variant_part): Likewise.
5643 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
5644 to true when a context is present before evaluating the arguments.
5645 <COND_EXPR>: Do not generate a useless comparison with zero.
5646 When dereferencing an address, if strict_signedness is true and the
5647 type is small and signed, use DW_OP_deref_type to do the dereference
5648 and then DW_OP_convert to convert back to the generic type.
5650 2021-06-03 Jakub Jelinek <jakub@redhat.com>
5653 * tree-inline.c (copy_tree_body_r): Handle iterators on
5654 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
5656 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
5658 * config/arc/arc.md (*bbit_di): Remove.
5660 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
5662 PR rtl-optimization/100264
5663 * ree.c (get_sub_rtx): Ignore SET expressions without register
5664 destinations and remove assertion, as it is not valid anymore
5665 with this new behaviour.
5666 (merge_def_and_ext): Eliminate destination check for register
5667 as such SET expressions can't occur anymore.
5668 (combine_reaching_defs): Likewise.
5670 2021-06-02 Jakub Jelinek <jakub@redhat.com>
5673 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
5674 -Wtype-limits warnings.
5675 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
5676 in operands to avoid -Wsign-compare warnings.
5678 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
5680 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
5683 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
5685 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
5687 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
5689 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
5691 * config/s390/subst.md(cconly_subst): Use a single constraint
5694 2021-06-02 Martin Liska <mliska@suse.cz>
5696 * ipa-icf.h: Use auto_vec for memory_access_types.
5698 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
5700 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
5701 argument from prototype.
5702 (output_logical_op): Add rtx_code argument.
5703 (compute_logical_op_length): Likewise.
5704 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
5705 to compute_a_shift_length.
5706 (output_logical_op); New argument with the rtx code rather than
5707 extracting it from an operand. Handle QImode too.
5708 (compute_logical_op_length): Similary.
5709 (compute_a_shift_length): Drop unused argument.
5710 * config/h8300/h8300.md (logicals): New code iterator.
5711 * config/h8300/logical.md (<code><mode>3 expander): Combine
5712 the "and" expander with the "ior"/"xor" expander.
5713 (bclr<mode>msx): Combine the QI/HI mode patterns.
5714 (<logical><mode>3 insns): Use code iterator rather than match_operator.
5715 Handle QImode as well. Update call to output_logical_op and
5716 compute_logical_op_length to pass in rtx_code
5717 Fix split condition on all define_insn_and_split patterns.
5718 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
5719 the flags and setting ZN via existing define_subst.
5720 * config/h8300/shiftrotate.md: Drop unused argument from
5721 calls to compute_a_shift_length.
5722 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
5724 2021-06-01 Andrew Pinski <apinski@marvell.com>
5726 PR tree-optimization/25290
5727 * tree-ssa-phiopt.c (match_simplify_replacement):
5729 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
5730 (two_value_replacement): Change the comment about
5731 conditional_replacement.
5732 (conditional_replacement): Delete.
5734 2021-06-01 Andrew Pinski <apinski@marvell.com>
5736 PR tree-optimization/95481
5737 * tree-tailcall.c (find_tail_calls): Handle empty typed
5740 2021-06-01 Andrew Pinski <apinski@marvell.com>
5742 * gimplify.c (zero_sized_field_decl): Delete
5743 (zero_sized_type): Delete
5744 (gimplify_init_ctor_eval): Use is_empty_type instead
5745 of zero_sized_field_decl.
5746 (gimplify_modify_expr): Use is_empty_type instead of
5749 2021-06-01 Jason Merrill <jason@redhat.com>
5752 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
5754 2021-06-01 Jason Merrill <jason@redhat.com>
5757 * diagnostic.h (warning_enabled_at): Declare.
5758 * diagnostic.c (diagnostic_enabled): Factor out from...
5759 (diagnostic_report_diagnostic): ...here.
5760 (warning_enabled_at): New.
5762 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
5764 * gimple-ssa-evrp.c: Enable exporting of global ranges.
5766 2021-06-01 Martin Liska <mliska@suse.cz>
5769 * doc/invoke.texi: Mention that -fgcse-after-reload
5770 is enabled with -O3.
5772 2021-06-01 liuhongt <hongtao.liu@intel.com>
5774 PR tree-optimization/98365
5775 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
5776 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
5777 (convert_scalar_cond_reduction): Ditto.
5778 (predicate_scalar_phi): Ditto.
5780 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
5782 PR tree-optimization/100781
5783 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
5784 value calculation by default.
5785 (ranger_cache::enable_new_values): New.
5786 (ranger_cache::disable_new_values): New.
5787 (ranger_cache::push_poor_value): Check if new values are allowed.
5788 * gimple-range-cache.h (class ranger_cache): New member/methods.
5789 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
5790 statement, and disable/renable new value calculation.
5792 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
5794 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
5795 (ranger_cache::range_of_def): New.
5796 (ranger_cache::entry_range): New.
5797 (ranger_cache::exit_range): New.
5798 (ranger_cache::range_of_expr): Adjust.
5799 (ranger_cache::range_on_edge): Adjust.
5800 (ranger_cache::propagate_cache): Call exit_range directly.
5801 * gimple-range-cache.h (class ranger_cache): Adjust.
5803 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
5805 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
5806 gori_compute being a member rather than base class.
5807 dervied call to member call.
5808 (ranger_cache::dump): No longer dump gori_map.
5809 (ranger_cache::dump_bb): New.
5810 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
5811 being a member rather than base class.
5812 (ranger_cache::set_global_range): Ditto.
5813 (ranger_cache::ssa_range_in_bb): Ditto.
5814 (ranger_cache::range_of_expr): New.
5815 (ranger_cache::range_on_edge): New.
5816 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
5817 (ranger_cache::propagate_cache): Adjust debugging output.
5818 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
5820 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
5821 member, and inherit from range_query instead.
5822 (ranger_cache::dump_bb): New. split from dump.
5823 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
5824 (gori_compute::expr_range_at_stmt): Delete.
5825 (gori_compute::compute_name_range_op): Delete.
5826 (gori_compute::compute_operand_range_switch): Add fur_source.
5827 (gori_compute::compute_operand_range): Add fur_source param, inline
5828 old compute_name_range_op and optimize_logical_operands.
5829 (struct tf_range): Delete.
5830 (gori_compute::logical_combine): Adjust
5831 (gori_compute::optimize_logical_operands): Delete.
5832 (gori_compute::compute_logical_operands_in_chain): Delete.
5833 (gori_compute::compute_logical_operands): Adjust.
5834 (gori_compute::compute_operand1_range): Adjust to fur_source.
5835 (gori_compute::compute_operand2_range): Ditto.
5836 (gori_compute::compute_operand1_and_operand2_range): Ditto.
5837 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
5838 and adjust to fur_source.
5839 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
5840 range_query and fur_source.
5841 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
5842 from the ranger_cache..
5843 (gimple_ranger::fold_range_internal): Adjust to base class change of
5845 (gimple_ranger::dump_bb): Adjust dump.
5846 * gimple-range.h (gimple_ranger):export gori computes object.
5848 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
5850 PR tree-optimization/100774
5851 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
5852 Constant values are also not stale.
5853 (ranger_cache::set_global_range): Range invariant values should also
5854 have the correct timestamp.
5856 2021-05-31 Martin Liska <mliska@suse.cz>
5858 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
5859 Unpack FUNCTION_DECL_DECL_TYPE.
5860 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
5861 Stream FUNCTION_DECL_DECL_TYPE instead of
5862 DECL_IS_OPERATOR_NEW_P.
5863 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
5865 (DECL_IS_OPERATOR_NEW_P): Likewise.
5866 (DECL_IS_OPERATOR_DELETE_P): Likewise.
5867 (DECL_LAMBDA_FUNCTION_P): Likewise.
5869 2021-05-31 Richard Biener <rguenther@suse.de>
5872 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
5873 * internal-fn.def (SHUFFLEVECTOR): New.
5874 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
5875 * doc/extend.texi: Document __builtin_shufflevector.
5877 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
5880 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
5881 indexed form addresses.
5883 2021-05-29 Jeff Law <jlaw@tachyum.com>
5885 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
5886 parameter. Call callers fixed.
5888 (output_plussi): Add FALLTHRU markers.
5889 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
5891 2021-05-29 Jakub Jelinek <jakub@redhat.com>
5894 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
5895 combined with parallel, make sure to add shared clause to
5896 parallel for explicit linear clause.
5898 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
5900 PR tree-optimization/100787
5901 * gimple-ssa-evrp.c: Disable exporting of global ranges.
5903 2021-05-28 Jason Merrill <jason@redhat.com>
5905 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
5906 operator--, operator*, operator==, and operator!=.
5907 (class tsi_range): New.
5909 2021-05-28 Richard Biener <rguenther@suse.de>
5911 PR tree-optimization/100778
5912 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
5913 trapping ops in different BBs.
5915 2021-05-28 Richard Biener <rguenther@suse.de>
5918 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
5919 copy fntype from original call.
5921 2021-05-28 Martin Liska <mliska@suse.cz>
5923 PR gcov-profile/100751
5924 * doc/gcov.texi: Revert partially a hunk that was wrong.
5926 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
5928 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
5930 (HAVE_sync_compare_and_swaphi): Likewise.
5931 (HAVE_sync_compare_and_swapsi): Likewise.
5933 2021-05-28 Jakub Jelinek <jakub@redhat.com>
5936 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
5938 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5940 * gimplify.c (gimplify_omp_affinity): New.
5941 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
5942 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
5943 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
5944 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
5945 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
5947 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
5948 Richard Biener <rguenther@suse.de>
5950 * match.pd <popcount & / + pattern matching>:
5951 When generating popcount directly fails, try doing it in two halves.
5953 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5955 * Makefile.in (generated_files): Add gimple-match.c and
5958 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
5960 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
5962 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
5964 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
5966 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
5968 PR tree-optimization/99398
5969 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
5970 where the fed operands are CTOR/CST and propagated through
5971 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
5972 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
5974 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
5977 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
5979 * config/i386/mmx.md (addv2sf3): Do not call
5980 ix86_fixup_binary_operands_no_copy.
5983 (<smaxmin:code>v2sf3): Ditto.
5984 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
5985 (<plusminus:insn><VI_32:mode>3): Remove expander.
5986 (<plusminus:insn><VI_32:mode>3): Rename from
5987 "*<plusminus:insn><VI_32:mode>3".
5988 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
5989 (mulv2hi3): Remove expander.
5990 (mulv2hi3): Rename from *mulv2hi3.
5991 (<s>mulv2hi3_highpart): Remove expander.
5992 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
5993 (<smaxmin:code><MMXMODE14:mode>3): Rename from
5994 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
5995 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
5996 (SMAXMIN_MMXMODEI): Remove mode iterator.
5997 (<smaxmin:code>v4hi3): New expander.
5998 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
5999 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
6000 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
6001 (SMAXMIN_VI_32): Remove mode iterator.
6002 (<umaxmin:code><MMXMODE24:mode>3): Rename from
6003 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
6004 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
6005 (UMAXMIN_MMXMODEI): Remove mode iterator.
6006 (<umaxmin:code>v8qi3): New expander.
6007 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
6008 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
6009 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
6010 (UMAXMIN_VI_32): Remove mode iterator.
6011 (<any_shift:insn>v2hi3): Remove expander.
6012 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
6013 (<any_logic:code><MMXMODEI:mode>3): Do not call
6014 ix86_fixup_binary_operands_no_copy.
6015 (<any_logic:code><VI_32:mode>3): Remove expander.
6016 (<any_logic:code><VI_32:mode>3): Rename from
6017 "*<any_logic:code><VI_32:mode>3".
6018 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
6019 * config/i386/sse.md (div<VF2:mode>3): Do not call
6020 ix86_fixup_binary_operands_no_copy.
6021 (div<VF1:mode>3): Ditto.
6022 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
6023 (smulhrsv4hi3): Ditto.
6024 (smulhrsv2hi3): Ditto.
6026 2021-05-27 Martin Sebor <msebor@redhat.com>
6028 * ggc.h (gt_ggc_mx): Add overloads for all integers.
6030 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
6032 (hash_map::operator==): New function.
6034 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
6037 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
6038 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
6039 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
6040 (*xop_maskcmp<VI_32:mode>3): Ditto.
6041 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
6042 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
6044 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
6047 * config/arm/arm.c (arm_configure_build_target): Remove parameter
6048 opts_set, directly check opts parameters for being non-null.
6049 (arm_option_restore): Update call to arm_configure_build_target.
6050 (arm_option_override): Likewise.
6051 (arm_can_inline_p): Likewise.
6052 (arm_valid_target_attribute_tree): Likewise.
6053 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
6054 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
6057 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
6059 * vr-values.c (simplify_conversion_using_ranges): Use
6060 get_range_query instead of get_global_range_query.
6062 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
6064 * gimple-range.cc (get_range_global): Move to value-query.cc.
6065 (gimple_range_global): Same.
6066 (get_global_range_query): Same.
6067 (global_range_query::range_of_expr): Same.
6068 * gimple-range.h (class global_range_query): Move to
6070 (gimple_range_global): Same.
6071 * tree-ssanames.c (get_range_info): Move to value-query.cc.
6072 (get_ptr_nonnull): Same.
6073 * tree-ssanames.h (get_range_info): Remove.
6074 (get_ptr_nonnull): Remove.
6075 * value-query.cc (get_ssa_name_range_info): Move from
6077 (get_ssa_name_ptr_info_nonnull): Same.
6078 (get_range_global): Move from gimple-range.cc.
6079 (gimple_range_global): Same.
6080 (get_global_range_query): Same.
6081 (global_range_query::range_of_expr): Same.
6082 * value-query.h (class global_range_query): Move from
6084 (gimple_range_global): Same.
6086 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
6089 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
6090 (uavgv2hi3_ceil): Ditto.
6092 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
6095 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
6097 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6099 * tree-ssanames.c (get_range_info): Merge both copies of
6100 get_range_info into one that works with irange.
6101 * tree-ssanames.h (get_range_info): Remove version that works on
6104 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6106 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
6107 (expand_builtin_strnlen): Same.
6108 (determine_block_size): Same.
6109 * fold-const.c (expr_not_equal_to): Same.
6110 * gimple-fold.c (size_must_be_zero_p): Same.
6111 * gimple-match-head.c: Include gimple-range.h.
6112 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
6113 * gimple-ssa-warn-restrict.c
6114 (builtin_memref::extend_offset_range): Same.
6115 * graphite-sese-to-poly.c (add_param_constraints): Same.
6116 * internal-fn.c (get_min_precision): Same.
6117 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
6118 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6120 * tree-data-ref.c (split_constant_offset): Same.
6121 (dr_step_indicator): Same.
6122 * tree-dfa.c (get_ref_base_and_extent): Same.
6123 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
6124 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
6125 (determine_value_range): Same.
6126 (record_nonwrapping_iv): Same.
6127 (infer_loop_bounds_from_signedness): Same.
6128 (scev_var_range_cant_overflow): Same.
6129 * tree-ssa-phiopt.c (two_value_replacement): Same.
6130 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
6131 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
6132 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
6134 (dump_strlen_info): Same.
6135 (set_strlen_range): Same.
6136 (maybe_diag_stxncpy_trunc): Same.
6137 (get_len_or_size): Same.
6138 (handle_integral_assign): Same.
6139 * tree-ssa-structalias.c (find_what_p_points_to): Same.
6140 * tree-ssa-uninit.c (find_var_cmp_const): Same.
6141 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
6142 * tree-vect-patterns.c (vect_get_range_info): Same.
6143 (vect_recog_divmod_pattern): Same.
6144 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
6145 (register_edge_assert_for_2): Same.
6146 (determine_value_range_1): Same.
6147 * tree.c (get_range_pos_neg): Same.
6148 * vr-values.c (vr_values::get_lattice_entry): Same.
6149 (vr_values::update_value_range): Same.
6150 (simplify_conversion_using_ranges): Same.
6152 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6154 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
6155 get_range_query instead of query argument.
6156 (pass_walloca::execute): Enable and disable global ranger.
6158 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6160 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
6162 (rvrp_folder::~rvrp_folder): Call disable_ranger.
6163 (hybrid_folder::hybrid_folder): Call enable_ranger.
6164 (hybrid_folder::~hybrid_folder): Call disable_ranger.
6166 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6168 * function.c (allocate_struct_function): Set cfun->x_range_query.
6169 * function.h (struct function): Declare x_range_query.
6170 (get_range_query): New.
6171 (get_global_range_query): New.
6172 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
6173 Remove call to safe_grow_cleared.
6174 * gimple-range.cc (get_range_global): New.
6175 (gimple_range_global): Move from gimple-range.h.
6176 (get_global_range_query): New.
6177 (global_range_query::range_of_expr): New.
6178 (enable_ranger): New.
6179 (disable_ranger): New.
6180 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
6181 (class global_range_query): New.
6182 (enable_ranger): New.
6183 (disable_ranger): New.
6184 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
6185 dump_all_value_ranges to dump.
6186 * tree-vrp.c (vrp_prop::finalize): Same.
6187 * value-query.cc (range_query::dump): New.
6188 * value-query.h (range_query::dump): New.
6189 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
6190 (vr_values::dump): ...this.
6191 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
6192 dump and make virtual.
6194 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
6196 * config/i386/i386.c (ix86_autovectorize_vector_modes):
6197 Add V4QImode and V16QImode for TARGET_SSE2.
6198 * doc/sourcebuild.texi (Vector-specific attributes):
6199 Add vect64 and vect32 description.
6201 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
6203 * gimple-range-gori.cc (range_def_chain::register_dependency):
6204 Resize m_def_chain when needed.
6206 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
6208 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
6209 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
6210 * config/arm/vec-common.md: .. here. Add support for MVE.
6212 2021-05-26 Jakub Jelinek <jakub@redhat.com>
6214 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
6216 * config/microblaze/microblaze.c (microblaze_legitimize_address,
6218 microblaze_option_override, print_operand): Likewise.
6219 * config/microblaze/microblaze.md (call_internal_plt,
6220 call_value_intern_plt, call_value_intern): Likewise.
6221 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
6222 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
6223 call_value_multiple_internal1): Likewise.
6224 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
6226 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6228 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
6229 arc_ccfsm_advance, symbolic_reference_mentioned_p,
6230 arc_raw_symbolic_reference_mentioned_p): Remove register
6233 2021-05-26 Jakub Jelinek <jakub@redhat.com>
6236 * omp-low.c: Include omp-offload.h.
6237 (create_omp_child_function): If current_function_decl has
6238 "omp declare target" attribute and is_gimple_omp_offloaded,
6239 remove that attribute from the copy of attribute list and
6240 add "omp target entrypoint" attribute instead.
6241 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
6242 variables for offloading if in omp_maybe_offloaded_ctx.
6243 * omp-offload.c (pass_omp_target_link::execute): Nullify second
6244 argument to GOMP_target_data_ext in offloaded code.
6246 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
6248 * config/csky/csky.c (csky_can_change_mode_class): Delete.
6249 For csky, HF/SF mode use the low bits of VREGS.
6251 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
6253 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
6254 DECL which is a reference for OMP.
6256 2021-05-26 Martin Liska <mliska@suse.cz>
6258 PR gcov-profile/100751
6259 * doc/gcov.texi: Document that __gcov_dump can be called just
6260 once and that __gcov_reset resets run-time counters.
6262 2021-05-26 Martin Liska <mliska@suse.cz>
6264 * doc/install.texi: Port relevant part from install-old.texi
6265 and re-generate list of CPUs and systems.
6267 2021-05-26 Martin Liska <mliska@suse.cz>
6269 * Makefile.in: Remove it.
6270 * doc/include/fdl.texi: Update next/previous chapters.
6271 * doc/install.texi: Likewise.
6272 * doc/install-old.texi: Removed.
6274 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
6276 * config/csky/csky.c (ck810_legitimate_index_p): Support
6277 "base + index" with DF mode.
6278 * config/csky/constraints.md ("Y"): New constraint for memory operands
6279 without index register.
6280 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
6281 when mov between memory and general registers, and lower their priority.
6282 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
6284 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
6286 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
6288 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
6290 * config/csky/csky.md (untyped_call): Emit clobber for return
6291 registers to mark them used.
6293 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
6295 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
6297 2021-05-26 Andrew Pinski <apinski@marvell.com>
6299 * match.pd (x < 0 ? ~y : y): New patterns.
6301 2021-05-26 Andrew Pinski <apinski@marvell.com>
6303 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
6304 A?POW2:0 and A?0:POW2.
6306 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6308 * gimple-range-gori.cc (class logical_stmt_cache): Delete
6309 (logical_stmt_cache::logical_stmt_cache ): Delete.
6310 (logical_stmt_cache::~logical_stmt_cache): Delete.
6311 (logical_stmt_cache::cache_entry::dump): Delete.
6312 (logical_stmt_cache::get_range): Delete.
6313 (logical_stmt_cache::cached_name ): Delete.
6314 (logical_stmt_cache::same_cached_name): Delete.
6315 (logical_stmt_cache::cacheable_p): Delete.
6316 (logical_stmt_cache::slot_diagnostics ): Delete.
6317 (logical_stmt_cache::dump): Delete.
6318 (gori_compute_cache::gori_compute_cache): Delete.
6319 (gori_compute_cache::~gori_compute_cache): Delete.
6320 (gori_compute_cache::compute_operand_range): Delete.
6321 (gori_compute_cache::cache_stmt): Delete.
6322 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
6324 (class gori_compute_cache): Delete.
6326 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6328 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
6330 (fold_using_range::range_of_address): Adjust.
6331 (fold_using_range::range_of_phi): Adjust.
6332 * gimple-range.h (class fur_source): Adjust.
6333 (fur_source::fur_source): Adjust.
6335 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6337 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
6338 from expr_range_in_bb and adjust.
6339 (gori_compute::compute_name_range_op): Adjust.
6340 (gori_compute::optimize_logical_operands): Adjust.
6341 (gori_compute::compute_logical_operands_in_chain): Adjust.
6342 (gori_compute::compute_operand1_range): Adjust.
6343 (gori_compute::compute_operand2_range): Adjust.
6344 (ori_compute_cache::cache_stmt): Adjust.
6345 * gimple-range-gori.h (gori_compute): Rename prototype.
6347 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6349 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
6350 checked only after range_of_stmt, not range_on_entry.
6351 (gimple_ranger::range_on_entry): Check for non-null in any
6352 predecessor block, if it is not already non-null.
6353 (gimple_ranger::range_on_exit): DOnt check for non-null after
6354 range on entry call.
6355 (gimple_ranger::dump_bb): New. Split from dump.
6356 (gimple_ranger::dump): Adjust.
6357 * gimple-range.h (class gimple_ranger): Adjust.
6359 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6361 * gimple-range-cache.cc (struct range_timestamp): Delete.
6362 (class temporal_cache): Adjust.
6363 (temporal_cache::get_timestamp): Delete.
6364 (temporal_cache::set_dependency): Delete.
6365 (temporal_cache::temporal_value): Adjust.
6366 (temporal_cache::current_p): Take dependencies as params.
6367 (temporal_cache::set_timestamp): Adjust.
6368 (temporal_cache::set_always_current): Adjust.
6369 (ranger_cache::get_non_stale_global_range): Adjust.
6370 (ranger_cache::register_dependency): Delete.
6371 * gimple-range-cache.h (class range_cache): Adjust.
6373 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6375 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
6377 (range_def_chain::~range_def_chain): Dispose of obstack rather than
6378 each individual bitmap.
6379 (range_def_chain::set_import): New.
6380 (range_def_chain::get_imports): New.
6381 (range_def_chain::chain_import_p): New.
6382 (range_def_chain::register_dependency): Rename from build_def_chain
6384 (range_def_chain::def_chain_in_bitmap_p): New.
6385 (range_def_chain::add_def_chain_to_bitmap): New.
6386 (range_def_chain::has_def_chain): Just check first depenedence.
6387 (range_def_chain::get_def_chain): Process imports, use generic
6388 register_dependency routine.
6389 (range_def_chain::dump): New.
6390 (gori_map::gori_map): Allocate import list.
6391 (gori_map::~gori_map): Release imports.
6392 (gori_map::exports): Check for past allocated block size.
6393 (gori_map::imports): New.
6394 (gori_map::def_chain_in_export_p): Delete.
6395 (gori_map::is_import_p): New.
6396 (gori_map::maybe_add_gori): Handle imports.
6397 (gori_map::dump): Adjust output, add imports.
6398 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
6399 (gori_export_iterator::gori_export_iterator): New.
6400 (gori_export_iterator::next): New.
6401 (gori_export_iterator::get_name): New.
6402 * gimple-range-gori.h (range_def_chain): Add imports and direct
6403 dependecies via struct rdc.
6404 (range_def_chain::depend1): New.
6405 (range_def_chain::depend2): New.
6406 (class gori_map): Adjust.
6407 (FOR_EACH_GORI_IMPORT_NAME): New.
6408 (FOR_EACH_GORI_EXPORT_NAME): New.
6409 (class gori_export_iterator): New.
6411 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6413 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
6414 export cache filling to here.
6415 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
6417 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
6419 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
6420 (gori_map): Move to gimple-range-gori.h.
6421 (gori_compute::gori_compute): Adjust.
6422 (gori_compute::~gori_compute): Delete.
6423 (gori_compute::compute_operand_range_switch): Adjust.
6424 (gori_compute::compute_operand_range): Adjust.
6425 (gori_compute::compute_logical_operands): Adjust.
6426 (gori_compute::has_edge_range_p ): Adjust.
6427 (gori_compute::set_range_invariant): Delete.
6428 (gori_compute::dump): Adjust.
6429 (gori_compute::outgoing_edge_range_p): Adjust.
6430 * gimple-range-gori.h (class range_def_chain): Relocate here.
6431 (class gori_map): Relocate here.
6432 (class gori_compute): Inherit from gori_map, and adjust.
6434 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
6436 * value-range.cc (range_tests_legacy): Use
6437 build_nonstandard_integer_type instead of int and short.
6439 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
6441 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
6442 when really creating an initialization statement for it.
6444 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
6446 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
6448 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
6450 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
6452 2021-05-25 Martin Liska <mliska@suse.cz>
6454 PR tree-optimization/92860
6456 * optc-save-gen.awk: Remove exceptions.
6458 2021-05-25 Martin Liska <mliska@suse.cz>
6460 * asan.h (sanitize_coverage_p): New function.
6461 * doc/extend.texi: Document it.
6462 * fold-const.c (fold_range_test): Use sanitize_flags_p
6463 instead of flag_sanitize_coverage.
6464 (fold_truth_andor): Likewise.
6465 * sancov.c: Likewise.
6466 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6467 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
6468 -fsanitize-coverage when inlining.
6470 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
6472 * config/csky/csky-modes.def : Fix copyright.
6474 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
6476 * config/csky/csky-modes.def : Amend copyright.
6477 * config/csky/csky_insn_fpuv2.md : Likewise.
6478 * config/csky/csky_insn_fpuv3.md : Likewise.
6480 2021-05-25 Richard Biener <rguenther@suse.de>
6482 PR middle-end/100727
6483 * calls.c (initialize_argument_information): Explicitely test
6485 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
6487 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
6489 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
6490 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
6491 the signle definition. The signle definition may not work well
6492 at simplify_subreg_regno().
6493 (HARD_FRAME_POINTER_REGNUM): New.
6494 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
6495 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
6496 csky_initial_elimination_offset, csky_expand_prologue,
6497 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
6499 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
6501 * config/csky/csky.c (csky_option_override):
6502 Init csky_arch_isa_features[] in advance, so TARGET_DSP
6503 and TARGET_DIV can be set well.
6505 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
6507 * config/csky/constraints.md ("l", "h"): Delete.
6508 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
6509 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
6510 * config/csky/csky.c (regno_reg_classm,
6511 csky_secondary_reload, csky_register_move_cost):
6512 Use HILO_REGS instead of LO_REGS and HI_REGS.
6514 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
6516 * config/csky/constraints.md ("W"): New constriant for mem operand
6517 with base reg, index register.
6518 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
6519 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
6521 ("Dv"): New constraint for const double value that can be used at
6523 * config/csky/csky-modes.def (HFmode): New mode.
6524 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
6525 to "csky_valid_mem_constraint_operand" and support new constraint
6527 (csky_get_movedouble_length): New.
6528 (fpuv3_output_move): New.
6529 (fpuv3_const_double): New.
6530 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
6531 (decompose_csky_address): Refine.
6532 (csky_print_operand): New "CONST_DOUBLE" operand.
6533 (csky_output_move): Support fpv3 instructions.
6534 (csky_get_movedouble_length): New.
6535 (fpuv3_output_move): New.
6536 (fpuv3_const_double): New.
6537 (csky_emit_compare): Cover float comparsion.
6538 (csky_emit_compare_float): Refine.
6539 (csky_vaild_fpuv2_mem_operand): Rename to
6540 "csky_valid_mem_constraint_operand" and support new constraint "W".
6541 (ck860_rtx_costs): New.
6542 (csky_rtx_costs): Add the cost calculation of CK860.
6543 (regno_reg_class): New vregs for fpuv3.
6544 (csky_dbx_regno): Likewise.
6545 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
6546 (csky_conditional_register_usage): Suporrot fpuv3.
6547 (csky_dwarf_register_span): Suporrot fpuv3.
6548 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
6549 (ck810_legitimate_index_p): Support fp16.
6550 * config/csky/csky.h (TARGET_TLS): ADD CK860.
6551 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
6552 (TARGET_SINGLE_FPU): Support fpuv3.
6553 (TARGET_SUPPORT_FPV3): New.
6554 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
6555 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
6556 REG_CLASS_CONTENTS): Support fpuv3.
6557 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
6558 (csky_movsf_fpv2): Likewise.
6559 (ck801_movsf): Likewise.
6560 (csky_movsf): Likewise.
6562 (csky_movdf_fpv2): Likewise.
6563 (ck801_movdf): Likewise.
6564 (csky_movdf): Likewise.
6565 (movsicc): Refine. Use "comparison_operatior" instead of
6566 "ordered_comparison_operatior".
6567 (addsicc): Likewise.
6568 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
6569 (call_value_internal_vh): New.
6570 * config/csky/csky_cores.def (CK860): New arch and cpu.
6575 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
6576 into emit-patterns and match-patterns, remain the emit-patterns here,
6577 and move the match-patterns to csky_insn_fpuv2.md or
6579 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
6580 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
6582 * config/csky/csky_isa.def (fcr): New.
6587 (CK860): New definition for ck860.
6588 * config/csky/csky_tables.opt (ck860): New processors ck860,
6589 ck860f. And new arch ck860.
6594 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
6595 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
6596 * config/csky/t-csky-elf: Support 860.
6597 * config/csky/t-csky-linux: Likewise.
6598 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
6600 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
6602 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
6603 add generation of logical-add and add-logical fusion pairs.
6604 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
6606 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
6607 logical-add and add-logical fusion by default.
6608 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
6609 -mpower10-fusion-add-logical options.
6610 * config/rs6000/fusion.md: Regenerate file.
6612 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
6614 * value-range.cc (irange::legacy_equal_p): Check type when
6615 comparing VR_VARYING types.
6616 (range_tests_legacy): Test comparing VARYING ranges of different
6619 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
6621 * config/aarch64/aarch64.c (neoversen1_tunings):
6622 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
6624 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
6626 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
6627 extern weak symbols. Limit symbol offsets for non-GOT symbols with
6630 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
6632 * config/arm/neon.md (vec_load_lanesxi<mode>)
6633 (vec_store_lanexoi<mode>): Move ...
6634 * config/arm/vec-common.md: here.
6636 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
6638 * config/arm/neon.md (vec_load_lanesoi<mode>)
6639 (vec_store_lanesoi<mode>): Move ...
6640 * config/arm/vec-common.md: here.
6642 2021-05-24 liuhongt <hongtao.liu@intel.com>
6645 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
6646 stmt with GIMPLE_NOP when lhs doesn't exist.
6648 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
6651 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
6652 New instruction pattern.
6653 (*push<VI_32:mode>2): Ditto.
6654 (push splitter for SSE registers): New splitter.
6656 2021-05-23 Andrew Pinski <apinski@marvell.com>
6658 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
6660 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
6662 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
6663 * config/rs6000/fusion.md: Regenerate file.
6665 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
6667 * config/rs6000/genfusion.pl (gen_addadd): New function.
6668 * config/rs6000/fusion.md: Regenerate file.
6669 * config/rs6000/rs6000-cpus.def: Add
6670 OPTION_MASK_P10_FUSION_2ADD to masks.
6671 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6672 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
6673 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
6675 2021-05-21 Jakub Jelinek <jakub@redhat.com>
6678 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
6679 * gimplify.c (enum gimplify_omp_var_data): Fix up
6680 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
6681 (omp_lastprivate_for_combined_outer_constructs): If combined target
6682 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
6683 GOVD_MAP | GOVD_SEEN.
6684 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
6685 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
6686 (gimplify_adjust_omp_clauses): For firstprivate clauses with
6687 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
6688 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
6689 let it be replaced by implicit map clause.
6691 2021-05-21 Jakub Jelinek <jakub@redhat.com>
6694 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
6696 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
6697 (gimplify_omp_for): Likewise.
6699 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6702 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
6703 'external' in blocks.
6705 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6708 * flag-types.h (enum openacc_privatization): New.
6709 * params.opt (-param=openacc-privatization): New.
6710 * doc/invoke.texi (openacc-privatization): Document it.
6711 * omp-general.h (get_openacc_privatization_dump_flags): New
6713 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
6714 * omp-offload.c (execute_oacc_device_lower)
6715 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
6716 * target.def (goacc.adjust_private_decl): Add 'location_t'
6718 * doc/tm.texi: Regenerate.
6719 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
6720 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
6721 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
6722 Likewise. Preserve it for...
6723 (nvptx_goacc_expand_var_decl): ... use here.
6725 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6727 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
6730 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6733 * omp-low.c (oacc_privatization_candidate_p): New function.
6734 (oacc_privatization_scan_clause_chain)
6735 (oacc_privatization_scan_decl_chain): Use it. Also
6736 'gcc_checking_assert' that we're not seeing duplicates.
6738 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6741 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
6744 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6747 * omp-offload.c (execute_oacc_device_lower): Explain.
6749 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6752 * omp-offload.c (execute_oacc_device_lower)
6753 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
6755 * internal-fn.c (expand_UNIQUE): Don't expect
6756 'IFN_UNIQUE_OACC_PRIVATE'.
6758 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6761 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
6763 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6766 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
6767 (nvptx_goacc_expand_var_decl): Tighten.
6769 2021-05-21 Julian Brown <julian@codesourcery.com>
6770 Chung-Lin Tang <cltang@codesourcery.com>
6771 Thomas Schwinge <thomas@codesourcery.com>
6774 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
6775 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
6776 * doc/tm.texi: Regenerate.
6777 * expr.c (expand_expr_real_1): Expand decls using the
6778 expand_var_decl OpenACC hook if defined.
6779 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
6780 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
6781 * omp-low.c (omp_context): Add oacc_privatization_candidates
6783 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
6785 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
6786 private marker's gimple call arguments, and pass it to
6787 lower_oacc_reductions.
6788 (oacc_privatization_scan_clause_chain)
6789 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
6791 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
6792 * omp-offload.c (convert.h): Include.
6793 (oacc_loop_xform_head_tail): Treat private-variable markers like
6794 fork/join when transforming head/tail sequences.
6795 (struct var_decl_rewrite_info): Add struct.
6796 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
6797 (execute_oacc_device_lower): Support rewriting gang-private
6798 variables using target hook, and fix up addr_expr and var_decl
6800 * target.def (adjust_private_decl, expand_var_decl): New hooks.
6801 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
6803 (gcn_goacc_adjust_private_decl): ...this.
6804 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
6806 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
6807 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
6808 definition using gcn_goacc_adjust_gangprivate_decl...
6809 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
6810 gcn_goacc_adjust_private_decl.
6811 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
6812 (gang_private_shared_size): New global variable.
6813 (gang_private_shared_align): Likewise.
6814 (gang_private_shared_sym): Likewise.
6815 (gang_private_shared_hmap): Likewise.
6816 (nvptx_option_override): Initialize these.
6817 (nvptx_file_end): Output gang_private_shared_sym.
6818 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
6820 (nvptx_set_current_function): Clear gang_private_shared_hmap.
6821 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
6822 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
6824 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
6826 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
6828 2021-05-21 Richard Biener <rguenther@suse.de>
6829 H.J. Lu <hjl.tools@gmail.com>
6832 * expr.c (expand_constructor): Elide expand_constructor if
6833 move by pieces is preferred.
6835 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6837 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
6838 Take a flag and mode value as arguments.
6839 (aarch64_modifies_global_state_p): Likewise.
6840 (aarch64_reads_global_state_p): Likewise.
6841 (aarch64_could_trap_p): Likewise.
6842 (aarch64_get_attributes): Likewise.
6843 (aarch64_init_simd_builtins): Adjust callsite of above.
6844 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
6845 function attributes to apply to builtins.
6846 (aarch64_init_crc32_builtins): Likewise.
6847 (aarch64_init_builtin_rsqrt): Likewise.
6849 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
6851 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
6852 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
6853 (gen_2logical): Use new fusion types.
6854 * config/rs6000/fusion.md: Regenerate.
6856 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
6859 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
6860 Handle V4QI and V2HI modes.
6861 (ix86_expand_sse_movcc): Ditto.
6862 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
6863 New instruction pattern.
6864 (*eq<VI_32:mode>3): Ditto.
6865 (*gt<VI_32:mode>3): Ditto.
6866 (*xop_pcmov_<VI_32:mode>): Ditto.
6867 (mmx_pblendvb32): Ditto.
6868 (mmx_pblendvb64): Rename from mmx_pblendvb.
6869 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
6870 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
6871 (vcond<VI_32:mode><VI_32:mode>): Ditto.
6872 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
6873 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
6875 2021-05-21 Jakub Jelinek <jakub@redhat.com>
6877 PR tree-optimization/94589
6878 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
6879 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
6880 not the same as cmp3) treat <= the same as < and >= the same as >.
6881 Don't require that cond2_phi_edge is true edge, instead take
6882 false/true edges into account based on cmp1/cmp2 comparison kinds.
6884 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
6887 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
6888 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
6889 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
6890 using SMAXMIN_MMXMODEI mode iterator.
6891 (*<smaxmin:code>v4qi3): New insn pattern.
6892 (*<smaxmin:code>v2hi3): Ditto.
6893 (SMAXMIN_VI_32): New mode iterator.
6894 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
6895 (UMAXMIN_MMXMODEI): New mode iterator.
6896 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
6897 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
6898 using UMAXMIN_MMXMODEI mode iterator.
6899 (*<umaxmin:code>v4qi3): New insn pattern.
6900 (*<umaxmin:code>v2hi3): Ditto.
6901 (UMAXMIN_VI_32): New mode iterator.
6902 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
6903 (abs<VI_32:mode>2): New insn pattern.
6904 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
6905 * config/i386/sse.md: ... here.
6907 2021-05-20 Clement Chigot <clement.chigot@atos.net>
6908 David Edelsohn <dje.gcc@gmail.com>
6910 * collect2.c (scan_prog_file): Issue non-fatal warning for
6913 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
6915 * doc/invoke.texi (-Wno-c++11-extensions)
6916 (-Wno-c++14-extensions, -Wno-c++17-extensions)
6917 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
6920 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
6922 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
6923 * config/darwin.c (darwin_override_options): Likewise.
6924 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
6925 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
6926 (DWARF2_FRAME_REG_OUT): Likewise.
6927 * config/mips/mips.c (mips_output_filename): Likewise.
6928 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
6930 (rs6000_dbx_register_number): Likewise.
6931 * dbxout.c: Include flags.h.
6932 * dwarf2cfi.c (cfi_label_required_p): Likewise.
6933 (dwarf2out_do_frame): Likewise.
6934 * except.c: Include flags.h.
6935 * final.c (dwarf2_debug_info_emitted_p): Likewise.
6936 (final_scan_insn_1): Likewise.
6937 * flags.h (dwarf_debuginfo_p): New function declaration.
6938 * opts.c (dwarf_debuginfo_p): New function definition.
6939 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
6940 * toplev.c (process_options): Likewise.
6942 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
6944 * common.opt: Change type to support bitmasks.
6945 * flag-types.h (enum debug_info_type): Rename enumerator constants.
6946 (NO_DEBUG): New bitmask.
6947 (DBX_DEBUG): Likewise.
6948 (DWARF2_DEBUG): Likewise.
6949 (XCOFF_DEBUG): Likewise.
6950 (VMS_DEBUG): Likewise.
6951 (VMS_AND_DWARF2_DEBUG): Likewise.
6952 * flags.h (debug_set_to_format): New function declaration.
6953 (debug_set_count): Likewise.
6954 (debug_set_names): Likewise.
6955 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
6956 (debug_set_to_format): New function definition.
6957 (debug_set_count): Likewise.
6958 (debug_set_names): Likewise.
6959 (set_debug_level): Update access to debug_type_names.
6960 * toplev.c: Likewise.
6962 2021-05-20 Martin Sebor <msebor@redhat.com>
6964 PR middle-end/100684
6965 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
6967 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
6970 * config/i386/i386.md (isa): Remove x64_bmi.
6971 (enabled): Remove x64_bmi.
6972 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
6973 Remove general register alternative.
6974 (*andnot<VI_32:mode>3): Ditto.
6975 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
6976 (*<any_logic:code><VI_32:mode>3): Ditto.
6978 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
6980 * config/arm/arm.c: Include head files tree-vectorizer.h and
6983 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
6986 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
6987 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
6988 (<s>mulv4hi3_highpart): New expander.
6989 (*<s>mulv2hi3_highpart): New insn pattern.
6990 (<s>mulv2hi3_higpart): New expander.
6991 (*<any_shift:insn>v2hi3): New insn pattern.
6992 (<any_shift:insn>v2hi3): New expander.
6993 * config/i386/sse.md (smulhrsv2hi3): New expander.
6994 (*smulhrsv2hi3): New insn pattern.
6996 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
6998 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
7000 * params.opt (vect-inner-loop-cost-factor): New.
7001 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
7002 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
7003 tree-vectorizer.h and its required ones.
7004 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
7005 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
7006 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
7007 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
7008 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
7009 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7011 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
7012 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
7013 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
7015 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
7016 Torbjörn Svensson <torbjorn.svensson@st.com>
7019 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
7021 2021-05-20 Jakub Jelinek <jakub@redhat.com>
7024 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
7025 explicit linear clause when combined with target, make it map(tofrom:)
7026 instead of no clause or firstprivate.
7028 2021-05-20 Jakub Jelinek <jakub@redhat.com>
7030 PR tree-optimization/94589
7031 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
7032 of integral conversions.
7034 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
7036 * gimple-range.cc (fur_source::get_operand): New.
7037 (gimple_range_fold): Delete.
7038 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
7039 (fold_using_range::range_of_range_op): Move from gimple_ranger.
7040 (fold_using_range::range_of_address): Ditto.
7041 (fold_using_range::range_of_phi): Ditto.
7042 (fold_using_range::range_of_call): Ditto.
7043 (fold_using_range::range_of_builtin_ubsan_call): Move from
7044 range_of_builtin_ubsan_call.
7045 (fold_using_range::range_of_builtin_call): Move from
7046 range_of_builtin_call.
7047 (gimple_ranger::range_of_builtin_call): Delete.
7048 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
7049 (gimple_ranger::fold_range_internal): New.
7050 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
7051 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
7052 gimple_ranger. Improve ranges of SSA_NAMES when possible.
7053 * gimple-range.h (gimple_ranger): Remove various range_of routines.
7054 (class fur_source): New.
7055 (class fold_using_range): New.
7056 (fur_source::fur_source): New.
7058 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
7059 instead of range_of_builtin_call.
7061 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
7063 * doc/cpp.texi (Common Predefined Macros): Update documentation
7064 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
7066 2021-05-19 Alex Coplan <alex.coplan@arm.com>
7069 * config/arm/arm.md (nonsecure_call_internal): Always ensure
7070 callee's address is in a register.
7072 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
7074 * common/config/riscv/riscv-common.c
7075 (riscv_subset_list::parsing_subset_version): Properly parse the letter
7077 (riscv_subset_list::parse_std_ext,
7078 riscv_subset_list::parse_multiletter_ext): To handle errors generated
7079 in riscv_subset_list::parsing_subset_version.
7081 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7083 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
7084 type attribute in patterns generating XTN(2).
7086 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7088 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
7089 Remove as duplicate of...
7090 (aarch64_xtn<mode>): This.
7091 (aarch64_xtn2<mode>_le): Move position in file.
7092 (aarch64_xtn2<mode>_be): Move position in file.
7093 (aarch64_xtn2<mode>): Move position in file.
7094 (vec_pack_trunc_<mode>): Define as an expander.
7096 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7098 * config/aarch64/aarch64-simd-builtins.def: Split builtin
7099 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
7100 separate scalar and vector generators.
7101 * config/aarch64/aarch64-simd.md
7102 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
7104 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
7105 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
7106 * config/aarch64/iterators.md: Define SD_HSDI iterator.
7108 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
7110 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
7112 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
7114 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7116 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
7117 Implement as an expand emitting a big/little endian
7118 instruction pattern.
7119 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
7120 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
7122 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7124 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
7125 Implement as an expand emitting a big/little endian
7126 instruction pattern.
7127 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
7128 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
7129 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
7130 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
7132 2021-05-19 Richard Biener <rguenther@suse.de>
7134 PR middle-end/100672
7135 * fold-const.c (fold_negate_expr_1): Use element_precision.
7136 (negate_expr_p): Likewise.
7138 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
7140 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
7141 (pred_load): New int attribute.
7142 * config/aarch64/aarch64-sve.md
7143 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
7144 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
7145 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
7146 code_for_aarch64_load.
7148 2021-05-19 Richard Biener <rguenther@suse.de>
7150 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
7151 sure TARGET_MEM_REF bases are expanded as memory.
7152 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
7153 Do not mark TARGET_MEM_REF bases addressable.
7154 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
7155 TARGET_MEM_REF bases as never rewritable.
7156 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
7157 walk TARGET_MEM_REF bases as address-takens.
7158 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
7160 2021-05-19 Richard Biener <rguenther@suse.de>
7162 * builtins.c (get_object_alignment_1): Strip outer
7164 * tree-dfa.c (get_ref_base_and_extent): Handle outer
7165 WITH_SIZE_EXPR for size processing and process the
7167 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
7168 outer WITH_SIZE_EXPR.
7169 (ao_ref_base_alias_ptr_type): Likewise.
7170 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
7171 and handle that accordingly, stripping it for the
7173 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
7174 looking through it instead of returning NULL.
7176 2021-05-19 Jakub Jelinek <jakub@redhat.com>
7178 PR middle-end/100576
7179 * builtins.c (check_read_access): Convert bound to size_type_node if
7182 2021-05-19 Richard Biener <rguenther@suse.de>
7184 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
7185 (verify_types_in_gimple_reference): ... here. Sanitize.
7186 (verify_gimple_call): Verify references in LHS and arguments.
7187 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
7189 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
7191 * config/i386/i386.h (VALID_INT_MODE_P):
7192 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
7193 * config/i386/i386.md (isa): Add x64_bmi.
7194 (enabled): Handle x64_bmi.
7195 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
7196 Add alternative using 64bit general registers.
7197 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
7199 2021-05-19 Jakub Jelinek <jakub@redhat.com>
7202 * tree.h (OMP_MASTER_COMBINED): Define.
7203 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
7204 handling for outer combined/composite constructs to a loop.
7205 Handle lastprivate on combined target.
7206 (gimplify_expr): Formatting fix.
7208 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
7210 * passes.def: Add sink_code pass before store_merging.
7211 * tree-ssa-sink.c (pass_sink_code:clone): New.
7213 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
7215 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
7216 rs6000_special_adjust_field_align_p.
7217 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7218 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
7220 (rs6000_function_arg): Likewise.
7221 * config/rs6000/rs6000-protos.h
7222 (rs6000_special_adjust_field_align_p): Remove prototype.
7223 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
7225 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
7226 rs6000_special_adjust_field_align_p.
7228 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
7231 * config/i386/i386.h (VALID_SSE2_REG_MODE):
7232 Add V4QI and V2HI modes.
7233 (VALID_INT_MODE_P): Ditto.
7234 * config/i386/mmx.md (VI_32): New mode iterator.
7235 (mmxvecsize): Handle V4QI and V2HI.
7237 (mov<VI_32:mode>): New expander.
7238 (*mov<mode>_internal): New insn pattern.
7239 (movmisalign<VI_32:mode>): New expander.
7240 (neg<VI_32:mode>): New expander.
7241 (<plusminus:insn><VI_32:mode>3): New expander.
7242 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
7243 (mulv2hi3): New expander.
7244 (*mulv2hi3): New insn pattern.
7245 (one_cmpl<VI_32:mode>2): New expander.
7246 (*andnot<VI_32:mode>3): New insn pattern.
7247 (<any_logic:code><VI_32:mode>3): New expander.
7248 (*<any_logic:code><VI_32:mode>3): New insn pattern.
7250 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
7252 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
7253 Fix a mode mismatch with operand 1.
7255 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
7258 * config/i386/i386-expand.c (split_double_mode): Return
7259 temporary register when simplify_gen_subreg fails with
7260 the high half od the paradoxical subreg.
7262 2021-05-18 Richard Biener <rguenther@suse.de>
7264 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
7265 and honor it when expanding.
7266 (expand_used_vars_for_block): Pass through forced_stack_var.
7267 (expand_used_vars): Likewise.
7268 (discover_nonconstant_array_refs_r): Set bits in
7269 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
7270 (avoid_type_punning_on_regs): Likewise.
7271 (discover_nonconstant_array_refs): Likewise.
7272 (pass_expand::execute): Create and pass down forced_stack_var
7273 bitmap. For parameters and returns temporarily set
7274 TREE_ADDRESSABLE when expand_function_start.
7276 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
7278 * doc/sourcebuild.texi: Document 'dg-note'.
7280 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
7283 * configure: Regenerate.
7284 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
7286 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
7288 * gimple.h (is_gimple_omp_oacc): Tighten.
7289 * omp-low.c (check_omp_nesting_restrictions): Adjust.
7291 2021-05-18 Richard Biener <rguenther@suse.de>
7293 * tree-ssa-operands.c (mark_address_taken): Simplify.
7295 2021-05-18 Martin Liska <mliska@suse.cz>
7297 * config/gcn/mkoffload.c (STR): Redefine.
7298 * config/i386/intelmic-mkoffload.c (STR): Likewise.
7299 * config/nvptx/mkoffload.c (STR): Likewise.
7301 2021-05-18 Martin Liska <mliska@suse.cz>
7303 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
7304 Use startswith function instead of strncmp.
7305 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
7306 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
7307 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
7308 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
7309 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
7310 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
7311 * config/arm/arm.c (arm_file_start): Likewise.
7312 (arm_valid_target_attribute_rec): Likewise.
7313 (thumb1_md_asm_adjust): Likewise.
7314 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
7315 * config/avr/avr.c (STR_PREFIX_P): Likewise.
7316 (avr_set_current_function): Likewise.
7317 (avr_handle_addr_attribute): Likewise.
7318 (avr_asm_output_aligned_decl_common): Likewise.
7319 (avr_asm_named_section): Likewise.
7320 (avr_section_type_flags): Likewise.
7321 (avr_asm_select_section): Likewise.
7322 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
7323 (c6x_section_type_flags): Likewise.
7324 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
7325 (darwin_objc_declare_unresolved_class_reference): Likewise.
7326 (darwin_objc_declare_class_definition): Likewise.
7327 * config/darwin.c (indirect_data): Likewise.
7328 (darwin_encode_section_info): Likewise.
7329 (darwin_objc2_section): Likewise.
7330 (darwin_objc1_section): Likewise.
7331 (machopic_select_section): Likewise.
7332 (darwin_globalize_label): Likewise.
7333 (darwin_label_is_anonymous_local_objc_name): Likewise.
7334 (darwin_asm_named_section): Likewise.
7335 (darwin_asm_output_dwarf_offset): Likewise.
7336 * config/frv/frv.c (frv_string_begins_with): Likewise.
7337 (frv_in_small_data_p): Likewise.
7338 * config/gcn/mkoffload.c (STR): Likewise.
7340 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
7341 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
7342 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
7343 (ix86_md_asm_adjust): Likewise.
7344 * config/i386/intelmic-mkoffload.c (STR): Likewise.
7345 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
7346 (i386_pe_file_end): Likewise.
7347 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
7348 (ia64_section_type_flags): Likewise.
7349 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
7350 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
7351 (mips16_stub_function_p): Likewise.
7352 (mips_function_rodata_section): Likewise.
7353 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
7354 (msp430_function_section): Likewise.
7355 (msp430_section_type_flags): Likewise.
7356 (msp430_expand_helper): Likewise.
7357 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
7358 (nios2_valid_target_attribute_rec): Likewise.
7359 * config/nvptx/mkoffload.c (process): Likewise.
7361 * config/pa/som.h: Likewise.
7362 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
7363 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
7364 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
7365 (rs6000_inner_target_options): Likewise.
7366 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
7367 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
7368 * config/vax/vax.c (vax_output_int_move): Likewise.
7369 * config/vms/vms-ld.c (startswith): Likewise.
7370 (process_args): Likewise.
7372 * config/vms/vms.c: Likewise.
7374 2021-05-18 Jakub Jelinek <jakub@redhat.com>
7376 PR rtl-optimization/100590
7377 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
7378 they are NONJUMP_INSN_P.
7380 2021-05-18 Jakub Jelinek <jakub@redhat.com>
7383 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
7384 DECL_ASSEMBLER_NAME on the fn_decl.
7386 2021-05-18 Jakub Jelinek <jakub@redhat.com>
7388 PR tree-optimization/94589
7389 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
7390 phi result used in (res & ~1) == 0 comparison as res >= 0 as
7391 res == 2 would be UB with -ffinite-math-only.
7393 2021-05-18 Martin Liska <mliska@suse.cz>
7395 * Makefile.in: genversion.o should depend on DATESTAMP.
7397 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
7399 * config/arc/simdext.md (negv2si2): Remove round bracket.
7401 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
7403 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
7404 _Bool as macro expanding to _Bool.
7406 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
7409 * tree.c (build_reference_type_for_mode)
7410 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
7412 (build_reference_type, build_pointer_type): Invoke
7413 build_*_type_for_mode with VOIDmode.
7415 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
7417 PR tree-optimization/100512
7418 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
7419 and non-zero pointer ranges as invariant.
7420 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
7421 processing from here.
7423 2021-05-17 Tom de Vries <tdevries@suse.de>
7426 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
7427 * config/nvptx/nvptx.c (nvptx_output_barrier)
7428 (nvptx_output_atomic_insn): New function.
7429 (nvptx_print_operand): Add support for 'B'.
7430 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
7433 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
7435 PR tree-optimization/100349
7436 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
7439 2021-05-17 Tamar Christina <tamar.christina@arm.com>
7441 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
7442 (host_detect_local_cpu): Use it.
7444 2021-05-17 Martin Liska <mliska@suse.cz>
7446 * doc/invoke.texi: Add 2 missing dots.
7448 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
7451 * configure.ac: Replace pattern substitution with call to sed.
7452 * configure: Regenerate.
7454 2021-05-17 Richard Biener <rguenther@suse.de>
7456 PR middle-end/100582
7457 * tree.c (array_at_struct_end_p): Get to the base of the
7458 reference before looking for the underlying decl.
7460 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
7462 * genoutput.c (validate_insn_alternatives) Make "wrong number of
7463 alternatives" message more specific, and remove assumption on where
7466 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
7468 * config/arm/iterators.md (V16): New iterator.
7469 (VH_cvtto): New iterator.
7470 (v_cmp_result): Added V4HF and V8HF support.
7471 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
7472 (vcond<mode><mode>): Likewise.
7473 (vcond_mask_<mode><v_cmp_result>): Likewise.
7474 (vcond<VH_cvtto><mode>): New expander.
7476 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
7478 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
7480 * config/arm/arm.c (arm_expand_vector_compare): Add support for
7482 (arm_expand_vcond): Likewise.
7483 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
7484 VCMPEQQ_N_S, VCMPNEQ_N_S.
7485 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
7486 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
7487 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
7488 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
7489 (@mve_vpselq_<supf><mode>): Likewise.
7490 (@mve_vpselq_f<mode>"): Likewise.
7491 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
7492 and move to vec-common.md.
7493 (vec_cmpu<mode><mode>): Likewise.
7494 (vcond<mode><mode>): Likewise.
7495 (vcond<V_cvtto><mode>): Likewise.
7496 (vcondu<mode><v_cmp_result>): Likewise.
7497 (vcond_mask_<mode><v_cmp_result>): Likewise.
7498 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
7499 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
7500 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
7501 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
7502 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
7503 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
7505 (vec_cmpu<mode><mode>): Likewise.
7506 (vcond<mode><mode>): Likewise.
7507 (vcond<V_cvtto><mode>): Likewise.
7508 (vcondu<mode><v_cmp_result>): Likewise.
7509 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
7512 2021-05-17 liuhongt <hongtao.liu@intel.com>
7515 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
7516 gsi_insert_seq_before instead.
7518 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
7520 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
7521 (arm_sat_ok): ...this.
7523 2021-05-17 Martin Liska <mliska@suse.cz>
7525 * lto-wrapper.c (merge_flto_options): Factor out a new function.
7526 (merge_and_complain): Use it.
7527 (run_gcc): Merge also linker command line -flto=foo argument
7530 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
7532 * config/arm/arm.h (CPP_SPEC): Remove error message about
7533 -mlittle-endian/-mbig-endian conflict.
7535 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
7537 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7538 __ROP_PROTECT__ if -mrop-protect is selected.
7540 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
7542 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
7543 rop_hash_save_offset and rop_hash_size.
7544 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
7545 rop_hash_size and rop_hash_save_offset.
7546 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
7547 (rs6000_emit_prologue): Emit hashst[p] in prologue.
7548 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
7549 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
7551 (hashst): New define_insn.
7552 (hashchk): Likewise.
7554 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
7556 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7557 Disable shrink wrap when inserting ROP-protect instructions.
7558 * config/rs6000/rs6000.opt (mrop-protect): New option.
7559 (mprivileged): Likewise.
7560 * doc/invoke.texi: Document mrop-protect and mprivileged.
7562 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
7564 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
7567 2021-05-15 Martin Jambor <mjambor@suse.cz>
7570 2021-05-13 Martin Jambor <mjambor@suse.cz>
7572 PR tree-optimization/100453
7573 * tree-sra.c (sra_modify_assign): All const base accesses do not
7574 need refreshing, not just those from decl_pool.
7575 (sra_modify_assign): Do not refresh into a const base decl.
7577 2021-05-15 Jakub Jelinek <jakub@redhat.com>
7579 PR rtl-optimization/100342
7580 * regcprop.c (copy_value): When copying a source reg in a wider
7581 mode than it has recorded for the value, adjust recorded destination
7582 mode too or punt if !REG_CAN_CHANGE_MODE_P.
7584 2021-05-14 Jason Merrill <jason@redhat.com>
7586 * intl.h: Add comments.
7588 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7590 * config/aarch64/aarch64-simd.md
7591 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
7592 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
7593 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
7594 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
7595 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
7596 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
7597 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
7598 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
7599 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
7601 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7604 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
7605 boolean logic equivalent.
7606 (vtst_s16): Likewise.
7607 (vtst_s32): Likewise.
7608 (vtst_u8): Likewise.
7609 (vtst_u16): Likewise.
7610 (vtst_u32): Likewise.
7611 (vtst_p8): Likewise.
7612 (vtst_p16): Likewise.
7613 (vtstq_s8): Likewise.
7614 (vtstq_s16): Likewise.
7615 (vtstq_s32): Likewise.
7616 (vtstq_u8): Likewise.
7617 (vtstq_u16): Likewise.
7618 (vtstq_u32): Likewise.
7619 (vtstq_p8): Likewise.
7620 (vtstq_p16): Likewise.
7621 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
7622 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
7624 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7626 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
7627 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
7628 (aarch64_sqdmlsl2<mode>): Delete.
7629 (aarch64_sqdmlal2_lane<mode>): Merge this...
7630 (aarch64_sqdmlsl2_lane<mode>): ... And this...
7631 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
7632 (aarch64_sqdmlal2_laneq<mode>): Merge this...
7633 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
7634 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
7635 (aarch64_sqdmlal2_n<mode>): Merge this...
7636 (aarch64_sqdmlsl2_n<mode>): ... And this...
7637 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
7639 2021-05-13 Martin Sebor <msebor@redhat.com>
7641 PR middle-end/100574
7642 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
7645 2021-05-13 Martin Sebor <msebor@redhat.com>
7647 PR tree-optimization/93100
7649 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
7650 don't modify referenced objects.
7652 2021-05-13 Martin Jambor <mjambor@suse.cz>
7654 PR tree-optimization/100453
7655 * tree-sra.c (sra_modify_assign): All const base accesses do not
7656 need refreshing, not just those from decl_pool.
7657 (sra_modify_assign): Do not refresh into a const base decl.
7659 2021-05-13 Martin Liska <mliska@suse.cz>
7661 * tree-ssa-dom.c: Remove m_simplifier.
7663 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
7666 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
7667 canonicalize DImode inequality comparisons against the
7668 maximum integral value.
7670 2021-05-13 Jakub Jelinek <jakub@redhat.com>
7672 PR tree-optimization/98856
7673 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
7674 Expect V2DI and V4DI arithmetic right shifts to be emulated.
7675 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
7677 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
7678 expand_vec_perm_2perm_pblendv): New functions.
7679 (ix86_expand_vec_perm_const_1): Use them.
7680 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
7681 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
7682 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
7683 (ashrv4di3): New define_expand.
7684 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
7685 and !TARGET_AVX512VL expansion.
7687 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
7690 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
7691 sizes < 16 to a register when constructing vpcmov pattern.
7692 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
7694 2021-05-13 Martin Liska <mliska@suse.cz>
7696 * gcov-io.c (gcov_write_block): Remove.
7697 (gcov_write_words): Likewise.
7698 (gcov_read_words): Re-implement using gcov_read_bytes.
7699 (gcov_allocate): Remove.
7700 (GCOV_BLOCK_SIZE): Likewise.
7701 (struct gcov_var): Remove most of the fields.
7702 (gcov_position): Implement with ftell.
7703 (gcov_rewrite): Remove setting of start and offset fields.
7704 (from_file): Re-format.
7705 (gcov_open): Remove setbuf call. It should not be needed.
7706 (gcov_close): Remove internal buffer handling.
7707 (gcov_magic): Use __builtin_bswap32.
7708 (gcov_write_counter): Use directly gcov_write_unsigned.
7709 (gcov_write_string): Use direct fwrite and do not round
7711 (gcov_seek): Use directly fseek.
7712 (gcov_write_tag): Use gcov_write_unsigned directly.
7713 (gcov_write_length): Likewise.
7714 (gcov_write_tag_length): Likewise.
7715 (gcov_read_bytes): Use directly fread.
7716 (gcov_read_unsigned): Use gcov_read_words.
7717 (gcov_read_counter): Likewise.
7718 (gcov_read_string): Use gcov_read_bytes.
7719 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
7720 that size is not in bytes, but words (4B).
7721 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
7722 (GCOV_TAG_ARCS_LENGTH): Likewise.
7723 (GCOV_TAG_ARCS_NUM): Likewise.
7724 (GCOV_TAG_COUNTER_LENGTH): Likewise.
7725 (GCOV_TAG_COUNTER_NUM): Likewise.
7726 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
7728 2021-05-13 liuhongt <hongtao.liu@intel.com>
7731 * config/i386/sse.md (ssedoublevecmode): Add attribute for
7732 V64QI/V32HI/V16SI/V4DI.
7733 (ssehalfvecmode): Add attribute for V2DI/V2DF.
7734 (*vec_concatv4si_0): Extend to VI124_128.
7735 (*vec_concat<mode>_0): New pre-reload splitter.
7736 * config/i386/predicates.md (movq_parallel): New predicate.
7738 2021-05-13 Alexandre Oliva <oliva@adacore.com>
7740 * targhooks.c (default_zero_call_used_regs): Retry using
7741 successfully-zeroed registers as sources.
7743 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
7745 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
7747 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
7750 * gimple-range.cc (range_of_builtin_call): Skip out on
7751 processing __builtin_clz when varying.
7753 2021-05-12 Tom de Vries <tdevries@suse.de>
7756 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
7757 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
7758 to ptx_version_option.
7759 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
7760 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
7761 (define_insn "nvptx_vote_ballot"): Use sync variant for
7763 * config/nvptx/nvptx.opt (ptx_version): Add enum.
7765 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
7767 2021-05-12 Richard Biener <rguenther@suse.de>
7769 PR tree-optimization/100566
7770 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
7771 allow_back for all edge queries.
7773 2021-05-12 liuhongt <hongtao.liu@intel.com>
7776 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
7777 splitters for pblendvb of NOT mask register.
7779 2021-05-12 Richard Biener <rguenther@suse.de>
7781 PR tree-optimization/100519
7782 * tree-ssa-reassoc.c (can_associate_p): Split into...
7783 (can_associate_op_p): ... this
7784 (can_associate_type_p): ... and this.
7785 (is_reassociable_op): Call can_associate_op_p.
7786 (break_up_subtract_bb): Call the appropriate predicates.
7787 (reassociate_bb): Likewise.
7789 2021-05-12 Martin Liska <mliska@suse.cz>
7791 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
7792 (run_gcc): Use -flto argument detection for merged
7795 2021-05-12 Martin Liska <mliska@suse.cz>
7797 * lto-wrapper.c (print_lto_docs_link): New function.
7798 (run_gcc): Print warning about missing job server detection
7799 after we know NR of partitions. Do the same for -flto{,=1}.
7800 * opts.c (get_option_html_page): Support -flto option.
7802 2021-05-12 Martin Liska <mliska@suse.cz>
7804 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
7806 (append_option): Remove.
7807 (find_option): Rework to use the vector type.
7808 (remove_option): Remove.
7809 (merge_and_complain): Use vectors for cl_decoded_option data
7811 (append_compiler_options): Likewise.
7812 (append_diag_options): Likewise.
7813 (append_linker_options): Likewise.
7814 (append_offload_options): Likewise.
7815 (compile_offload_image): Likewise.
7816 (compile_images_for_offload_targets): Likewise.
7817 (find_and_merge_options): Likewise.
7818 (run_gcc): Likewise.
7820 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
7823 * dwarf2out.c (dwarf2out_finish): Set
7824 have_multiple_function_sections with multi-range text_section.
7826 2021-05-12 Martin Liska <mliska@suse.cz>
7829 * Makefile.in: Remove version.h from linker command line.
7831 2021-05-12 Richard Biener <rguenther@suse.de>
7833 PR middle-end/100547
7834 * rtl.h (rtvec_alloc): Make argument size_t.
7835 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
7837 2021-05-12 Jakub Jelinek <jakub@redhat.com>
7839 PR middle-end/100508
7840 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
7841 type, don't reuse DECL_RTL if it has different mode, instead force
7842 creation of a new DEBUG_EXPR.
7844 2021-05-12 Jakub Jelinek <jakub@redhat.com>
7845 Marc Glisse <marc.glisse@inria.fr>
7847 PR tree-optimization/94589
7848 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
7849 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
7851 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
7854 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
7855 * config/i386/mmx.md (MMXMODE124): New mode iterator.
7857 (mmxintvecmode): New mode attribute.
7858 (mmxintvecmodelower): Ditto.
7859 (*mmx_maskcmpv2sf3_comm): New insn pattern.
7860 (*mmx_maskcmpv2sf3): Ditto.
7861 (vec_cmpv2sfv2si): New expander.
7862 (vcond<V2FI:mode>v2si): Ditto.
7863 (mmx_vlendvps): New insn pattern.
7864 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
7865 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
7866 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
7868 2021-05-11 Martin Sebor <msebor@redhat.com>
7871 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
7873 2021-05-11 Richard Biener <rguenther@suse.de>
7875 * gimple-fold.c (gimple_fold_call): Do not call
7876 maybe_fold_reference on call arguments or the static chain.
7877 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
7880 2021-05-11 Martin Liska <mliska@suse.cz>
7882 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
7883 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
7884 (DEF_HSAIL_SAT_BUILTIN): Likewise.
7885 (DEF_HSAIL_INTR_BUILTIN): Likewise.
7886 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
7887 * doc/frontends.texi: Remove BRIG.
7888 * doc/install.texi: Likewise.
7889 * doc/invoke.texi: Likewise.
7890 * doc/standards.texi: Likewise.
7891 * brig-builtins.def: Removed.
7892 * brig/ChangeLog: Removed.
7893 * brig/Make-lang.in: Removed.
7894 * brig/brig-builtins.h: Removed.
7895 * brig/brig-c.h: Removed.
7896 * brig/brig-lang.c: Removed.
7897 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
7898 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
7899 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
7900 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
7901 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
7902 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
7903 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
7904 * brig/brigfrontend/brig-comment-handler.cc: Removed.
7905 * brig/brigfrontend/brig-control-handler.cc: Removed.
7906 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
7907 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
7908 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
7909 * brig/brigfrontend/brig-function-handler.cc: Removed.
7910 * brig/brigfrontend/brig-function.cc: Removed.
7911 * brig/brigfrontend/brig-function.h: Removed.
7912 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
7913 * brig/brigfrontend/brig-label-handler.cc: Removed.
7914 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
7915 * brig/brigfrontend/brig-machine.c: Removed.
7916 * brig/brigfrontend/brig-machine.h: Removed.
7917 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
7918 * brig/brigfrontend/brig-module-handler.cc: Removed.
7919 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
7920 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
7921 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
7922 * brig/brigfrontend/brig-to-generic.cc: Removed.
7923 * brig/brigfrontend/brig-to-generic.h: Removed.
7924 * brig/brigfrontend/brig-util.cc: Removed.
7925 * brig/brigfrontend/brig-util.h: Removed.
7926 * brig/brigfrontend/brig-variable-handler.cc: Removed.
7927 * brig/brigfrontend/hsa-brig-format.h: Removed.
7928 * brig/brigfrontend/phsa.h: Removed.
7929 * brig/brigspec.c: Removed.
7930 * brig/config-lang.in: Removed.
7931 * brig/gccbrig.texi: Removed.
7932 * brig/lang-specs.h: Removed.
7933 * brig/lang.opt: Removed.
7935 2021-05-11 Richard Biener <rguenther@suse.de>
7938 * ipa-param-manipulation.c
7939 (ipa_param_body_adjustments::modify_call_stmt): Avoid
7940 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
7941 via gimple_call_lhs_ptr.
7943 2021-05-11 Alex Coplan <alex.coplan@arm.com>
7946 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
7947 Avoid emitting CFA adjusts on the sp if we have the fp.
7949 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
7951 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
7952 (VMULD): New iterator.
7953 (VCOND): Handle V4HF and V8HF.
7954 (VCONQ): Fix entry for V2SF.
7955 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
7956 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
7957 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
7958 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
7959 Use a 128-bit vector mode for the indexed operand. Use stype for
7960 the scheduling type.
7962 2021-05-11 Richard Biener <rguenther@suse.de>
7964 * gimple-fold.c (maybe_fold_reference): Only return
7965 is_gimple_min_invariant values.
7967 2021-05-11 Richard Biener <rguenther@suse.de>
7969 PR middle-end/100509
7970 * gimple-fold.c (fold_gimple_assign): Only call
7971 get_symbol_constant_value on register type symbols.
7973 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7974 Joe Ramsay <joe.ramsay@arm.com>
7977 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
7978 (__arm_vcmpneq): Remove duplicate definition.
7979 (__arm_vstrwq_scatter_offset_p): Likewise.
7980 (__arm_vmaxq_x): Likewise.
7981 (__arm_vmlsdavaq): Likewise.
7982 (__arm_vmlsdavaxq): Likewise.
7983 (__arm_vmlsdavq_p): Likewise.
7984 (__arm_vmlsdavxq_p): Likewise.
7985 (__arm_vrmlaldavhaq): Likewise.
7986 (__arm_vstrbq_p): Likewise.
7987 (__arm_vstrbq_scatter_offset): Likewise.
7988 (__arm_vstrbq_scatter_offset_p): Likewise.
7989 (__arm_vstrdq_scatter_offset): Likewise.
7990 (__arm_vstrdq_scatter_offset_p): Likewise.
7991 (__arm_vstrdq_scatter_shifted_offset): Likewise.
7992 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
7994 2021-05-11 Jakub Jelinek <jakub@redhat.com>
7996 PR middle-end/100471
7997 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
7998 is 0, bypass the reduction loop including
7999 GOMP_taskgroup_reduction_unregister call.
8001 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8003 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
8005 (rs6000_density_test): Early return if costing_for_scalar is true.
8006 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
8008 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8010 * doc/tm.texi: Regenerated.
8011 * target.def (init_cost): Add new parameter costing_for_scalar.
8012 * targhooks.c (default_init_cost): Adjust for new parameter.
8013 * targhooks.h (default_init_cost): Likewise.
8014 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
8015 (vect_compute_single_scalar_iteration_cost): Likewise.
8016 (vect_analyze_loop_2): Likewise.
8017 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
8018 (vect_bb_vectorization_profitable_p): Likewise.
8019 * tree-vectorizer.h (init_cost): Likewise.
8020 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
8021 * config/i386/i386.c (ix86_init_cost): Likewise.
8022 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
8024 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8026 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
8027 vect_nonmem and moved into...
8028 (struct rs6000_cost_data): ...here.
8029 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
8030 (rs6000_add_stmt_cost): Likewise.
8031 (rs6000_finish_cost): Likewise.
8033 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
8035 * range-op.cc (get_bool_state): Adjust head comment.
8036 (operator_not_equal::op1_range): Fix comment.
8037 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
8039 2021-05-10 Martin Sebor <msebor@redhat.com>
8041 PR middle-end/100425
8042 PR middle-end/100510
8043 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
8044 (pass_walloca::xlimit_certain_p): ...to this.
8045 (pass_walloca::gate): Execute for any kind of handled warning.
8046 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
8047 warnings when xlimit_certain_p is set.
8049 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
8051 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
8052 Return ALTIVEC_REGS if that is best_class.
8053 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
8055 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8057 * config/arm/arm.h (CPP_SPEC): Remove error message about
8060 2021-05-10 Martin Jambor <mjambor@suse.cz>
8062 * ipa-prop.h (IPA_NODE_REF): Removed.
8063 (IPA_NODE_REF_GET_CREATE): Likewise.
8064 (IPA_EDGE_REF): Likewise.
8065 (IPA_EDGE_REF_GET_CREATE): Likewise.
8066 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
8067 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
8068 use of ipa_node_params_sum.
8069 (ipcp_versionable_function_p): Likewise.
8070 (push_node_to_stack): Likewise.
8071 (pop_node_from_stack): Likewise.
8072 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
8073 direct use of ipa_node_params_sum.
8074 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
8075 ipa_node_params_sum.
8076 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
8078 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
8079 use of ipa_node_params_sum.
8080 (self_recursively_generated_p): Likewise.
8081 (propagate_scalar_across_jump_function): Likewise.
8082 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
8083 direct use of ipa_edge_args_sum, moved the lookup after the early
8084 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
8085 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
8086 direct uses of ipa_node_params_sum.
8087 (propagate_vr_across_jump_function): Likewise.
8088 (propagate_aggregate_lattice): Likewise.
8089 (propagate_aggs_across_jump_function): Likewise.
8090 (propagate_constants_across_call): Likewise, also replaced
8091 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
8092 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
8093 of ipa_node_params_sum.
8094 (estimate_local_effects): Likewise.
8095 (add_all_node_vals_to_toposort): Likewise.
8096 (propagate_constants_topo): Likewise.
8097 (ipcp_propagate_stage): Likewise.
8098 (ipcp_discover_new_direct_edges): Likewise.
8099 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
8100 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
8101 (get_info_about_necessary_edges): Likewise.
8102 (want_remove_some_param_p): Likewise.
8103 (create_specialized_node): Likewise.
8104 (self_recursive_pass_through_p): Likewise.
8105 (self_recursive_agg_pass_through_p): Likewise.
8106 (find_more_scalar_values_for_callers_subset): Likewise and also
8107 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
8108 case replacing two of those with a single query.
8109 (find_more_contexts_for_caller_subset): Likewise for the
8110 ipa_polymorphic_call_context overload.
8111 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
8112 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
8113 ipa_node_params_sum.
8114 (find_aggregate_values_for_callers_subset): Likewise, also reusing
8115 results of ipa_edge_args_sum->get.
8116 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
8117 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
8118 direct use of ipa_edge_args_sum.
8119 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
8120 summary query after the early exit and reused the result later.
8121 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
8122 ipa_node_params_sum.
8123 (decide_whether_version_node): Likewise. Removed re-querying for
8124 summaries after cloning.
8125 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
8126 ipa_node_params_sum.
8127 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
8129 (identify_dead_nodes): Likewise.
8130 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
8131 ipa_node_params_sum.
8132 (ipcp_store_vr_results): Likewise.
8133 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
8134 (ipa_fn_summary_t::duplicate): Likewise.
8135 (analyze_function_body): Likewise.
8136 (estimate_calls_size_and_time): Likewise.
8137 (ipa_cached_call_context::duplicate_from): Likewise.
8138 (ipa_call_context::equal_to): Likewise.
8139 (remap_edge_params): Likewise.
8140 (ipa_merge_fn_summary_after_inlining): Likewise.
8141 (inline_read_section): Likewise.
8142 * ipa-icf.c (sem_function::param_used_p): Likewise.
8143 * ipa-modref.c (compute_parm_map): Likewise.
8144 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
8146 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
8147 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
8149 * ipa-profile.c (check_argument_count): Likewise.
8150 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
8151 with a direct use of ipa_node_params_sum.
8152 (ipa_initialize_node_params): Likewise.
8153 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
8154 direct use of ipa_edge_args_sum and reused the query result.
8155 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
8156 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
8157 direct use of ipa_edge_args_sum.
8158 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
8159 ipa_node_params_sum and reused the result of the query.
8160 (ipa_analyze_node): Likewise.
8161 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
8162 of ipa_node_params_sum.
8163 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
8164 direct uses of ipa_edge_args_sum.
8165 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
8166 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
8167 direct use of ipa_edge_args_sum. Removed superficial re-querying the
8169 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
8170 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
8172 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
8173 direct use of ipa_edge_args_sum.
8174 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
8175 use of ipa_node_params_sum.
8176 (ipa_print_node_params): Likewise.
8177 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
8178 direct uses of ipa_edge_args_sum.
8179 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
8181 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
8182 ipa_node_params_sum.
8183 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
8184 scopes where it is used.
8186 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
8188 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
8189 <case E_V2SImode>: Force op_true to register.
8191 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8193 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
8194 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
8195 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
8197 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
8198 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
8199 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
8200 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
8201 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
8202 (mve_vcmpneq_n_f<mode>): Remove.
8203 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
8204 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
8205 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
8207 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8209 * config/arm/iterators.md (MVE_COMPARISONS): New.
8211 (mve_cmp_type): New.
8212 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
8214 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
8215 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
8216 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
8217 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
8218 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
8219 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
8220 (mve_vcmpneq_n_<mode>): Remove.
8222 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8224 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
8225 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
8226 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
8229 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8231 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
8232 (vcmpneq_n_u): Likewise.
8233 (vcmpeqq_u,): Likewise.
8234 (vcmpeqq_n_u): Likewise.
8235 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
8236 VCMPEQQ_N_U and VCMPNEQ_N_U.
8237 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
8238 (mve_vcmpeqq_n): Likewise.
8239 (mve_vcmpeqq): Likewise.
8240 (mve_vcmpneq_n): Likewise.
8242 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8244 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
8245 the 's' version of the builtin.
8247 2021-05-10 Richard Biener <rguenther@suse.de>
8249 PR tree-optimization/100492
8250 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8251 Find nothing when the loop contains an irreducible region.
8253 2021-05-10 Richard Biener <rguenther@suse.de>
8255 PR middle-end/100464
8257 * gimple-fold.c (canonicalize_constructor_val): Do not set
8260 2021-05-10 Richard Biener <rguenther@suse.de>
8262 PR tree-optimization/100434
8263 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8265 (dse_optimize_stmt): Handle call LHS by dropping the
8266 LHS or the whole call if it doesn't have other
8268 (pass_dse::execute): Adjust.
8270 2021-05-10 Martin Liska <mliska@suse.cz>
8272 * Makefile.in: Add missing genversion rule.
8274 2021-05-10 Alex Coplan <alex.coplan@arm.com>
8277 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
8278 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
8280 2021-05-10 Martin Liska <mliska@suse.cz>
8282 * builtins.c (is_builtin_name): Use startswith
8283 function instead of strncmp.
8284 * collect2.c (main): Likewise.
8285 (has_lto_section): Likewise.
8286 (scan_libraries): Likewise.
8287 * coverage.c (coverage_checksum_string): Likewise.
8288 (coverage_init): Likewise.
8289 * dwarf2out.c (is_cxx): Likewise.
8290 (gen_compile_unit_die): Likewise.
8291 * gcc-ar.c (main): Likewise.
8292 * gcc.c (init_spec): Likewise.
8293 (read_specs): Likewise.
8294 (execute): Likewise.
8295 (check_live_switch): Likewise.
8296 * genattrtab.c (write_attr_case): Likewise.
8297 (IS_ATTR_GROUP): Likewise.
8298 * gencfn-macros.c (main): Likewise.
8299 * gengtype.c (type_for_name): Likewise.
8300 (gen_rtx_next): Likewise.
8301 (get_file_langdir): Likewise.
8302 (write_local): Likewise.
8303 * genmatch.c (get_operator): Likewise.
8304 (get_operand_type): Likewise.
8305 (expr::gen_transform): Likewise.
8306 * genoutput.c (validate_optab_operands): Likewise.
8307 * incpath.c (add_sysroot_to_chain): Likewise.
8308 * langhooks.c (lang_GNU_C): Likewise.
8309 (lang_GNU_CXX): Likewise.
8310 (lang_GNU_Fortran): Likewise.
8311 (lang_GNU_OBJC): Likewise.
8312 * lto-wrapper.c (run_gcc): Likewise.
8313 * omp-general.c (omp_max_simt_vf): Likewise.
8314 * omp-low.c (omp_runtime_api_call): Likewise.
8315 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
8316 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
8317 * real.c (real_from_string): Likewise.
8318 * selftest.c (assert_str_startswith): Likewise.
8319 * timevar.c (timer::validate_phases): Likewise.
8320 * tree.c (get_file_function_name): Likewise.
8321 * ubsan.c (ubsan_use_new_style_p): Likewise.
8322 * varasm.c (default_function_rodata_section): Likewise.
8323 (incorporeal_function_p): Likewise.
8324 (default_section_type_flags): Likewise.
8325 * system.h (startswith): Define startswith.
8327 2021-05-10 Martin Liska <mliska@suse.cz>
8329 * bitmap.h (class auto_bitmap): Remove
8330 __cplusplus >= 201103.
8331 * config/aarch64/aarch64.c: Likewise.
8332 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
8334 * sbitmap.h: Likewise.
8336 2021-05-10 Martin Liska <mliska@suse.cz>
8338 * Makefile.in: Rename gcov-iov to genversion and depend
8339 on version.h (instead of gcov-iov.h).
8340 * gcov-io.h: Include version.h instread of gcov-iov.h.
8341 * gengtype-state.c (read_state_version): Likewise.
8342 * gcov-iov.c: Moved to...
8343 * genversion.c: ...here.
8344 * lto-streamer.h (LTO_major_version): Define it with
8346 * version.c: Removed.
8347 * version.h: Removed.
8349 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8351 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
8352 * config/arc/simdext.md (VCT): Add predicates for iterator
8356 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
8357 (<voptab>v2si3): New patterns.
8359 (reduc_plus_scal_v4hi): Likewise.
8360 (reduc_plus_scal_v2si): Likewise.
8361 (vec_duplicatev2si): Likewise.
8362 (vec_duplicatev4hi): Likewise.
8364 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8366 * config/arc/simdext.md: Format and cleanup file.
8368 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8370 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
8371 only when munaligned-access option is on.
8372 (movmisalign<mode>): Likewise.
8374 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8376 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
8378 * config/arc/arc.c (arc_reorg): Remove underscore from string.
8380 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8382 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8383 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
8384 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
8388 (clzsi2): Use fls instruction when available.
8389 (arc_clzsi2): Likewise.
8391 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8393 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
8395 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
8397 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
8399 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
8401 PR middle-end/100467
8402 * toplev.c (compile_file): Call insn_locations_init before
8403 targetm.asm_out.code_end.
8405 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
8408 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
8410 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
8412 2021-05-07 Jakub Jelinek <jakub@redhat.com>
8413 Andrew Stubbs <amd@codesourcery.com>
8416 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
8417 emit_move_insn operands.
8419 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
8421 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
8422 location for the outgoing edges of an empty block.
8423 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
8424 type by means of the get_array_descr_info langhook, if it is set and
8425 returns true. Remove obsolete code dealing with unnamed subtypes.
8427 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8429 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
8430 (sbr_vector): Renamed from ssa_block_cache.
8431 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
8432 (ssa_block_ranges::~ssa_block_ranges): Remove.
8433 (sbr_vector::set_bb_range): Use varying and undefined cached values.
8434 (ssa_block_ranges::set_bb_varying): Remove.
8435 (sbr_vector::get_bb_range): Adjust assert.
8436 (sbr_vector::bb_range_p): Adjust assert.
8437 (~block_range_cache): No freeing loop required.
8438 (block_range_cache::get_block_ranges): Remove.
8439 (block_range_cache::set_bb_range): Inline get_block_ranges.
8440 (block_range_cache::set_bb_varying): Remove.
8441 * gimple-range-cache.h (set_bb_varying): Remove prototype.
8442 * value-range.h (irange_allocator::get_memory): New.
8444 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8446 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
8447 dominator tree is available and requested.
8448 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
8449 (ranger_cache::fill_block_cache): Don't search dom tree here either.
8450 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
8452 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8454 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
8455 only PHI nodes better.
8457 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8459 * gimple-range-edge.h (gimple_outgoing_range): Rename from
8461 (gcond_edge_range): Export prototype.
8462 * gimple-range-edge.cc (gcond_edge_range): New.
8463 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
8464 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
8466 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8468 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
8469 default range into a temp and allocate only what is needed.
8471 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8473 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
8475 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
8477 * gimple-range.h (gimple_range_global): Pick up parameter initial
8478 values, and use-before defined locals are UNDEFINED.
8480 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
8482 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
8484 * tree.h (reverse_storage_order_for_component_p): Return false if
8485 the type is a pointer.
8487 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
8489 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
8491 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
8494 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
8495 Handle V8QI, V4HI and V2SI modes.
8496 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
8497 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
8498 * config/i386/i386.md (unspec): ... here.
8500 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
8501 Tom de Vries <tdevries@suse.de>
8503 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
8504 a truth_value_p reduction variable is nonintegral.
8506 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
8509 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
8510 Return false for mode sizes < 16.
8512 2021-05-07 Jakub Jelinek <jakub@redhat.com>
8515 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
8517 2021-05-06 Martin Jambor <mjambor@suse.cz>
8519 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
8520 when there is no function summary.
8521 (ipa_sra_summarize_function): produce edge summaries even when
8524 2021-05-06 Tom Tromey <tom@tromey.com>
8526 * godump.c (string_hash_eq): Remove.
8527 (go_finish): Use htab_eq_string.
8529 2021-05-06 Tom Tromey <tom@tromey.com>
8531 * gengtype-state.c (read_state): Use htab_eq_string.
8532 (string_eq): Remove.
8534 2021-05-06 Tom Tromey <tom@tromey.com>
8536 * gensupport.c (htab_eq_string): Remove.
8538 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
8541 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
8542 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
8543 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
8544 set_ignored_loc callbacks.
8545 * debug.c (do_nothing_debug_hooks): Likewise.
8546 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8547 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
8548 (in_text_section_p, last_text_label, last_cold_label,
8549 switch_text_ranges, switch_cold_ranges): New data items.
8550 (dwarf2out_note_section_used): Remove.
8551 (dwarf2out_begin_prologue): Set fde->ignored_debug and
8553 (mark_ignored_debug_section): New helper function.
8554 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
8555 mark_ignored_debug_section.
8556 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
8557 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
8558 (size_of_aranges): Adjust formula for multi-part text ranges size.
8559 (output_aranges): Output multi-part text ranges.
8560 (dwarf2out_set_ignored_loc): New callback function.
8561 (dwarf2out_finish): Output multi-part text ranges.
8562 (dwarf2out_c_finalize): Clear new data items.
8563 * final.c (final_start_function_1): Call set_ignored_loc callback.
8564 (final_scan_insn_1): Likewise.
8565 * ggc-page.c (gt_ggc_mx): New helper function.
8566 * stringpool.c (gt_pch_nx): Likewise.
8568 2021-05-06 Richard Biener <rguenther@suse.de>
8570 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
8571 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
8572 (TV_TREE_INTO_SSA): New.
8573 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
8574 (rewrite_blocks): Likewise.
8575 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
8577 2021-05-06 Jakub Jelinek <jakub@redhat.com>
8579 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
8580 abs_replacement, xor_replacement,
8581 cond_removal_in_popcount_clz_ctz_pattern,
8582 replace_phi_edge_with_variable): Change type of phi argument from
8585 2021-05-06 Richard Biener <rguenther@suse.de>
8587 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
8588 Output an opt-info message.
8589 (do_split_loop_on_cond): Likewise.
8590 (tree_ssa_split_loops): Update SSA form here.
8592 2021-05-06 Richard Biener <rguenther@suse.de>
8594 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
8595 return variable removal.
8597 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
8599 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
8600 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
8601 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
8603 * config/s390/s390.c (s390_const_operand_ok): Remove unused
8606 2021-05-06 Jakub Jelinek <jakub@redhat.com>
8608 PR tree-optimization/94589
8609 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
8610 spaceship_replacement.
8611 (cond_only_block_p, spaceship_replacement): New functions.
8613 2021-05-06 Richard Biener <rguenther@suse.de>
8616 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
8617 dealing with a debug use and only query existing addresses
8619 (lower_emutls_1): Avoid splitting out addresses for debug
8620 stmts, reset the debug stmt when we fail to find existing
8622 (lower_emutls_phi_arg): Set wi.stmt.
8624 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
8627 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
8628 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
8629 (stack_protect_test): Use cbranch helper.
8631 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
8634 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
8635 always return the establisher frame for __builtin_frame_address (0).
8637 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
8640 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
8641 (ix86_cpu_model_var): Likewise.
8642 (ix86_cpu_features2_type_node): Likewise.
8643 (ix86_cpu_features2_var): Likewise.
8644 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
8647 2021-05-05 Martin Sebor <msebor@redhat.com>
8649 * passes.def (pass_warn_printf): Run after SSA.
8651 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8653 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
8654 * config/arm/predicates.md (minus_one_operand): New predicate.
8656 2021-05-05 Jeff Law <jlaw@tachyum.com>
8658 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
8660 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
8662 PR rtl-optimization/100263
8663 * postreload.c (move2add_valid_value_p): Ensure register can
8666 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
8668 PR rtl-optimization/100411
8669 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
8670 and beginning of function markers.
8672 2021-05-05 Jeff Law <jlaw@tachyum.com>
8674 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
8675 * config/cr16/cr16.c (notice_update_cc): Remove.
8676 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
8678 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
8681 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8682 Handle V8QI, V4HI and V2SI modes.
8683 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
8684 (ix86_build_signbit_mask): Ditto.
8685 * config/i386/mmx.md (MMXMODE14): New mode iterator.
8686 (<smaxmin:code><MMXMODE14:mode>3): New expander.
8687 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
8688 (<umaxmin:code><MMXMODE24:mode>3): New expander.
8689 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
8690 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
8691 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8692 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8693 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8694 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8696 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
8698 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
8699 not expand the VALUE_EXPR of variables put in the non-local frame.
8700 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
8701 to be ignored for debug info, ensure its variable offsets are not.
8703 2021-05-05 Richard Biener <rguenther@suse.de>
8705 PR tree-optimization/79333
8706 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8707 Fold stmt following SSA edges.
8709 2021-05-05 Richard Biener <rguenther@suse.de>
8711 PR middle-end/100394
8712 * calls.c (expand_call): Preserve possibly throwing calls.
8713 * cfgexpand.c (expand_call_stmt): When a call can throw signal
8714 RTL expansion there are side-effects.
8715 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
8716 mark all possibly throwing stmts necessary unless we can elide
8718 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
8719 -fdelete-dead-exceptions.
8720 * tree.h (DECL_PURE_P): Add note about exceptions.
8722 2021-05-05 Alexandre Oliva <oliva@adacore.com>
8724 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
8727 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
8729 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
8730 get_fnname_from_decl for name of thunk.
8731 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
8732 and ASM_OUTPUT_LABEL.
8733 (rs6000_xcoff_declare_function_name): Use assemble_name and
8735 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
8736 (rs6000_xcoff_encode_section_info): Don't add mapping class
8737 for aliases. Always add [DS] mapping class to primary
8739 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
8741 2021-05-04 Martin Sebor <msebor@redhat.com>
8743 PR middle-end/100307
8744 * builtins.c (compute_objsize_r): Clear base0 for pointers.
8746 2021-05-04 Jeff Law <jlaw@tachyum.com>
8748 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
8750 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
8752 * caller-save.c: Remove CC0.
8753 * cfgcleanup.c: Remove CC0.
8754 * cfgrtl.c: Remove CC0.
8755 * combine.c: Remove CC0.
8756 * compare-elim.c: Remove CC0.
8757 * conditions.h: Remove CC0.
8758 * config/h8300/h8300.h: Remove CC0.
8759 * config/h8300/h8300-protos.h: Remove CC0.
8760 * config/h8300/peepholes.md: Remove CC0.
8761 * config/i386/x86-tune-sched.c: Remove CC0.
8762 * config/m68k/m68k.c: Remove CC0.
8763 * config/rl78/rl78.c: Remove CC0.
8764 * config/sparc/sparc.c: Remove CC0.
8765 * config/xtensa/xtensa.c: Remove CC0.
8766 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
8767 RTL where that is used as a placeholder only.
8768 * cprop.c: Remove CC0.
8769 * cse.c: Remove CC0.
8770 * cselib.c: Remove CC0.
8771 * df-problems.c: Remove CC0.
8772 * df-scan.c: Remove CC0.
8773 * doc/md.texi: Remove CC0. Adjust an example.
8774 * doc/rtl.texi: Remove CC0. Adjust an example.
8775 * doc/tm.texi: Regenerate.
8776 * doc/tm.texi.in: Remove CC0.
8777 * emit-rtl.c: Remove CC0.
8778 * final.c: Remove CC0.
8779 * fwprop.c: Remove CC0.
8780 * gcse-common.c: Remove CC0.
8781 * gcse.c: Remove CC0.
8782 * genattrtab.c: Remove CC0.
8783 * genconfig.c: Remove CC0.
8784 * genemit.c: Remove CC0.
8785 * genextract.c: Remove CC0.
8786 * gengenrtl.c: Remove CC0.
8787 * genrecog.c: Remove CC0.
8788 * haifa-sched.c: Remove CC0.
8789 * ifcvt.c: Remove CC0.
8790 * ira-costs.c: Remove CC0.
8791 * ira.c: Remove CC0.
8792 * jump.c: Remove CC0.
8793 * loop-invariant.c: Remove CC0.
8794 * lra-constraints.c: Remove CC0.
8795 * lra-eliminations.c: Remove CC0.
8796 * optabs.c: Remove CC0.
8797 * postreload-gcse.c: Remove CC0.
8798 * postreload.c: Remove CC0.
8799 * print-rtl.c: Remove CC0.
8800 * read-rtl-function.c: Remove CC0.
8801 * reg-notes.def: Remove CC0.
8802 * reg-stack.c: Remove CC0.
8803 * reginfo.c: Remove CC0.
8804 * regrename.c: Remove CC0.
8805 * reload.c: Remove CC0.
8806 * reload1.c: Remove CC0.
8807 * reorg.c: Remove CC0.
8808 * resource.c: Remove CC0.
8809 * rtl.c: Remove CC0.
8810 * rtl.def: Remove CC0.
8811 * rtl.h: Remove CC0.
8812 * rtlanal.c: Remove CC0.
8813 * sched-deps.c: Remove CC0.
8814 * sched-rgn.c: Remove CC0.
8815 * shrink-wrap.c: Remove CC0.
8816 * simplify-rtx.c: Remove CC0.
8817 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
8818 CC_STATUS_MDEP, and CC_STATUS.
8819 * target.def: Remove CC0.
8820 * valtrack.c: Remove CC0.
8821 * var-tracking.c: Remove CC0.
8823 2021-05-04 Richard Biener <rguenther@suse.de>
8825 PR tree-optimization/100414
8826 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
8828 (tree_ssa_phiopt_worker): But unconditionally here.
8830 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
8832 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
8833 && and || with floating-point and complex arguments.
8835 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
8837 * tree-inline.c (insert_debug_decl_map): Delete.
8838 (copy_debug_stmt): Minor tweak.
8839 (setup_one_parameter): Do not use a variable if the value is either
8840 a read-only DECL or a non-addressable local variable in the caller.
8841 In this case, insert the debug-only variable in the map manually.
8842 (expand_call_inline): Do not generate a CLOBBER for these values.
8843 * tree-inline.h (debug_map): Minor tweak.
8845 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
8847 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
8848 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
8850 2021-05-04 Richard Biener <rguenther@suse.de>
8852 PR tree-optimization/100329
8853 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
8855 (insert_stmt_after): Assert we're not running into asm goto.
8857 2021-05-04 Richard Biener <rguenther@suse.de>
8859 PR tree-optimization/100398
8860 * tree-ssa-dse.c (pass_dse::execute): Preserve control
8863 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8865 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
8867 2021-05-04 Alexandre Oliva <oliva@adacore.com>
8869 * builtins.c (try_store_by_multiple_pieces): New.
8870 (expand_builtin_memset_args): Use it. If target_char_cast
8871 fails, proceed as for non-constant val. Pass len's ctz to...
8872 * expr.c (clear_storage_hints): ... this. Try store by
8873 multiple pieces after setmem.
8874 (clear_storage): Adjust.
8875 * expr.h (clear_storage_hints): Likewise.
8876 (try_store_by_multiple_pieces): Declare.
8877 * passes.def: Replace the last copy_prop with ccp.
8879 2021-05-03 Tom de Vries <tdevries@suse.de>
8882 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
8885 2021-05-03 Richard Biener <rguenther@suse.de>
8887 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
8889 2021-05-03 Richard Biener <rguenther@suse.de>
8891 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
8892 (dse_dom_walker): Remove.
8893 (dse_dom_walker::dse_optimize_stmt): Rename...
8894 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
8895 (dse_dom_walker::before_dom_children): Inline ...
8896 (pass_dse::execute): ... here. Perform a reverse program
8899 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
8902 * configure: Regenerated.
8904 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
8907 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
8908 (s390_md_asm_adjust): Handle hard registers.
8910 2021-05-03 Jakub Jelinek <jakub@redhat.com>
8912 PR tree-optimization/100382
8913 * tree-ssa-dse.c: Include tree-eh.h.
8914 (dse_dom_walker::before_dom_children): Don't remove stmts if
8915 stmt_unremovable_because_of_non_call_eh_p is true.
8917 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
8919 * varasm.c (compute_reloc_for_var): Split out from...
8920 (get_variable_section): Use it.
8921 * output.h (compute_reloc_for_var): Declare.
8922 * config/rs6000/rs6000-protos.h
8923 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
8925 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
8926 Don't append storage mapping class to symbol.
8927 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
8928 Don't convert TLS BSS to common.
8929 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
8930 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
8932 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
8934 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
8935 If align is 0 from TLS class, use the same rules as varasm.c
8936 If not common, switch to BSS section manually.
8937 If common, emit appropriate comm or lcomm directive.
8938 (rs6000_xcoff_encode_section_info): Add logic to append all
8939 storage mapping classes.
8940 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
8941 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8942 rs6000_xcoff_asm_output_aligned_decl_common.
8943 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8944 rs6000_xcoff_asm_output_aligned_decl_common.
8945 (ASM_OUTPUT_TLS_COMMON): Use
8946 rs6000_xcoff_asm_output_aligned_decl_common.
8948 2021-05-02 Jakub Jelinek <jakub@redhat.com>
8951 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
8952 as first argument of pseudo_node_t constructors.
8954 2021-05-02 Jakub Jelinek <jakub@redhat.com>
8957 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
8959 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
8961 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
8962 (gt_pch_nx (int_range<1> *&)): New.
8963 (gt_ggc_mx (int_range<1> *&)): New.
8964 * value-range.h (class irange): Add GTY support for
8967 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
8969 * doc/options.texi (Negative): Change either or to both and.
8971 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
8973 * config/aarch64/aarch64-simd-builtins.def: Add
8974 float_ml[as][q]_laneq builtin generator macros.
8975 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
8976 (aarch64_float_mla_laneq<mode>): Define.
8977 (aarch64_float_mls_laneq<mode>): Define.
8978 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
8979 instead of GCC vector extensions.
8980 (vmlaq_laneq_f32): Likewise.
8981 (vmls_laneq_f32): Likewise.
8982 (vmlsq_laneq_f32): Likewise.
8984 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
8986 * config/aarch64/aarch64-simd-builtins.def: Add
8987 float_ml[as]_lane builtin generator macros.
8988 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
8990 (mul_lane<mode>3): This, and re-order arguments.
8991 (aarch64_float_mla_lane<mode>): Define.
8992 (aarch64_float_mls_lane<mode>): Define.
8993 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
8994 instead of GCC vector extensions.
8995 (vmlaq_lane_f32): Likewise.
8996 (vmls_lane_f32): Likewise.
8997 (vmlsq_lane_f32): Likewise.
8999 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9001 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
9002 builtin generator macros.
9003 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
9005 (aarch64_float_mls<mode>): Define.
9006 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
9007 instead of relying on GCC vector extensions.
9008 (vmla_f64): Likewise.
9009 (vmlaq_f32): Likewise.
9010 (vmlaq_f64): Likewise.
9011 (vmls_f32): Likewise.
9012 (vmls_f64): Likewise.
9013 (vmlsq_f32): Likewise.
9014 (vmlsq_f64): Likewise.
9015 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
9017 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9019 * config/aarch64/aarch64-simd-builtins.def: Add
9020 float_ml[as]_n_builtin generator macros.
9021 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
9023 (mul_n<mode>3): This, and re-order arguments.
9024 (aarch64_float_mla_n<mode>): Define.
9025 (aarch64_float_mls_n<mode>): Define.
9026 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
9027 instead of inline asm.
9028 (vmlaq_n_f32): Likewise.
9029 (vmls_n_f32): Likewise.
9030 (vmlsq_n_f32): Likewise.
9032 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
9034 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
9035 builtin generator macros.
9036 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
9037 (aarch64_pmull_hiv16qi_insn): Define.
9038 (aarch64_pmull_hiv16qi): Define.
9039 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
9040 instead of inline asm.
9041 (vmull_p8): Likewise.
9043 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
9045 * config/avr/avr.md: Adjust peepholes to match and
9046 generate parallels with clobber of REG_CC.
9047 (mov<mode>_insn): Rename to mov<mode>_insn_split.
9048 (*mov<mode>_insn): Rename to mov<mode>_insn.
9050 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
9052 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
9053 for VAR_DECLs if -fdata-sections enabled.
9055 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
9058 * config/rs6000/rs6000.c
9059 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
9060 (rs6000_libgcc_floating_mode_supported_p): New target hook.
9062 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
9064 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
9066 (class back_threader_registry): ...to here...
9067 (class back_threader_profitability): ...and here...
9068 (thread_jumps::thread_through_all_blocks): Remove argument.
9069 (back_threader_registry::back_threader_registry): New.
9070 (back_threader_registry::~back_threader_registry): New.
9071 (back_threader_registry::thread_through_all_blocks): New.
9072 (thread_jumps::profitable_jump_thread_path): Move from here...
9073 (back_threader_profitability::profitable_path_p): ...to here.
9074 (thread_jumps::find_taken_edge): New.
9075 (thread_jumps::convert_and_register_current_path): Move...
9076 (back_threader_registry::register_path): ...to here.
9077 (thread_jumps::register_jump_thread_path_if_profitable): Move...
9078 (thread_jumps::maybe_register_path): ...to here.
9079 (thread_jumps::handle_phi): Call find_taken_edge and
9080 maybe_register_path.
9081 (thread_jumps::handle_assignment): Same.
9082 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
9083 tree argument to handle_phi and handle_assignment.
9084 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
9085 set of m_speed_p and m_max_threaded_paths.
9086 (pass_thread_jumps::execute): Remove second argument from
9087 find_jump_threads_backwards.
9088 (pass_early_thread_jumps::execute): Same.
9090 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
9092 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
9093 (class dom_opt_dom_walker): Initialize some class variables.
9094 (pass_dominator::execute): Pass evrp_range_analyzer and
9095 dom_jump_threader_simplifier to dom_opt_dom_walker.
9096 Adjust for some functions moving into classes.
9097 (simplify_stmt_for_jump_threading): Adjust and move to...
9098 (jump_threader_simplifier::simplify): ...here.
9099 (dom_opt_dom_walker::before_dom_children): Adjust for
9100 m_evrp_range_analyzer.
9101 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
9102 (test_for_singularity): Place in dom_opt_dom_walker class.
9103 (dom_opt_dom_walker::optimize_stmt): The argument
9104 evrp_range_analyzer is now a class field.
9105 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
9106 (thread_jumps::thread_through_all_blocks): New.
9107 (thread_jumps::convert_and_register_current_path): Use m_registry.
9108 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
9109 being in the threader class.
9110 (pass_early_thread_jumps::execute): Same.
9111 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
9112 (jump_threader::jump_threader): ...here.
9113 (threadedge_finalize_values): Move...
9114 (jump_threader::~jump_threader): ...here.
9115 (jump_threader::remove_jump_threads_including): New.
9116 (jump_threader::thread_through_all_blocks): New.
9117 (record_temporary_equivalences_from_phis): Move...
9118 (jump_threader::record_temporary_equivalences_from_phis): ...here.
9119 (record_temporary_equivalences_from_stmts_at_dest): Move...
9120 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
9122 (simplify_control_stmt_condition_1): Move to jump_threader class.
9123 (simplify_control_stmt_condition): Move...
9124 (jump_threader::simplify_control_stmt_condition): ...here.
9125 (thread_around_empty_blocks): Move...
9126 (jump_threader::thread_around_empty_blocks): ...here.
9127 (thread_through_normal_block): Move...
9128 (jump_threader::thread_through_normal_block): ...here.
9129 (thread_across_edge): Move...
9130 (jump_threader::thread_across_edge): ...here.
9131 (thread_outgoing_edges): Move...
9132 (jump_threader::thread_outgoing_edges): ...here.
9133 * tree-ssa-threadedge.h: Move externally facing functings...
9134 (class jump_threader): ...here...
9135 (class jump_threader_simplifier): ...and here.
9136 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
9137 (jump_thread_path_allocator::jump_thread_path_allocator): New.
9138 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
9139 (jump_thread_path_allocator::allocate_thread_edge): New.
9140 (jump_thread_path_allocator::allocate_thread_path): New.
9141 (jump_thread_path_registry::jump_thread_path_registry): New.
9142 (jump_thread_path_registry::~jump_thread_path_registry): New.
9143 (jump_thread_path_registry::allocate_thread_edge): New.
9144 (jump_thread_path_registry::allocate_thread_path): New.
9145 (dump_jump_thread_path): Make extern.
9146 (debug (const vec<jump_thread_edge *> &path)): New.
9147 (struct removed_edges): Move to tree-ssa-threadupdate.h.
9148 (struct thread_stats_d): Remove.
9149 (remove_ctrl_stmt_and_useless_edges): Make static.
9150 (lookup_redirection_data): Move...
9151 (jump_thread_path_registry::lookup_redirection_data): ...here.
9152 (ssa_redirect_edges): Make static.
9153 (thread_block_1): Move...
9154 (jump_thread_path_registry::thread_block_1): ...here.
9155 (thread_block): Move...
9156 (jump_thread_path_registry::thread_block): ...here.
9157 (thread_through_loop_header): Move...
9158 (jump_thread_path_registry::thread_through_loop_header): ...here.
9159 (mark_threaded_blocks): Move...
9160 (jump_thread_path_registry::mark_threaded_blocks): ...here.
9161 (debug_path): Move...
9162 (jump_thread_path_registry::debug_path): ...here.
9163 (debug_all_paths): Move...
9164 (jump_thread_path_registry::dump): ..here.
9165 (rewire_first_differing_edge): Move...
9166 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
9167 (adjust_paths_after_duplication): Move...
9168 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
9169 (duplicate_thread_path): Move...
9170 (jump_thread_path_registry::duplicate_thread_path): ..here.
9171 (remove_jump_threads_including): Move...
9172 (jump_thread_path_registry::remove_jump_threads_including): ...here.
9173 (thread_through_all_blocks): Move to...
9174 (jump_thread_path_registry::thread_through_all_blocks): ...here.
9175 (delete_jump_thread_path): Remove.
9176 (register_jump_thread): Move...
9177 (jump_thread_path_registry::register_jump_thread): ...here.
9178 * tree-ssa-threadupdate.h: Move externally facing functions...
9179 (class jump_thread_path_allocator): ...here...
9180 (class jump_thread_path_registry): ...and here.
9181 (thread_through_all_blocks): Remove.
9182 (struct removed_edges): New.
9183 (register_jump_thread): Remove.
9184 (remove_jump_threads_including): Remove.
9185 (delete_jump_thread_path): Remove.
9186 (remove_ctrl_stmt_and_useless_edges): Remove.
9187 (free_dom_edge_info): New prototype.
9188 * tree-vrp.c: Remove x_vr_values hack.
9189 (class vrp_jump_threader_simplifier): New.
9190 (vrp_jump_threader_simplifier::simplify): New.
9191 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
9192 Remove m_dummy_cond.
9193 Instantiate m_simplifier and m_threader.
9194 (vrp_jump_threader::thread_through_all_blocks): New.
9195 (vrp_jump_threader::simplify_stmt): Remove.
9196 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
9197 Remove x_vr_values hack.
9198 (execute_vrp): Adjust for thread_through_all_blocks being in a
9201 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
9203 * genflags.c (gen_insn): Print failed expansion string.
9205 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
9207 * expr.c (alignment_for_piecewise_move): Call mode_for_size
9208 without limit to MAX_FIXED_MODE_SIZE.
9210 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
9213 * builtins.c (builtin_memset_gen_str): Don't use return from
9214 simplify_gen_subreg.
9216 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
9219 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
9220 (*addsi3_carry_zext_0r): Ditto.
9221 (*sub<mode>3_carry_0): Ditto.
9222 (*subsi3_carry_zext_0r): Ditto.
9223 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
9225 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
9226 Also consider ix86_carry_flag_unset_operator to calculate
9227 the cost of adc/sbb insn.
9229 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
9231 PR rtl-optimization/100225
9232 PR rtl-optimization/84878
9233 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
9234 where we have an instruction which touches (writes) any hard
9235 register from df->regular_block_artificial_uses set.
9236 Allow not-single-set instruction only right before basic block
9239 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
9241 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
9243 2021-04-30 LevyHsu <admin@levyhsu.com>
9245 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
9246 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
9247 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
9248 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
9250 2021-04-29 Alexandre Oliva <oliva@adacore.com>
9252 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
9254 2021-04-29 Alexandre Oliva <oliva@adacore.com>
9256 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
9257 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
9258 * config/i386/i386.c: Adjust.
9259 * config/i386/i386.md: Adjust.
9260 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
9261 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9262 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9263 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9264 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9265 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9266 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9267 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9268 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9269 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9270 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
9272 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
9274 * config/i386/i386-expand.c (ix86_expand_int_compare):
9275 Swap operands of GTU and LEU comparison to emit carry flag comparison.
9276 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
9277 predicate to allow more combine opportunities with memory operands.
9278 (*sub<mode>3_carry_0): Ditto.
9280 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
9282 PR rtl-optimization/100303
9283 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
9284 boolean that indicates whether the use will only be used in
9285 debug instructions. Treat it in the same way that existing
9286 cross-EBB debug references would be handled if so.
9287 (function_info::make_uses_available): Likewise.
9288 * rtl-ssa/functions.h (function_info::make_uses_available): Update
9289 prototype accordingly.
9290 (function_info::make_uses_available): Likewise.
9291 * fwprop.c (try_fwprop_subst): Update call accordingly.
9293 2021-04-29 Jeff Law <jlaw@tachyum.com>
9295 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
9298 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
9299 Richard Biener <rguenther@suse.de>
9302 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
9303 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
9304 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
9305 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
9306 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
9307 to PURE_ARGS category.
9308 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
9309 Handle PURE_ARGS category.
9310 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
9312 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
9314 * configure.ac: Check for the presence of sys/locking.h header and
9315 for whether _LK_LOCK is supported by _locking.
9316 * configure: Regenerate.
9317 * config.in: Likewise.
9318 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
9319 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
9320 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
9322 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
9324 * config/i386/predicates.md (fcmov_comparison_operator):
9325 Do not check for trivial FP comparison operator.
9326 <case GEU, case LTU>: Allow CCGZmode.
9327 <case GTU, case LEU>: Do not allow CCCmode.
9328 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
9329 (ix86_carry_flag_operator): Match only LTU and UNLT code.
9330 Do not check for trivial FP comparison operator. Allow CCGZmode.
9332 2021-04-29 Tom de Vries <tdevries@suse.de>
9334 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
9335 fd->loop.step by either step or orig_step.
9337 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
9339 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
9340 (load_got_register): Do the PIC dance here.
9341 (sparc_legitimize_tls_address): Simplify.
9342 (sparc_emit_probe_stack_range): Likewise.
9343 (sparc32_initialize_trampoline): Likewise.
9344 (sparc64_initialize_trampoline): Likewise.
9345 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
9346 (probe_stack_range<P:mode>): Likewise.
9347 (flush<P:mode>): Likewise.
9348 (tgd_hi22<P:mode>): Likewise.
9349 (tgd_lo10<P:mode>): Likewise.
9350 (tgd_add<P:mode>): Likewise.
9351 (tgd_call<P:mode>): Likewise.
9352 (tldm_hi22<P:mode>): Likewise.
9353 (tldm_lo10<P:mode>): Likewise.
9354 (tldm_add<P:mode>): Likewise.
9355 (tldm_call<P:mode>): Likewise.
9356 (tldo_hix22<P:mode>): Likewise.
9357 (tldo_lox10<P:mode>): Likewise.
9358 (tldo_add<P:mode>): Likewise.
9359 (tie_hi22<P:mode>): Likewise.
9360 (tie_lo10<P:mode>): Likewise.
9361 (tie_add<P:mode>): Likewise.
9362 (tle_hix22<P:mode>): Likewise.
9363 (tle_lox10<P:mode>): Likewise.
9364 (stack_protect_setsi): Rename to...
9365 (stack_protect_set32): ...this.
9366 (stack_protect_setdi): Rename to...
9367 (stack_protect_set64): ...this.
9368 (stack_protect_set): Adjust calls to above.
9369 (stack_protect_testsi): Rename to...
9370 (stack_protect_test32): ...this.
9371 (stack_protect_testdi): Rename to...
9372 (stack_protect_test64): ...this.
9373 (stack_protect_test): Adjust calls to above.
9375 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
9378 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
9379 (builtin_strncpy_read_str): Likewise.
9380 (builtin_memset_read_str): Add an argument for the previous RTL
9381 information and generate the new RTL from the previous RTL info.
9382 (builtin_memset_gen_str): Likewise.
9383 * builtins.h (builtin_strncpy_read_str): Update the prototype.
9384 (builtin_memset_read_str): Likewise.
9385 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
9386 returns true, round up size and alignment to the widest integer
9387 mode for maximum size.
9388 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
9389 and pass it to m_constfn.
9390 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
9391 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
9392 initialize m_push. Initialize m_overlap_op_by_pieces with
9393 targetm.overlap_op_by_pieces_p ().
9394 (op_by_pieces_d::run): Pass the previous RTL information to
9395 pieces_addr::adjust and generate overlapping operations if
9396 m_overlap_op_by_pieces is true.
9398 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
9400 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
9402 (can_store_by_pieces): Use by_pieces_constfn on constfun.
9403 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
9404 for op_by_pieces_d change.
9405 (clear_by_pieces_1): Add a dummy argument.
9406 (clear_by_pieces): Updated for op_by_pieces_d change.
9407 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
9408 (string_cst_read_str): Add a dummy argument.
9409 * expr.h (by_pieces_constfn): Add a dummy argument.
9410 (by_pieces_prev): New.
9411 * target.def (overlap_op_by_pieces_p): New target hook.
9412 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
9413 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
9414 * doc/tm.texi: Regenerated.
9416 2021-04-29 Richard Biener <rguenther@suse.de>
9418 PR tree-optimization/100253
9419 * tree-vect-stmts.c (vectorizable_load): Do not assume
9420 element alignment when DR_MISALIGNMENT is -1.
9421 (vectorizable_store): Likewise.
9423 2021-04-29 Jakub Jelinek <jakub@redhat.com>
9426 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
9427 absu_hwi instead of abs_hwi.
9429 2021-04-29 Richard Biener <rguenther@suse.de>
9432 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
9433 forwarding when indirect forwarding through ESCAPED
9436 2021-04-29 Tom de Vries <tdevries@suse.de>
9439 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
9440 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
9441 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
9442 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
9444 2021-04-29 Richard Biener <rguenther@suse.de>
9446 PR tree-optimization/99912
9447 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
9448 (dse_dom_walker::todo): Likewise.
9449 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
9451 (dse_dom_walker::before_dom_children): Remove trivially
9452 dead SSA defs and schedule CFG cleanup if we removed all
9454 (pass_dse::execute): Get TODO as computed by the DOM walker
9455 and return it. Wipe dominator info earlier.
9457 2021-04-29 Richard Biener <rguenther@suse.de>
9460 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
9461 Track blocks to cleanup EH in new m_need_eh_cleanup.
9462 (ipcp_modif_dom_walker::cleanup_eh): New.
9463 (ipcp_transform_function): Release dominator info before
9466 2021-04-29 Martin Sebor <msebor@redhat.com>
9468 PR middle-end/100250
9469 * attribs.c (attr_access::array_as_string): Avoid dereferencing
9470 a pointer when it's null.
9472 2021-04-29 Martin Sebor <msebor@redhat.com>
9474 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
9475 * ipa-free-lang-data.cc: New file.
9476 * tree.c: Move pass free_lang_data to file above.
9477 (build_array_type_1): Declare extern.
9478 * tree.h (build_array_type_1): Declare.
9480 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9482 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
9483 make consistent with updated RTL pattern.
9484 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
9485 Implement using ss_truncate and us_truncate rather than
9487 * config/aarch64/iterators.md: Remove redundant unspecs and
9488 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
9490 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9492 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
9493 attributes consistent with those defined in arm_neon.h.
9495 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9497 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
9498 attributes consistent with those defined in arm_neon.h.
9500 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9502 * config/aarch64/aarch64-simd-builtins.def: Add
9503 float_trunc_rodd builtin generator macros.
9504 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
9506 (aarch64_float_trunc_rodd_lo_v2sf): Define.
9507 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
9508 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
9509 (aarch64_float_trunc_rodd_hi_v4sf): Define.
9510 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
9511 instead of inline asm.
9512 (vcvtx_high_f32_f64): Likewise.
9513 (vcvtxd_f32_f64): Likewise.
9514 * config/aarch64/iterators.md: Add FCVTXN unspec.
9516 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9518 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
9520 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
9522 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
9523 instead of inline asm.
9524 (vqtbx1_u8): Likewise.
9525 (vqtbx1_p8): Likewise.
9526 (vqtbx1q_s8): Likewise.
9527 (vqtbx1q_u8): Likewise.
9528 (vqtbx1q_p8): Likewise.
9529 (vtbx2_s8): Likewise.
9530 (vtbx2_u8): Likewise.
9531 (vtbx2_p8): Likewise.
9533 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9535 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
9537 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
9538 instead of inline asm.
9539 (vqtbl1_s8): Likewise.
9540 (vqtbl1_u8): Likewise.
9541 (vqtbl1q_p8): Likewise.
9542 (vqtbl1q_s8): Likewise.
9543 (vqtbl1q_u8): Likewise.
9544 (vtbl1_s8): Likewise.
9545 (vtbl1_u8): Likewise.
9546 (vtbl1_p8): Likewise.
9547 (vtbl2_s8): Likewise.
9548 (vtbl2_u8): Likewise.
9549 (vtbl2_p8): Likewise.
9551 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9553 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
9554 ssri_n buitin generator macro.
9555 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
9556 instead of inline asm.
9557 (vsri_n_p16): Likewise.
9558 (vsri_n_p64): Likewise.
9559 (vsriq_n_p8): Likewise.
9560 (vsriq_n_p16): Likewise.
9561 (vsriq_n_p64): Likewise.
9563 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9565 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
9566 iterator for polynomial ssli_n builtin generator macro.
9567 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
9568 instead of inline asm.
9569 (vsli_n_p16): Likewise.
9570 (vsliq_n_p8): Likewise.
9571 (vsliq_n_p16): Likewise.
9572 * config/aarch64/iterators.md: Define VALLP mode iterator.
9574 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9576 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
9577 iterator to generate [su]adalp RTL builtins.
9578 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
9579 [su]adalp RTL pattern.
9580 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
9581 instead of inline asm.
9582 (vpadal_u32): Likewise.
9584 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9586 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
9587 builtin generator macros.
9588 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
9590 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
9591 instead of inline asm.
9592 (vpaddl_s16): Likewise.
9593 (vpaddl_s32): Likewise.
9594 (vpaddl_u8): Likewise.
9595 (vpaddl_u16): Likewise.
9596 (vpaddl_u32): Likewise.
9597 (vpaddlq_s8): Likewise.
9598 (vpaddlq_s16): Likewise.
9599 (vpaddlq_s32): Likewise.
9600 (vpaddlq_u8): Likewise.
9601 (vpaddlq_u16): Likewise.
9602 (vpaddlq_u32): Liwewise.
9603 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
9604 appropriate attributes.
9606 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9608 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
9609 for aarch64_addp<mode> builtin macro generator.
9610 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
9611 aarch64_addp<mode> RTL pattern.
9612 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
9613 instead of inline asm.
9614 (vpaddq_s16): Likewise.
9615 (vpaddq_s32): Likewise.
9616 (vpaddq_s64): Likewise.
9617 (vpaddq_u8): Likewise.
9618 (vpaddq_u16): Likewise.
9619 (vpaddq_u32): Likewise.
9620 (vpaddq_u64): Likewise.
9622 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
9624 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
9625 builtin generator macros.
9626 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
9628 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
9629 instead of inline asm.
9630 (vqdmulh_n_s32): Likewise.
9631 (vqdmulhq_n_s16): Likewise.
9632 (vqdmulhq_n_s32): Likewise.
9633 (vqrdmulh_n_s16): Likewise.
9634 (vqrdmulh_n_s32): Likewise.
9635 (vqrdmulhq_n_s16): Likewise.
9636 (vqrdmulhq_n_s32): Likewise.
9638 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
9640 * doc/install.texi (--enable-offload-defaulted): Document.
9642 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
9644 * config/avr/avr-dimode.md: Turn existing patterns into
9645 define_insn_and_split style patterns where the splitter
9646 adds a clobber of the condition code register. Drop "cc"
9647 attribute. Add new patterns to match output of
9649 * config/avr/avr-fixed.md: Likewise.
9650 * config/avr/avr.c (cc_reg_rtx): New.
9651 (avr_parallel_insn_from_insns): Adjust insn count
9652 for removal of set of cc0.
9653 (avr_is_casesi_sequence): Likewise.
9654 (avr_casei_sequence_check_operands): Likewise.
9655 (avr_optimize_casesi): Likewise. Also insert
9656 new insns after jump_insn.
9657 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
9658 for removal of set of cc0.
9659 (avr_init_expanders): Initialize cc_reg_rtx.
9660 (avr_regno_reg_class): Handle REG_CC.
9661 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
9662 (avr_notice_update_cc): Remove function.
9663 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
9664 (compare_condition): Adjust for PARALLEL with
9666 (out_shift_with_cnt): Likewise.
9667 (ashlhi3_out): Likewise.
9668 (ashrhi3_out): Likewise.
9669 (lshrhi3_out): Likewise.
9670 (avr_class_max_nregs): Return single reg for REG_CC.
9671 (avr_compare_pattern): Check for REG_CC instead
9673 (avr_reorg_remove_redundant_compare): Likewise.
9674 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
9675 (avr_hard_regno_nregs): Return single reg for REG_CC.
9676 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
9677 (avr_md_asm_adjust): Clobber REG_CC.
9678 (TARGET_HARD_REGNO_NREGS): Define.
9679 (TARGET_CLASS_MAX_NREGS): Define.
9680 (TARGET_MD_ASM_ADJUST): Define.
9681 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
9683 (enum reg_class): Add CC_REG class.
9684 (NOTICE_UPDATE_CC): Remove.
9685 (CC_OVERFLOW_UNUSABLE): Remove.
9686 (CC_NO_CARRY): Remove.
9687 * config/avr/avr.md: Turn existing patterns into
9688 define_insn_and_split style patterns where the splitter
9689 adds a clobber of the condition code register. Drop "cc"
9690 attribute. Add new patterns to match output of
9692 (sez): Remove unused pattern.
9694 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
9697 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
9700 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
9703 * config/aarch64/constraints.md (Utq): Require the address to
9704 be valid for both the element mode and for V2DImode.
9706 2021-04-28 Jakub Jelinek <jakub@redhat.com>
9707 Tobias Burnus <tobias@codesourcery.com>
9709 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
9710 * gcc.c (process_command): New variable.
9711 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
9712 set it if -foffload is defaulted.
9713 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
9714 (compile_offload_image): If OFFLOAD_DEFAULTED and
9715 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
9716 if corresponding mkoffload can't be found.
9717 (compile_images_for_offload_targets): Likewise. Free and clear
9718 offload_names if no valid offload is found.
9719 * config.in: Regenerate.
9720 * configure: Regenerate.
9722 2021-04-28 Richard Biener <rguenther@suse.de>
9724 PR tree-optimization/100292
9725 * tree-vect-generic.c (expand_vector_condition): Do not fold
9728 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
9730 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
9731 * config/rs6000/aix64.opt (m64): New.
9734 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
9736 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
9737 (index_term_p): Handle ASHIFT too.
9739 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
9741 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
9742 (sync_lock_test_and_set<mode>): Adjust accordingly.
9743 (sync_lock_release<mode>): Likewise.
9745 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
9747 * config/vax/vax-protos.h (adjacent_operands_p): Remove
9749 * config/vax/vax.c (adjacent_operands_p): Remove.
9751 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
9753 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
9754 through to the non-conditional execution case if getting the
9755 condition for conditional execution has failed.
9757 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
9759 PR middle-end/100284
9760 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
9761 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
9762 than asserting on it.
9764 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
9766 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
9769 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
9772 * calls.c (precompute_register_parameters): Additionally test
9773 targetm.precompute_tls_p to pre-compute argument.
9774 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
9775 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
9776 * target.def (precompute_tls_p): New.
9777 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
9778 * doc/tm.texi: Regenerated.
9780 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9783 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
9784 back to HOST_WIDE_INT.
9786 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9789 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
9790 memory alignment for the outer mode.
9792 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
9795 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
9796 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
9798 2021-04-27 Alex Coplan <alex.coplan@arm.com>
9801 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
9802 with negative immediates: ensure we expand cbranchsi4_scratch
9803 correctly and ensure we satisfy its constraints.
9804 * config/arm/sync.md
9805 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
9806 attempt to tie two output operands together with constraints;
9807 collapse two alternatives.
9808 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
9809 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
9811 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9814 * config/aarch64/predicates.md (aarch64_sub_immediate,
9815 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
9816 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
9817 * config/aarch64/aarch64.c (aarch64_print_operand,
9818 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
9820 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9822 PR tree-optimization/100239
9823 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
9824 permutations with all indices from the first zero element as vec_shl.
9826 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9828 PR rtl-optimization/100254
9829 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
9830 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
9832 2021-04-27 Richard Biener <rguenther@suse.de>
9834 PR tree-optimization/99912
9835 * passes.def: Add comment about new TODO_remove_unused_locals.
9836 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
9839 2021-04-27 Richard Biener <rguenther@suse.de>
9841 PR tree-optimization/99912
9842 * passes.def (pass_all_optimizations): Add pass_dse before
9843 the first pass_dce, move the first pass_dse before the
9844 pass_dce following pass_pre.
9846 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9848 PR tree-optimization/95527
9849 * generic-match-head.c: Include tm.h.
9850 * gimple-match-head.c: Include tm.h.
9851 * match.pd (CLZ == INTEGER_CST): Don't use
9852 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
9853 if clz == CFN_CLZ. Add missing val declaration.
9854 (CTZ cmp CST): New simplifications.
9856 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9858 PR tree-optimization/96696
9859 * expr.c (expand_expr_divmod): New function.
9860 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
9861 divisions. Formatting fixes.
9862 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
9865 2021-04-27 Martin Jambor <mjambor@suse.cz>
9868 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
9869 If removing a call statement LHS SSA name, release it.
9871 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
9874 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
9875 is valid before including it in the mask.
9877 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
9880 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
9883 2021-04-27 Richard Biener <rguenther@suse.de>
9885 PR tree-optimization/100051
9886 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
9887 disambiguator based on access size vs. decl size.
9889 2021-04-27 Richard Biener <rguenther@suse.de>
9891 PR tree-optimization/100278
9892 * tree-ssa-pre.c (compute_avail): Give up when we cannot
9893 adjust TBAA beacuse of mismatching bases.
9895 2021-04-27 Jakub Jelinek <jakub@redhat.com>
9898 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
9899 For any_rotate define_insn_split and following splitters, use
9900 SWI iterator instead of SWI48.
9902 2021-04-27 Richard Biener <rguenther@suse.de>
9904 PR tree-optimization/99776
9905 * match.pd (bit_field_ref (ctor)): Relax element extract
9906 type compatibility checks.
9908 2021-04-27 Cui,Lili <lili.cui@intel.com>
9910 * common/config/i386/i386-common.c (processor_names):
9911 Sync processor_names with processor_type.
9912 * config/i386/i386-options.c (processor_cost_table):
9913 Sync processor_cost_table with processor_type.
9915 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
9917 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
9918 (irange::set): Call irange_set_1bit_anti_range for handling all
9919 1-bit ranges. Fall through on ~[MIN,MAX].
9921 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
9923 * value-range.cc (irange::legacy_num_pairs): Remove.
9924 (irange::invert): Change gcc_assert to gcc_checking_assert.
9925 * value-range.h (irange::num_pairs): Adjust for a cached
9926 num_pairs(). Also, rename all gcc_assert's to
9927 gcc_checking_assert's.
9929 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
9931 * value-range.cc (irange::operator=): Set m_kind.
9932 (irange::copy_to_legacy): Handle varying and undefined sources
9933 as a legacy copy since they can be easily copied.
9934 (irange::irange_set): Set m_kind.
9935 (irange::irange_set_anti_range): Same.
9936 (irange::set): Rename normalize_min_max to normalize_kind.
9937 (irange::verify_range): Adjust for multi-ranges having the
9939 (irange::irange_union): Set m_kind.
9940 (irange::irange_intersect): Same.
9941 (irange::invert): Same.
9942 * value-range.h (irange::kind): Always return m_kind.
9943 (irange::varying_p): Rename to...
9944 (irange::varying_comptaible_p): ...this.
9945 (irange::undefined_p): Only look at m_kind.
9946 (irange::irange): Always set VR_UNDEFINED if applicable.
9947 (irange::set_undefined): Always set VR_UNDEFINED.
9948 (irange::set_varying): Always set m_kind to VR_VARYING.
9949 (irange::normalize_min_max): Rename to...
9950 (irange::normalize_kind): ...this.
9952 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
9954 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
9955 Adjust for constant_p including varying_p.
9956 * tree-vrp.c (vrp_prop::finalize): Same.
9957 (determine_value_range): Same.
9958 * vr-values.c (vr_values::range_of_expr): Same.
9959 * value-range.cc (irange::symbolic_p): Do not check varying_p.
9960 (irange::constant_p): Same.
9962 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
9964 * value-range.cc (irange::legacy_lower_bound): Replace
9965 !undefined_p check with num_ranges > 0.
9966 (irange::legacy_upper_bound): Same.
9967 * value-range.h (irange::type): Same.
9968 (irange::lower_bound): Same.
9969 (irange::upper_bound): Same.
9971 2021-04-26 Richard Biener <rguenther@suse.de>
9973 PR tree-optimization/99956
9974 * gimple-loop-interchange.cc (compute_access_stride):
9975 Try instantiating the access in a shallower loop nest
9976 if instantiating failed.
9977 (compute_access_strides): Pass adjustable loop_nest
9978 to compute_access_stride.
9980 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
9982 * doc/sourcebuild.texi (arm_cmse_hw): Document.
9984 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9986 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
9988 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
9989 Nathan Sidwell <nathan@codesourcery.com>
9990 Tom de Vries <vries@codesourcery.com>
9991 Julian Brown <julian@codesourcery.com>
9992 Kwok Cheung Yeung <kcy@codesourcery.com>
9994 * omp-offload.c (oacc_validate_dims): Implement
9995 '-Wopenacc-parallelism'.
9996 * doc/invoke.texi (-Wopenacc-parallelism): Document.
9998 2021-04-26 Richard Biener <rguenther@suse.de>
10000 * tree-cfg.h (gimplify_build1): Remove.
10001 (gimplify_build2): Likewise.
10002 (gimplify_build3): Likewise.
10003 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
10004 (gimplify_build2): Likewise.
10005 (gimplify_build3): Likewise.
10006 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
10008 (gimplify_build2): Likewise.
10009 (gimplify_build3): Likewise.
10010 (tree_vec_extract): Use resimplify with following SSA edges.
10011 (expand_vector_parallel): Avoid passing NULL size/bitpos
10012 to tree_vec_extract.
10013 * expr.c (store_constructor): Deal with zero-element CTORs.
10014 * match.pd (bit_field_ref <vector CTOR>): Make sure to
10015 produce vector constants when possible.
10017 2021-04-26 Richard Biener <rguenther@suse.de>
10019 * tree-complex.c: Include gimple-fold.h.
10020 (expand_complex_addition): Use gimple_build.
10021 (expand_complex_multiplication_components): Likewise.
10022 (expand_complex_multiplication): Likewise.
10023 (expand_complex_div_straight): Likewise.
10024 (expand_complex_div_wide): Likewise.
10025 (expand_complex_division): Likewise.
10026 (expand_complex_conjugate): Likewise.
10027 (expand_complex_comparison): Likewise.
10029 2021-04-26 Richard Biener <rguenther@suse.de>
10031 * tree-ssa-phiopt.c (two_value_replacement): Remove use
10032 of legacy gimplify_buildN API.
10034 2021-04-26 Richard Biener <rguenther@suse.de>
10036 PR tree-optimization/99473
10037 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
10040 2021-04-26 Richard Biener <rguenther@suse.de>
10042 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
10043 Use replace_call_with_value.
10045 2021-04-26 Richard Biener <rguenther@suse.de>
10047 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
10048 (update_gimple_call): Likewise.
10049 (update_call_from_tree): Likewise.
10050 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
10051 (valid_gimple_call_p): Likewise.
10052 (move_ssa_defining_stmt_for_defs): Likewise.
10053 (finish_update_gimple_call): Likewise.
10054 (update_gimple_call): Likewise.
10055 (update_call_from_tree): Likewise.
10056 (propagate_tree_value_into_stmt): Use replace_call_with_value.
10057 * gimple-fold.h (update_gimple_call): Declare.
10058 * gimple-fold.c (valid_gimple_rhs_p): Move here from
10059 tree-ssa-propagate.c.
10060 (update_gimple_call): Likewise.
10061 (valid_gimple_call_p): Likewise.
10062 (finish_update_gimple_call): Likewise, and simplify.
10063 (gimplify_and_update_call_from_tree): Implement
10064 update_call_from_tree functionality, avoid excessive
10065 push/pop_gimplify_context.
10066 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
10067 (gimple_fold_call): Likewise.
10068 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
10069 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
10070 (pass_fold_builtins::execute): Likewise.
10071 (optimize_stack_restore): Use replace_call_with_value.
10072 * tree-cfg.c (fold_loop_internal_call): Likewise.
10073 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
10074 only gimplify_and_update_call_from_tree.
10075 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
10076 (handle_builtin_strchr): Likewise.
10077 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
10079 2021-04-26 Jakub Jelinek <jakub@redhat.com>
10082 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
10083 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
10086 2021-04-25 liuhongt <hongtao.liu@intel.com>
10089 * config/i386/i386-builtin.def (BDESC): Change the icode of
10090 the following builtins to CODE_FOR_nothing.
10091 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
10092 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
10093 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
10094 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10095 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10096 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
10097 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
10098 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10099 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
10100 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
10101 (sse2_eq<mode>3): Ditto.
10102 (sse4_1_eqv2di3): Ditto.
10103 (sse2_gt<mode>3): Rename to ..
10104 (*sse2_gt<mode>3): .. this.
10106 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10109 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10112 * config/darwin.c (darwin_binds_local_p): Assume that any
10113 public symbol might be interposed for PIC code. Update function
10114 header comment to reflect current Darwin capability.
10116 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10119 * config/darwin.c (darwin_binds_local_p): Assume that any
10120 public symbol might be interposed for PIC code. Update function
10121 header comment to reflect current Darwin capability.
10123 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
10125 * doc/sourcebuild.texi: Document no-opts and any-opts target
10128 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
10130 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
10132 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
10134 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
10136 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
10139 * config/i386/i386-options.c (ix86_option_override_internal):
10140 Error out when -m96bit-long-double is used with 64bit targets.
10141 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
10143 2021-04-23 Martin Liska <mliska@suse.cz>
10145 * lto-wrapper.c: Remove FIXME about usage of
10146 hardware_concurrency. The function is not on par with
10149 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
10152 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
10153 Copy operand 3 to operand 4. Use sse_reg_operand
10154 as operand 3 predicate.
10155 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
10156 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
10157 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
10158 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
10159 Copy operand 1 to operand 0.
10160 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
10161 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
10162 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
10164 2021-04-23 Alex Coplan <alex.coplan@arm.com>
10166 PR rtl-optimization/100230
10167 * early-remat.c (early_remat::sort_candidates): Use delete[]
10168 instead of delete for array allocated with new[].
10170 2021-04-23 Richard Biener <rguenther@suse.de>
10172 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
10173 (capture_info::capture_info): Likewise.
10174 (capture_info::walk_match): Likewise.
10175 (expr::gen_transform): Likewise.
10176 (dt_simplify::gen_1): Likewise.
10177 * gimple-match-head.c (maybe_resimplify_conditional_op):
10178 Remove VEC_COND_EXPR special-casing.
10179 (gimple_simplify): Likewise.
10180 * gimple.c (gimple_could_trap_p_1): Adjust.
10181 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
10182 to participate in PRE.
10184 2021-04-23 Richard Biener <rguenther@suse.de>
10186 * cfganal.c (connect_infinite_loops_to_exit): First call
10187 add_noreturn_fake_exit_edges.
10188 * ipa-sra.c (process_scan_results): Do not call the now redundant
10189 add_noreturn_fake_exit_edges.
10190 * predict.c (tree_estimate_probability): Likewise.
10191 (rebuild_frequencies): Likewise.
10192 * store-motion.c (one_store_motion_pass): Likewise.
10194 2021-04-23 Richard Biener <rguenther@suse.de>
10196 PR tree-optimization/100222
10197 * predict.c (pass_profile::execute): Remove redundant call to
10198 mark_irreducible_loops.
10199 (report_predictor_hitrates): Likewise.
10201 2021-04-23 Richard Biener <rguenther@suse.de>
10203 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
10204 valid_gimple_rhs_p by instead gimplifying to one.
10206 2021-04-23 Richard Biener <rguenther@suse.de>
10208 PR tree-optimization/99971
10209 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
10210 Always use TBAA for loads.
10212 2021-04-23 liuhongt <hongtao.liu@intel.com>
10215 * config/i386/i386-options.c (ix86_option_override_internal):
10216 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
10217 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
10218 by target attribute.
10220 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
10222 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
10224 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
10226 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
10228 * config.gcc (powerpc-ibm-aix6.*): Remove.
10229 * config/rs6000/aix61.h: Delete.
10231 2021-04-22 Martin Liska <mliska@suse.cz>
10233 PR testsuite/100159
10234 PR testsuite/100192
10235 * builtins.c (expand_builtin): Fix typos and missing comments.
10236 * dwarf2out.c (gen_subprogram_die): Likewise.
10237 (gen_struct_or_union_type_die): Likewise.
10239 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
10242 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
10243 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
10245 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
10247 * config/i386/darwin.h (TARGET_64BIT): Remove definition
10248 based on TARGET_ISA_64BIT.
10249 (TARGET_64BIT_P): Remove definition based on
10250 TARGET_ISA_64BIT_P().
10252 2021-04-21 Martin Liska <mliska@suse.cz>
10255 2021-04-21 Martin Liska <mliska@suse.cz>
10257 * lto-wrapper.c (cpuset_popcount): Remove.
10258 (init_num_threads): Remove and use hardware_concurrency.
10260 2021-04-21 Martin Liska <mliska@suse.cz>
10263 * main.c (main): Call toplev::finalize in CHECKING_P mode.
10264 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
10265 when incremental LTO linking happens.
10267 2021-04-21 Martin Liska <mliska@suse.cz>
10269 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
10270 makeserver cannot be detected, then use -flto=N fallback.
10272 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
10274 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
10275 default to yes for aarch64-linux-gnu.
10276 * configure: Regenerate.
10278 2021-04-21 Martin Liska <mliska@suse.cz>
10280 * lto-wrapper.c (cpuset_popcount): Remove.
10281 (init_num_threads): Remove and use hardware_concurrency.
10283 2021-04-21 Martin Liska <mliska@suse.cz>
10285 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
10286 which remains to be '(... || 0)' and clang complains about it.
10287 * dwarf2out.c (AT_vms_delta): Declare conditionally.
10288 (add_AT_vms_delta): Likewise.
10289 * tree.c (fld_simplified_type): Use rather more common pattern
10290 for disabling of something (#if 0).
10291 (get_tree_code_name): Likewise.
10292 (verify_type_variant): Likewise.
10294 2021-04-21 Martin Liska <mliska@suse.cz>
10296 * config/i386/i386-expand.c (decide_alignment): Use newly named
10297 macro TARGET_CPU_P.
10298 * config/i386/i386.c (ix86_decompose_address): Likewise.
10299 (ix86_address_cost): Likewise.
10300 (ix86_lea_outperforms): Likewise.
10301 (ix86_avoid_lea_for_addr): Likewise.
10302 (ix86_add_stmt_cost): Likewise.
10303 * config/i386/i386.h (TARGET_*): Remove.
10304 (TARGET_CPU_P): New macro.
10305 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
10306 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
10307 (swap_top_of_ready_list): Likewise.
10308 (ix86_atom_sched_reorder): Likewise.
10309 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
10310 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
10312 2021-04-21 Martin Liska <mliska@suse.cz>
10314 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
10316 (SET_TARGET_NO_SAHF): Likewise.
10317 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
10318 (SET_TARGET_PREFETCH_SSE): Likewise.
10319 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
10320 (SET_TARGET_NO_TUNE): Likewise.
10321 (TARGET_EXPLICIT_NO_80387_P): Likewise.
10322 (SET_TARGET_NO_80387): Likewise.
10324 * config/i386/i386.h (TARGET_*): Remove.
10325 * opth-gen.awk: Generate new used macros.
10327 2021-04-21 Martin Liska <mliska@suse.cz>
10329 * config/i386/i386.h (PTA_*): Remove.
10330 (enum pta_flag): New.
10331 (DEF_PTA): Generate PTA_* values from i386-isa.def.
10332 * config/i386/i386-isa.def: New file.
10334 2021-04-21 Alex Coplan <alex.coplan@arm.com>
10337 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
10338 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
10339 jump table targets.
10341 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
10343 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
10344 x86_64-*-* targets.
10345 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
10347 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
10348 (ix86_handle_option): Handle -mmwait.
10349 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10350 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
10351 __builtin_ia32_monitor and __builtin_ia32_mwait.
10352 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
10353 (ix86_valid_target_attribute_inner_p): Likewise.
10354 (ix86_option_override_internal): Enable mwait/monitor
10355 instructions for -msse3.
10356 * config/i386/i386.h (TARGET_MWAIT): New.
10357 (TARGET_MWAIT_P): Likewise.
10358 * config/i386/i386.opt: Add -mmwait.
10359 * config/i386/mwaitintrin.h: New file.
10360 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
10361 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
10363 (@sse3_monitor_<mode>): Likewise.
10364 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
10365 * doc/extend.texi: Document mwait target attribute.
10366 * doc/invoke.texi: Document -mmwait.
10368 2021-04-21 Martin Liska <mliska@suse.cz>
10370 * config/i386/i386-options.c (DEF_ENUM): Remove it.
10371 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
10372 * config/i386/stringop.def (DEF_ENUM): Likewise.
10374 2021-04-21 Martin Liska <mliska@suse.cz>
10376 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
10377 of print_generic_expr.
10379 2021-04-21 Jakub Jelinek <jakub@redhat.com>
10381 PR rtl-optimization/100148
10382 * cprop.c (constprop_register): Use next_nondebug_insn instead of
10385 2021-04-21 Martin Liska <mliska@suse.cz>
10388 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
10389 free_dominance_info calls.
10391 2021-04-21 Richard Biener <rguenther@suse.de>
10393 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
10394 parameter (and assume it to be false).
10395 (fold_gimple_assign): Adjust, remove all callers of
10396 maybe_fold_reference calling it with is_lhs true.
10397 (gimple_fold_call): Likewise.
10398 (fold_stmt_1): Likewise.
10400 2021-04-21 Richard Biener <rguenther@suse.de>
10402 * fold-const.c (pedantic_non_lvalue_loc): Remove.
10403 (fold_binary_loc): Adjust.
10404 (fold_ternary_loc): Likewise.
10406 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
10408 PR middle-end/100130
10409 * varasm.c (get_block_for_decl): Make sure that any use of the
10410 retain attribute matches the section's retain flag.
10411 (switch_to_section): Check for retain mismatches even when
10412 changing sections, but do not warn if the given decl is the
10413 section's named.decl.
10414 (output_object_block): Pass the first decl in the block (if any)
10415 to switch_to_section.
10417 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
10419 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10420 __CRC32__ for -mcrc32.
10421 * config/i386/i386-options.c (ix86_option_override_internal):
10422 Enable crc32 instruction for -msse4.2.
10423 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
10425 (sse4_2_crc32di): Likewise.
10426 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
10429 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
10432 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
10435 2021-04-20 Martin Liska <mliska@suse.cz>
10437 * doc/invoke.texi: Fix typo.
10438 * params.opt: Likewise.
10440 2021-04-20 Martin Liska <mliska@suse.cz>
10442 * doc/invoke.texi: Document new param.
10444 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
10446 PR tree-optimization/100081
10447 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
10448 rather than gori_compute_cache.
10449 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
10450 (range_def_chain::m_logical_depth): New member.
10451 (range_def_chain::range_def_chain): Initialize m_logical_depth.
10452 (range_def_chain::get_def_chain): Don't build defchains through more
10453 than LOGICAL_LIMIT logical expressions.
10454 * params.opt (param_ranger_logical_depth): New.
10456 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
10459 * config/arm/arm.c (arm_configure_build_target): Do not strip
10460 extended FPU/SIMD feature bits from the target ISA when -mfpu
10461 is specified (partial revert of r11-8168).
10463 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
10465 * params.opt (-param=openacc-kernels=): Add.
10466 * omp-oacc-kernels-decompose.cc
10467 (pass_omp_oacc_kernels_decompose::gate): Use it.
10468 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
10469 (--param): ... here, 'openacc-kernels'.
10471 2021-04-19 Martin Liska <mliska@suse.cz>
10474 * gengtype.c (finish_root_table): Align function arguments
10475 in between declaration and definition.
10477 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
10479 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
10480 frames larger than the SEH maximum frame size.
10482 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
10484 PR rtl-optimization/99927
10485 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
10486 is dead, just drop it.
10488 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
10491 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
10492 * doc/tm.texi: Regenerate.
10493 * doc/tm.texi.in (D language and ABI): Add @hook for
10494 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
10496 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
10498 * config/darwin-d.c (darwin_d_handle_target_object_format): New
10500 (darwin_d_register_target_info): New function.
10501 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10502 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
10504 (dragonfly_d_register_target_info): New function.
10505 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10506 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
10508 (freebsd_d_register_target_info): New function.
10509 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10510 * config/glibc-d.c (glibc_d_handle_target_object_format): New
10512 (glibc_d_register_target_info): New function.
10513 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10514 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
10516 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
10517 as handler for objectFormat key.
10518 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
10520 (winnt_d_register_target_info): New function.
10521 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10522 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
10524 (netbsd_d_register_target_info): New function.
10525 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10526 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
10528 (openbsd_d_register_target_info): New function.
10529 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10530 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
10531 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
10532 handler for objectFormat key.
10533 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
10535 (rs6000_d_register_target_info): Add
10536 rs6000_d_handle_target_object_format as handler for objectFormat key.
10537 * config/sol2-d.c (solaris_d_handle_target_object_format): New
10539 (solaris_d_register_target_info): New function.
10540 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
10542 2021-04-16 Jakub Jelinek <jakub@redhat.com>
10545 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
10546 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
10548 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
10549 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
10550 the old and new alignment after applying MIN/MAX to it is different.
10552 2021-04-16 Tamar Christina <tamar.christina@arm.com>
10555 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
10556 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
10558 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
10560 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
10562 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
10563 this section and its subsections.
10565 2021-04-16 Jakub Jelinek <jakub@redhat.com>
10568 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
10569 define_insn patterns.
10571 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
10573 PR rtl-optimization/98689
10574 * reg-notes.def (UNTYPED_CALL): New note.
10575 * combine.c (distribute_notes): Handle it.
10576 * emit-rtl.c (try_split): Likewise.
10577 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
10578 that calls with the note implicitly set all return value registers.
10579 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
10582 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
10584 PR rtl-optimization/99596
10585 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
10586 register accesses for const calls. Assume that pure functions
10587 can only read from global registers. Ignore cases in which
10588 the stack pointer has been marked global.
10590 2021-04-16 Jakub Jelinek <jakub@redhat.com>
10593 * tree-vect-loop.c (vect_transform_loop): Don't remove just
10594 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
10595 them by their last argument.
10597 2021-04-15 Martin Liska <mliska@suse.cz>
10599 * doc/invoke.texi: Other params don't use it, remove it.
10601 2021-04-15 Richard Biener <rguenther@suse.de>
10603 * gimple-builder.h: Add deprecation note.
10605 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
10608 * attribs.h (restrict_type_identity_attributes_to): Declare.
10609 * attribs.c (restrict_type_identity_attributes_to): New function.
10611 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
10614 * attribs.h (affects_type_identity_attributes): Declare.
10615 * attribs.c (remove_attributes_matching): New function.
10616 (affects_type_identity_attributes): Likewise.
10618 2021-04-15 Jakub Jelinek <jakub@redhat.com>
10621 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
10622 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
10623 ZERO_EXTEND, SIGN_EXTEND or AND.
10625 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
10627 PR rtl-optimization/99929
10628 * rtl.h (same_vector_encodings_p): New function.
10629 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
10630 * cselib.c (rtx_equal_for_cselib_1): Likewise.
10631 * jump.c (rtx_renumbered_equal_p): Likewise.
10632 * lra-constraints.c (operands_match_p): Likewise.
10633 * reload.c (operands_match_p): Likewise.
10634 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
10636 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
10638 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
10639 more information about variable-length CONST_VECTORs.
10641 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
10643 PR rtl-optimization/100066
10644 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
10645 ordered modes when choosing splitting mode for hard reg.
10647 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
10650 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
10652 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
10654 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
10656 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
10657 for mask operand types.
10658 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
10659 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
10661 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
10663 * config/s390/s390.c (s390_const_operand_ok): Check the new
10664 operand types and generate a list of valid values.
10666 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
10668 * doc/tm.texi: Regenerate.
10669 * doc/tm.texi.in (D language and ABI): Add @hook for
10670 TARGET_D_REGISTER_OS_TARGET_INFO.
10672 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
10674 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
10676 (aarch64_d_register_target_info): New function.
10677 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
10679 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
10681 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
10682 (arm_d_register_target_info): New function.
10683 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
10684 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10685 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
10686 (ix86_d_register_target_info): New function.
10687 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
10688 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10689 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
10690 (mips_d_register_target_info): New function.
10691 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
10692 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10693 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
10694 (pa_d_register_target_info): New function.
10695 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
10696 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10697 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
10699 (riscv_d_register_target_info): New function.
10700 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
10701 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10702 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
10704 (rs6000_d_register_target_info): New function.
10705 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
10707 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10708 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
10709 (s390_d_register_target_info): New function.
10710 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
10711 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10712 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
10714 (sparc_d_register_target_info): New function.
10715 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
10716 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10717 * doc/tm.texi: Regenerate.
10718 * doc/tm.texi.in (D language and ABI): Add @hook for
10719 TARGET_D_REGISTER_CPU_TARGET_INFO.
10721 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
10723 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
10724 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
10725 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
10726 * doc/tm.texi: Regenerate.
10727 * doc/tm.texi.in (D language and ABI): Add @hook for
10728 TARGET_D_HAS_STDCALL_CONVENTION.
10730 2021-04-14 Richard Biener <rguenther@suse.de>
10732 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
10733 VEC_COND_EXPRs have a gimple_val condition.
10734 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
10735 can no longer have a GENERIC condition.
10737 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
10740 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
10741 from the isa_delta when -mfpu has been used.
10742 (arm_options_perform_arch_sanity_checks): It's the architecture that
10743 lacks an FPU not the processor.
10745 2021-04-13 Richard Biener <rguenther@suse.de>
10747 PR tree-optimization/100053
10748 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
10749 not use optimistic dominance queries for backedges to validate
10751 (dominated_by_p_w_unex): Add parameter to ignore executable
10752 state on backedges.
10753 (rpo_elim::eliminate_avail): Adjust.
10755 2021-04-13 Jakub Jelinek <jakub@redhat.com>
10758 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
10759 *aarch64_bfxilsi_extrdi): New define_insn patterns.
10761 2021-04-13 Jakub Jelinek <jakub@redhat.com>
10764 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
10765 outermode, return NULL if the result doesn't encode back to the
10766 original byte sequence.
10767 (simplify_gen_subreg): Don't create SUBREGs from constants to
10768 MODE_COMPOSITE_P outermode.
10770 2021-04-12 Jakub Jelinek <jakub@redhat.com>
10772 PR rtl-optimization/99905
10773 * combine.c (expand_compound_operation): If pos + len > modewidth,
10774 perform the right shift by pos in inner_mode and then convert to mode,
10775 instead of trying to simplify a shift of rtx with inner_mode by pos
10776 as if it was a shift in mode.
10778 2021-04-12 Jakub Jelinek <jakub@redhat.com>
10781 * combine.c (simplify_and_const_int_1): Don't optimize varop
10782 away if it has side-effects.
10784 2021-04-12 Martin Liska <mliska@suse.cz>
10786 * doc/extend.texi: Escape @smallexample content.
10788 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
10790 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
10791 alternative in order to load a DFP zero.
10793 2021-04-12 Martin Liska <mliska@suse.cz>
10795 * doc/extend.texi: Be more precise in documentation
10796 of symver attribute.
10798 2021-04-12 Martin Liska <mliska@suse.cz>
10801 * gimplify.c (gimplify_expr): Right now, we unpoison all
10802 variables before a goto <dest>. We should not do it if we are
10805 2021-04-12 Cui,Lili <lili.cui@intel.com>
10807 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
10809 * common/config/i386/i386-common.c (processor_names): Add
10811 (processor_alias_table): Add rocketlake.
10812 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
10813 INTEL_COREI7_ROCKETLAKE.
10814 * config.gcc: Add -march=rocketlake.
10815 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10817 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
10818 (processor_cost_table): Add rocketlake cost.
10819 * config/i386/i386.h (ix86_size_cost) : Define
10821 (processor_type) : Add PROCESSOR_ROCKETLAKE.
10822 (PTA_ROCKETLAKE): Ditto.
10823 * doc/extend.texi: Add rocketlake.
10824 * doc/invoke.texi: Add rocketlake.
10826 2021-04-12 Cui,Lili <lili.cui@intel.com>
10828 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
10829 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
10830 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
10831 * doc/invoke.texi: Change alderlake ISA list.
10833 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10835 PR middle-end/98088
10836 * omp-expand.c (expand_oacc_collapse_init): Update condition in
10839 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
10842 * config/i386/serializeintrin.h (_serialize): Defined as macro.
10844 2021-04-10 Jakub Jelinek <jakub@redhat.com>
10847 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
10848 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
10850 2021-04-10 Jakub Jelinek <jakub@redhat.com>
10852 PR middle-end/99989
10853 * gimple-ssa-warn-alloca.c
10854 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
10855 0 with integer precision unconditionally.
10857 2021-04-10 Jakub Jelinek <jakub@redhat.com>
10859 PR rtl-optimization/98601
10860 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
10861 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
10862 unaligned_mems handle VOIDmode like BLKmode.
10864 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
10867 * tree.c (free_lang_data_in_decl): Do not release body of
10868 declare_variant_alt.
10870 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
10872 * config/aarch64/aarch64.c (aarch64_option_restore): If the
10873 architecture was specified explicitly and the tuning wasn't,
10874 tune for the architecture rather than the configured default CPU.
10876 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
10878 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
10879 as the temporary register.
10881 2021-04-09 Martin Liska <mliska@suse.cz>
10883 * doc/extend.texi: Move non-target attributes on the top level.
10885 2021-04-09 Martin Liska <mliska@suse.cz>
10887 * doc/invoke.texi: Document minimum and maximum value of the
10888 argument for both supported compression algorithms.
10890 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
10892 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
10893 TLS BSS before TLS data.
10894 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
10896 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
10898 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
10900 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
10902 * match.pd: Extend vec_cond folds to handle shifts.
10904 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
10906 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
10909 2021-04-08 Alex Coplan <alex.coplan@arm.com>
10912 * config/arm/iterators.md (MVE_vecs): New.
10913 (V_elem): Also handle V2DF.
10914 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
10915 (*mve_vdup<mode>): ... this. Remove second alternative since
10916 vec_duplicate of const_int is not canonical RTL, and we don't
10917 want to match symbol_refs.
10918 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
10920 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
10922 * fold-const.c (fold_single_bit_test): Fix typo.
10923 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
10926 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
10928 PR tree-optimization/97513
10929 * tree-vect-slp.c (vect_add_slp_permutation): New function,
10931 (vectorizable_slp_permutation): ...here. Detect cases in which
10932 all VEC_PERM_EXPRs are guaranteed to have the same stepped
10933 permute vector and only generate one permute vector for that case.
10934 Extend that case to handle variable-length vectors.
10936 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
10938 PR tree-optimization/99873
10939 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
10940 (vect_build_slp_instance): Don't split store groups that could
10941 use IFN_STORE_LANES.
10943 2021-04-07 Jakub Jelinek <jakub@redhat.com>
10946 * varasm.c (output_constant_pool_contents): Don't strip name encoding
10947 from XSTR (desc->sym, 0) or from label before passing those to
10950 2021-04-07 Richard Biener <rguenther@suse.de>
10952 PR tree-optimization/99954
10953 * tree-loop-distribution.c: Include tree-affine.h.
10954 (generate_memcpy_builtin): Try using tree-affine to prove
10956 (loop_distribution::classify_builtin_ldst): Always classify
10959 2021-04-07 Richard Biener <rguenther@suse.de>
10961 PR tree-optimization/99947
10962 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
10963 steps vector to avoid pushing elements from the reallocated
10966 2021-04-07 Richard Biener <rguenther@suse.de>
10968 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
10969 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
10971 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
10973 (debug_vn_reference_ops): New.
10975 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
10977 PR tree-optimization/98736
10978 * tree-loop-distribution.c
10979 * (loop_distribution::bb_top_order_init):
10980 Compute RPO with programing order preserved by calling function
10981 rev_post_order_and_mark_dfs_back_seme.
10983 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
10986 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
10987 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
10989 (process_bb_lives): Don't update biggest mode of hard reg for
10990 implicit in multi-register group. Use the new functions for
10991 updating dead_set and unused_set by register notes.
10993 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
10995 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
10998 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
11000 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
11001 (skylake_memset): Likewise.
11002 (skylake_cost): Change CLEAR_RATIO to 17.
11003 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
11004 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
11005 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
11007 2021-04-06 Richard Biener <rguenther@suse.de>
11009 PR tree-optimization/99880
11010 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
11011 set vectorized defs of relevant PHIs.
11013 2021-04-06 Richard Biener <rguenther@suse.de>
11015 PR tree-optimization/99924
11016 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
11017 nodes w/o scalar stmts as visited.
11019 2021-04-06 Alex Coplan <alex.coplan@arm.com>
11022 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
11023 PCS for [su]fix_optab.
11025 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
11027 * config/darwin.c (machopic_legitimize_pic_address): Check
11028 that the current pic register is one of the hard reg set
11029 before setting liveness.
11031 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
11033 * config/darwin.c (machopic_legitimize_pic_address): Fix
11034 whitespace, remove unused code.
11036 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11038 PR tree-optimization/99882
11039 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
11042 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11044 PR rtl-optimization/99863
11045 * dse.c (replace_read): Drop regs_live argument. Instead of
11046 regs_live, use store_insn->fixed_regs_live if non-NULL,
11047 otherwise punt if insns sequence clobbers or sets any hard
11050 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11053 * targhooks.h (default_print_patchable_function_entry_1): Declare.
11054 * targhooks.c (default_print_patchable_function_entry_1): New function,
11055 copied from default_print_patchable_function_entry with an added flags
11057 (default_print_patchable_function_entry): Rewritten into a small
11058 wrapper around default_print_patchable_function_entry_1.
11059 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
11061 (rs6000_print_patchable_function_entry): New function.
11063 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
11065 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
11067 2021-04-01 Jason Merrill <jason@redhat.com>
11070 * common.opt: Document v15 and v16.
11072 2021-04-01 Richard Biener <rguenther@suse.de>
11074 PR tree-optimization/99863
11075 * gimplify.c (gimplify_init_constructor): Recompute vector
11078 2021-04-01 Jakub Jelinek <jakub@redhat.com>
11080 * doc/extend.texi (symver attribute): Fix up syntax errors
11083 2021-04-01 Jakub Jelinek <jakub@redhat.com>
11085 PR tree-optimization/96573
11086 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
11087 also pointer types.
11089 2021-04-01 Richard Biener <rguenther@suse.de>
11091 PR tree-optimization/99856
11092 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
11093 precision to vector element precision.
11095 2021-04-01 Martin Jambor <mjambor@suse.cz>
11097 PR tree-optimization/97009
11098 * tree-sra.c (access_or_its_child_written): New function.
11099 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
11102 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
11105 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
11107 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
11110 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
11111 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
11112 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
11113 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
11114 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
11115 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
11117 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
11118 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
11119 (define_attr "prefixed"): Update initializer.
11121 2021-03-31 Jakub Jelinek <jakub@redhat.com>
11124 * dwarf2out.c (debug_ranges_dwo_section): New variable.
11125 (DW_RANGES_IDX_SKELETON): Define.
11126 (struct dw_ranges): Add begin_entry and end_entry members.
11127 (DEBUG_DWO_RNGLISTS_SECTION): Define.
11128 (add_ranges_num): Adjust r initializer for addition of *_entry
11130 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
11131 set idx to DW_RANGES_IDX_SKELETON.
11132 (use_distinct_base_address_for_range): New function.
11133 (index_rnglists): Don't set r->idx if it is equal to
11134 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
11135 r->end_entry for -gsplit-dwarf if those will be needed by
11137 (output_rnglists): Add DWO argument. If true, switch to
11138 debug_ranges_dwo_section rather than debug_ranges_section.
11139 Adjust l1/l2 label indexes. Only output the offset table when
11140 dwo is true and don't include in there the skeleton range
11141 entry if present. For -gsplit-dwarf, skip ranges that belong
11142 to the other rnglists section. Change return type from void
11143 to bool and return true if there are any range entries for
11144 the other section. For dwarf_split_debug_info use
11145 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
11146 entries instead of DW_RLE_start_end, DW_RLE_start_length and
11147 DW_RLE_base_address. Use use_distinct_base_address_for_range.
11148 (init_sections_and_labels): Initialize debug_ranges_dwo_section
11149 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
11150 and range_base_label indexes.
11151 (dwarf2out_finish): Call index_rnglists earlier before finalizing
11152 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
11153 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
11154 with different dwo arguments.
11155 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
11157 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11159 PR tree-optimization/98268
11160 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
11161 recompute_tree_invariant_for_addr_expr after successfully
11162 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
11164 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11166 PR tree-optimization/99726
11167 * tree-data-ref.c (create_intersect_range_checks_index): Bail
11168 out if there is more than one access function SCEV for the loop
11171 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11173 PR rtl-optimization/97141
11174 PR rtl-optimization/98726
11175 * emit-rtl.c (valid_for_const_vector_p): Return true for
11177 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
11178 poly_wide_int instead of a wide_int.
11179 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
11181 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
11182 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
11183 false for CONST_VECTORs that cannot be forced to memory.
11184 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
11185 is too complex to force to memory, build it up from individual
11188 2021-03-31 Jan Hubicka <jh@suse.cz>
11191 * cgraph.c (cgraph_node::release_body): Fix overactive check.
11193 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
11196 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
11199 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
11201 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
11202 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
11204 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
11205 "rep movsb/stosb" only for known sizes.
11206 * config/i386/i386-options.c (processor_cost_table): Use Ice
11207 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
11208 Rapids and Alder Lake.
11209 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
11210 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
11211 (icelake_memset): Likewise.
11212 (icelake_cost): Likewise.
11213 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
11216 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11219 * config/aarch64/aarch64.c
11220 (aarch64_vectorize_preferred_vector_alignment): Query the size
11221 of the provided SVE vector; do not assume that all SVE vectors
11222 have the same size.
11224 2021-03-31 Jan Hubicka <jh@suse.cz>
11227 * cgraph.c (cgraph_node::release_body): Remove all callers and
11229 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
11230 * cgraphunit.c (cgraph_node::expand): And here.
11232 2021-03-31 Martin Liska <mliska@suse.cz>
11234 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
11235 and one negated condition.
11237 2021-03-31 Jakub Jelinek <jakub@redhat.com>
11238 Richard Sandiford <richard.sandiford@arm.com>
11241 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
11242 constraints on operands[2] and similarly 0 and rk constraints
11243 on operands[1] corresponding to that.
11245 2021-03-31 Jakub Jelinek <jakub@redhat.com>
11248 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
11249 linker doesn't support DWARF sections new in DWARF5.
11250 * config/i386/i386-options.c (ix86_option_override_internal): Default
11251 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
11253 * config.in: Regenerated.
11254 * configure: Regenerated.
11256 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11259 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
11260 available issue_info before using it.
11262 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11265 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
11268 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
11271 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
11272 (altivec_lvsl_reg_<mode>): ... this.
11273 (altivec_lvsr_reg): Change to ...
11274 (altivec_lvsr_reg_<mode>): ... this.
11275 * config/rs6000/predicates.md (vec_set_index_operand): New.
11276 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11277 Enable 32bit variable vec_insert for all TARGET_VSX.
11278 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
11279 Enable 32bit variable vec_insert for p9 and above.
11280 (rs6000_expand_vector_set_var_p8): Rename to ...
11281 (rs6000_expand_vector_set_var_p7): ... this.
11282 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
11284 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
11285 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
11286 gen_altivec_lvsr_reg_di.
11288 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
11291 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
11292 (__rdtscp): Likewise.
11294 2021-03-30 Tamar Christina <tamar.christina@arm.com>
11296 PR tree-optimization/99825
11297 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
11298 Reject non-mult 2 lanes.
11300 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
11303 * config/arm/arm.c (arm_file_start): Fix emission of
11304 Tag_ABI_VFP_args attribute.
11306 2021-03-30 Richard Biener <rguenther@suse.de>
11308 PR tree-optimization/99824
11309 * stor-layout.c (set_min_and_max_values_for_integral_type):
11310 Assert the precision is within the bounds of
11311 WIDE_INT_MAX_PRECISION.
11312 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
11313 the outermost component ref only to lower the access size
11314 and initialize that from the access type.
11316 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
11319 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
11320 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
11322 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
11324 * config/aarch64/aarch64.md
11325 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
11326 attribute to disambiguate between SIMD and FP variants of the
11329 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
11331 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
11332 (analyze_ssa_name_flags): Fix typo in comment.
11334 2021-03-29 Alex Coplan <alex.coplan@arm.com>
11337 * config/aarch64/aarch64-sve-builtins.cc
11338 (function_builder::add_function): Add placeholder_p argument, use
11339 placeholder decls if this is set.
11340 (function_builder::add_unique_function): Instead of conditionally adding
11341 direct overloads, unconditionally add either a direct overload or a
11343 (function_builder::add_overloaded_function): Set placeholder_p if we're
11344 using C++ overloads. Use the obstack for string storage instead
11345 of relying on the tree nodes.
11346 (function_builder::add_overloaded_functions): Don't return early for
11347 m_direct_overloads: we need to add placeholders.
11348 * config/aarch64/aarch64-sve-builtins.h
11349 (function_builder::add_function): Add placeholder_p argument.
11351 2021-03-29 Richard Biener <rguenther@suse.de>
11353 PR tree-optimization/99807
11354 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
11355 assert below VEC_PERM handling.
11357 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11360 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
11361 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
11362 matching const_int 0.
11363 (move_lo_quad_internal_be_<mode>): Likewise.
11364 (move_lo_quad_<mode>): Update for the above.
11365 * config/aarch64/iterators.md (VQ_2E): Delete.
11367 2021-03-29 Jakub Jelinek <jakub@redhat.com>
11369 PR tree-optimization/99777
11370 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
11371 types other than scalar integral types.
11373 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
11375 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
11376 XCOFF TLS reloc decorations.
11378 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
11380 * doc/analyzer.texi (Analyzer Internals): Update link to
11381 "A Memory Model for Static Analysis of C Programs".
11383 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
11385 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
11386 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
11388 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
11389 (rs6000_special_round_type_align): Recursively check innermost first
11392 2021-03-26 Jakub Jelinek <jakub@redhat.com>
11395 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
11396 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
11397 assignment with drap_reg active, queue reg save for hfp with offset 0
11398 and flush queued reg saves. When handling a push with rule18,
11399 defer queueing reg save for hfp and just assert the offset is 0.
11400 (scan_trace): Assert that fde->rule18 is false.
11402 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
11405 * ira-costs.c (record_reg_classes): Put case with
11406 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
11407 * ira.c (ira_setup_alts): Ditto.
11408 * lra-constraints.c (process_alt_operands): Ditto.
11409 * recog.c (asm_operand_ok): Ditto.
11410 * reload.c (find_reloads): Ditto.
11412 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11414 * config/aarch64/aarch64-protos.h
11415 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
11416 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
11417 * config/aarch64/aarch64.c (generic_addrcost_table): Update
11418 accordingly, using the same costs as for post_modify.
11419 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
11420 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
11421 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
11422 (a64fx_addrcost_table): Likewise.
11423 (neoversev1_addrcost_table): New.
11424 (neoversev1_tunings): Use neoversev1_addrcost_table.
11425 (aarch64_address_cost): Use the new post_modify costs for CImode
11428 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11430 * config/aarch64/aarch64.opt
11431 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
11432 * doc/invoke.texi: Document it.
11433 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
11434 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
11435 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
11436 (aarch64_vec_issue_info): New structures.
11437 (cpu_vector_cost): Write comments above the variables rather
11439 (cpu_vector_cost::issue_info): New member variable.
11440 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
11441 and tree-ssa-loop-niter.h.
11442 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
11443 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
11444 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
11445 (thunderx3t110_vector_cost): Initialize issue_info to null.
11446 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
11447 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
11448 (neoversev1_vector_cost): Use them.
11449 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
11450 (aarch64_vector_costs::saw_sve_only_op): New member variable.
11451 (aarch64_vector_costs::num_vector_iterations): Likewise.
11452 (aarch64_vector_costs::scalar_ops): Likewise.
11453 (aarch64_vector_costs::advsimd_ops): Likewise.
11454 (aarch64_vector_costs::sve_ops): Likewise.
11455 (aarch64_vector_costs::seen_loads): Likewise.
11456 (aarch64_simd_vec_costs_for_flags): New function.
11457 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
11458 Count the number of predicate operations required by SVE WHILE
11460 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
11461 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
11462 (aarch64_count_ops): Likewise.
11463 (aarch64_add_stmt_cost): Record whether see an SVE operation
11464 that cannot currently be implementing using Advanced SIMD.
11465 Record issue information about the scalar, Advanced SIMD
11466 and (where relevant) SVE versions of a loop.
11467 (aarch64_vec_op_count::dump): New function.
11468 (aarch64_sve_op_count::dump): Likewise.
11469 (aarch64_estimate_min_cycles_per_iter): Likewise.
11470 (aarch64_adjust_body_cost): If issue information is available,
11471 try to compare the issue rates of the various loop implementations
11472 and increase or decrease the vector body cost accordingly.
11474 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11476 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
11477 Assume a zero cost for induction phis.
11479 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11481 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
11483 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
11484 vector comparisons.
11486 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11488 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
11490 (aarch64_add_stmt_cost): Call it.
11492 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11494 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
11495 New tuning parameter.
11496 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
11497 (aarch64_estimated_sve_vq): New function.
11498 (aarch64_vector_costs::analyzed_vinfo): New member variable.
11499 (aarch64_vector_costs::is_loop): Likewise.
11500 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
11501 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
11502 (aarch64_record_potential_advsimd_unrolling): New function.
11503 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
11504 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
11505 aarch64_analyze_bb_vinfo on the first use of a costs structure.
11506 Detect whether we're vectorizing a loop for SVE that might be
11507 completely unrolled if it used Advanced SIMD instead.
11508 (aarch64_adjust_body_cost_for_latency): New function.
11509 (aarch64_finish_cost): Call it.
11511 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11513 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
11514 (aarch64_init_cost): New function.
11515 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
11516 the default unsigned[3].
11517 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
11518 (TARGET_VECTORIZE_INIT_COST): Override.
11519 (TARGET_VECTORIZE_FINISH_COST): Likewise.
11520 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
11522 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11524 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
11525 (neoversev1_sve_vector_cost): New cost structures.
11526 (neoversev1_vector_cost): Likewise.
11527 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
11529 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11531 * config/aarch64/aarch64-protos.h
11532 (sve_vec_cost::scatter_store_elt_cost): New member variable.
11533 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
11534 accordingly, taking the cost from the cost of a scalar_store.
11535 (a64fx_sve_vector_cost): Likewise.
11536 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
11538 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11540 * config/aarch64/aarch64-protos.h
11541 (simd_vec_cost::store_elt_extra_cost): New member variable.
11542 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
11543 accordingly, using the vec_to_scalar cost for the new field.
11544 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
11545 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
11546 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
11547 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
11548 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
11549 (thunderx3t110_advsimd_vector_cost): Likewise.
11550 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
11552 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11554 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
11555 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
11556 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
11557 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
11558 accordingly, using zero for the new costs.
11559 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
11560 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
11561 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
11562 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
11563 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
11564 (thunderx3t110_advsimd_vector_cost): Likewise.
11565 (aarch64_ld234_st234_vectors): New function.
11566 (aarch64_adjust_stmt_cost): Likewise.
11567 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
11568 the new vector costs.
11570 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11572 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
11573 derived class of simd_vec_cost. Add information about CLAST[AB]
11574 and FADDA instructions.
11575 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
11576 accordingly, using the vec_to_scalar costs for the new fields.
11577 (a64fx_sve_vector_cost): Likewise.
11578 (aarch64_reduc_type): New function.
11579 (aarch64_sve_in_loop_reduction_latency): Likewise.
11580 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
11581 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
11582 that occur in the loop body.
11583 (aarch64_add_stmt_cost): Update call accordingly.
11585 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
11587 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
11589 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
11590 above the fields rather than to the right.
11591 (simd_vec_cost::reduc_i8_cost): New member variable.
11592 (simd_vec_cost::reduc_i16_cost): Likewise.
11593 (simd_vec_cost::reduc_i32_cost): Likewise.
11594 (simd_vec_cost::reduc_i64_cost): Likewise.
11595 (simd_vec_cost::reduc_f16_cost): Likewise.
11596 (simd_vec_cost::reduc_f32_cost): Likewise.
11597 (simd_vec_cost::reduc_f64_cost): Likewise.
11598 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
11599 accordingly, using the vec_to_scalar_cost for the new fields.
11600 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
11601 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
11602 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
11603 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
11604 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
11605 (thunderx3t110_advsimd_vector_cost): Likewise.
11606 (aarch64_use_new_vector_costs_p): New function.
11607 (aarch64_simd_vec_costs): New function, split out from...
11608 (aarch64_builtin_vectorization_cost): ...here.
11609 (aarch64_is_reduction): New function.
11610 (aarch64_detect_vector_stmt_subtype): Likewise.
11611 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
11612 using the new vector costs.
11614 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
11617 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
11618 TLS declarations as public.
11620 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
11622 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
11623 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
11624 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
11625 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
11626 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
11627 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
11628 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
11629 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
11630 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
11632 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
11635 * config.gcc (*-*-cygwin*): Add winnt-d.o
11636 (*-*-mingw*): Likewise.
11637 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
11638 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
11639 * config/i386/t-cygming: Add winnt-d.o.
11640 * config/i386/winnt-d.c: New file.
11642 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
11644 * config/freebsd-d.c: Include memmodel.h.
11646 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
11649 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
11650 * config/t-openbsd: Add openbsd-d.o.
11651 * config/openbsd-d.c: New file.
11653 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
11655 PR tree-optimization/96974
11656 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
11657 with graceful exit.
11659 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
11662 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
11666 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
11667 always_inline in system headers.
11669 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
11671 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
11673 2021-03-25 Jakub Jelinek <jakub@redhat.com>
11676 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
11677 * fold-const.c (operand_compare::operand_equal_p): Don't compare
11678 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
11680 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
11684 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
11685 always_inline in system headers.
11687 2021-03-25 Richard Biener <rguenther@suse.de>
11689 PR tree-optimization/99746
11690 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
11691 the scalar stmt as patterned. Instead set up required things
11694 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
11696 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
11699 2021-03-24 Martin Liska <mliska@suse.cz>
11702 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
11704 * config/i386/i386-options.c (ix86_option_override_internal):
11705 Add run-time assert.
11707 2021-03-24 Martin Jambor <mjambor@suse.cz>
11710 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
11711 parameters with unknown type.
11712 (ipacp_value_safe_for_type): New function.
11713 (propagate_vals_across_arith_jfunc): Verify that the constant type
11714 can be used for a type of the formal parameter.
11715 (propagate_vals_across_ancestor): Likewise.
11716 (propagate_scalar_across_jump_function): Likewise. Pass the type
11717 also to propagate_vals_across_ancestor.
11719 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
11722 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
11724 (movmisalign<mode>_mve_load): Likewise.
11726 2021-03-24 Jakub Jelinek <jakub@redhat.com>
11729 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
11730 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
11732 2021-03-24 Alexandre Oliva <oliva@adacore.com>
11734 * doc/sourcebuild.texi (sysconf): New effective target.
11736 2021-03-24 Alexandre Oliva <oliva@adacore.com>
11738 * config/i386/predicates.md (reg_or_const_vec_operand): New.
11739 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
11740 the now *-prefixed insn_and_split, turn the splitter const vec
11741 into an input for the insn, making it an ignored immediate for
11742 non-split cases, and loaded into the scratch register
11745 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
11748 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
11749 Use define_relaxed_memory_constraint for them.
11751 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
11754 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
11755 colon to the diagnostic message.
11757 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
11759 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
11761 (try_fwprop_subst_note): Use set_info instead of insn_info.
11762 (try_fwprop_subst_pattern): Likewise.
11763 (try_fwprop_subst_notes): Likewise.
11764 (try_fwprop_subst): Likewise.
11765 (forward_propagate_subreg): Likewise.
11766 (forward_propagate_and_simplify): Likewise.
11767 (forward_propagate_into): Likewise.
11768 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
11770 (set_info::single_nondebug_insn_use): Likewise.
11771 (set_info::single_phi_use): Likewise.
11772 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
11774 (set_info::single_nondebug_insn_use): Likewise.
11775 (set_info::single_phi_use): Likewise.
11777 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
11779 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
11781 2021-03-23 Jakub Jelinek <jakub@redhat.com>
11784 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
11785 expand_mult to perform an unsigned rather than a signed
11788 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
11791 * config/i386/cpuid.h (__cpuid): Add __volatile__.
11792 (__cpuid_count): Likewise.
11794 2021-03-23 Richard Biener <rguenther@suse.de>
11796 PR tree-optimization/99721
11797 * tree-vect-slp.c (vect_slp_analyze_node_operations):
11798 Make sure we can schedule the node.
11800 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
11802 * config/riscv/riscv.c (riscv_subword): Take endianness into
11803 account when calculating the byte offset.
11805 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
11807 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
11808 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
11809 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
11810 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
11811 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
11812 new predicate "subreg_lowpart_operator"
11814 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
11816 * config/riscv/riscv.c (riscv_swap_instruction): New function
11817 to byteswap an SImode rtx containing an instruction.
11818 (riscv_trampoline_init): Byteswap the generated instructions
11821 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
11823 * common/config/riscv/riscv-common.c
11824 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
11825 * config.gcc (riscv32be-*, riscv64be-*): Set
11826 TARGET_BIG_ENDIAN_DEFAULT to 1.
11827 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
11828 depending on default endianness.
11829 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11830 * config/riscv/linux.h (LINK_SPEC): Likewise.
11831 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
11832 default endianness.
11833 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
11835 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
11837 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
11838 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11839 * config/riscv/linux.h (LINK_SPEC): Likewise.
11840 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
11842 (BYTES_BIG_ENDIAN): Handle big endian.
11843 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11844 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
11846 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
11848 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11850 * regcprop.c (find_oldest_value_reg): Ask target whether
11851 different mode is fine for replacement register.
11853 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
11855 PR tree-optimization/99296
11856 * value-range.cc (irange::irange_set_1bit_anti_range): New.
11857 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
11858 * value-range.h (irange::irange_set_1bit_anti_range): New.
11860 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
11863 * config/aarch64/constraints.md (UtQ): Use
11864 define_relaxed_memory_constraint for it.
11865 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
11866 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11867 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
11868 (have_relaxed_memory_constraints): New static var.
11869 (relaxed_memory_start, relaxed_memory_end): Ditto.
11870 (add_constraint): Add arg is_relaxed_memory. Check name for
11871 relaxed memory. Set up is_relaxed_memory in constraint_data and
11872 have_relaxed_memory_constraints. Adjust calls.
11873 (choose_enum_order): Process relaxed memory.
11874 (write_tm_preds_h): Ditto.
11875 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11876 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11877 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
11878 * ira-lives.c (single_reg_class): Use
11879 insn_extra_relaxed_memory_constraint.
11880 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
11881 * lra-constraints.c (valid_address_p): Use
11882 insn_extra_relaxed_memory_constraint instead of other memory
11884 (process_alt_operands): Process CT_RELAXED_MEMORY.
11885 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
11886 * recog.c (asm_operand_ok, preprocess_constraints): Process
11888 * reload.c (find_reloads): Ditto.
11889 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
11890 * stmt.c (parse_input_constraint): Use
11891 insn_extra_relaxed_memory_constraint.
11893 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
11896 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
11899 2021-03-22 Alex Coplan <alex.coplan@arm.com>
11902 * config/arm/arm-protos.h (neon_make_constant): Add generate
11903 argument to guard emitting insns, default to true.
11904 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
11905 CONST_VECTORs which neon_make_constant can't handle.
11906 (neon_vdup_constant): Add generate argument, avoid emitting
11907 insns if it's not set.
11908 (neon_make_constant): Plumb new generate argument through.
11909 * config/arm/constraints.md (Ui): New. Use it...
11910 * config/arm/mve.md (*mve_mov<mode>): ... here.
11911 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
11912 synthesize constants.
11914 2021-03-22 Richard Biener <rguenther@suse.de>
11916 * debug.h: Add deprecation warning.
11918 2021-03-22 Richard Biener <rguenther@suse.de>
11920 PR tree-optimization/99694
11921 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
11924 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
11927 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
11928 after type checking.
11930 2021-03-22 Jakub Jelinek <jakub@redhat.com>
11934 * dwarf2out.c (get_full_len): Use get_precision rather than
11936 (add_const_value_attribute): Make sure add_AT_wide argument has
11937 precision prec rather than some very wide one.
11939 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
11941 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
11942 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
11943 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
11944 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
11945 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
11946 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
11947 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
11948 *fix_trunc<mode>si2_internal): Fix empty split condition.
11949 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
11950 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
11951 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
11952 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
11954 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
11957 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
11958 Convert idx to DImode.
11959 (rs6000_expand_vector_set_var_p8): Likewise.
11961 2021-03-21 Jakub Jelinek <jakub@redhat.com>
11964 * dwarf2out.c (insert_float): Change return type from void to
11965 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
11966 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
11969 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
11972 * config/i386/i386.c (construct_container): Check cfun != NULL
11973 before accessing silent_p.
11975 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
11977 * asan.c: Fix typos in comments.
11979 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
11981 PR rtl-optimization/99680
11982 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
11983 (process_address_1): Check empty constraint before using
11986 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
11988 * config/rs6000/rs6000.c (power10_cost): New.
11989 (rs6000_option_override_internal): Set Power10 costs.
11990 (rs6000_issue_rate): Set Power10 issue rate.
11991 * config/rs6000/power10.md: Rewrite for Power10.
11993 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
11996 * lra-constraints.c (process_address_1): Don't use unknown
11997 constraint for address constraint.
11999 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
12002 * config.gcc (powerpc-*-darwin8): Delete the reference to
12003 the now removed darwin8.h.
12005 2021-03-19 Olivier Hainque <hainque@adacore.com>
12008 * config/vxworksae.h (VX_CPU_PREFIX): Define.
12010 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
12012 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
12014 2021-03-19 Tamar Christina <tamar.christina@arm.com>
12016 PR tree-optimization/99656
12017 * tree-vect-slp-patterns.c (linear_loads_p,
12018 complex_add_pattern::matches, is_eq_or_top,
12019 vect_validate_multiplication, complex_mul_pattern::matches,
12020 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
12021 * tree-vectorizer.h: (complex_load_perm_t): Removed.
12022 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
12023 complex_load_perm_t.
12025 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
12028 * config/i386/i386-options.c (ix86_init_machine_status): Set
12030 * config/i386/i386.c (init_cumulative_args): Set silent_p to
12032 (construct_container): Return early for return and argument
12033 errors if silent_p is true.
12034 * config/i386/i386.h (machine_function): Add silent_p.
12036 2021-03-19 Jakub Jelinek <jakub@redhat.com>
12039 * config/arm/constraints.md (Ds): New constraint.
12040 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
12041 constraint instead of w,Dm.
12043 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
12045 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
12048 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
12050 PR middle-end/99641
12051 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
12052 array type, do the computation of the current position in sizetype.
12054 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
12057 * lra-constraints.c (process_address_1): Use lookup_constraint
12058 only for a single constraint.
12060 2021-03-18 Martin Sebor <msebor@redhat.com>
12062 PR middle-end/99502
12063 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
12064 (inbounds_memaccess_p): ...to this. Check the ending offset of
12065 the accessed member.
12067 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
12069 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
12070 %> quote markers to error messages.
12071 (gcn_goacc_validate_dims): Likewise.
12072 (gcn_conditional_register_usage): Remove exclaimation mark from error
12074 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
12076 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
12078 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
12081 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
12082 Kito Cheng <kito.cheng@sifive.com>
12084 * config/riscv/riscv.c (riscv_block_move_straight): Change type
12085 to unsigned HOST_WIDE_INT for parameter and local variable with
12086 HOST_WIDE_INT type.
12087 (riscv_adjust_block_mem): Ditto.
12088 (riscv_block_move_loop): Ditto.
12089 (riscv_expand_block_move): Ditto.
12091 2021-03-18 Nick Clifton <nickc@redhat.com>
12093 * config/v850/v850.c (construct_restore_jr): Increase static
12095 (construct_save_jarl): Likewise.
12096 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
12098 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12100 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
12101 (aarch64_override_options_internal): Use it.
12102 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
12105 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
12107 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
12108 error message format issues.
12109 (nios2_option_override): Likewise.
12110 (nios2_expand_fpu_builtin): Likewise.
12111 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
12112 truncation warning.
12113 (nios2_expand_custom_builtin): More error message format fixes.
12114 (nios2_expand_rdwrctl_builtin): Likewise.
12115 (nios2_expand_rdprs_builtin): Likewise.
12116 (nios2_expand_eni_builtin): Likewise.
12117 (nios2_expand_builtin): Likewise.
12118 (nios2_register_custom_code): Likewise.
12119 (nios2_valid_target_attribute_rec): Likewise.
12120 (nios2_add_insn_asm): Fix uninitialized variable warning.
12122 2021-03-17 Jan Hubicka <jh@suse.cz>
12124 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
12125 of gather to match reality.
12126 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
12128 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12130 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
12131 to compare against CC_REG rather than NE.
12133 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
12136 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
12137 inline assembly statements.
12138 (ix86_print_operand): Update 'P' handling for -fno-plt.
12140 2021-03-17 Tamar Christina <tamar.christina@arm.com>
12143 * config/aarch64/aarch64.c
12144 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
12146 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
12149 * config/rs6000/predicates.md (branch_comparison_operator): Allow
12150 ordered and unordered for CCFPmode, if flag_finite_math_only.
12152 2021-03-16 Jakub Jelinek <jakub@redhat.com>
12155 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
12156 rather than ASHIFT.
12157 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
12159 2021-03-16 Martin Liska <mliska@suse.cz>
12162 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
12163 cl_optimization_compare function.
12165 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
12167 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
12170 2021-03-16 Jakub Jelinek <jakub@redhat.com>
12173 * config/i386/i386.h (struct machine_function): Add
12174 has_explicit_vzeroupper bitfield.
12175 * config/i386/i386-expand.c (ix86_expand_builtin): Set
12176 cfun->machine->has_explicit_vzeroupper when expanding
12177 IX86_BUILTIN_VZEROUPPER.
12178 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
12179 Do the mode switching only when TARGET_VZEROUPPER, expensive
12180 optimizations turned on and not optimizing for size.
12181 (pass_insert_vzeroupper::gate): Enable even when
12182 cfun->machine->has_explicit_vzeroupper is set.
12184 2021-03-16 Jakub Jelinek <jakub@redhat.com>
12187 * config/aarch64/aarch64.c
12188 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
12189 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
12190 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
12192 2021-03-15 Richard Biener <rguenther@suse.de>
12194 PR tree-optimization/98834
12195 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
12196 subsetting by truncating the access size.
12198 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
12200 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
12201 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
12204 2021-03-15 Martin Liska <mliska@suse.cz>
12206 * spellcheck.c: Add missing comma in initialization.
12208 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
12210 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
12211 alternative 2 and alternative 1 with alternative 3 using
12212 YW register constraint.
12213 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
12214 using YW register constraint.
12215 (*vec_extractv16qi_zext): Ditto.
12216 (*vec_extractv4si): Merge alternatives 4 and 5
12217 using Yw register constraint.
12218 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
12220 2021-03-13 Martin Sebor <msebor@redhat.com>
12222 PR tree-optimization/99489
12223 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
12224 is not a call statement.
12226 2021-03-13 Jakub Jelinek <jakub@redhat.com>
12228 PR tree-optimization/99544
12229 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
12230 if for vector types multiplication can't be done in type's mode.
12232 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
12235 * config/sparc/constraints.md (w): Rename to...
12236 (W): ... this and ditch previous implementation.
12237 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
12238 (*movdf_insn_sp64): Likewise.
12239 (*mov<VM64:mode>_insn_sp64): Likewise.
12240 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
12242 (atomic_compare_and_swap_leon3_1): Likewise.
12243 (*atomic_compare_and_swapdi_v8plus): Likewise.
12244 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
12245 architecture and add missing address validity check during LRA.
12247 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
12250 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
12251 occuring for assumed-size arrays in use_device_{ptr,addr}.
12253 2021-03-12 Jakub Jelinek <jakub@redhat.com>
12256 * config/i386/constraints.md (YW): New internal constraint.
12257 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
12258 (*<sse2_avx2>_<insn><mode>3<mask_name>,
12259 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
12260 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
12262 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
12263 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
12264 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
12265 into one, use Yw instead of former x,v.
12266 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
12267 the last alternative.
12268 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
12269 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
12270 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
12271 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
12272 into one, use <v_Yw> instead of former x,v.
12273 (avx2_interleave_highv32qi<mask_name>,
12274 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
12275 constraints. Add && <mask_avx512bw_condition> to condition.
12276 (avx2_interleave_lowv32qi<mask_name>,
12277 vec_interleave_lowv16qi<mask_name>,
12278 avx2_interleave_highv16hi<mask_name>,
12279 vec_interleave_highv8hi<mask_name>,
12280 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
12281 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
12282 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
12283 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
12284 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
12285 Yw instead of v in constraints.
12286 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
12287 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
12288 instead of Yv in constraints.
12289 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
12290 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
12291 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
12292 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
12293 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
12295 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
12296 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
12297 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
12298 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
12299 two, one with just x, another isa avx512vl with v.
12301 2021-03-12 Martin Liska <mliska@suse.cz>
12303 * doc/invoke.texi: Add missing param documentation.
12305 2021-03-11 David Malcolm <dmalcolm@redhat.com>
12308 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
12309 analyzer/trimmed-graph.o.
12310 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
12311 feasibility checking to reflect new implementation.
12312 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
12314 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
12316 2021-03-11 David Malcolm <dmalcolm@redhat.com>
12318 * digraph.cc (selftest::test_shortest_paths): Update
12319 shortest_paths init for new param. Add test of
12320 SPS_TO_GIVEN_TARGET.
12321 * shortest-paths.h (enum shortest_path_sense): New.
12322 (shortest_paths::shortest_paths): Add "sense" param.
12323 Update for renamings. Generalize to use "sense" param.
12324 (shortest_paths::get_shortest_path): Rename param.
12325 (shortest_paths::m_sense): New field.
12326 (shortest_paths::m_prev): Rename...
12327 (shortest_paths::m_best_edge): ...to this.
12328 (shortest_paths::get_shortest_path): Update for renamings.
12329 Conditionalize flipping of path on sense of traversal.
12331 2021-03-11 David Malcolm <dmalcolm@redhat.com>
12333 * digraph.cc (selftest::test_shortest_paths): Add test coverage
12334 for paths from B and C.
12335 * shortest-paths.h (shortest_paths::shortest_paths): Handle
12336 unreachable nodes, rather than asserting.
12338 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
12341 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
12342 xcoff_tbss_section_name.
12343 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
12344 * xcoffout.c (xcoff_tbss_section_name): Delete.
12345 * xcoffout.h (xcoff_tbss_section_name): Delete.
12347 2021-03-11 Richard Biener <rguenther@suse.de>
12349 PR tree-optimization/99523
12350 * tree-cfg.c (dump_function_to_file): Dump SSA names
12351 w/o identifier to the decls section as well, not only those
12352 without a VAR_DECL.
12354 2021-03-11 Jakub Jelinek <jakub@redhat.com>
12357 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
12358 function calls with lhs fail if the lhs don't have compatible types.
12360 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
12362 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
12363 Change FRAME_POINTER_REGNUM to correspond to a new faked
12364 register faked_fp, part of GENNONACR_REGS like faked_ap.
12365 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
12366 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
12367 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
12368 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
12369 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
12371 (CRIS_REAL_FP_REGNUM): New constant.
12372 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
12373 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
12374 (cris_initial_elimination_offset): Handle elimination changes
12375 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
12376 and add one from FRAME_POINTER_REGNUM to
12377 HARD_FRAME_POINTER_REGNUM.
12378 (cris_expand_prologue, cris_expand_epilogue): Emit code for
12379 hard_frame_pointer_rtx instead of frame_pointer_rtx.
12381 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
12384 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
12385 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
12387 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
12390 * lra-constraints.c (process_address_1): Don't check unknown
12391 constraint, use X for empty constraint.
12393 2021-03-10 Alex Coplan <alex.coplan@arm.com>
12395 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
12396 Fix typo in comment describing "is_ha" argument.
12398 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
12400 * doc/sourcebuild.texi: Document LRA target selector.
12402 2021-03-10 David Malcolm <dmalcolm@redhat.com>
12404 * doc/ux.texi: Add subsection contrasting interactive versus
12405 batch usage of GCC.
12407 2021-03-10 Joel Hutton <joel.hutton@arm.com>
12410 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
12412 (vectorizable_load): Fix gather load mask check condition.
12414 2021-03-10 Richard Biener <rguenther@suse.de>
12416 PR tree-optimization/99510
12417 * tree.c (check_aligned_type): Check that the candidate
12418 has TYPE_USER_ALIGN set instead of matching with the
12421 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
12423 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
12424 float and vector integer modes only if the mode is not larger.
12426 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
12428 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
12430 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
12432 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
12434 * ira-lives.c (single_reg_class): Ditto.
12436 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12438 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
12439 the architecture-specific rtems.h.
12440 (aarch64-*-rtems*): Likewise.
12441 (arm*-*-rtems*): Likewise.
12442 (epiphany-*-rtems*): Likewise.
12443 (riscv*-*-rtems*): Likewise.
12445 2021-03-09 Jakub Jelinek <jakub@redhat.com>
12447 PR tree-optimization/99305
12448 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
12449 before integer_all_onesp instead of vice versa.
12451 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
12453 * common/config/arm/arm-common.c (arm_config_default): Change type
12454 of 'i' to unsigned.
12456 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
12459 * lra-constraints.c (process_address_1): Process constraint 'g'
12460 separately and digital constraints containing more one digit.
12462 2021-03-09 Nick Clifton <nickc@redhat.com>
12464 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
12465 (DWARF"_DEBUGGING_INFO): Define.
12467 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
12470 * calls.c (initialize_argument_information): When the argument
12471 is passed by reference, do not make a copy in a thunk only if
12472 the argument is already in memory. Remove redundant test for
12473 the case of callee copy.
12475 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
12478 * lra-constraints.c (process_address_1): Process 0..9 constraints
12479 in process_address_1.
12481 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
12483 * config/s390/s390.c (struct s390_processor processor_table):
12484 Binutils name string must not be empty.
12486 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
12488 * config/arc/arc.c (arc_attr_type): Remove function.
12490 2021-03-09 Martin Liska <mliska@suse.cz>
12493 * config/i386/i386-options.c (ix86_option_override_internal):
12494 Set isa_flags for OPTS argument and not for the global
12497 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
12499 * config/rs6000/predicates.md (ds_form_mem_operand): Check
12502 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
12505 * config/rs6000/predicates.md (ds_form_mem_operand) New
12507 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
12508 ds_form_mem_operand in ld/lwa patterns.
12509 * config/rs6000/fusion.md: Regenerate file.
12511 2021-03-08 Martin Sebor <msebor@redhat.com>
12513 PR middle-end/98266
12514 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
12515 (array_bounds_checker::check_array_bounds): Call it.
12517 2021-03-08 Martin Sebor <msebor@redhat.com>
12519 PR middle-end/97631
12520 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
12521 (handle_builtin_stxncpy_strncat): Rename locals. Determine
12522 destination size from allocation calls. Issue a more appropriate
12524 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
12525 (handle_builtin_memset): Same.
12527 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
12530 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
12531 to ensure we do not have an Altivec style address.
12532 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
12533 an Altivec style address.
12534 (*vsx_le_perm_store_<mode>): Likewise.
12535 (splitters after *vsx_le_perm_store_<mode>): Likewise.
12536 (vsx_load_<mode>): Disable special expander if passed an Altivec
12538 (vsx_store_<mode>): Likewise.
12540 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12543 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
12544 (aarch64_simd_shift_imm_vec_hi): Likewise.
12545 (aarch64_simd_shift_imm_vec_si): Likewise.
12546 (aarch64_simd_shift_imm_vec_di): Likewise.
12547 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
12548 predicate from above.
12549 (aarch64_shrn<mode>_insn_be): Likewise.
12550 (aarch64_rshrn<mode>_insn_le): Likewise.
12551 (aarch64_rshrn<mode>_insn_be): Likewise.
12552 (aarch64_shrn2<mode>_insn_le): Likewise.
12553 (aarch64_shrn2<mode>_insn_be): Likewise.
12554 (aarch64_rshrn2<mode>_insn_le): Likewise.
12555 (aarch64_rshrn2<mode>_insn_be): Likewise.
12557 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
12560 * lra-constraints.c (skip_contraint_modifiers): New function.
12561 (process_address_1): Use it before lookup_constraint call.
12563 2021-03-08 Martin Liska <mliska@suse.cz>
12566 * config/i386/i386-options.c (ix86_option_override_internal):
12567 Enable UINTR and HRESET for -march that supports it.
12569 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
12571 * config/s390/s390.c (f_constraint_p): New function.
12572 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
12573 (TARGET_MD_ASM_ADJUST): Likewise.
12575 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
12578 * tree-nested.c (convert_local_reference_stmt): Avoid calling
12579 lookup_field_for_decl for Fortran module (= namespace context).
12581 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
12583 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
12584 comparison with arithmetic right shift.
12585 (s390_expand_vcond): No need for a force_reg anymore.
12586 s390_vec_compare will do it.
12587 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
12588 immediate operands.
12590 2021-03-07 Jakub Jelinek <jakub@redhat.com>
12593 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
12594 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
12596 * config/i386/sse.md (v_Yw): New define_mode_attr.
12597 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
12598 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
12600 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
12601 xYw in constraints.
12603 2021-03-06 Julian Brown <julian@codesourcery.com>
12605 * tree-pretty-print.c (dump_generic_node): Emit non-generic
12606 address space info for aggregates.
12608 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
12610 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
12612 2021-03-05 Jakub Jelinek <jakub@redhat.com>
12614 PR middle-end/99322
12615 * tree-cfg.c (bb_to_omp_idx): New variable.
12616 (execute_build_cfg): Release the bb_to_omp_idx vector after
12617 cleanup_tree_cfg returns.
12618 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
12619 for bb_to_omp_idx being a vec<int> instead of pointer to array
12621 (make_edges): Remove bb_to_omp_idx local variable, don't pass
12622 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
12623 vec<int> instead of pointer to array of ints and don't free/release
12625 (remove_bb): When removing a bb and placing forced label somewhere
12626 else, ensure it is put into the same OpenMP region during cfg
12627 pass if possible or to entry successor as fallback. Unregister
12628 bb from bb_to_omp_idx.
12630 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
12633 * lra-constraints.c (process_address_1): Skip decomposing address
12634 for asm insn operand with unknown constraint.
12636 2021-03-05 Martin Jambor <mjambor@suse.cz>
12639 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
12640 corresponding speculative edges if we are about to resolve
12641 sepculation. Make edge direct (and so resolve speculations) before
12642 removing it from call_site_hash.
12643 (cgraph_edge::make_direct): Relax the initial assert to allow calling
12644 the function on speculative direct edges.
12646 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
12648 PR rtl-optimization/99376
12649 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
12650 of low-order zero bits is too large, set the result to 0 directly.
12652 2021-03-04 Jakub Jelinek <jakub@redhat.com>
12654 PR middle-end/93235
12655 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
12656 SUBREG and a SUBREG to op_mode can't be created.
12658 2021-03-04 Alex Coplan <alex.coplan@arm.com>
12661 * config/aarch64/aarch64-sve-builtins.cc
12662 (function_resolver::require_vector_type): Handle error_mark_node.
12664 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
12666 * cfgexpand.c (expand_asm_loc): Pass new parameter.
12667 (expand_asm_stmt): Likewise.
12668 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
12670 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
12671 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
12672 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
12673 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
12674 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
12675 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
12676 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
12677 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
12678 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
12679 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
12680 * doc/tm.texi (md_asm_adjust): Likewise.
12681 * target.def (md_asm_adjust): Likewise.
12683 2021-03-04 Richard Biener <rguenther@suse.de>
12685 PR middle-end/97855
12686 * tree-pretty-print.c: Poison pp_printf.
12687 (dump_decl_name): Avoid use of pp_printf.
12688 (dump_block_node): Likewise.
12689 (dump_generic_node): Likewise.
12691 2021-03-04 Martin Sebor <msebor@redhat.com>
12693 PR middle-end/96963
12694 PR middle-end/94655
12695 * builtins.c (handle_array_ref): New helper.
12696 (handle_mem_ref): New helper.
12697 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
12698 into new helper functions. Correct a workaround for vectorized
12701 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
12703 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
12704 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
12705 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
12706 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
12707 attribute for Power10.
12708 * config/rs6000/mma.md (*movoo): Likewise.
12709 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
12710 (define_mode_attr bits): Add DD/TD modes.
12711 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
12712 store_conditionalpti): Update size attribute for Power10.
12714 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12717 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
12718 -Wuninitialized, -Wmaybe-uninitialized.
12719 (wide-int.o-warn): Likewise.
12721 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
12723 * common/config/arm/arm-common.c: Include configargs.h.
12724 (arm_config_default): New function.
12725 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
12726 processors that do not support Thumb. Take into account the
12727 --with-mode configuration setting for selecting the default.
12728 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
12729 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
12731 2021-03-03 Martin Liska <mliska@suse.cz>
12733 PR gcov-profile/97461
12734 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
12736 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
12739 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12740 point back the hard frame pointer to its default location when the
12741 frame is larger than SEH_MAX_FRAME_SIZE.
12743 2021-03-03 Jakub Jelinek <jakub@redhat.com>
12746 * config/i386/predicates.md (logic_operator): New define_predicate.
12747 * config/i386/i386.md (mov + mem using comm arith peephole2):
12748 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
12749 and the inner mode is [QH]Imode.
12751 2021-03-03 Jakub Jelinek <jakub@redhat.com>
12754 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
12755 (new_loc_list): Clear end_entry.
12756 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
12757 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
12759 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
12760 initialize also end_entry.
12762 2021-03-03 Jakub Jelinek <jakub@redhat.com>
12765 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
12766 partitions, if in non-layout mode after reorder_blocks also move
12767 affected blocks to ensure a single partition transition.
12769 2021-03-03 Jason Merrill <jason@redhat.com>
12772 * cgraphunit.c (process_function_and_variable_attributes): Don't
12773 warn about flatten on an alias if the target also has it.
12774 * cgraph.h (symtab_node::get_alias_target_tree): New.
12776 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
12778 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
12779 period to symbol name.
12780 (tls_get_addr_internal<mode>): Same.
12782 2021-03-02 David Malcolm <dmalcolm@redhat.com>
12785 * diagnostic-show-locus.c
12786 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
12789 2021-03-02 Martin Sebor <msebor@redhat.com>
12791 PR middle-end/99276
12792 * builtins.c (warn_for_access): Remove stray warning text.
12794 2021-03-02 Martin Sebor <msebor@redhat.com>
12796 PR middle-end/99295
12797 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
12800 2021-03-02 Jakub Jelinek <jakub@redhat.com>
12803 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
12804 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
12805 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
12806 DW_MACRO_define_strx and DW_MACRO_undef_strx.
12807 (save_macinfo_strings): Use DW_MACRO_*_str* even with
12808 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
12809 DW_MACRO_undef_strx.
12811 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
12813 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
12815 (BT_FN_V8HI_V8HI_UINT): Likewise.
12816 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
12817 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
12818 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
12819 New builtin definitions.
12820 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
12821 vector extension version.
12822 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
12823 available with current -march level.
12824 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
12825 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
12826 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
12827 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
12828 (vec_extend_to_fp32_lo): Likewise.
12829 (vec_round_from_fp32): Likewise.
12830 (vec_convert_to_fp16): Likewise.
12831 (vec_convert_from_fp16): Likewise.
12832 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
12833 (vclfnls_v8hi): Likewise.
12834 (vcrnfs_v8hi): Likewise.
12835 (vcfn_v8hi): Likewise.
12836 (vcnf_v8hi): Likewise.
12838 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
12840 * common/config/s390/s390-common.c (processor_flags_table): New entry.
12841 * config.gcc: Enable arch14 for --with-arch and --with-tune.
12842 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
12843 arch14 for unknown CPU models.
12844 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
12845 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
12846 (s390_get_sched_attrmask): Likewise.
12847 (s390_get_unit_mask): Likewise.
12848 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
12849 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
12850 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
12851 (TARGET_NNPA_P): New macro definitions.
12852 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
12853 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
12855 2021-03-02 Jakub Jelinek <jakub@redhat.com>
12857 PR middle-end/95757
12858 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
12859 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
12860 != 1 comparisons if name is lhs of a comparison.
12862 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
12866 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
12867 * config/darwin.c (darwin_should_restore_cfa_state): New.
12868 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
12869 * doc/tm.texi: Regenerated.
12870 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
12871 * dwarf2cfi.c (connect_traces): If the target requests, restore
12872 the CFA expression after a DW_CFA_restore.
12873 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
12875 2021-03-01 Martin Liska <mliska@suse.cz>
12878 * optc-save-gen.awk: Add 4 more exceptions.
12880 2021-03-01 Nathan Sidwell <nathan@acm.org>
12883 * tree.h (TYPE_ALIGN_RAW): New accessor.
12884 (TYPE_ALIGN): Use it.
12886 2021-03-01 Jan Hubicka <jh@suse.cz>
12889 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
12891 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
12894 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12895 point the hard frame pointer to the SSE register save area instead
12896 of the general register save area. Perform only minimal adjustment
12897 for small frames if it is initially not correctly aligned.
12898 (ix86_expand_prologue): Remove early saves for a SEH target.
12899 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
12901 2021-02-28 Jakub Jelinek <jakub@redhat.com>
12904 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
12905 typo - referneced -> referenced.
12906 * tree.c (component_ref_size): Fix comment typo -
12907 refernce -> reference.
12908 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
12909 traling -> trailing.
12910 (aliasing_component_refs_p): Fix comment typos -
12911 refernce -> reference and refernece -> reference and
12912 traling -> trailing.
12913 (nonoverlapping_refs_since_match_p): Fix comment typo -
12914 referneces -> references.
12915 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
12916 referneces -> references.
12918 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
12920 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
12921 diagnostic message to avoid use of a contraction and format
12924 2021-02-27 Jakub Jelinek <jakub@redhat.com>
12927 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
12928 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
12929 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
12930 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
12933 2021-02-26 Richard Biener <rguenther@suse.de>
12935 PR middle-end/99281
12936 * expr.c (store_field): For calls with return-slot optimization
12937 and addressable return type expand the store directly.
12939 2021-02-26 Richard Biener <rguenther@suse.de>
12942 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
12944 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
12947 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
12950 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
12952 * config.gcc: Add rs6000-pcrel-opt.o.
12953 * config/rs6000/rs6000-pcrel-opt.c: New file.
12954 * config/rs6000/pcrel-opt.md: New file.
12955 * config/rs6000/predicates.md: Add d_form_memory predicate.
12956 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
12957 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
12958 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
12959 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
12960 and make_pass_pcrel_opt().
12961 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
12962 (rs6000_option_override_internal): Add pcrel-opt.
12963 (rs6000_delegitimize_address): Support pcrel-opt.
12964 (rs6000_opt_masks): Add pcrel-opt.
12965 (pcrel_opt_valid_mem_p): New function.
12966 (reg_to_non_prefixed): Make global.
12967 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
12968 (output_pcrel_opt_reloc): New function.
12969 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
12970 (pcrel_extern_addr): Set loads_extern_addr.
12971 Add include for pcrel-opt.md.
12972 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
12973 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
12976 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
12979 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
12980 If TARGET_64BIT and dest is SUBREG, we check the width, if it
12981 equal to SImode, we use SImode operation, just like what we are
12984 2021-02-26 Marek Polacek <polacek@redhat.com>
12986 * builtins.c (warn_for_access): Fix typos.
12988 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
12990 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
12991 mark in front of the immediate quantity.
12992 (<optab>_rolsi3_uxtw): Likewise.
12994 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
12997 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
12998 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
12999 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
13000 address and disable when the FPCXT is not available.
13001 (nonsecure_call_value_reg_thumb2): Likewise.
13003 2021-02-25 Nathan Sidwell <nathan@acm.org>
13006 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
13008 2021-02-25 Tamar Christina <tamar.christina@arm.com>
13010 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
13012 2021-02-25 Richard Biener <rguenther@suse.de>
13014 PR tree-optimization/99253
13015 * tree-vect-loop.c (check_reduction_path): First compute
13016 code, then verify out-of-loop uses.
13018 2021-02-25 Jakub Jelinek <jakub@redhat.com>
13021 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
13023 2021-02-25 Jakub Jelinek <jakub@redhat.com>
13025 PR tree-optimization/80635
13026 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
13027 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
13028 has mode precision.
13030 2021-02-25 Richard Biener <rguenther@suse.de>
13032 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
13033 load_map population.
13034 (vect_match_slp_patterns_2): Revert part of last change.
13035 (vect_analyze_slp): Do not interleave optimize_load_redistribution
13036 with pattern detection but do it afterwards. Dump the
13037 whole SLP graph after pattern recognition and load
13038 redistribution optimization finished.
13040 2021-02-24 Jakub Jelinek <jakub@redhat.com>
13043 * omp-low.c (struct omp_context): Add teams_nested_p and
13044 nonteams_nested_p members.
13045 (scan_omp_target): Diagnose teams nested inside of target with other
13046 directives strictly nested inside of the same target.
13047 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
13048 ctx->nonteams_nested_p as needed.
13050 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
13052 PR inline-asm/99123
13053 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
13055 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
13057 * config/cris/cris.c (cris_expand_prologue): Set
13058 current_function_static_stack_size, if flag_stack_usage_info.
13060 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
13062 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
13063 (rs6000_final_prescan_insn): Adjust.
13064 (rs6000_asm_output_opcode): Likewise.
13066 2021-02-24 Martin Sebor <msebor@redhat.com>
13068 PR middle-end/97172
13069 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
13070 from function arguments.
13072 2021-02-24 Tamar Christina <tamar.christina@arm.com>
13074 PR tree-optimization/99220
13075 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
13076 node from cache when it's about to be deleted.
13078 2021-02-24 Jakub Jelinek <jakub@redhat.com>
13080 PR tree-optimization/99225
13081 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
13082 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
13083 build_int_cst (..., 1). Formatting fixes.
13085 2021-02-24 Tamar Christina <tamar.christina@arm.com>
13087 PR tree-optimization/99149
13088 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
13090 (vect_slp_reset_pattern): Remove.
13091 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
13092 (complex_mul_pattern::build, complex_fma_pattern::build,
13093 complex_fms_pattern::build): Fix ref counts.
13094 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
13095 when node is being deleted.
13096 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
13097 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
13099 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
13101 2021-02-24 Matthias Klose <doko@ubuntu.com>
13104 2020-12-07 Matthias Klose <doko@ubuntu.com>
13106 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
13107 and ENABLE_RTL_FLAG_CHECKING.
13109 2021-02-24 Richard Biener <rguenther@suse.de>
13112 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
13114 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
13116 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
13117 (vsx_assemble_pair): ...to this.
13118 (*mma_assemble_pair): Rename from this...
13119 (*vsx_assemble_pair): ...to this.
13120 (mma_disassemble_pair): Rename from this...
13121 (vsx_disassemble_pair): ...to this.
13122 (*mma_disassemble_pair): Rename from this...
13123 (*vsx_disassemble_pair): ...to this.
13124 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
13125 BU_COMPAT): New macros.
13126 (mma_assemble_pair): Rename from this...
13127 (vsx_assemble_pair): ...to this.
13128 (mma_disassemble_pair): Rename from this...
13129 (vsx_disassemble_pair): ...to this.
13130 (mma_assemble_pair): New compatibility built-in.
13131 (mma_disassemble_pair): Likewise.
13132 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
13133 (RS6000_BUILTIN_COMPAT): Define.
13134 (bdesc_compat): New.
13135 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
13136 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
13137 and VSX_BUILTIN_ASSEMBLE_PAIR.
13138 (rs6000_init_builtins): Register compatibility built-ins.
13139 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
13140 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
13141 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
13142 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
13143 (__builtin_vsx_assemble_pair): ...to this.
13144 (__builtin_mma_disassemble_pair): Rename from this...
13145 (__builtin_vsx_disassemble_pair): ...to this.
13147 2021-02-23 Martin Liska <mliska@suse.cz>
13150 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
13151 with different alignment. That leads to an invalid red zone
13152 size allocated in runtime.
13154 2021-02-23 Jakub Jelinek <jakub@redhat.com>
13156 PR tree-optimization/99204
13157 * fold-const.c (fold_read_from_constant_string): Check that
13158 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
13160 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
13161 Kewen Lin <linkw@gcc.gnu.org>
13163 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
13164 (rotl<mode>3_insert_3): ...this.
13165 (plus_ior_xor): New code_iterator.
13166 (define_split for GPR rl*imi): New splitter.
13167 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
13168 for integer merging.
13170 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13172 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
13174 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
13175 into a register when the above is enabled.
13176 * config/aarch64/aarch64.c (neoversev1_tunings):
13177 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
13178 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
13180 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
13182 * config/cris/cris.c (cris_print_operand) <'T'>: Change
13183 valid operand from is now an addi mult-value to shift-value.
13184 * config/cris/cris.md (*addi): Change expression of scaled
13185 operand from mult to ashift.
13186 * config/cris/cris.md (*addi_reload): New insn_and_split.
13188 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
13191 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
13192 hook_bool_const_tree_hwi_hwi_const_tree_true.
13193 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
13195 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
13197 PR rtl-optimization/98791
13198 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
13199 for unordered modes.
13201 2021-02-22 Martin Liska <mliska@suse.cz>
13203 * tree-inline.c (inline_forbidden_p): Set
13204 inline_forbidden_reason.
13206 2021-02-22 Richard Biener <rguenther@suse.de>
13208 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
13211 2021-02-22 Richard Biener <rguenther@suse.de>
13213 PR tree-optimization/99165
13214 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
13215 Accumulate changed to ret.
13217 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
13220 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
13222 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
13224 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
13227 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
13229 (trunctf<DFP_ALL:mode>2): Likewise.
13230 (trunctdtf2_vr): Likewise.
13231 (trunctdtf2): Likewise.
13232 (extend<DFP_ALL:mode>tf2_vr): Likewise.
13233 (extend<DFP_ALL:mode>tf2): Likewise.
13234 (extendtftd2_vr): Likewise.
13235 (extendtftd2): Likewise.
13237 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
13239 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
13240 add memory alternative.
13241 (tf_to_fprx2): New pattern.
13243 2021-02-19 Martin Sebor <msebor@redhat.com>
13246 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
13247 (attr_access::free_lang_data): Remove a spurious test.
13249 2021-02-19 Nathan Sidwell <nathan@acm.org>
13251 * doc/invoke.texi (flang-info-module-read): Document.
13253 2021-02-19 Martin Liska <mliska@suse.cz>
13255 PR translation/99167
13256 * params.opt: Fix typo.
13258 2021-02-19 Richard Biener <rguenther@suse.de>
13260 PR middle-end/99122
13261 * tree-inline.c (inline_forbidden_p): Do not inline functions
13262 with VLA arguments or return value.
13264 2021-02-19 Jakub Jelinek <jakub@redhat.com>
13267 * config/arm/arm.md (*stack_protect_combined_set_insn,
13268 *stack_protect_combined_test_insn): If force_const_mem result
13269 is not valid general operand, force its address into the destination
13272 2021-02-19 Jakub Jelinek <jakub@redhat.com>
13275 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
13276 pad or non-local label, put FORCED_LABELs from bb b after that label
13277 rather than before it.
13279 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
13282 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
13283 expand_vector_broadcast' to emit the vec_duplicate operand.
13285 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
13287 PR rtl-optimization/96264
13288 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
13291 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
13294 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
13295 looking up the retain attribute.
13296 (resolve_unique_section): Likewise.
13297 (get_variable_section): Likewise.
13298 (switch_to_section): Likewise. Warn when a symbol without the
13299 retain attribute and a symbol with the retain attribute are
13300 placed in the section with the same name, instead of the used
13302 * doc/extend.texi: Document the "retain" attribute.
13304 2021-02-18 Nathan Sidwell <nathan@acm.org>
13307 * doc/invoke.texi (flang-info-include-translate): Document header
13310 2021-02-18 Richard Biener <rguenther@suse.de>
13312 PR middle-end/99122
13313 * ipa-fnsummary.c (analyze_function_body): Set
13314 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
13315 * tree-inline.c (insert_init_debug_bind): Pass NULL for
13316 error_mark_node values.
13317 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
13319 (setup_one_parameter): Delay force_value_to_type until when
13322 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
13324 PR tree-optimization/99142
13325 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
13327 2021-02-18 Jakub Jelinek <jakub@redhat.com>
13329 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
13330 wide_int_bitmask::wide_int_bitmask (uint64_t),
13331 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
13332 wide_int_bitmask::operator ~ () const,
13333 wide_int_bitmask::operator | (wide_int_bitmask) const,
13334 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
13336 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
13337 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
13338 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
13339 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
13340 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
13341 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
13342 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
13343 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
13344 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
13345 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
13346 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
13347 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
13348 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
13349 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
13350 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
13351 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
13352 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
13353 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
13354 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
13355 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
13356 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
13357 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
13358 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
13359 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
13361 2021-02-18 Jakub Jelinek <jakub@redhat.com>
13363 PR middle-end/99109
13364 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
13365 (build_printable_array_type): ... this. Add nelts argument. For
13366 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
13367 nelts, call build_array_type_nelts.
13368 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
13369 instead of build_zero_elt_array_type and build_array_type_nelts.
13371 2021-02-18 Jakub Jelinek <jakub@redhat.com>
13374 * config/i386/i386.c (distance_non_agu_define): Don't call
13375 extract_insn_cached here.
13376 (ix86_lea_outperforms): Save and restore recog_data around call
13377 to distance_non_agu_define and distance_agu_use.
13378 (ix86_ok_to_clobber_flags): Remove.
13379 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
13380 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
13381 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
13382 into define_insn. Move the splitting to define_peephole2 and
13383 check there using peep2_regno_dead_p if FLAGS_REG is dead.
13385 2021-02-17 Julian Brown <julian@codesourcery.com>
13387 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
13390 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
13393 * config/mips/mips.c (mips_symbol_insns): Do not use
13394 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
13396 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
13398 PR inline-asm/98096
13399 * stmt.c (resolve_operand_name_1): Take inout operands into account
13400 for access to labels by names.
13401 * doc/extend.texi: Describe counting operands for accessing labels.
13403 2021-02-16 Richard Biener <rguenther@suse.de>
13405 PR tree-optimization/38474
13406 * tree-ssa-structalias.c (variable_info::address_taken): New.
13407 (new_var_info): Initialize address_taken.
13408 (process_constraint): Set address_taken.
13409 (solve_constraints): Use the new address_taken flag rather
13410 than is_reg_var for sorting variables.
13411 (dump_constraint): Dump the variable number if the name
13414 2021-02-16 Jakub Jelinek <jakub@redhat.com>
13417 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
13418 multiply by 4096 and for inbranch by 8192.
13419 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
13420 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
13422 2021-02-15 Maya Rashish <coypu@sdf.org>
13424 * config/aarch64/aarch64.c (aarch64_init_builtins):
13425 Call SUBTARGET_INIT_BUILTINS.
13427 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
13429 PR rtl-optimization/98872
13430 * init-regs.c (initialize_uninitialized_regs): Skip initialization
13431 if CONST0_RTX is NULL.
13433 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
13435 PR rtl-optimization/98863
13436 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
13437 (function_info::build_info): Turn into a declaration, moving the
13438 definition to internals.h.
13439 (function_info::bb_walker): Declare.
13440 (function_info::create_reg_use): Likewise.
13441 (function_info::calculate_potential_phi_regs): Take a build_info
13443 (function_info::place_phis, function_info::create_ebbs): Declare.
13444 (function_info::calculate_ebb_live_in_for_debug): Likewise.
13445 (function_info::populate_backedge_phis): Delete.
13446 (function_info::start_block, function_info::end_block): Declare.
13447 (function_info::populate_phi_inputs): Delete.
13448 (function_info::m_potential_phi_regs): Move information to build_info.
13449 * rtl-ssa/internals.h: New file.
13450 (function_info::bb_phi_info): New class.
13451 (function_info::build_info): Moved from functions.h.
13452 Add a constructor and destructor.
13453 (function_info::build_info::ebb_use): Delete.
13454 (function_info::build_info::ebb_def): Likewise.
13455 (function_info::build_info::bb_live_out): Likewise.
13456 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
13457 (function_info::build_info::potential_phi_regs): Likewise.
13458 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
13459 (function_info::build_info::ebb_def_regs): Likewise.
13460 (function_info::build_info::bb_phis): Likewise.
13461 (function_info::build_info::bb_mem_live_out): Likewise.
13462 (function_info::build_info::bb_to_rpo): Likewise.
13463 (function_info::build_info::def_stack): Likewise.
13464 (function_info::build_info::old_def_stack_limit): Likewise.
13465 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
13466 Remove the regno argument. Push the previous definition onto the
13467 definition stack where necessary.
13468 * rtl-ssa/accesses.cc: Include internals.h.
13469 * rtl-ssa/changes.cc: Likewise.
13470 * rtl-ssa/blocks.cc: Likewise.
13471 (function_info::build_info::build_info): Define.
13472 (function_info::build_info::~build_info): Likewise.
13473 (function_info::bb_walker): New class.
13474 (function_info::bb_walker::bb_walker): Define.
13475 (function_info::add_live_out_use): Convert a logarithmic-complexity
13476 test into a linear one. Allow the same definition to be passed
13478 (function_info::calculate_potential_phi_regs): Moved from
13479 functions.cc. Take a build_info parameter and store the
13480 information there instead.
13481 (function_info::place_phis): New function.
13482 (function_info::add_entry_block_defs): Update call to record_reg_def.
13483 (function_info::calculate_ebb_live_in_for_debug): New function.
13484 (function_info::add_phi_nodes): Use bb_phis to decide which
13485 registers need phi nodes and initialize ebb_def_regs accordingly.
13486 Do not add degenerate phis here.
13487 (function_info::add_artificial_accesses): Use create_reg_use.
13488 Assert that all definitions are listed in the DF LR sets.
13489 Update call to record_reg_def.
13490 (function_info::record_block_live_out): Record live-out register
13491 values in the phis of successor blocks. Use the live-out set
13492 when processing the last block in an EBB, instead of always
13493 using the live-in sets of successor blocks. AND the live sets
13494 with the set of registers that have been defined in the EBB,
13495 rather than with all potential phi registers. Cope correctly
13496 with branches back to the start of the current EBB.
13497 (function_info::start_block): New function.
13498 (function_info::end_block): Likewise.
13499 (function_info::populate_phi_inputs): Likewise.
13500 (function_info::create_ebbs): Likewise.
13501 (function_info::process_all_blocks): Rewrite into a multi-phase
13503 * rtl-ssa/functions.cc: Include internals.h.
13504 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
13505 (function_info::init_function_data): Remove caller.
13506 * rtl-ssa/insns.cc: Include internals.h
13507 (function_info::create_reg_use): New function. Lazily any
13508 degenerate phis needed by the linear RPO view.
13509 (function_info::record_use): Use create_reg_use. When processing
13510 debug uses, use potential_phi_regs and test it before checking
13511 whether the register is live on entry to the current EBB. Lazily
13512 calculate ebb_live_in_for_debug.
13513 (function_info::record_call_clobbers): Update call to record_reg_def.
13514 (function_info::record_def): Likewise.
13516 2021-02-15 Martin Liska <mliska@suse.cz>
13518 * toplev.c (init_asm_output): Free output of
13519 gen_command_line_string function.
13520 (process_options): Likewise.
13522 2021-02-15 Martin Liska <mliska@suse.cz>
13524 * params.opt: Add 2 missing Param keywords.
13526 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
13528 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
13530 2021-02-15 Jakub Jelinek <jakub@redhat.com>
13532 PR tree-optimization/99079
13533 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
13534 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
13535 require both type and TREE_TYPE (@1) to be integral types and either
13536 type having smaller or equal precision, or TREE_TYPE (@1) being
13537 unsigned type, or type being signed type. If TREE_TYPE (@1)
13538 doesn't have wrapping overflow, perform the subtraction of one in
13541 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
13542 Richard Biener <rguether@suse.de>
13545 * ipa-reference.c (ipa_init): Only conditinally initialize
13546 reference_vars_to_consider.
13547 (propagate): Conditionally deninitialize reference_vars_to_consider.
13548 (ipa_reference_write_optimization_summary): Sanity check that
13549 reference_vars_to_consider is not allocated.
13551 2021-02-13 Levy Hsu <admin@levyhsu.com>
13554 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
13555 extend parameter to get_si_mem_base_reg declaration.
13556 (get_si_mem_base_reg): Add extend parameter. Set it.
13557 (analyze): Pass extend arg to get_si_mem_base_reg.
13558 (transform): Likewise. Use it when rewriting mems.
13559 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
13560 loads and emit sign/zero extending load followed by subreg move.
13562 2021-02-13 Jim Wilson <jimw@sifive.com>
13565 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
13566 exit when !reload_completed. Only perform check for compressed reg
13567 if reload_completed.
13568 (riscv_rtx_costs): In MEM case, when optimizing for size and
13569 shorten memrefs, if not compressible, then increase cost.
13571 2021-02-13 Jakub Jelinek <jakub@redhat.com>
13573 PR rtl-optimization/98439
13574 * recog.c (pass_split_before_regstack::gate): Enable even when
13575 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
13578 2021-02-13 Jakub Jelinek <jakub@redhat.com>
13581 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
13582 swap of V2SImode elements in memory into DImode memory rotate by 32.
13584 2021-02-12 Martin Sebor <msebor@redhat.com>
13586 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
13588 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
13590 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
13591 m_temp_obstack rather than m_obstack to allocate the temporary use.
13593 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
13595 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
13596 as read-modify operations.
13598 2021-02-12 Richard Biener <rguenther@suse.de>
13600 PR middle-end/38474
13601 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
13602 fbi->aa_walk_budget is bigger than zero. Update
13603 fbi->aa_walk_budget.
13604 (param_change_prob): Likewise.
13605 * ipa-prop.c (detect_type_change_from_memory_writes):
13606 Properly account walk_aliased_vdefs.
13607 (parm_preserved_before_stmt_p): Canonicalize updates.
13608 (parm_ref_data_preserved_p): Likewise.
13609 (parm_ref_data_pass_through_p): Likewise.
13610 (determine_known_aggregate_parts): Account own alias queries.
13612 2021-02-12 Martin Liska <mliska@suse.cz>
13614 * opts-common.c (decode_cmdline_option): Release werror_arg.
13615 * opts.c (gen_producer_string): Release output of
13616 gen_command_line_string.
13618 2021-02-12 Richard Biener <rguenther@suse.de>
13620 PR tree-optimization/38474
13621 * params.opt (-param=max-store-chains-to-track=): New param.
13622 (-param=max-stores-to-track=): Likewise.
13623 * doc/invoke.texi (max-store-chains-to-track): Document.
13624 (max-stores-to-track): Likewise.
13625 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
13627 (pass_store_merging::m_n_stores): Likewise.
13628 (pass_store_merging::terminate_and_process_chain): Update
13629 m_n_stores and m_n_chains.
13630 (pass_store_merging::process_store): Likewise. Terminate
13631 oldest chains if the number of stores or chains get too large.
13632 (imm_store_chain_info::terminate_and_process_chain): Dump
13635 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
13637 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
13638 the cold section, emit a nop before the directive if the previous
13639 active instruction can throw.
13641 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
13644 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
13645 memory addresses that are legal for quad word accesses.
13647 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
13650 * config/arm/thumb2.md (*doloop_end_internal): Generate
13651 alternative sequence to handle long range branches.
13653 2021-02-11 Joel Hutton <joel.hutton@arm.com>
13655 PR tree-optimization/98772
13656 * optabs-tree.c (supportable_half_widening_operation): New function
13657 to check for supportable V8QI->V8HI widening patterns.
13658 * optabs-tree.h (supportable_half_widening_operation): New function.
13659 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
13660 to create promotion stmts for V8QI->V8HI widening patterns.
13661 (vectorizable_conversion): Add case for V8QI->V8HI.
13663 2021-02-11 Richard Biener <rguenther@suse.de>
13665 * sparseset.h (SPARSESET_ELT_BITS): Remove.
13666 (SPARSESET_ELT_TYPE): Use unsigned int.
13667 * fwprop.c: Do not include sparseset.h.
13669 2021-02-10 Jakub Jelinek <jakub@redhat.com>
13672 * varasm.c (declare_weak): For -fsyntax-only, allow even
13673 TREE_ASM_WRITTEN function decls.
13675 2021-02-10 Jakub Jelinek <jakub@redhat.com>
13678 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
13679 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
13680 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
13681 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
13682 calling simplify_gen_subreg on it.
13684 2021-02-10 Martin Liska <mliska@suse.cz>
13686 * config/nvptx/nvptx.c (nvptx_option_override): Use
13687 flag_patchable_function_entry instead of the removed
13688 function_entry_patch_area_size.
13690 2021-02-10 Martin Liska <mliska@suse.cz>
13692 PR tree-optimization/99002
13693 PR tree-optimization/99026
13694 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
13695 leak when adjacent cases are merged.
13696 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
13698 (make_pass_lower_switch): Remove trailing whitespace.
13699 * tree-switch-conversion.h (release_clusters): New.
13701 2021-02-10 Richard Biener <rguenther@suse.de>
13703 PR rtl-optimization/99054
13704 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
13705 (fixup_partitions): Adjust.
13706 (rtl_verify_edges): Likewise.
13708 2021-02-10 Jakub Jelinek <jakub@redhat.com>
13710 PR middle-end/99007
13711 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
13712 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
13715 2021-02-10 Richard Biener <rguenther@suse.de>
13718 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
13721 2021-02-10 Richard Biener <rguenther@suse.de>
13723 PR tree-optimization/99024
13724 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
13725 clear loop->aux if it is associated with the destroyed loop_vinfo.
13727 2021-02-10 Martin Liska <mliska@suse.cz>
13729 PR tree-optimization/99002
13730 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
13733 2021-02-10 Martin Liska <mliska@suse.cz>
13736 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
13737 a reference exists.
13739 2021-02-10 Jakub Jelinek <jakub@redhat.com>
13742 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
13743 at class scope for DWARF5+.
13745 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
13747 PR rtl-optimization/96015
13748 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
13749 (relax_delay_slots): When deleting a jump to the next active
13750 instruction over a barrier, first delete the barrier if the
13751 jump is the only way to reach the target label.
13753 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
13755 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
13756 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
13757 vector multiplies and vect.alu for SSRA.
13758 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
13759 vect.mul cost field.
13760 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
13761 * config/arm/arm.c: Likewise.
13763 2021-02-09 Richard Biener <rguenther@suse.de>
13765 PR tree-optimization/98863
13766 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
13767 * tree-ssa-sccvn.c (last_pushed_avail): New global.
13768 (rpo_elim::eliminate_push_avail): Chain pushed avails.
13769 (unwind_state::avail_top): Add.
13770 (do_unwind): Rewrite unwinding of avail entries.
13771 (do_rpo_vn): Initialize last_pushed_avail and
13772 avail_top of the undo state.
13774 2021-02-09 Jakub Jelinek <jakub@redhat.com>
13776 PR middle-end/99004
13777 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
13778 const char * to char * and free those pointers after use.
13780 2021-02-09 Richard Biener <rguenther@suse.de>
13782 PR tree-optimization/99017
13783 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
13784 zero vector cost entries.
13786 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
13788 PR middle-end/98974
13789 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
13790 parameter in vectorizable_condition.
13792 2021-02-08 Richard Biener <rguenther@suse.de>
13795 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
13797 2021-02-08 Martin Liska <mliska@suse.cz>
13800 * cfgexpand.c (pass_expand::execute): Parse per-function option
13801 flag_patchable_function_entry and use it.
13802 * common.opt: Remove function_entry_patch_area_size and
13803 function_entry_patch_area_start global variables.
13804 * opts.c (parse_and_check_patch_area): New function.
13805 (common_handle_option): Use it.
13806 * opts.h (parse_and_check_patch_area): New function.
13807 * toplev.c (process_options): Parse and use
13808 function_entry_patch_area_size.
13810 2021-02-08 Martin Sebor <msebor@redhat.com>
13812 * doc/extend.texi (attribute malloc): Correct typos.
13814 2021-02-05 Nathan Sidwell <nathan@acm.org>
13817 * gcc.c (driver::maybe_run_linker): Check for input file
13818 accessibility if not linking.
13820 2021-02-05 Richard Biener <rguenther@suse.de>
13822 PR tree-optimization/98855
13823 * tree-vectorizer.h (add_stmt_cost): New overload.
13824 * tree-vect-slp.c (li_cost_vec_cmp): New.
13825 (vect_bb_slp_scalar_cost): Cost individual loop regions
13826 separately. Account for the scalar instance root stmt.
13828 2021-02-05 Tom de Vries <tdevries@suse.de>
13831 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
13833 (bit_test_cluster::emit): Reuse location_t for newly created
13835 (switch_decision_tree::try_switch_expansion): Preserve
13837 * tree-switch-conversion.h: Change function signatures.
13839 2021-02-05 Jakub Jelinek <jakub@redhat.com>
13842 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
13843 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
13844 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
13845 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
13847 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13849 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
13850 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
13851 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
13852 (vget_high_f16): Reimplement using new builtin.
13853 (vget_high_f32): Likewise.
13854 (vget_high_f64): Likewise.
13855 (vget_high_p8): Likewise.
13856 (vget_high_p16): Likewise.
13857 (vget_high_p64): Likewise.
13858 (vget_high_s8): Likewise.
13859 (vget_high_s16): Likewise.
13860 (vget_high_s32): Likewise.
13861 (vget_high_s64): Likewise.
13862 (vget_high_u8): Likewise.
13863 (vget_high_u16): Likewise.
13864 (vget_high_u32): Likewise.
13865 (vget_high_u64): Likewise.
13867 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13869 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
13870 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
13871 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
13872 (vget_low_f16): Reimplement using new builtin.
13873 (vget_low_f32): Likewise.
13874 (vget_low_f64): Likewise.
13875 (vget_low_p8): Likewise.
13876 (vget_low_p16): Likewise.
13877 (vget_low_p64): Likewise.
13878 (vget_low_s8): Likewise.
13879 (vget_low_s16): Likewise.
13880 (vget_low_s32): Likewise.
13881 (vget_low_s64): Likewise.
13882 (vget_low_u8): Likewise.
13883 (vget_low_u16): Likewise.
13884 (vget_low_u32): Likewise.
13885 (vget_low_u64): Likewise.
13887 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
13889 * gcc.c (print_multilib_info): Check all required argument is provided
13892 2021-02-05 liuhongt <hongtao.liu@intel.com>
13895 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
13896 generate integer mask comparison for 128/256-bits vector when
13897 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
13898 delete redundant !maskcmp condition.
13899 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
13901 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
13902 condition directly to if (maskcmp), add extra check for
13903 cmpmode, it should be MODE_INT.
13904 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
13905 parameters op_true/op_false.
13906 (ix86_use_mask_cmp_p): New.
13908 2021-02-05 liuhongt <hongtao.liu@intel.com>
13911 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
13912 Remove m_GENERIC from ~list.
13913 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
13915 2021-02-04 David Malcolm <dmalcolm@redhat.com>
13918 * diagnostic-show-locus.c (compatible_locations_p): Require
13919 locations in the same macro map to be either both from the
13920 macro definition, or both from the macro arguments.
13922 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
13924 * config/aarch64/aarch64-simd-builtins.def: Add
13925 [su]mull_hi_lane[q] builtin generator macros.
13926 * config/aarch64/aarch64-simd.md
13927 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
13928 (aarch64_<su>mull_hi_lane<mode>): Define.
13929 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
13930 (aarch64_<su>mull_hi_laneq<mode>): Define.
13931 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
13932 builtin instead of inline asm.
13933 (vmull_high_lane_s32): Likewise.
13934 (vmull_high_lane_u16): Likewise.
13935 (vmull_high_lane_u32): Likewise.
13936 (vmull_high_laneq_s16): Likewise.
13937 (vmull_high_laneq_s32): Likewise.
13938 (vmull_high_laneq_u16): Likewise.
13939 (vmull_high_laneq_u32): Liekwise.
13941 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
13943 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
13944 builtin generator macros.
13945 * config/aarch64/aarch64-simd.md
13946 (aarch64_<su>mull_hi_n<mode>_insn): Define.
13947 (aarch64_<su>mull_hi_n<mode>): Define.
13948 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
13949 instead of inline asm.
13950 (vmull_high_n_s32): Likewise.
13951 (vmull_high_n_u16): Likewise.
13952 (vmull_high_n_u32): Likewise.
13954 2021-02-04 Richard Biener <rguenther@suse.de>
13956 PR tree-optimization/98855
13957 * tree-vect-loop.c (vectorizable_phi): Do not cost
13958 single-argument PHIs.
13959 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
13960 * tree-vect-stmts.c (vectorizable_bswap): Also perform
13961 costing for SLP operation.
13963 2021-02-04 Martin Liska <mliska@suse.cz>
13965 * doc/extend.texi: Mention -mprefer-vector-width in target
13968 2021-02-03 Martin Sebor <msebor@redhat.com>
13970 PR tree-optimization/98937
13971 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
13972 Flush pointer_query cache.
13974 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
13976 * config/rs6000/genfusion.pl (gen_2logical): Add missing
13977 fixes based on patch review.
13978 * config/rs6000/fusion.md: Regenerate file.
13980 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
13982 * config/rs6000/t-rs6000: Comment out auto generation of
13985 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
13987 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
13988 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
13989 (output_file_start): Add gfx908.
13990 * config/gcn/gcn.opt (gpu_type): Add gfx908.
13991 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
13992 (MULTILIB_DIRNAMES): Add gfx908.
13993 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
13994 (main): Recognize gfx908.
13995 * config/gcn/t-omp-device: Add gfx908.
13997 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
13999 * config/aarch64/aarch64-simd-builtins.def: Add
14000 [su]mlsl_hi_lane[q] builtin macro generators.
14001 * config/aarch64/aarch64-simd.md
14002 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
14003 (aarch64_<su>mlsl_hi_lane<mode>): Define.
14004 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
14005 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
14006 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
14007 builtin instead of inline asm.
14008 (vmlsl_high_lane_s32): Likewise.
14009 (vmlsl_high_lane_u16): Likewise.
14010 (vmlsl_high_lane_u32): Likewise.
14011 (vmlsl_high_laneq_s16): Likewise.
14012 (vmlsl_high_laneq_s32): Likewise.
14013 (vmlsl_high_laneq_u16): Likewise.
14014 (vmlsl_high_laneq_u32): Likewise.
14015 (vmlal_high_laneq_u32): Likewise.
14017 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14019 * config/aarch64/aarch64-simd-builtins.def: Add
14020 [su]mlal_hi_lane[q] builtin generator macros.
14021 * config/aarch64/aarch64-simd.md
14022 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
14023 (aarch64_<su>mlal_hi_lane<mode>): Define.
14024 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
14025 (aarch64_<su>mlal_hi_laneq<mode>): Define.
14026 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
14027 builtin instead of inline asm.
14028 (vmlal_high_lane_s32): Likewise.
14029 (vmlal_high_lane_u16): Likewise.
14030 (vmlal_high_lane_u32): Likewise.
14031 (vmlal_high_laneq_s16): Likewise.
14032 (vmlal_high_laneq_s32): Likewise.
14033 (vmlal_high_laneq_u16): Likewise.
14034 (vmlal_high_laneq_u32): Likewise.
14036 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14038 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
14039 builtin generator macros.
14040 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
14042 (aarch64_<su>mlsl_hi_n<mode>): Define.
14043 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
14044 instead of inline asm.
14045 (vmlsl_high_n_s32): Likewise.
14046 (vmlsl_high_n_u16): Likewise.
14047 (vmlsl_high_n_u32): Likewise.
14049 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14051 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
14052 builtin generator macros.
14053 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
14055 (aarch64_<su>mlal_hi_n<mode>): Define.
14056 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
14057 instead of inline asm.
14058 (vmlal_high_n_s32): Likewise.
14059 (vmlal_high_n_u16): Likewise.
14060 (vmlal_high_n_u32): Likewise.
14062 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14064 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
14066 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
14068 (aarch64_<su>mlal_hi<mode>_insn): This.
14069 (aarch64_<su>mlal_hi<mode>): Define.
14070 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
14071 instead of inline asm.
14072 (vmlal_high_s16): Likewise.
14073 (vmlal_high_s32): Likewise.
14074 (vmlal_high_u8): Likewise.
14075 (vmlal_high_u16): Likewise.
14076 (vmlal_high_u32): Likewise.
14078 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
14080 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
14081 after calling alter_subreg() on a (mem).
14083 2021-02-03 Martin Liska <mliska@suse.cz>
14086 * lto-streamer-out.c (produce_lto_section): Fill up missing
14088 * lto-streamer.h (struct lto_section): Add _padding field.
14090 2021-02-03 Richard Biener <rguenther@suse.de>
14092 * lto-streamer.c (lto_get_section_name): Free temporary
14094 * tree-loop-distribution.c
14095 (loop_distribution::merge_dep_scc_partitions): Free edge data.
14097 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14099 PR middle-end/97487
14100 * ifcvt.c (noce_can_force_operand): New function.
14101 (noce_emit_move_insn): Use it.
14102 (noce_try_sign_mask): Likewise. Formatting fix.
14104 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14106 PR middle-end/97971
14107 * lra-constraints.c (process_alt_operands): For inline asm, don't call
14108 fatal_insn, but instead return false.
14110 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14112 PR tree-optimization/98287
14113 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
14116 2021-02-03 Tamar Christina <tamar.christina@arm.com>
14118 PR tree-optimization/98928
14119 * tree-vect-loop.c (vect_analyze_loop_2): Change
14120 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
14121 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
14122 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
14123 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
14125 2021-02-02 Richard Biener <rguenther@suse.de>
14127 * gimple-loop-interchange.cc (prepare_data_references):
14129 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
14130 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
14131 * tree-vect-stmts.c (vectorizable_condition): Do not
14133 (vectorizable_comparison): Likewise.
14135 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14137 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
14138 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
14139 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
14140 (vrsqrteq_u32): Likewise.
14142 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14144 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
14145 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
14146 (aarch64_sqxtun2<mode>_be): Likewise.
14147 (aarch64_sqxtun2<mode>): Likewise.
14148 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
14149 (vqmovun_high_s32): Likewise.
14150 (vqmovun_high_s64): Likewise.
14151 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
14153 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14155 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
14157 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
14159 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14161 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
14162 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
14163 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
14164 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
14165 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
14166 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
14167 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
14168 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
14170 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14172 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
14173 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
14174 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
14176 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14178 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
14179 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
14181 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14183 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
14184 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
14185 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
14186 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
14187 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
14188 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
14189 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
14190 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
14191 NONE builtin flags.
14193 2021-02-02 Jakub Jelinek <jakub@redhat.com>
14195 PR tree-optimization/98848
14196 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
14197 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
14199 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
14202 * expr.c: Check mode before calling store_expr.
14204 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
14206 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
14208 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
14209 instruction using expression ior.
14210 (mve_vornq_u<mode>): New expander.
14211 (mve_vornq_f<mode>): Use ior code instead of unspec.
14212 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
14214 2021-02-02 Alexandre Oliva <oliva@adacore.com>
14216 * tree-nested.c (convert_nonlocal_reference_op): Move
14217 current_function_decl restore after re-gimplification.
14218 (convert_local_reference_op): Likewise.
14220 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14222 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
14224 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
14226 (aarch64_rshrn<mode>_insn_be): Likewise.
14227 (aarch64_rshrn<mode>): Likewise.
14228 (aarch64_rshrn2<mode>_insn_le): Likewise.
14229 (aarch64_rshrn2<mode>_insn_be): Likewise.
14230 (aarch64_rshrn2<mode>): Likewise.
14231 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
14232 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
14234 (vrshrn_high_n_s32): Likewise.
14235 (vrshrn_high_n_s64): Likewise.
14236 (vrshrn_high_n_u16): Likewise.
14237 (vrshrn_high_n_u32): Likewise.
14238 (vrshrn_high_n_u64): Likewise.
14239 (vrshrn_n_s16): Likewise.
14240 (vrshrn_n_s32): Likewise.
14241 (vrshrn_n_s64): Likewise.
14242 (vrshrn_n_u16): Likewise.
14243 (vrshrn_n_u32): Likewise.
14244 (vrshrn_n_u64): Likewise.
14246 2021-02-01 Sergei Trofimovich <siarheit@google.com>
14248 PR tree-optimization/98499
14249 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
14250 conservatively and assume all possible side-effects.
14252 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14254 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
14255 vec_unpacku_hi_): Define builtins.
14256 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
14258 (vmovl_high_s16): Likewise.
14259 (vmovl_high_s32): Likewise.
14260 (vmovl_high_u8): Likewise.
14261 (vmovl_high_u16): Likewise.
14262 (vmovl_high_u32): Likewise.
14264 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14266 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
14268 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
14270 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
14272 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
14274 (vabdl_s16): Likewise.
14275 (vabdl_s32): Likewise.
14276 (vabdl_u8): Likewise.
14277 (vabdl_u16): Likewise.
14278 (vabdl_u32): Likewise.
14279 * config/aarch64/iterators.md (ABDL): New int iterator.
14280 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
14282 2021-02-01 Martin Sebor <msebor@redhat.com>
14284 * tree.h (BLOCK_VARS): Add comment.
14285 (BLOCK_SUBBLOCKS): Same.
14286 (BLOCK_SUPERCONTEXT): Same.
14287 (BLOCK_ABSTRACT_ORIGIN): Same.
14288 (inlined_function_outer_scope_p): Same.
14290 2021-02-01 Martin Sebor <msebor@redhat.com>
14292 PR middle-end/97172
14293 * attribs.c (attr_access::free_lang_data): Define new function.
14294 * attribs.h (attr_access::free_lang_data): Declare new function.
14296 2021-02-01 Richard Biener <rguenther@suse.de>
14298 * vec.h (auto_vec::auto_vec): Add memory stat parameters
14300 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
14302 2021-02-01 Tamar Christina <tamar.christina@arm.com>
14304 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
14305 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
14307 2021-02-01 Richard Biener <rguenther@suse.de>
14309 PR rtl-optimization/98863
14310 * config/i386/i386-features.c (convert_scalars_to_vector):
14311 Set DF_RD_PRUNE_DEAD_DEFS.
14313 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
14315 * system.h (SIZE_MAX): Define if not already defined.
14317 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
14319 * config/rs6000/genfusion.pl (gen_2logical): New function to
14320 generate patterns for logical-logical fusion.
14321 * config/rs6000/fusion.md: Regenerated patterns.
14322 * config/rs6000/rs6000-cpus.def: Add
14323 OPTION_MASK_P10_FUSION_2LOGICAL.
14324 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14325 Enable logical-logical fusion for p10.
14326 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
14328 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
14330 * config/rs6000/rs6000.opt: Add periods to new AIX options.
14332 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
14334 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
14335 (mabi=vec-default): New.
14336 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
14337 __EXTABI__ for AIX Vector extended ABI.
14338 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
14340 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
14342 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
14344 2021-01-30 Jakub Jelinek <jakub@redhat.com>
14346 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
14347 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
14349 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
14352 * lra-constraints.c (in_class_p): Don't narrow class only for REG
14355 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
14357 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
14358 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
14359 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
14361 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
14363 PR tree-optimization/98866
14364 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
14365 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
14366 (gori_map::m_maybe_invariant): Rename from all_outgoing.
14367 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
14368 (gori_map::is_export_p): Ditto.
14369 (gori_map::calculate_gori): Ditto.
14370 (gori_compute::set_range_invariant): New.
14371 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
14372 invariant for pointers evaluating to [1, +INF].
14374 2021-01-29 Richard Biener <rguenther@suse.de>
14376 PR rtl-optimization/98863
14377 * config/i386/i386-features.c (remove_partial_avx_dependency):
14378 Do not perform DF analysis.
14379 (pass_data_remove_partial_avx_dependency): Remove
14382 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
14384 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
14385 builtin generator macros.
14386 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
14388 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
14389 instead of inline asm.
14390 (vmull_n_s32): Likewise.
14391 (vmull_n_u16): Likewise.
14392 (vmull_n_u32): Likewise.
14394 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14396 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
14398 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
14400 (aarch64_<sur>abdl2<mode>): ... This.
14401 (<sur>sadv16qi): Adjust use of above.
14402 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
14404 (vabdl_high_s16): Likewise.
14405 (vabdl_high_s32): Likewise.
14406 (vabdl_high_u8): Likewise.
14407 (vabdl_high_u16): Likewise.
14408 (vabdl_high_u32): Likewise.
14410 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14412 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
14414 (uabal2): Likewise.
14415 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
14417 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
14419 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
14421 (vabal_high_s16): Likewise.
14422 (vabal_high_s32): Likewise.
14423 (vabal_high_u8): Likewise.
14424 (vabal_high_u16): Likewise.
14425 (vabal_high_u32): Likewise.
14426 * config/aarch64/iterators.md (ABAL2): New mode iterator.
14427 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
14429 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14431 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
14434 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
14436 (aarch64_<sur>abal<mode>): ... This
14437 (<sur>sadv16qi): Adust use of the above.
14438 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
14440 (vabal_s16): Likewise.
14441 (vabal_s32): Likewise.
14442 (vabal_u8): Likewise.
14443 (vabal_u16): Likewise.
14444 (vabal_u32): Likewise.
14446 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14448 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
14450 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
14452 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
14454 (vaddlv_s16): Likewise.
14455 (vaddlv_u8): Likewise.
14456 (vaddlv_u16): Likewise.
14457 (vaddlvq_s8): Likewise.
14458 (vaddlvq_s16): Likewise.
14459 (vaddlvq_s32): Likewise.
14460 (vaddlvq_u8): Likewise.
14461 (vaddlvq_u16): Likewise.
14462 (vaddlvq_u32): Likewise.
14463 (vaddlv_s32): Likewise.
14464 (vaddlv_u32): Likewise.
14465 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
14466 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
14467 (Vwstype): New mode attribute.
14469 (VWIDE_S): Likewise.
14470 (USADDLV): New int iterator.
14471 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
14473 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
14475 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
14476 builtin generator macros.
14477 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
14479 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
14480 instead of inline asm.
14481 (vmlsl_lane_s32): Likewise.
14482 (vmlsl_lane_u16): Likewise.
14483 (vmlsl_lane_u32): Likewise.
14484 (vmlsl_laneq_s16): Likewise.
14485 (vmlsl_laneq_s32): Likewise.
14486 (vmlsl_laneq_u16): Likewise.
14487 (vmlsl_laneq_u32): Likewise.
14489 2021-01-29 Richard Biener <rguenther@suse.de>
14491 * doc/invoke.texi (--param max-gcse-memory): Document unit
14493 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
14494 * params.opt (--param max-gcse-memory): Adjust default and
14495 document unit of size.
14497 2021-01-29 Richard Biener <rguenther@suse.de>
14499 PR rtl-optimization/98863
14500 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
14501 HOST_WIDE_INT for the memory estimate.
14503 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
14504 Richard Biener <rguenther@suse.de>
14506 PR tree-optimization/97627
14507 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
14508 Do not analyze fake edges.
14510 2021-01-29 Richard Biener <rguenther@suse.de>
14512 PR rtl-optimization/98144
14513 * df.h (df_mir_bb_info): Add con_visited member.
14514 * df-problems.c (df_mir_alloc): Initialize con_visited,
14515 do not fully populate IN and OUT.
14516 (df_mir_reset): Likewise.
14517 (df_mir_confluence_0): Set con_visited.
14518 (df_mir_confluence_n): Properly handle implicitely
14519 fully populated IN and OUT as designated by con_visited
14520 and update con_visited accordingly.
14522 2021-01-29 Jakub Jelinek <jakub@redhat.com>
14525 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
14526 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
14527 && !TARGET_REALLY_IWMMXT to conditions.
14529 2021-01-29 Jakub Jelinek <jakub@redhat.com>
14532 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
14535 2021-01-28 Marek Polacek <polacek@redhat.com>
14538 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
14539 the main variant, maybe reset it in its variants too.
14540 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
14541 (check_aligned_type): Check if TYPE_USER_ALIGN match.
14543 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
14546 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
14547 of constant zero for comparisons.
14549 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
14551 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
14552 support for mapping built-in function names for long double
14553 built-in functions if long double is IEEE 128-bit.
14555 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
14557 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
14558 builtin generator macros.
14559 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
14561 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
14562 instead of inline asm.
14563 (vmlsl_n_s32): Likewise.
14564 (vmlsl_n_u16): Likewise.
14565 (vmlsl_n_u32): Likewise.
14567 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
14569 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
14570 builtin generator macros.
14571 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
14573 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
14574 instead of inline asm.
14575 (vmlal_n_s32): Likewise.
14576 (vmlal_n_u16): Likewise.
14577 (vmlal_n_u32): Likewise.
14579 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14581 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
14583 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
14585 (aarch64_shrn2<mode>_insn_be): Likewise.
14586 (aarch64_shrn2<mode>): Likewise.
14587 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
14589 (vshrn_high_n_s32): Likewise.
14590 (vshrn_high_n_s64): Likewise.
14591 (vshrn_high_n_u16): Likewise.
14592 (vshrn_high_n_u32): Likewise.
14593 (vshrn_high_n_u64): Likewise.
14595 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14597 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
14599 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
14601 (aarch64_shrn<mode>_insn_be): Likewise.
14602 (aarch64_shrn<mode>): Likewise.
14603 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
14605 (vshrn_n_s32): Likewise.
14606 (vshrn_n_s64): Likewise.
14607 (vshrn_n_u16): Likewise.
14608 (vshrn_n_u32): Likewise.
14609 (vshrn_n_u64): Likewise.
14610 * config/aarch64/iterators.md (vn_mode): New mode attribute.
14612 2021-01-28 Richard Biener <rguenther@suse.de>
14614 PR rtl-optimization/80960
14615 * dse.c (check_mem_read_rtx): Call get_addr on the
14618 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
14619 David Edelsohn <dje.gcc@gmail.com>
14622 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14623 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
14625 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
14627 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
14628 wrapper call rs6000_expand_vector_set_var for cleanup. Call
14629 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
14631 (rs6000_expand_vector_set_var): Delete.
14632 (rs6000_expand_vector_set_var_p9): Make static.
14633 (rs6000_expand_vector_set_var_p8): Make static.
14635 2021-01-28 Xing GUO <higuoxing@gmail.com>
14637 * common/config/riscv/riscv-common.c
14638 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
14639 when `p` extension exists.
14641 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
14643 PR rtl-optimization/97684
14644 * ira.c (ira): Call ira_set_pseudo_classes before
14645 update_equiv_regs when it is necessary.
14647 2021-01-27 Jakub Jelinek <jakub@redhat.com>
14650 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
14651 %w0, %w1 and %2 instead of %0, %1 and %2.
14653 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14655 * config/rs6000/genfusion.pl: New script to generate
14656 define_insn_and_split patterns so combine can arrange fused
14657 instructions next to each other.
14658 * config/rs6000/fusion.md: New file, generated fused instruction
14659 patterns for combine.
14660 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
14661 (non_update_memory_operand): New predicate.
14662 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
14663 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
14665 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
14667 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14668 Automatically set OPTION_MASK_P10_FUSION and
14669 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
14670 (rs600_opt_masks): Allow -mpower10-fusion
14671 in function attributes.
14672 (address_is_non_pfx_d_or_x): New function.
14673 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
14674 * config/rs6000/rs6000.md: Include fusion.md.
14675 * config/rs6000/rs6000.opt: Add -mpower10-fusion
14676 and -mpower10-fusion-ld-cmpi.
14677 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
14679 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
14681 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
14682 builtin generator macros.
14683 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
14685 (aarch64_<su>mlal<mode>): This.
14686 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
14687 instead of inline asm.
14688 (vmlal_s16): Likewise.
14689 (vmlal_s32): Likewise.
14690 (vmlal_u8): Likewise.
14691 (vmlal_u16): Likewise.
14692 (vmlal_u32): Likewise.
14694 2021-01-27 Richard Biener <rguenther@suse.de>
14696 PR tree-optimization/98854
14697 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
14698 PHIs from scalars when the number of CTORs matches the
14699 number of children.
14701 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
14703 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
14705 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
14707 (aarch64_mls_n<mode>): This.
14708 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
14710 (vmls_n_s32): Likewise.
14711 (vmls_n_u16): Likewise.
14712 (vmls_n_u32): Likewise.
14713 (vmlsq_n_s16): Likewise.
14714 (vmlsq_n_s32): Likewise.
14715 (vmlsq_n_u16): Likewise.
14716 (vmlsq_n_u32): Likewise.
14718 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
14720 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
14722 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
14724 (vmls_s16): Likewise.
14725 (vmls_s32): Likewise.
14726 (vmls_u8): Likewise.
14727 (vmls_u16): Likewise.
14728 (vmls_u32): Likewise.
14729 (vmlsq_s8): Likewise.
14730 (vmlsq_s16): Likewise.
14731 (vmlsq_s32): Likewise.
14732 (vmlsq_u8): Likewise.
14733 (vmlsq_u16): Likewise.
14734 (vmlsq_u32): Likewise.
14736 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
14738 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
14740 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
14742 (aarch64_mla_n<mode>): This.
14743 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
14745 (vmla_n_s32): Likewise.
14746 (vmla_n_u16): Likewise.
14747 (vmla_n_u32): Likewise.
14748 (vmlaq_n_s16): Likewise.
14749 (vmlaq_n_s32): Likewise.
14750 (vmlaq_n_u16): Likewise.
14751 (vmlaq_n_u32): Likewise.
14753 2021-01-27 liuhongt <hongtao.liu@intel.com>
14756 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
14757 (*sse2_eq<mode>3): Ditto.
14759 2021-01-27 Jakub Jelinek <jakub@redhat.com>
14761 * tree-pass.h (PROP_trees): Rename to ...
14762 (PROP_gimple): ... this.
14763 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
14764 * passes.c (execute_function_dump, execute_function_todo,
14765 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
14766 * varpool.c (ctor_for_folding): Likewise.
14768 2021-01-27 Jakub Jelinek <jakub@redhat.com>
14770 PR tree-optimization/97260
14771 * varpool.c: Include tree-pass.h.
14772 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
14773 non-TREE_SIDE_EFFECTS automatic variables.
14775 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
14777 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
14779 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
14780 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
14781 (gen_compile_unit_die): Recognise C++23.
14783 2021-01-26 Jakub Jelinek <jakub@redhat.com>
14786 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
14789 2021-01-26 Jakub Jelinek <jakub@redhat.com>
14792 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
14793 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
14794 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
14796 2021-01-26 Richard Biener <rguenther@suse.de>
14798 * gimple-pretty-print.c (dump_binary_rhs): Handle
14799 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
14801 2021-01-26 Richard Biener <rguenther@suse.de>
14803 PR middle-end/98726
14804 * tree.h (vector_cst_int_elt): Remove.
14805 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
14808 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
14810 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
14811 for V64DFmode min/max reductions.
14813 2021-01-26 Jakub Jelinek <jakub@redhat.com>
14815 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
14816 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
14817 two halves, one with x and the other with const0_rtx, ordered
14818 depending on endianity.
14820 2021-01-26 Alexandre Oliva <oliva@adacore.com>
14822 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
14823 temporaries not seen in binding block, and not about to be
14824 added as gimple variables.
14826 2021-01-25 Martin Sebor <msebor@redhat.com>
14829 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
14831 2021-01-25 Martin Liska <mliska@suse.cz>
14833 * value-prof.c (get_nth_most_common_value): Use %s instead
14836 2021-01-25 Jakub Jelinek <jakub@redhat.com>
14839 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
14840 readelf -wi is able to read the emitted .debug_info back.
14841 * configure: Regenerated.
14843 2021-01-25 Martin Liska <mliska@suse.cz>
14845 PR gcov-profile/98739
14846 * common.opt: Add missing sign symbol.
14847 * value-prof.c (get_nth_most_common_value): Restore handling
14848 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
14849 PROFILE_REPRODUCIBILITY_MULTITHREADED.
14851 2021-01-25 Richard Biener <rguenther@suse.de>
14853 PR middle-end/98807
14854 * tree.c (vector_element_bits): Always use precision of
14855 the element type for boolean vectors.
14857 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
14859 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
14860 (ENDFILE_SPEC): Evaluate qnolinkcmds.
14862 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
14864 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
14865 nostartfiles handling since this is already done by
14866 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
14867 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
14868 is already done by LINK_COMMAND_SPEC.
14869 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
14870 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
14873 2021-01-25 Jakub Jelinek <jakub@redhat.com>
14876 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
14877 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
14878 value rather than host size_t.
14879 (fold_const_call): Change type of s2 from size_t to
14880 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
14881 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
14882 instead of s2 as last argument.
14884 2021-01-25 Tamar Christina <tamar.christina@arm.com>
14886 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
14887 VCMLA_OP, VCMUL_OP): New.
14888 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
14889 * config/arm/neon.md (cmul<conj_op><mode>3): New.
14890 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
14891 UNSPEC_VCMUL_CONJ): New.
14892 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
14893 cml<fcmac1><conj_op><mode>4): New.
14895 2021-01-23 Jakub Jelinek <jakub@redhat.com>
14898 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
14900 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
14902 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
14904 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
14906 (vmla_s16): Likewise.
14907 (vmla_s32): Likewise.
14908 (vmla_u8): Likewise.
14909 (vmla_u16): Likewise.
14910 (vmla_u32): Likewise.
14911 (vmlaq_s8): Likewise.
14912 (vmlaq_s16): Likewise.
14913 (vmlaq_s32): Likewise.
14914 (vmlaq_u8): Likewise.
14915 (vmlaq_u16): Likewise.
14916 (vmlaq_u32): Likewise.
14918 2021-01-22 David Malcolm <dmalcolm@redhat.com>
14920 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
14923 2021-01-22 Jakub Jelinek <jakub@redhat.com>
14926 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
14927 filenames to emit, still emit the required 0 index directory and
14928 filename entries that match DW_AT_comp_dir and DW_AT_name of the
14931 2021-01-22 Marek Polacek <polacek@redhat.com>
14934 * doc/invoke.texi: Update C++ ABI Version 15 description.
14936 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14938 PR tree-optimization/98766
14939 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
14940 comparing against type size with param_avoid_fma_max_bits.
14942 2021-01-22 Richard Biener <rguenther@suse.de>
14944 PR middle-end/98793
14945 * tree.c (vector_element_bits): Key single-bit bool vector on
14946 integer mode rather than not vector mode.
14948 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
14951 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14952 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
14954 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
14955 to call different path for P8 and P9.
14956 (rs6000_expand_vector_set_var_p9): New function.
14957 (rs6000_expand_vector_set_var_p8): New function.
14959 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
14963 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14964 Ajdust variable index vec_insert from address dereference to
14965 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
14966 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
14968 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
14970 2021-01-22 Martin Liska <mliska@suse.cz>
14972 PR gcov-profile/98739
14973 * profile.c (compute_value_histograms): Drop time profile for
14974 -fprofile-reproducible=multithreaded.
14976 2021-01-22 Nathan Sidwell <nathan@acm.org>
14978 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
14981 2021-01-22 Richard Biener <rguenther@suse.de>
14983 PR middle-end/98773
14984 * tree-data-ref.c (initalize_matrix_A): Revert previous
14985 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
14987 2021-01-22 Jakub Jelinek <jakub@redhat.com>
14989 PR tree-optimization/90248
14990 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
14991 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
14993 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
14994 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
14996 2021-01-22 Jakub Jelinek <jakub@redhat.com>
14998 PR tree-optimization/98255
14999 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
15000 extend index - low_bound from sizetype's precision rather than index
15002 (get_addr_base_and_unit_offset_1): Likewise.
15003 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
15004 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
15006 2021-01-22 Richard Biener <rguenther@suse.de>
15008 PR tree-optimization/98786
15009 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
15010 adding new uses of abnormals. Verify we deal with a conditional
15013 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15016 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
15018 2021-01-22 liuhongt <hongtao.liu@intel.com>
15022 * config/i386/sse.md (VI_128_256): New mode iterator.
15023 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
15024 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
15025 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
15026 define_insn_and_split to lower avx512 vector comparison to avx
15027 version when dest is vector.
15028 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
15029 define_insn_and_split for negating the comparison result.
15030 * config/i386/predicates.md (float_vector_all_ones_operand):
15032 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
15033 general NOT operator without UNSPEC_MASKOP.
15035 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
15037 PR rtl-optimization/98777
15038 * lra-int.h (lra_pmode_pseudo): New extern.
15039 * lra.c (lra_pmode_pseudo): New global.
15041 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
15043 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
15045 * fwprop.c (fwprop_propagation::classify_result): Allow
15046 (subreg (mem)) simplifications.
15048 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15050 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
15052 (aarch64_sqdmlal<mode>): ... This...
15053 (aarch64_sqdmlsl<mode>): ... And this.
15054 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
15055 (aarch64_sqdmlal_lane<mode>): ... This...
15056 (aarch64_sqdmlsl_lane<mode>): ... And this.
15057 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
15058 (aarch64_sqdmlsl_laneq<mode>): ... This...
15059 (aarch64_sqdmlal_laneq<mode>): ... And this.
15060 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
15061 (aarch64_sqdmlsl_n<mode>): ... This...
15062 (aarch64_sqdmlal_n<mode>): ... And this.
15063 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
15064 (aarch64_sqdmlal2<mode>_internal): ... This...
15065 (aarch64_sqdmlsl2<mode>_internal): ... And this.
15067 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
15069 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
15071 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
15074 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
15076 2021-01-21 liuhongt <hongtao.liu@intel.com>
15078 PR rtl-optimization/98694
15079 * regcprop.c (copy_value): If SRC had been assigned a mode
15080 narrower than the copy, we can't link DEST into the chain even
15081 they have same hard_regno_nregs(i.e. HImode/SImode in i386
15084 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15086 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
15087 Convert to define_insn_and_split. Split into simple move when moving
15090 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
15092 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
15093 Adjust comment. Simplify code.
15095 2021-01-20 Jakub Jelinek <jakub@redhat.com>
15098 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
15099 with DW_FORM_line_strp form.
15100 (prune_unused_types_update_strings): Don't add into debug_str_hash
15101 indirect strings with DW_FORM_line_strp form.
15102 (adjust_name_comp_dir): New function.
15103 (dwarf2out_finish): Call it on CU DIEs after resetting
15104 debug_line_str_hash.
15106 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
15108 PR rtl-optimization/98722
15109 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
15110 has no 3-op add insn to transform insns containing two pluses.
15112 2021-01-20 Richard Biener <rguenther@suse.de>
15114 * hwint.h (add_hwi): New function.
15115 (mul_hwi): Likewise.
15116 * tree-data-ref.c (initialize_matrix_A): Properly translate
15117 tree constants and avoid HOST_WIDE_INT_MIN.
15118 (lambda_matrix_row_add): Avoid undefined integer overflow
15119 and return true on such overflow.
15120 (lambda_matrix_right_hermite): Handle overflow from
15121 lambda_matrix_row_add gracefully. Simplify previous fix.
15122 (analyze_subscript_affine_affine): Likewise.
15124 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
15126 PR tree-optimization/96674
15127 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
15128 x >= y && y != XXX_MIN --> x > y - 1
15130 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
15132 PR tree-optimization/98535
15133 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
15134 If the high and low permutes are the same, remove the high permutes
15135 from the working set and only continue with the low ones.
15137 2021-01-20 Jakub Jelinek <jakub@redhat.com>
15139 PR tree-optimization/98721
15140 * builtins.c (access_ref::inform_access): Don't assume
15141 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
15142 object whenever allocfn is NULL, rather than only when DECL_P
15143 is true. Use %qE instead of %qD for that. Formatting fixes.
15145 2021-01-20 Richard Biener <rguenther@suse.de>
15147 PR tree-optimization/98758
15148 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
15149 (lambda_matrix_right_hermite): Avoid undefinedness with
15150 signed integer abs and multiplication.
15151 (analyze_subscript_affine_affine): Use lambda_int.
15153 2021-01-20 David Malcolm <dmalcolm@redhat.com>
15156 * dwarf2out.c (output_line_info): Rename static variable
15157 "generation", moving it out of the function to...
15158 (output_line_info_generation): New.
15159 (init_sections_and_labels): Likewise, renaming the variable to...
15160 (init_sections_and_labels_generation): New.
15161 (dwarf2out_c_finalize): Reset the new variables.
15163 2021-01-19 Martin Sebor <msebor@redhat.com>
15165 PR middle-end/98664
15166 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
15167 all functions, even if they're not declared artificial or inline.
15168 * tree.c (tree_inlined_location): Use macro expansion location
15169 only if scope traversal fails to expose one.
15171 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
15173 PR rtl-optimization/92294
15174 * alias.c (compare_base_symbol_refs): Take an extra parameter
15175 and add the distance between two symbols to it. Enshrine in
15176 comments that -1 means "either 0 or 1, but we can't tell
15177 which at compile time".
15178 (memrefs_conflict_p): Update call accordingly.
15179 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
15182 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15184 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
15185 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
15186 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
15187 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
15188 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
15189 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
15190 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
15191 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
15192 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
15193 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
15194 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
15195 sqmovun): Use NONE flags.
15197 2021-01-19 Richard Biener <rguenther@suse.de>
15200 * ipa-modref.c (analyze_stmt): Only record a summary for a
15203 2021-01-19 Richard Biener <rguenther@suse.de>
15205 PR middle-end/98638
15206 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
15208 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
15210 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
15211 built-in define __FIX_LEON3FT_TN0018.
15213 2021-01-19 Richard Biener <rguenther@suse.de>
15216 * tree-inline.c (tree_function_versioning): Set input_location
15217 to UNKNOWN_LOCATION throughout the function.
15219 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
15222 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
15224 2021-01-19 Martin Jambor <mjambor@suse.cz>
15227 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
15228 whether non-call exceptions allow removal of a statement.
15229 (isra_analyze_call): Pass the appropriate function to
15230 ssa_name_only_returned_p.
15232 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
15234 * config/riscv/arch-canonicalize (longext_sort): New function for
15235 sorting 'multi-letter'.
15236 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
15237 'alts'. The 'arch' may not be the first of 'alts'.
15238 (_expand_combination): Add underline for the 'ext' without '*'.
15239 This is because, a single-letter extension can always be treated well
15240 with a '_' prefix, but it cannot be separated out if it is appended
15243 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
15246 * ira.c (ira): Skip abnormal critical edge splitting.
15248 2021-01-18 Jakub Jelinek <jakub@redhat.com>
15250 PR tree-optimization/98727
15251 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
15252 second .MUL_OVERFLOW operand for signed multiplication with overflow
15253 checking if the second operand of multiplication is not constant.
15255 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
15257 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
15258 defaults to version 4.
15260 2021-01-18 David Malcolm <dmalcolm@redhat.com>
15262 * attribs.h (fndecl_dealloc_argno): New decl.
15263 * builtins.c (call_dealloc_argno): Split out second half of
15265 (fndecl_dealloc_argno): New.
15266 * doc/extend.texi (Common Function Attributes): Document the
15267 interaction between the analyzer and the malloc attribute.
15268 * doc/invoke.texi (Static Analyzer Options): Likewise.
15270 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
15272 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
15273 dwarf_version to 4.
15274 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
15276 2021-01-17 Martin Jambor <mjambor@suse.cz>
15279 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
15282 2021-01-17 Mark Wielaard <mark@klomp.org>
15284 * common.opt (gdwarf-): Init(5).
15285 * doc/invoke.texi (-gdwarf): Document default to 5.
15287 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
15289 * builtin-types.def
15290 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
15292 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
15293 ...this. Add extra argument.
15294 * gimplify.c (omp_default_clause): Ensure that event handle is
15295 firstprivate in a task region.
15296 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
15297 (gimplify_adjust_omp_clauses): Likewise.
15298 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
15299 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
15300 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
15301 if detach clause specified. Add detach argument when generating
15303 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
15305 (finish_taskreg_scan): Move field for variable containing the event
15306 handle to the front of the struct.
15307 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
15309 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
15310 OMP_CLAUSE_DETACH clause.
15311 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
15312 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
15313 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
15315 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
15317 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
15319 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
15321 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
15322 multilib directory names. Use MULTILIB_REQUIRED instead of
15323 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
15324 -mcustom-fpu-cfg=fph2 multilib.
15326 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
15328 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
15329 (nios2_init_fpu_configs): Provide register values for new
15330 -mcustom-fpu-cfg=fph2 option variant.
15331 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
15334 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
15336 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
15337 custom instruction warnings.
15339 2021-01-16 Jakub Jelinek <jakub@redhat.com>
15341 PR tree-optimization/96669
15342 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
15344 2021-01-16 Jakub Jelinek <jakub@redhat.com>
15346 PR tree-optimization/96271
15347 * passes.def: Pass false argument to first two pass_cd_dce
15348 instances and true to last instance. Add comment that
15349 last instance rewrites no longer addressed locals.
15350 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
15352 (pass_cd_dce::set_pass_param): New method.
15353 (pass_cd_dce::execute): Return TODO_update_address_taken from
15354 last cd_dce instance.
15356 2021-01-15 Carl Love <cel@us.ibm.com>
15358 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
15360 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
15361 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
15362 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
15363 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
15364 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
15365 Add builtin define.
15366 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
15367 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
15368 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
15369 New overloaded definitions.
15370 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
15371 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
15372 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
15373 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
15374 P10V_BUILTIN_MULHU_V4SI]: Add case
15375 statement for builtins.
15376 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
15377 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
15378 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
15379 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
15380 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
15381 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
15382 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
15383 Add define_insn, mode is VIlong.
15384 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
15385 Add builtin descriptions.
15387 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
15389 * final.c (final_start_function_1): Reset force_source_line.
15391 2021-01-15 Jakub Jelinek <jakub@redhat.com>
15393 PR tree-optimization/96669
15394 * match.pd (((1 << A) & 1) != 0 -> A == 0,
15395 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
15396 possibly different power of two constants and to right shift too.
15398 2021-01-15 Jakub Jelinek <jakub@redhat.com>
15400 PR tree-optimization/96681
15401 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
15402 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
15403 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
15404 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
15406 2021-01-15 Alexandre Oliva <oliva@adacore.com>
15408 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
15410 2021-01-15 Tamar Christina <tamar.christina@arm.com>
15412 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
15413 cmul<conj_op><mode>3): New.
15414 * config/aarch64/iterators.md (UNSPEC_FCMUL,
15415 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
15416 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
15417 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
15418 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
15419 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
15420 (rot_op): Renamed to conj_op.
15421 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
15422 cmul<conj_op><mode>3): New.
15423 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
15424 cmul<conj_op><mode>3): New.
15426 2021-01-15 David Malcolm <dmalcolm@redhat.com>
15430 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
15431 Escape the tempfile name when constructing the expected output.
15433 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15435 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
15437 (aarch64_<su>mlsl_hi<mode>): ... This.
15438 (aarch64_<su>mlsl_hi<mode>): Define.
15439 (*aarch64_<su>mlsl<mode): Rename to...
15440 (aarch64_<su>mlsl<mode): ... This.
15441 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
15442 smlsl_hi, umlsl_hi): Define builtins.
15443 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
15444 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
15445 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
15446 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
15448 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
15450 * config/i386/i386-c.c (ix86_target_macros):
15451 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
15453 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
15456 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
15457 * Makefile.in (RTL_SSA_H): New variable.
15458 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
15459 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
15460 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
15462 * config/aarch64/aarch64-cc-fusion.cc: New file.
15464 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
15466 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
15467 calling cancel_changes for changes that no longer exist.
15469 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
15471 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
15472 (function_info::reg_defs): ...this.
15473 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
15474 (function_info::reg_defs): ...this.
15476 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15479 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
15481 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15484 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15487 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
15489 2021-01-15 Richard Biener <rguenther@suse.de>
15491 PR tree-optimization/96376
15492 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
15493 for VMAT_INVARIANT.
15495 2021-01-15 Martin Liska <mliska@suse.cz>
15497 * doc/install.texi: Document that some tests need pytest module.
15498 * doc/sourcebuild.texi: Likewise.
15500 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15503 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
15505 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15507 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
15508 (mve_vshrq_n_u<mode>_imm): Likewise.
15509 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
15510 * config/arm/vec-common.md: ... here.
15512 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
15514 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
15516 * config/arm/neon.md (vashl<mode>3): Delete.
15517 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
15518 (vasl<mode>3): New expander.
15520 2021-01-15 Richard Biener <rguenther@suse.de>
15522 PR tree-optimization/98685
15523 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
15524 of vector extern defs.
15526 2021-01-14 David Malcolm <dmalcolm@redhat.com>
15529 * diagnostic.c (diagnostic_kind_text): Break out this array
15531 (diagnostic_build_prefix): ...here.
15532 (fancy_abort): Detect when diagnostic_initialize has not yet been
15533 called and fall back to a minimal implementation of printing the
15534 ICE, rather than segfaulting in internal_error.
15536 2021-01-14 David Malcolm <dmalcolm@redhat.com>
15538 * diagnostic.c (diagnostic_initialize): Eliminate
15539 parseable_fixits_p in favor of initializing extra_output_kind from
15540 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
15541 (convert_column_unit): New function, split out from...
15542 (diagnostic_converted_column): ...this.
15543 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
15544 Use them to call convert_column_unit on the column values.
15545 (diagnostic_report_diagnostic): Eliminate conditional on
15546 parseable_fixits_p in favor of a switch statement on
15547 extra_output_kind, passing the appropriate values to the new
15548 params of print_parseable_fixits.
15549 (selftest::test_print_parseable_fixits_none): Update for new
15550 params of print_parseable_fixits.
15551 (selftest::test_print_parseable_fixits_insert): Likewise.
15552 (selftest::test_print_parseable_fixits_remove): Likewise.
15553 (selftest::test_print_parseable_fixits_replace): Likewise.
15554 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
15556 (selftest::diagnostic_c_tests): Call it.
15557 * diagnostic.h (enum diagnostics_extra_output_kind): New.
15558 (diagnostic_context::parseable_fixits_p): Delete field in favor
15560 (diagnostic_context::extra_output_kind): ...this new field.
15561 * doc/invoke.texi (Environment Variables): Add
15562 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
15563 * opts.c (common_handle_option): Update handling of
15564 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
15567 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15569 * tree-vect-slp-patterns.c (class complex_operations_pattern,
15570 complex_operations_pattern::matches,
15571 complex_operations_pattern::recognize,
15572 complex_operations_pattern::build): New.
15573 (slp_patterns): Use it.
15575 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15577 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
15578 * optabs.def (cmls_optab, cmls_conj_optab): New.
15579 * doc/md.texi: Document them.
15580 * tree-vect-slp-patterns.c (class complex_fms_pattern,
15581 complex_fms_pattern::matches, complex_fms_pattern::recognize,
15582 complex_fms_pattern::build): New.
15584 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15586 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
15587 * optabs.def (cmla_optab, cmla_conj_optab): New.
15588 * doc/md.texi: Document them.
15589 * tree-vect-slp-patterns.c (vect_match_call_p,
15590 class complex_fma_pattern, vect_slp_reset_pattern,
15591 complex_fma_pattern::matches, complex_fma_pattern::recognize,
15592 complex_fma_pattern::build): New.
15594 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15596 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
15597 * optabs.def (cmul_optab, cmul_conj_optab): New.
15598 * doc/md.texi: Document them.
15599 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
15600 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
15601 vect_build_combine_node, class complex_mul_pattern,
15602 complex_mul_pattern::matches, complex_mul_pattern::recognize,
15603 complex_mul_pattern::build): New.
15605 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15607 * tree-vect-slp.c (optimize_load_redistribution_1): New.
15608 (optimize_load_redistribution, vect_is_slp_load_node): New.
15609 (vect_match_slp_patterns): Use it.
15611 2021-01-14 Tamar Christina <tamar.christina@arm.com>
15613 * tree-vect-slp-patterns.c (complex_add_pattern::build):
15616 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
15618 * config/gcn/mkoffload.c (main): Create an offload image only in
15619 64-bit configurations.
15621 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
15624 * config/i386/i386-options.c (ix86_option_override_internal):
15625 Issue an error for -fcf-protection with CF_BRANCH when compiling
15626 for 32-bit non-TARGET_CMOV targets.
15628 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
15631 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
15632 Remove declaration and initialization of shadow variable "ret".
15633 (ix86_option_override_internal): Remove delcaration of
15634 shadow variable "i". Redeclare shadowed variable to unsigned.
15635 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
15636 * config/i386/i386-builtins.c (get_builtin_code_for_version):
15637 Update for redeclaration.
15638 * config/i386/i386.h (pta_size): Ditto.
15640 2021-01-14 Richard Biener <rguenther@suse.de>
15642 PR tree-optimization/98674
15643 * tree-data-ref.c (base_supports_access_fn_components_p): New.
15644 (initialize_data_dependence_relation): For two bases without
15645 possible access fns resort to type size equality when determining
15646 shape compatibility.
15648 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15651 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
15652 <=, >= operators in vcle and vcge intrinsics respectively.
15653 * config/arm/arm_neon_builtins.def: Remove entry for
15656 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
15659 * config/i386/i386-options.c (ix86_function_specific_save):
15660 Remove redundant assignment to opts->x_ix86_branch_cost.
15661 * config/i386/i386.c (ix86_prefetch_sse):
15662 Rename from x86_prefetch_sse. Update all uses.
15663 * config/i386/i386.h: Update for rename.
15664 * config/i386/i386-options.h: Ditto.
15666 2021-01-14 Jakub Jelinek <jakub@redhat.com>
15669 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
15670 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
15671 Use Bm instead of m for non-avx. Add isa attribute.
15673 2021-01-14 Jakub Jelinek <jakub@redhat.com>
15675 PR tree-optimization/96688
15676 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
15677 ~X can be simplified.
15679 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
15681 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
15682 IFN_LOAD_LANES results.
15684 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15686 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
15688 (aarch64_xtn<mode>): Likewise.
15689 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
15692 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
15694 (vmovl_s16): Likewise.
15695 (vmovl_s32): Likewise.
15696 (vmovl_u8): Likewise.
15697 (vmovl_u16): Likewise.
15698 (vmovl_u32): Likewise.
15699 (vmovn_s16): Likewise.
15700 (vmovn_s32): Likewise.
15701 (vmovn_s64): Likewise.
15702 (vmovn_u16): Likewise.
15703 (vmovn_u32): Likewise.
15704 (vmovn_u64): Likewise.
15706 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15708 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
15710 (aarch64_<su>qxtn2<mode>_be): Likewise.
15711 (aarch64_<su>qxtn2<mode>): Likewise.
15712 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
15714 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
15715 (su): Handle ss_truncate and us_truncate.
15716 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
15718 (vqmovn_high_s32): Likewise.
15719 (vqmovn_high_s64): Likewise.
15720 (vqmovn_high_u16): Likewise.
15721 (vqmovn_high_u32): Likewise.
15722 (vqmovn_high_u64): Likewise.
15724 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15726 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
15728 (aarch64_xtn2<mode>_be): Likewise.
15729 (aarch64_xtn2<mode>): Likewise.
15730 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
15732 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
15734 (vmovn_high_s32): Likewise.
15735 (vmovn_high_s64): Likewise.
15736 (vmovn_high_u16): Likewise.
15737 (vmovn_high_u32): Likewise.
15738 (vmovn_high_u64): Likewise.
15740 2021-01-13 Stafford Horne <shorne@gmail.com>
15742 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
15744 2021-01-13 Stafford Horne <shorne@gmail.com>
15746 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
15748 2021-01-13 Stafford Horne <shorne@gmail.com>
15750 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
15751 define for __or1k_hard_float__.
15753 2021-01-13 Stafford Horne <shorne@gmail.com>
15755 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
15756 (PROFILE_HOOK): Define to call _mcount.
15757 (FUNCTION_PROFILER): Change from abort to no-op.
15759 2021-01-13 Jakub Jelinek <jakub@redhat.com>
15761 PR tree-optimization/96691
15762 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
15763 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
15764 (~D ^ C) or (D ^ C) can be simplified.
15766 2021-01-13 Richard Biener <rguenther@suse.de>
15768 PR tree-optimization/92645
15769 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
15770 until after vector lowering.
15772 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
15774 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
15776 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
15777 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
15779 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
15781 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
15783 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
15784 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
15786 2021-01-13 Richard Biener <rguenther@suse.de>
15788 PR tree-optimization/92645
15789 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
15790 BIT_FIELD_REF argument.
15791 (vect_build_slp_tree_2): Record the desired vector type
15792 on the external vector def.
15793 (vectorizable_slp_permutation): Handle required punning
15794 of existing vector defs.
15796 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
15798 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
15800 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
15802 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
15804 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
15806 * config.gcc [$target == *-*-gnu*]: Enable
15807 'default_gnu_indirect_function'.
15809 2021-01-13 Jakub Jelinek <jakub@redhat.com>
15812 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
15813 registers before calling targetm.vectorize.vec_perm_const, only after
15815 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
15816 two argument permutation when one operand is zero vector and only
15817 after that force operands into registers.
15818 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
15819 define_insn_and_split pattern.
15820 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
15821 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
15822 (*avx2_zero_extendv8hiv8si2_1): Likewise.
15823 (*avx512f_zero_extendv8siv8di2_1): Likewise.
15824 (*avx2_zero_extendv4siv4di2_1): Likewise.
15825 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
15827 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
15828 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
15829 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
15830 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
15831 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
15832 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
15834 2021-01-13 Martin Liska <mliska@suse.cz>
15836 PR tree-optimization/98455
15837 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
15838 Record also virtual PHIs.
15839 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
15842 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
15844 * doc/invoke.texi (C++ Modules): Fix typos.
15846 2021-01-13 Richard Biener <rguenther@suse.de>
15848 PR tree-optimization/98640
15849 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
15850 handle plus or minus from a truncated operand to be
15853 2021-01-13 Jakub Jelinek <jakub@redhat.com>
15856 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
15857 define_insn_and_split patterns.
15858 (splitter after *btr<mode>_2): New splitter.
15860 2021-01-13 Martin Liska <mliska@suse.cz>
15863 * cgraphunit.c (analyze_functions): Remove dead code.
15865 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
15867 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
15868 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
15869 (a64fx_regmove_cost, a64fx_vector_cost): New.
15870 (a64fx_tunings): Use the new added cost tables.
15872 2021-01-13 Jakub Jelinek <jakub@redhat.com>
15875 * config/i386/predicates.md (pmovzx_parallel): New predicate.
15876 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
15877 define_insn_and_split pattern.
15878 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
15879 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
15881 2021-01-13 Julian Brown <julian@codesourcery.com>
15883 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
15884 to fix v0 register.
15886 2021-01-13 Julian Brown <julian@codesourcery.com>
15888 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
15891 2021-01-13 Julian Brown <julian@codesourcery.com>
15893 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
15894 for reciprocal-approximation instructions.
15895 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
15896 refinement and division result.
15897 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
15899 2021-01-13 Julian Brown <julian@codesourcery.com>
15901 * config/gcn/gcn-valu.md (subdf): Rename to...
15904 2021-01-12 Martin Liska <mliska@suse.cz>
15906 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
15908 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
15910 * function-abi.h: Fix typo.
15912 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
15916 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
15917 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
15918 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
15919 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
15920 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
15921 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
15922 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
15923 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
15924 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
15925 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
15926 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
15927 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
15928 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
15929 (ARM_HAVE_V2DI_LDST): Likewise.
15930 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
15931 (*movmisalign<mode>_mve_load): New pattern.
15932 * config/arm/neon.md (movmisalign<mode>): Move to ...
15933 * config/arm/vec-common.md: ... here.
15935 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
15938 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
15939 of pattern 'plus (plus (hard reg, const), pseudo)'.
15941 2021-01-12 Richard Biener <rguenther@suse.de>
15943 PR tree-optimization/98550
15944 * tree-vect-slp.c (vect_record_max_nunits): Check whether
15945 the group size is a multiple of the vector element count.
15946 (vect_build_slp_tree_1): When we need to fail because
15947 the vector type choosen causes unrolling do so lazily
15948 without affecting matches only at the end to guide group splitting.
15950 2021-01-12 Martin Liska <mliska@suse.cz>
15953 * optc-save-gen.awk: Compare also n_target_save vars with
15956 2021-01-12 Martin Liska <mliska@suse.cz>
15958 * gcov.c (source_info::debug): New.
15959 (print_usage): Add --debug (-D) option.
15960 (process_args): Likewise.
15961 (generate_results): Call src->debug after
15962 accumulate_line_counts.
15963 (read_graph_file): Properly assign id for EXIT_BLOCK.
15964 * profile.c (branch_prob): Dump function body before it is
15967 2021-01-12 Jakub Jelinek <jakub@redhat.com>
15969 PR tree-optimization/98629
15970 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
15971 unless returning non-zero.
15973 2021-01-12 Jakub Jelinek <jakub@redhat.com>
15975 PR tree-optimization/95731
15976 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
15977 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
15978 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
15979 only after optimize_range_tests_var_bound.
15981 2021-01-12 Jakub Jelinek <jakub@redhat.com>
15983 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
15984 * configure: Regenerated.
15986 2021-01-12 liuhongt <hongtao.liu@intel.com>
15989 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
15991 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
15994 2021-01-12 Alexandre Oliva <oliva@adacore.com>
15996 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
15998 (auto_end_imm_use_stmt_traverse): New struct.
15999 (FOR_EACH_IMM_USE_STMT): Use it.
16000 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
16002 * gimple-ssa-strength-reduction.c: ... here, ...
16003 * graphite-scop-detection.c: ... here, ...
16004 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
16005 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
16006 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
16007 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
16008 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
16009 * tree-vect-slp.c: ... and here, ...
16010 * doc/tree-ssa.texi: ... and the example here.
16012 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16014 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
16015 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
16016 (*sdiv_pow2<mode>3): New pattern.
16017 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
16018 Wrap the ASRD in an UNSPEC_PRED_X.
16019 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
16020 predicate with a constant PTRUE, if it isn't already.
16021 (*cond_<sve_int_op><mode>_z): Replace with...
16022 (*cond_<sve_int_op><mode>_any): ...this new pattern.
16024 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16026 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
16027 SVE_FULL_I to SVE_I.
16028 (*cond_bic<mode>_any): Likewise.
16030 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16032 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
16033 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
16036 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16038 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
16039 SVE_FULL_I to SVE_I.
16040 (*aarch64_cond_<su>abd<mode>_2): Likewise.
16041 (*aarch64_cond_<su>abd<mode>_any): Likewise.
16042 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
16043 for the max and min but not for the minus.
16044 (*aarch64_cond_<su>abd<mode>_3): New pattern.
16046 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16048 * config/aarch64/iterators.md (SVE_24I): New iterator.
16049 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
16050 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
16052 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16054 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
16055 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
16057 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
16058 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
16059 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
16060 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
16062 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16064 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
16065 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
16066 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
16069 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16071 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
16072 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
16073 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
16075 2021-01-11 Martin Liska <mliska@suse.cz>
16078 * symtab-clones.h (clone_info::release): Release
16079 symtab::m_clones with ggc_delete as it's a GGC memory.
16081 2021-01-11 Matthias Klose <doko@ubuntu.com>
16083 * Makefile.in (LINK_PROGRESS): Show the link target.
16085 2021-01-11 Richard Biener <rguenther@suse.de>
16087 PR tree-optimization/91403
16088 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
16089 single-element interleaving group size at 4096 elements.
16091 2021-01-11 Richard Biener <rguenther@suse.de>
16093 PR tree-optimization/98526
16094 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
16095 of the actual reduction op for the regular case.
16096 (vectorizable_reduction): Cost the stmts
16097 vect_transform_reduction produces here.
16099 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
16101 * tree-ssa-forwprop.c (simplify_vector_constructor): For
16102 big-endian, use UNPACK[_FLOAT]_HI.
16104 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16106 * tree-vect-slp-patterns.c (class complex_pattern,
16107 class complex_add_pattern): Add parameters to matches.
16108 (complex_add_pattern::build): Free memory.
16109 (complex_add_pattern::matches): Move validation end of match.
16110 (complex_add_pattern::recognize): Likewise.
16112 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16114 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
16116 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16118 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
16120 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16122 PR tree-optimization/95867
16123 * tree-ssa-math-opts.h: New header.
16124 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
16125 (powi_as_mults): No longer static. Use build_one_cst instead of
16126 build_real. Formatting fix.
16127 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
16128 (attempt_builtin_powi): Handle multiplication reassociation without
16129 powi_fndecl using powi_as_mults.
16130 (reassociate_bb): For integral types don't require
16131 -funsafe-math-optimizations to call attempt_builtin_powi.
16133 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16135 PR tree-optimization/95852
16136 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
16137 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
16138 allow in the bb any of the stmts in that vector, div_stmt and
16139 up to 3 cast stmts.
16140 (arith_cast_equal_p): New function.
16141 (arith_overflow_check_p): Add cast_stmt argument, handle signed
16142 multiply overflow checks.
16143 (match_arith_overflow): Adjust caller. Handle signed multiply
16146 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16148 PR tree-optimization/95852
16149 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
16150 (uaddsub_overflow_check_p): Renamed to ...
16151 (arith_overflow_check_p): ... this. Handle also multiplication
16152 with overflow check.
16153 (match_uaddsub_overflow): Renamed to ...
16154 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
16155 also multiplication with overflow check. Adjust function comment.
16156 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
16157 match_arith_overflow also for MULT_EXPR.
16159 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16161 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
16162 __builtin_convertvector.
16163 (vmovl_s16): Likewise.
16164 (vmovl_s32): Likewise.
16165 (vmovl_u8): Likewise.
16166 (vmovl_u16): Likewise.
16167 (vmovl_u32): Likewise.
16168 (vmovn_s16): Likewise.
16169 (vmovn_s32): Likewise.
16170 (vmovn_s64): Likewise.
16171 (vmovn_u16): Likewise.
16172 (vmovn_u32): Likewise.
16173 (vmovn_u64): Likewise.
16175 2021-01-11 Martin Liska <mliska@suse.cz>
16177 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
16178 (if_chain::is_beneficial): Delete clusters
16179 (find_conditions): Make second argument of conditions_in_bbs a
16180 pointer so that we control over it's lifetime.
16181 (pass_if_to_switch::execute): Delete them.
16183 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
16185 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
16188 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
16190 * config/vax/vax.md (cc): Remove mode attribute.
16191 (subst_<cc>, subst_f<cc>): Rename to...
16192 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
16193 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
16194 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
16195 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
16197 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
16199 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
16200 `const_double_zero'.
16202 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
16204 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
16205 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
16208 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
16210 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
16212 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
16213 with `const_double_zero'.
16214 * doc/rtl.texi (Constant Expression Types): Document it.
16216 2021-01-09 Jakub Jelinek <jakub@redhat.com>
16219 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
16220 POINTER_DIFF_EXPR to be any integral type.
16222 2021-01-09 Jakub Jelinek <jakub@redhat.com>
16224 PR rtl-optimization/98603
16225 * function.c (instantiate_virtual_regs_in_insn): For asm goto
16226 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
16227 if any, set ASM_OPERANDS mode to VOIDmode and change
16228 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
16230 2021-01-09 Alexandre Oliva <oliva@gnu.org>
16233 * final.c (notice_source_line): Narrow down the condition to
16234 skip a line-0 marker.
16236 2021-01-08 Sergei Trofimovich <siarheit@google.com>
16238 * ipa-modref.c (merge_call_side_effects): Fix
16239 linebreak split by reordering two print calls.
16241 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
16243 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
16244 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
16245 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
16246 consistency, fix constraint.
16248 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
16250 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
16251 callables instead of mask values.
16252 (struct target_flag_set_p): New predicate.
16253 (s390_cpu_cpp_builtins_internal): Define or undefine
16254 __LONG_DOUBLE_VX__ macro.
16256 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
16259 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
16260 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
16263 2021-01-08 Richard Biener <rguenther@suse.de>
16265 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
16267 2021-01-08 Richard Biener <rguenther@suse.de>
16269 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
16270 (vect_build_slp_tree): On cache hit release the matched
16271 scalar stmts vector.
16272 * tree-vect-stmts.c (vectorizable_store): Properly free
16273 vec_oprnds before possibly gathering them again.
16275 2021-01-08 Richard Biener <rguenther@suse.de>
16277 PR tree-optimization/98544
16278 * tree-vect-slp.c (vect_optimize_slp): Always materialize
16279 permutes at a permute node.
16281 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
16284 * config/i386/i386.c (x86_function_profiler): Use R10 to call
16285 mcount in large model. Sorry for large model with PIC.
16287 2021-01-08 Jakub Jelinek <jakub@redhat.com>
16290 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
16291 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
16292 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
16293 TargetSave and initialize for variables with enum types.
16294 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
16295 mstack-protector-guard-symbol=): Add Save.
16296 * config/i386/i386-options.c (ix86_function_specific_save,
16297 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
16298 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
16299 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
16300 x_ix86_veclibabi_type.
16302 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
16304 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
16305 SVE_FULL_I to SVE_I.
16306 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16308 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
16310 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
16311 SVE_FULL_I to SVE_I.
16312 (*cond_uxt<mode>_any): Likewise.
16314 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16316 * config/aarch64/iterators.md (Vwhalf): New iterator.
16317 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
16319 (aarch64_<sur>adalp<mode>): ... This. Make more
16321 (<sur>sadv16qi): Adjust callsite of the above.
16322 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
16324 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
16326 (vpadal_s16): Likewise.
16327 (vpadal_u8): Likewise.
16328 (vpadal_u16): Likewise.
16329 (vpadalq_s8): Likewise.
16330 (vpadalq_s16): Likewise.
16331 (vpadalq_s32): Likewise.
16332 (vpadalq_u8): Likewise.
16333 (vpadalq_u16): Likewise.
16334 (vpadalq_u32): Likewise.
16336 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16338 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
16340 (aarch64_<su>abd<mode>): ... This.
16341 (<sur>sadv16qi): Adjust callsite of the above.
16342 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
16344 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
16346 (vabd_s16): Likewise.
16347 (vabd_s32): Likewise.
16348 (vabd_u8): Likewise.
16349 (vabd_u16): Likewise.
16350 (vabd_u32): Likewise.
16351 (vabdq_s8): Likewise.
16352 (vabdq_s16): Likewise.
16353 (vabdq_s32): Likewise.
16354 (vabdq_u8): Likewise.
16355 (vabdq_u16): Likewise.
16356 (vabdq_u32): Likewise.
16358 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16360 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
16362 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
16363 (vaba_s16): Likewise.
16364 (vaba_s32): Likewise.
16365 (vaba_u8): Likewise.
16366 (vaba_u16): Likewise.
16367 (vaba_u32): Likewise.
16368 (vabaq_s8): Likewise.
16369 (vabaq_s16): Likewise.
16370 (vabaq_s32): Likewise.
16371 (vabaq_u8): Likewise.
16372 (vabaq_u16): Likewise.
16373 (vabaq_u32): Likewise.
16375 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16377 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
16378 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
16379 Change RTL pattern to match.
16381 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
16383 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
16384 * config/riscv/riscv-c.c (riscv-subset.h): New.
16385 (INCLUDE_STRING): Define.
16386 (riscv_cpu_cpp_builtins): Add new style architecture extension
16388 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
16389 (riscv_subset_list::end): New.
16390 (riscv_current_subset_list): New.
16392 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
16394 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
16395 Move to riscv-subset.h.
16396 (struct riscv_subset_t): Ditto.
16397 (class riscv_subset_list): Ditto.
16398 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
16399 from riscv-common.c.
16400 (struct riscv_subset_t): Ditto.
16401 (class riscv_subset_list): Ditto.
16402 * config/riscv/t-riscv ($(common_out_file)): Add file
16405 2021-01-07 Jakub Jelinek <jakub@redhat.com>
16408 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
16409 New define_insn patterns.
16411 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
16413 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
16414 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
16415 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
16417 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
16419 PR tree-optimization/98560
16420 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
16421 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
16423 (vec_cond_direct): Likewise argument 2.
16424 (vec_condu_direct, vec_condeq_direct): Delete.
16425 (expand_vect_cond_optab_fn): Rename to...
16426 (expand_vec_cond_optab_fn): ...this, replacing old macro.
16427 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
16428 (expand_vect_cond_mask_optab_fn): Rename to...
16429 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
16430 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
16432 (direct_vec_cond_optab_supported_p): Likewise.
16433 (direct_vec_condu_optab_supported_p): Delete.
16434 (direct_vec_condeq_optab_supported_p): Delete.
16435 * gimple-isel.cc: Include internal-fn.h.
16436 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
16439 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
16441 PR tree-optimization/98560
16442 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
16443 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
16445 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
16447 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
16448 rotate_insn and optab code attributes.
16449 Update all uses to merged code attribute.
16450 * config/i386/sse.md: Update all uses to merged code attribute.
16451 * config/i386/mmx.md: Update all uses to merged code attribute.
16453 2021-01-07 Jakub Jelinek <jakub@redhat.com>
16455 PR tree-optimization/98568
16456 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
16457 (bswap_replace): Use it.
16459 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
16461 PR rtl-optimization/97978
16462 * lra-int.h (lra_hard_reg_split_p): New external.
16463 * lra.c (lra_hard_reg_split_p): New global.
16464 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
16465 * lra-assigns.c (lra_assign): Don't check allocation correctness
16466 after hard reg splitting.
16468 2021-01-06 Martin Sebor <msebor@redhat.com>
16471 * builtins.c (new_delete_mismatch_p): New overload.
16472 (new_delete_mismatch_p (tree, tree)): Call it.
16474 2021-01-06 Alexandre Oliva <oliva@adacore.com>
16476 * Makefile.in (T_GLIMITS_H): New.
16477 (stmp-int-hdrs): Depend on it, use it.
16478 * config/t-vxworks (T_GLIMITS_H): Override it.
16479 (vxw-glimits.h): New.
16481 2021-01-06 Richard Biener <rguenther@suse.de>
16483 PR tree-optimization/98513
16484 * value-range.cc (intersect_ranges): Compare the upper bounds
16485 for the expected relation.
16487 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16490 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
16492 * doc/standards.texi (HSAIL): Remove section.
16494 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16496 * configure: Re-generate.
16498 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16500 * doc/invoke.texi (-std=c++20): Adjust for the publication of
16501 ISO 14882:2020 standard.
16502 * doc/standards.texi: Likewise.
16504 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16506 PR tree-optimization/94802
16507 * expr.h (maybe_optimize_sub_cmp_0): Declare.
16508 * expr.c: Include tree-pretty-print.h and flags.h.
16509 (maybe_optimize_sub_cmp_0): New function.
16510 (do_store_flag): Use it.
16511 * cfgexpand.c (expand_gimple_cond): Likewise.
16513 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
16515 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
16516 * rtlanal.c (simple_regno_set): Tweak description to clarify the
16519 2021-01-05 Richard Biener <rguenther@suse.de>
16521 PR tree-optimization/98516
16522 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
16523 lanes when materializing on a VEC_PERM node.
16524 (vectorizable_slp_permutation): Dump the permute properly.
16526 2021-01-05 Richard Biener <rguenther@suse.de>
16528 * tree-vect-slp.c (vect_slp_region): Move debug counter
16529 to cover individual subgraphs.
16531 2021-01-05 Richard Biener <rguenther@suse.de>
16533 PR tree-optimization/98428
16534 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
16535 vector lane extracts for loop vectorization.
16537 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16539 PR tree-optimization/98514
16540 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
16542 (operand_rank): Change type from hash_map<tree, long> to
16543 hash_map<tree, int64_t>.
16544 (phi_rank): Change return type from long to int64_t.
16545 (loop_carried_phi): Change block_rank variable type from long to
16547 (propagate_rank): Change return type, rank parameter type and
16548 op_rank variable type from long to int64_t.
16549 (find_operand_rank): Change return type from long to int64_t
16550 and change slot variable type from long * to int64_t *.
16551 (insert_operand_rank): Change rank parameter type from long to
16553 (get_rank): Change return type and rank variable type from long to
16554 int64_t. Use PRId64 instead of ld to print the rank.
16555 (init_reassoc): Change rank variable type from long to int64_t
16556 and adjust correspondingly bb_rank and operand_rank initialization.
16558 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16560 PR tree-optimization/96928
16561 * tree-ssa-phiopt.c (xor_replacement): New function.
16562 (tree_ssa_phiopt_worker): Call it.
16564 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16566 PR tree-optimization/96930
16567 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
16568 from narrower value which has the same type as 1 << B, perform
16569 the right shift on the narrower value followed by extension.
16571 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16573 PR tree-optimization/96239
16574 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
16576 (get_status_for_store_merging): Don't return BB_INVALID for blocks
16577 with potential bswap optimizable CONSTRUCTORs.
16578 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
16581 2021-01-05 Richard Biener <rguenther@suse.de>
16583 PR tree-optimization/98381
16584 * tree.c (vector_element_bits): Properly compute bool vector
16586 * tree-vect-loop.c (vectorizable_live_operation): Properly
16587 compute the last lane bit offset.
16589 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
16592 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
16593 Clear the top 64 bytes of the input XMM register.
16594 (sse_cvttps2pi): Ditto.
16596 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
16599 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
16601 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
16604 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
16607 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
16609 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
16610 (umaddsidi4_split): Likewise.
16612 2021-01-05 liuhongt <hongtao.liu@intel.com>
16615 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
16616 define_insn_and_split for zero_extend of subreg HI of pmovskb
16618 (*sse2_pmovskb_zexthisi): Add new combine splitters for
16619 zero_extend of not of subreg HI of pmovskb result.
16621 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
16624 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
16626 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
16627 convert_memory_address to convert symbolic immediates to ptr_mode
16628 before forcing them to memory.
16630 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
16632 PR rtl-optimization/97144
16633 * recog.c (constrain_operands): Initialize matching_operand
16634 for each alternative, rather than only doing it once.
16636 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
16638 PR rtl-optimization/98403
16639 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
16640 why we don't remove call clobbers.
16641 (function_info::apply_changes_to_insn): Don't attempt to add
16642 call clobbers here.
16644 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
16646 PR tree-optimization/98371
16647 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
16648 (vect_analyze_loop): If an epilogue loop appears to be cheaper
16649 than the main loop, re-analyze it as a main loop before adopting
16652 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16655 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
16656 * aclocal.m4, configure: Regenerate.
16657 * Makefile.in (NETLIBS): Define.
16658 (BACKEND): Remove $(CODYLIB).
16660 2021-01-05 Jakub Jelinek <jakub@redhat.com>
16662 PR rtl-optimization/98334
16663 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
16664 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
16666 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16668 * tree-inline.c (expand_call_inline): Restore input_location.
16669 Return result from recursive call.
16671 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
16673 PR tree-optimization/95401
16674 * config/aarch64/aarch64-sve-builtins.cc
16675 (gimple_folder::load_store_cookie): Use bits rather than bytes
16676 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
16677 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
16678 * tree-vect-stmts.c (vectorizable_store): Likewise.
16679 (vectorizable_load): Likewise.
16681 2021-01-04 Richard Biener <rguenther@suse.de>
16683 PR tree-optimization/98308
16684 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
16687 2021-01-04 Jakub Jelinek <jakub@redhat.com>
16689 PR tree-optimization/95771
16690 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
16691 with precision smaller than int's precision and types with precision
16692 twice as large as long long. Formatting fixes.
16694 2021-01-04 Richard Biener <rguenther@suse.de>
16696 PR tree-optimization/98464
16697 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
16698 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
16699 (process_bb): Adjust.
16701 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
16704 * doc/invoke.texi (-fsanitize=address): Fix wording describing
16705 clash with -fsanitize=hwaddress.
16707 2021-01-04 Richard Biener <rguenther@suse.de>
16709 PR tree-optimization/98282
16710 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
16711 invariants as VN_NARY.
16713 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
16716 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
16717 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
16718 to handle zero operands.
16720 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
16722 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
16723 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
16724 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
16727 2021-01-04 Richard Biener <rguenther@suse.de>
16729 PR tree-optimization/98393
16730 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
16731 when hitting the limit.
16733 2021-01-04 Richard Biener <rguenther@suse.de>
16735 PR tree-optimization/98291
16736 * tree-vect-loop.c (vectorizable_reduction): Bypass
16737 associativity check for SLP reductions with VF 1.
16739 2021-01-04 Jakub Jelinek <jakub@redhat.com>
16741 PR tree-optimization/96782
16742 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
16744 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16746 * collect-utils.c (collect_execute): Check dumppfx.
16747 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
16748 to collect_execute.
16749 (do_link): Add new parameter atsuffix.
16750 (main): Handle -dumpdir option. Skip one argument for
16751 -o, -isystem and -B options.
16752 * gcc.c (make_at_file): New helper function.
16753 (close_at_file): Use it.
16755 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16757 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
16758 Amend handling for LD64_VERSION fallback defaults.
16760 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16762 * config.gcc: Compute default version information
16763 from the configured target. Likewise defaults for
16765 * config/darwin10.h: Removed.
16766 * config/darwin12.h: Removed.
16767 * config/darwin9.h: Removed.
16768 * config/rs6000/darwin8.h: Removed.
16770 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16772 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
16774 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16776 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
16777 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
16779 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16781 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
16783 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
16785 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16787 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
16788 for the Darwin10 unwinder stub from here ...
16789 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
16791 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
16793 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
16794 (ASM_DEBUG_SPEC):Only define if the assembler supports
16796 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
16797 (DARWIN_PREFER_DWARF): Define.
16798 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
16799 (DARWIN_PREFER_DWARF): Likewise
16800 (DSYMUTIL_SPEC): Likewise.
16801 (COLLECT_RUN_DSYMUTIL): Likewise.
16802 (ASM_DEBUG_SPEC): Likewise.
16803 (ASM_DEBUG_OPTION_SPEC): Likewise.
16805 2021-01-02 Jan Hubicka <jh@suse.cz>
16807 * cfg.c (free_block): ggc_free bb.
16809 2021-01-01 Jakub Jelinek <jakub@redhat.com>
16811 * gcc.c (process_command): Update copyright notice dates.
16812 * gcov-dump.c (print_version): Ditto.
16813 * gcov.c (print_version): Ditto.
16814 * gcov-tool.c (print_version): Ditto.
16815 * gengtype.c (create_file): Ditto.
16816 * doc/cpp.texi: Bump @copying's copyright year.
16817 * doc/cppinternals.texi: Ditto.
16818 * doc/gcc.texi: Ditto.
16819 * doc/gccint.texi: Ditto.
16820 * doc/gcov.texi: Ditto.
16821 * doc/install.texi: Ditto.
16822 * doc/invoke.texi: Ditto.
16824 2021-01-01 Jakub Jelinek <jakub@redhat.com>
16826 * ChangeLog-2020: Rotate ChangeLog. New file.
16829 Copyright (C) 2021 Free Software Foundation, Inc.
16831 Copying and distribution of this file, with or without modification,
16832 are permitted in any medium without royalty provided the copyright
16833 notice and this notice are preserved.