[AArch64] Add banner comments to aarch64-sve2.md
[gcc.git] / gcc / ChangeLog
1 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/aarch64/aarch64-sve2.md: Add banner comments.
4 (<su>mulh<r>s<mode>3): Move further up file.
5 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
6 (*aarch64_sve2_sra<mode>): Move further down file.
7 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
8
9 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
10
11 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
12 and UNSPEC_WHILEWR.
13 (while_optab_cmp): Handle them.
14 * config/aarch64/aarch64-sve.md
15 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
16 and add a "@" marker.
17 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
18 instead of gen_aarch64_sve2_while_ptest.
19 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
20
21 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
22
23 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
24 (UNSPEC_WHILELE): ...this.
25 (UNSPEC_WHILE_LO): Rename to...
26 (UNSPEC_WHILELO): ...this.
27 (UNSPEC_WHILE_LS): Rename to...
28 (UNSPEC_WHILELS): ...this.
29 (UNSPEC_WHILE_LT): Rename to...
30 (UNSPEC_WHILELT): ...this.
31 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
32 (cmp_op, while_optab_cmp): Likewise.
33 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
34 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
35 (svwhilelt): Likewise.
36
37 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
38
39 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
40 (unary_to_uint): Define.
41 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
42 (unary_count): Rename to...
43 (unary_to_uint_def, unary_to_uint): ...this.
44 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
45
46 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
47
48 * config/aarch64/aarch64-sve-builtins-functions.h
49 (code_for_mode_function): New class.
50 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
51 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
52 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
53 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
54 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
55
56 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
57
58 * config/aarch64/iterators.md (addsub): New code attribute.
59 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
60 Re-express as...
61 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
62 in the asm string and attributes. Fix indentation.
63 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
64 Re-express as...
65 (@aarch64_sve_<optab><mode>): ...this.
66 * config/aarch64/aarch64-sve-builtins.h
67 (function_expander::expand_signed_unpred_op): Delete.
68 * config/aarch64/aarch64-sve-builtins.cc
69 (function_expander::expand_signed_unpred_op): Likewise.
70 (function_expander::map_to_rtx_codes): If the optab isn't defined,
71 try using code_for_aarch64_sve instead.
72 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
73 (svqsub_impl): Likewise.
74 (svqadd, svqsub): Use rtx_code_function instead.
75
76 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
77
78 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
79 (HADDSUB, sur, addsub): Remove them.
80
81 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
82
83 * tree-nrv.c (pass_return_slot::execute): Handle all internal
84 functions the same way, rather than singling out those that
85 aren't mapped directly to optabs.
86
87 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
88
89 * target.def (compatible_vector_types_p): New target hook.
90 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
91 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
92 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
93 * doc/tm.texi: Regenerate.
94 * gimple-expr.c: Include target.h.
95 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
96 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
97 function.
98 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
99 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
100 Use the original predicate if it already has a suitable type.
101
102 2020-01-09 Martin Jambor <mjambor@suse.cz>
103
104 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
105 resolve_speculation and redirect_call_stmt_to_callee static. Change
106 return type of set_call_stmt to cgraph_edge *.
107 * auto-profile.c (afdo_indirect_call): Adjust call to
108 redirect_call_stmt_to_callee.
109 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
110 make the this pointer explicit, adjust self-recursive calls and the
111 call top make_direct. Return the resulting edge.
112 (cgraph_edge::remove): Make this pointer explicit.
113 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
114 (cgraph_edge::make_direct): Likewise, adjust call to
115 resolve_speculation.
116 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
117 call to set_call_stmt.
118 (cgraph_update_edges_for_call_stmt_node): Update call to
119 set_call_stmt and remove.
120 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
121 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
122 (cgraph_node::create_edge_including_clones): Moved "first" definition
123 of edge to the block where it was used. Adjusted calls to
124 set_call_stmt.
125 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
126 cgraph_edge::remove.
127 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
128 make_direct and redirect_call_stmt_to_callee.
129 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
130 resolve_speculation and make_direct.
131 * ipa-inline-transform.c (inline_transform): Adjust call to
132 redirect_call_stmt_to_callee.
133 (check_speculations_1):: Adjust call to resolve_speculation.
134 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
135 resolve-speculation.
136 (inline_small_functions): Adjust call to resolve_speculation.
137 (ipa_inline): Likewise.
138 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
139 make_direct.
140 * ipa-visibility.c (function_and_variable_visibility): Make iteration
141 safe with regards to edge removal, adjust calls to
142 redirect_call_stmt_to_callee.
143 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
144 and redirect_call_stmt_to_callee.
145 * multiple_target.c (create_dispatcher_calls): Adjust call to
146 redirect_call_stmt_to_callee
147 (redirect_to_specific_clone): Likewise.
148 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
149 Adjust calls to cgraph_edge::remove.
150 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
151 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
152 (expand_call_inline): Adjust call to cgraph_edge::remove.
153
154 2020-01-09 Martin Liska <mliska@suse.cz>
155
156 * params.opt: Set Optimization for
157 param_max_speculative_devirt_maydefs.
158
159 2020-01-09 Martin Sebor <msebor@redhat.com>
160
161 PR middle-end/93200
162 PR fortran/92956
163 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
164
165 2020-01-09 Martin Liska <mliska@suse.cz>
166
167 * auto-profile.c (auto_profile): Use opt_for_fn
168 for a parameter.
169 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
170 (propagate_vals_across_arith_jfunc): Likewise.
171 (hint_time_bonus): Likewise.
172 (incorporate_penalties): Likewise.
173 (good_cloning_opportunity_p): Likewise.
174 (perform_estimation_of_a_value): Likewise.
175 (estimate_local_effects): Likewise.
176 (ipcp_propagate_stage): Likewise.
177 * ipa-fnsummary.c (decompose_param_expr): Likewise.
178 (set_switch_stmt_execution_predicate): Likewise.
179 (analyze_function_body): Likewise.
180 * ipa-inline-analysis.c (offline_size): Likewise.
181 * ipa-inline.c (early_inliner): Likewise.
182 * ipa-prop.c (ipa_analyze_node): Likewise.
183 (ipcp_transform_function): Likewise.
184 * ipa-sra.c (process_scan_results): Likewise.
185 (ipa_sra_summarize_function): Likewise.
186 * params.opt: Rename ipcp-unit-growth to
187 ipa-cp-unit-growth. Add Optimization for various
188 IPA-related parameters.
189
190 2020-01-09 Richard Biener <rguenther@suse.de>
191
192 PR middle-end/93054
193 * gimplify.c (gimplify_expr): Deal with NOP definitions.
194
195 2020-01-09 Richard Biener <rguenther@suse.de>
196
197 PR tree-optimization/93040
198 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
199
200 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
201
202 * common/config/avr/avr-common.c (avr_option_optimization_table)
203 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
204
205 2020-01-09 Martin Liska <mliska@suse.cz>
206
207 * cgraphclones.c (symbol_table::materialize_all_clones):
208 Use cgraph_node::dump_name.
209
210 2020-01-09 Jakub Jelinek <jakub@redhat.com>
211
212 PR inline-asm/93202
213 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
214 output_operand_lossage instead of gcc_unreachable.
215 * doc/md.texi (riscv f constraint): Fix typo.
216
217 PR target/93141
218 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
219 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
220 CONST_SCALAR_INT_P instead of CONST_INT_P.
221 (*subv<mode>4_1): Rename to ...
222 (subv<mode>4_1): ... this.
223 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
224 define_insn_and_split patterns.
225 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
226 patterns.
227
228 2020-01-08 David Malcolm <dmalcolm@redhat.com>
229
230 * vec.c (class selftest::count_dtor): New class.
231 (selftest::test_auto_delete_vec): New test.
232 (selftest::vec_c_tests): Call it.
233 * vec.h (class auto_delete_vec): New class template.
234 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
235
236 2020-01-08 David Malcolm <dmalcolm@redhat.com>
237
238 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
239
240 2020-01-08 Jim Wilson <jimw@sifive.com>
241
242 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
243 use of TLS_MODEL_LOCAL_EXEC when not pic.
244
245 2020-01-08 David Malcolm <dmalcolm@redhat.com>
246
247 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
248 memory leak.
249
250 2020-01-08 Jakub Jelinek <jakub@redhat.com>
251
252 PR target/93187
253 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
254 *stack_protect_set_3 peephole2): Also check that the second
255 insns source is general_operand.
256
257 PR target/93174
258 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
259 predicate for output operand instead of register_operand.
260 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
261 memory destination and non-memory operands[2].
262
263 2020-01-08 Martin Liska <mliska@suse.cz>
264
265 * cgraph.c (cgraph_node::dump): Use ::dump_name or
266 ::dump_asm_name instead of (::name or ::asm_name).
267 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
268 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
269 (analyze_functions): Likewise.
270 (expand_all_functions): Likewise.
271 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
272 (propagate_bits_across_jump_function): Likewise.
273 (dump_profile_updates): Likewise.
274 (ipcp_store_bits_results): Likewise.
275 (ipcp_store_vr_results): Likewise.
276 * ipa-devirt.c (dump_targets): Likewise.
277 * ipa-fnsummary.c (analyze_function_body): Likewise.
278 * ipa-hsa.c (check_warn_node_versionable): Likewise.
279 (process_hsa_functions): Likewise.
280 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
281 (set_alias_uids): Likewise.
282 * ipa-inline-transform.c (save_inline_function_body): Likewise.
283 * ipa-inline.c (recursive_inlining): Likewise.
284 (inline_to_all_callers_1): Likewise.
285 (ipa_inline): Likewise.
286 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
287 (ipa_propagate_frequency): Likewise.
288 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
289 (remove_described_reference): Likewise.
290 * ipa-pure-const.c (worse_state): Likewise.
291 (check_retval_uses): Likewise.
292 (analyze_function): Likewise.
293 (propagate_pure_const): Likewise.
294 (propagate_nothrow): Likewise.
295 (dump_malloc_lattice): Likewise.
296 (propagate_malloc): Likewise.
297 (pass_local_pure_const::execute): Likewise.
298 * ipa-visibility.c (optimize_weakref): Likewise.
299 (function_and_variable_visibility): Likewise.
300 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
301 (ipa_discover_variable_flags): Likewise.
302 * lto-streamer-out.c (output_function): Likewise.
303 (output_constructor): Likewise.
304 * tree-inline.c (copy_bb): Likewise.
305 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
306 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
307
308 2020-01-08 Richard Biener <rguenther@suse.de>
309
310 PR middle-end/93199
311 * tree-eh.c (sink_clobbers): Update virtual operands for
312 the first and last stmt only. Add a dry-run capability.
313 (pass_lower_eh_dispatch::execute): Perform clobber sinking
314 after CFG manipulations and in RPO order to catch all
315 secondary opportunities reliably.
316
317 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
318
319 PR target/93182
320 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
321
322 2019-01-08 Richard Biener <rguenther@suse.de>
323
324 PR middle-end/93199
325 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
326 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
327 virtual operand, also updating SSA use.
328 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
329 Update stmt after resetting virtual operand.
330 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
331 * gimple-iterator.c (gsi_remove): When not removing the stmt
332 permanently do not delink immediate uses or mark the stmt modified.
333
334 2020-01-08 Martin Liska <mliska@suse.cz>
335
336 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
337 (ipa_call_context::estimate_size_and_time): Likewise.
338 (inline_analyze_function): Likewise.
339
340 2020-01-08 Martin Liska <mliska@suse.cz>
341
342 * cgraph.c (cgraph_node::dump): Use systematically
343 dump_asm_name.
344
345 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
346
347 Add -nodevicespecs option for avr.
348
349 PR target/93182
350 * config/avr/avr.opt (-nodevicespecs): New driver option.
351 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
352 "-specs=device-specs/..." if that option is not set.
353 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
354
355 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
356
357 Implement 64-bit double functions for avr.
358
359 PR target/92055
360 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
361 --with-double-comparison.
362 * doc/install.texi: Document them.
363 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
364 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
365 <WITH_DOUBLE_COMPARISON>: New built-in defines.
366 * doc/invoke.texi (AVR Built-in Macros): Document them.
367 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
368 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
369 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
370
371 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
372
373 PR target/93188
374 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
375 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
376 when only building rm-profile multilibs.
377
378 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
379
380 PR ipa/93084
381 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
382 lattice for a value to check.
383 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
384 finite propagation in self-recursive scc.
385
386 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
387
388 * ipa-inline.c (caller_growth_limits): Restore the AND.
389
390 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
391
392 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
393 (VEC_ALLREG_ALT): New iterator.
394 (VEC_ALLREG_INT_MODE): New iterator.
395 (VCMP_MODE): New iterator.
396 (VCMP_MODE_INT): New iterator.
397 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
398 (vec_cmp<u>v64qidi): New define_expand.
399 (vec_cmp<mode>di_exec): Use VCMP_MODE.
400 (vec_cmpu<mode>di_exec): New define_expand.
401 (vec_cmp<u>v64qidi_exec): New define_expand.
402 (vec_cmp<mode>di_dup): Use VCMP_MODE.
403 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
404 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
405 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
406 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
407 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
408 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
409 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
410 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
411 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
412 this.
413 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
414 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
415
416 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
417
418 * config/gcn/constraints.md (DA): Update description and match.
419 (DB): Likewise.
420 (Db): New constraint.
421 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
422 parameter.
423 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
424 Implement 'Db' mixed immediate type.
425 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
426 (addcv64si3_dup<exec_vcc>): Delete.
427 (subcv64si3<exec_vcc>): Rework constraints.
428 (addv64di3): Rework constraints.
429 (addv64di3_exec): Rework constraints.
430 (subv64di3): Rework constraints.
431 (addv64di3_dup): Delete.
432 (addv64di3_dup_exec): Delete.
433 (addv64di3_zext): Rework constraints.
434 (addv64di3_zext_exec): Rework constraints.
435 (addv64di3_zext_dup): Rework constraints.
436 (addv64di3_zext_dup_exec): Rework constraints.
437 (addv64di3_zext_dup2): Rework constraints.
438 (addv64di3_zext_dup2_exec): Rework constraints.
439 (addv64di3_sext_dup2): Rework constraints.
440 (addv64di3_sext_dup2_exec): Rework constraints.
441
442 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
443
444 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
445 existing target checks.
446
447 2020-01-07 Richard Biener <rguenther@suse.de>
448
449 * doc/install.texi: Bump minimal supported MPC version.
450
451 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
452
453 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
454 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
455 * langhooks.c: Include stor-layout.h.
456 (lhd_simulate_enum_decl): New function.
457 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
458 handle_arm_sve_h for the LTO frontend.
459 (register_vector_type): Cope with null returns from pushdecl.
460
461 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
462
463 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
464 (aarch64_sve::nvectors_if_data_type): Replace with...
465 (aarch64_sve::builtin_type_p): ...this.
466 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
467 (find_vector_type): Delete.
468 (add_sve_type_attribute): New function.
469 (lookup_sve_type_attribute): Likewise.
470 (register_builtin_types): Add an "SVE type" attribute to each type.
471 (register_tuple_type): Likewise.
472 (svbool_type_p, nvectors_if_data_type): Delete.
473 (mangle_builtin_type): Use lookup_sve_type_attribute.
474 (builtin_type_p): Likewise. Add an overload that returns the
475 number of constituent vector and predicate registers.
476 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
477 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
478 instead of aarch64_sve_argument_p.
479 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
480 (aarch64_pass_by_reference): Likewise.
481 (aarch64_function_value_1): Likewise.
482 (aarch64_return_in_memory): Likewise.
483 (aarch64_layout_arg): Likewise.
484
485 2020-01-07 Jakub Jelinek <jakub@redhat.com>
486
487 PR tree-optimization/93156
488 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
489 least significant bit is always clear.
490
491 PR tree-optimization/93118
492 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
493 simplifier with two intermediate conversions.
494
495 2020-01-07 Martin Liska <mliska@suse.cz>
496
497 * params.opt: Add Optimization for various parameters.
498
499 2020-01-07 Martin Liska <mliska@suse.cz>
500
501 PR ipa/83411
502 * doc/extend.texi: Explain cloning for target_clone
503 attribute.
504
505 2020-01-07 Martin Liska <mliska@suse.cz>
506
507 PR tree-optimization/92860
508 * common.opt: Make in Optimization option
509 as it is affected by -O0, which is an Optimization
510 option.
511 * tree-inline.c (tree_inlinable_function_p):
512 Use opt_for_fn for warn_inline.
513 (expand_call_inline): Likewise.
514
515 2020-01-07 Martin Liska <mliska@suse.cz>
516
517 PR tree-optimization/92860
518 * common.opt: Make flag_ree as optimization
519 attribute.
520
521 2020-01-07 Martin Liska <mliska@suse.cz>
522
523 PR optimization/92860
524 * params.opt: Mark param_min_crossjump_insns with Optimization
525 keyword.
526
527 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
528
529 * ipa-inline-analysis.c (estimate_growth): Fix typo.
530 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
531
532 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
533
534 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
535 helper function to return the valid addressing formats for a given
536 hard register and mode.
537 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
538
539 * config/rs6000/constraints.md (Q constraint): Update
540 documentation.
541 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
542 documentation.
543
544 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
545 Use 'Q' for doing vector extract from memory.
546 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
547 memory.
548 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
549 doing vector extract from memory.
550 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
551 extract from memory.
552
553 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
554 for the offset being 34-bits when -mcpu=future is used.
555
556 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
557
558 * config/pa/pa.md: Revert change to use ordered_comparison_operator
559 instead of cmpib_comparison_operator in cmpib patterns.
560 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
561 of cmpib_comparison_operator. Revise comment.
562
563 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
564
565 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
566 in an IFN_DIV_POW2 node to be equal.
567
568 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
569
570 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
571 (vect_check_scalar_mask): ...this.
572 (vectorizable_store, vectorizable_load): Update call accordingly.
573 (vectorizable_call): Use vect_check_scalar_mask to check the mask
574 argument in calls to conditional internal functions.
575
576 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
577
578 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
579 '0' matching inputs.
580 (subv64di3_exec): Likewise.
581
582 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
583
584 * config/mips/mips.c (vr4130_align_insns): Fix typo.
585 * doc/md.texi (movstr): Likewise.
586
587 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
588
589 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
590 clobber.
591
592 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
593
594 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
595 Depend on...
596 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
597 to a temporary file and use move-if-change to update the real
598 file where necessary.
599
600 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
601
602 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
603 rather than Upa for CPY /M.
604
605 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
606
607 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
608 immediate.
609
610 2020-01-06 Martin Liska <mliska@suse.cz>
611
612 PR tree-optimization/92860
613 * params.opt: Mark param_max_combine_insns with Optimization
614 keyword.
615
616 2020-01-05 Jakub Jelinek <jakub@redhat.com>
617
618 PR target/93141
619 * config/i386/i386.md (SWIDWI): New mode iterator.
620 (DWI, dwi): Add TImode variants.
621 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
622 <general_hilo_operand> instead of <general_operand>. Use
623 CONST_SCALAR_INT_P instead of CONST_INT_P.
624 (*addv<mode>4_1): Rename to ...
625 (addv<mode>4_1): ... this.
626 (QWI): New mode attribute.
627 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
628 define_insn_and_split patterns.
629 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
630 patterns.
631 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
632 <general_hilo_operand> instead of <general_operand>.
633 (*addcarry<mode>_1): New define_insn.
634 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
635
636 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
637
638 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
639 Use "call" instead of "set".
640
641 2020-01-03 Martin Jambor <mjambor@suse.cz>
642
643 PR ipa/92917
644 * ipa-cp.c (print_all_lattices): Skip functions without info.
645
646 2020-01-03 Jakub Jelinek <jakub@redhat.com>
647
648 PR target/93089
649 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
650 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
651 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
652 for 'e' simd clones.
653
654 PR target/93089
655 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
656 entry.
657 (mprefer-vector-width=): Add Save.
658 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
659 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
660 (ix86_debug_options, ix86_function_specific_print): Adjust
661 ix86_target_string callers.
662 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
663 (ix86_valid_target_attribute_tree): Likewise.
664 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
665 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
666 ix86_target_string caller.
667
668 PR target/93110
669 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
670 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
671 instead of gen_int_shift_amount + convert_modes.
672
673 PR rtl-optimization/93088
674 * loop-iv.c (find_single_def_src): Punt after looking through
675 128 reg copies for regs with single definitions. Move definitions
676 to first uses.
677
678 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
679
680 * config/arm/arm-c.c (arm_cpu_builtins): Define
681 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
682 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
683 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
684 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
685 * config/arm/arm-tables.opt: Regenerated.
686 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
687 arm_arch_i8mm and arm_arch_bf16 when enabled.
688 * config/arm/arm.h (TARGET_I8MM): New macro.
689 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
690 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
691 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
692 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
693 (v8_6_a_simd_variants): New.
694 (v8_*_a_simd_variants): Add i8mm and bf16.
695 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
696
697 2020-01-02 Jakub Jelinek <jakub@redhat.com>
698
699 PR ipa/93087
700 * predict.c (compute_function_frequency): Don't call
701 warn_function_cold on functions that already have cold attribute.
702
703 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
704
705 PR target/67834
706 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
707 COMDAT group function labels in .data.rel.ro.local section.
708 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
709
710 PR target/93111
711 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
712 comparison_operator in B and S integer comparisons. Likewise, use
713 ordered_comparison_operator instead of cmpib_comparison_operator in
714 cmpib patterns.
715 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
716
717 2020-01-01 Jakub Jelinek <jakub@redhat.com>
718
719 Update copyright years.
720
721 * gcc.c (process_command): Update copyright notice dates.
722 * gcov-dump.c (print_version): Ditto.
723 * gcov.c (print_version): Ditto.
724 * gcov-tool.c (print_version): Ditto.
725 * gengtype.c (create_file): Ditto.
726 * doc/cpp.texi: Bump @copying's copyright year.
727 * doc/cppinternals.texi: Ditto.
728 * doc/gcc.texi: Ditto.
729 * doc/gccint.texi: Ditto.
730 * doc/gcov.texi: Ditto.
731 * doc/install.texi: Ditto.
732 * doc/invoke.texi: Ditto.
733
734 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
735
736 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
737 summary.
738
739 2020-01-01 Jakub Jelinek <jakub@redhat.com>
740
741 PR tree-optimization/93098
742 * match.pd (popcount): For shift amounts, use integer_onep
743 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
744 tests. Make sure that precision is power of two larger than or equal
745 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
746 instead of ULL suffixed constants. Formatting fixes.
747 \f
748 Copyright (C) 2020 Free Software Foundation, Inc.
749
750 Copying and distribution of this file, with or without modification,
751 are permitted in any medium without royalty provided the copyright
752 notice and this notice are preserved.