1 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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.
9 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
11 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
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
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.
21 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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.
37 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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.
46 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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.
56 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
58 * config/aarch64/iterators.md (addsub): New code attribute.
59 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
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>):
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.
76 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
78 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
79 (HADDSUB, sur, addsub): Remove them.
81 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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.
87 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
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
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.
102 2020-01-09 Martin Jambor <mjambor@suse.cz>
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
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
125 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
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
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
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.
154 2020-01-09 Martin Liska <mliska@suse.cz>
156 * params.opt: Set Optimization for
157 param_max_speculative_devirt_maydefs.
159 2020-01-09 Martin Sebor <msebor@redhat.com>
163 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
165 2020-01-09 Martin Liska <mliska@suse.cz>
167 * auto-profile.c (auto_profile): Use opt_for_fn
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.
190 2020-01-09 Richard Biener <rguenther@suse.de>
193 * gimplify.c (gimplify_expr): Deal with NOP definitions.
195 2020-01-09 Richard Biener <rguenther@suse.de>
197 PR tree-optimization/93040
198 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
200 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
202 * common/config/avr/avr-common.c (avr_option_optimization_table)
203 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
205 2020-01-09 Martin Liska <mliska@suse.cz>
207 * cgraphclones.c (symbol_table::materialize_all_clones):
208 Use cgraph_node::dump_name.
210 2020-01-09 Jakub Jelinek <jakub@redhat.com>
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.
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
228 2020-01-08 David Malcolm <dmalcolm@redhat.com>
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.
236 2020-01-08 David Malcolm <dmalcolm@redhat.com>
238 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
240 2020-01-08 Jim Wilson <jimw@sifive.com>
242 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
243 use of TLS_MODEL_LOCAL_EXEC when not pic.
245 2020-01-08 David Malcolm <dmalcolm@redhat.com>
247 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
250 2020-01-08 Jakub Jelinek <jakub@redhat.com>
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.
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].
263 2020-01-08 Martin Liska <mliska@suse.cz>
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.
308 2020-01-08 Richard Biener <rguenther@suse.de>
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.
317 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
320 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
322 2019-01-08 Richard Biener <rguenther@suse.de>
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.
334 2020-01-08 Martin Liska <mliska@suse.cz>
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.
340 2020-01-08 Martin Liska <mliska@suse.cz>
342 * cgraph.c (cgraph_node::dump): Use systematically
345 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
347 Add -nodevicespecs option for avr.
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.
355 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
357 Implement 64-bit double functions for avr.
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.
371 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
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.
378 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
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.
386 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
388 * ipa-inline.c (caller_growth_limits): Restore the AND.
390 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
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
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.
416 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
418 * config/gcn/constraints.md (DA): Update description and match.
420 (Db): New constraint.
421 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
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.
442 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
444 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
445 existing target checks.
447 2020-01-07 Richard Biener <rguenther@suse.de>
449 * doc/install.texi: Bump minimal supported MPC version.
451 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
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.
461 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
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.
485 2020-01-07 Jakub Jelinek <jakub@redhat.com>
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.
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.
495 2020-01-07 Martin Liska <mliska@suse.cz>
497 * params.opt: Add Optimization for various parameters.
499 2020-01-07 Martin Liska <mliska@suse.cz>
502 * doc/extend.texi: Explain cloning for target_clone
505 2020-01-07 Martin Liska <mliska@suse.cz>
507 PR tree-optimization/92860
508 * common.opt: Make in Optimization option
509 as it is affected by -O0, which is an Optimization
511 * tree-inline.c (tree_inlinable_function_p):
512 Use opt_for_fn for warn_inline.
513 (expand_call_inline): Likewise.
515 2020-01-07 Martin Liska <mliska@suse.cz>
517 PR tree-optimization/92860
518 * common.opt: Make flag_ree as optimization
521 2020-01-07 Martin Liska <mliska@suse.cz>
523 PR optimization/92860
524 * params.opt: Mark param_min_crossjump_insns with Optimization
527 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
529 * ipa-inline-analysis.c (estimate_growth): Fix typo.
530 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
532 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
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.
539 * config/rs6000/constraints.md (Q constraint): Update
541 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
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
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
553 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
554 for the offset being 34-bits when -mcpu=future is used.
556 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
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.
563 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
565 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
566 in an IFN_DIV_POW2 node to be equal.
568 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
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.
576 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
578 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
580 (subv64di3_exec): Likewise.
582 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
584 * config/mips/mips.c (vr4130_align_insns): Fix typo.
585 * doc/md.texi (movstr): Likewise.
587 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
589 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
592 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
594 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
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.
600 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
602 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
603 rather than Upa for CPY /M.
605 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
607 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
610 2020-01-06 Martin Liska <mliska@suse.cz>
612 PR tree-optimization/92860
613 * params.opt: Mark param_max_combine_insns with Optimization
616 2020-01-05 Jakub Jelinek <jakub@redhat.com>
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
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.
636 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
638 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
639 Use "call" instead of "set".
641 2020-01-03 Martin Jambor <mjambor@suse.cz>
644 * ipa-cp.c (print_all_lattices): Skip functions without info.
646 2020-01-03 Jakub Jelinek <jakub@redhat.com>
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
655 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
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.
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.
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
678 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
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.
697 2020-01-02 Jakub Jelinek <jakub@redhat.com>
700 * predict.c (compute_function_frequency): Don't call
701 warn_function_cold on functions that already have cold attribute.
703 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
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.
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
715 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
717 2020-01-01 Jakub Jelinek <jakub@redhat.com>
719 Update copyright years.
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.
734 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
736 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
739 2020-01-01 Jakub Jelinek <jakub@redhat.com>
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.
748 Copyright (C) 2020 Free Software Foundation, Inc.
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.