1 2019-10-29 Martin Liska <mliska@suse.cz>
3 * symbol-summary.h (function_summary): Pass memory location
4 to underlaying hash_map (or vec).
5 (V>::fast_function_summary): Likewise.
7 2019-10-29 Martin Liska <mliska@suse.cz>
9 * ggc.h (ggc_alloc_no_dtor): New function.
10 * ipa-fnsummary.c (ipa_free_fn_summary): Call
11 destructor and ggc_free.
12 (ipa_free_size_summary): Call delete instead
14 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
15 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
16 (ipa_free_all_edge_args): Call destructor and ggc_free.
17 (ipa_free_all_node_params): Likewise.
18 (ipcp_free_transformation_sum): Likewise.
19 * ipa-prop.h (ipa_check_create_node_params):
20 Call new ggc_alloc_no_dtor.
21 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
22 (ipa_sra_analysis): Call destructor and ggc_free.
23 Replace release with delete operator.
24 * symbol-summary.h (release): Remove ..
25 (V>::~fast_function_summary): and move logic here.
26 Likewise for other classes.
28 2019-10-29 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/92260
31 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
34 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
36 PR tree-optimization/88915
37 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
38 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
39 and make the valueize function pointer also take a void pointer.
40 * gcc/tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
41 around vn_valueize, to call it without a context.
42 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
43 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
44 (~_loop_vec_info): Release epilogue_vinfos.
45 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
46 number of iterations of epilogue.
47 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
48 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
49 versioning threshold needed for main loop.
50 (vect_analyze_loop): Likewise.
51 (find_in_mapping): New helper function.
52 (update_epilogue_loop_vinfo): New function.
53 (vect_transform_loop): When vectorizing epilogues re-use analysis done
54 on main loop and call update_epilogue_loop_vinfo to update it.
55 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
56 stmts on loop preheader edge.
57 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
58 we decided to vectorize epilogues. Update epilogues NITERS and
59 construct ADVANCE to update epilogues data references where needed.
60 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
61 (vect_do_peeling, vect_update_inits_of_drs,
62 determine_peel_for_niter, vect_analyze_loop): Add or update
64 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
65 created loop_vec_info's for epilogues when available. Otherwise analyse
68 2019-10-29 Richard Biener <rguenther@suse.de>
70 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
73 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
75 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
76 index for the COND_EXPR from stmt_info rather than reduc_info.
78 2019-10-29 Richard Biener <rguenther@suse.de>
80 PR tree-optimization/65930
81 * tree-vect-loop.c (check_reduction_path): Relax single-use
82 check allowing out-of-loop uses.
83 (vect_is_simple_reduction): SLP reduction chains cannot have
84 intermediate stmts used outside of the loop.
85 (vect_create_epilog_for_reduction): The adjustment might need
87 (vectorizable_reduction): Annotate live stmts of the reduction
88 chain with STMT_VINFO_REDUC_DEF.
89 * tree-vect-stms.c (process_use): Remove no longer true asserts.
91 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
93 * calls.c (pass_by_reference): Leave the target to decide whether
94 POLY_INT_CST-sized arguments should be passed by value or reference,
95 rather than forcing them to be passed by reference.
96 (must_pass_in_stack_var_size): Likewise.
97 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
98 V31_REGNUM to P15_REGNUM.
99 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
100 Take an extra "silent_p" parameter, defaulting to false.
101 (aarch64_sve::svbool_type_p): Declare.
102 (aarch64_sve::nvectors_if_data_type): Likewise.
103 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
104 (aarch64_frame::reg_offset): Turn into poly_int64s.
105 (aarch64_frame::save_regs_size): Likewise.
106 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
107 (aarch64_frame::sve_callee_adjust): Likewise.
108 (aarch64_frame::spare_reg_reg): Likewise.
109 (ARM_PCS_SVE): New arm_pcs value.
110 (CUMULATIVE_ARGS::aapcs_nprn): New field.
111 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
112 (CUMULATIVE_ARGS::silent_p): Likewise.
113 (BITS_PER_SVE_PRED): New macro.
114 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
115 function. Reject aarch64_vector_pcs attributes on SVE functions.
116 (aarch64_attribute_table): Use the above handler.
117 (aarch64_sve_abi): New function.
118 (aarch64_sve_argument_p): Likewise.
119 (aarch64_returns_value_in_sve_regs_p): Likewise.
120 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
121 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
123 (aarch64_simd_decl_p): Delete.
124 (aarch64_emit_cfi_for_reg_p): New function.
125 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
126 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
127 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
128 as partly clobbered for the SVE PCS.
129 (aarch64_function_ok_for_sibcall): Check whether the two functions
130 use the same ABI, rather than checking specifically for whether
131 they're aarch64_vector_pcs functions.
132 (aarch64_pass_by_reference): Raise an error for attempts to pass
133 SVE arguments when SVE is disabled. Pass SVE arguments by reference
134 if there are not enough free registers left, or if the argument is
136 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
137 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
139 (aarch64_layout_arg): Take a function_arg_info rather than
140 individual properties. Handle SVE predicates, vectors and tuples.
141 Raise an error if they are passed to unprototyped functions.
142 (aarch64_function_arg): If the silent_p flag is set, suppress the
143 usual error about using float registers without TARGET_FLOAT.
144 (aarch64_init_cumulative_args): Take a silent_p parameter and store
145 it in the cumulative_args structure. Initialize aapcs_nprn and
146 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
147 error about using float registers without TARGET_FLOAT.
148 If the silent_p flag is not set, also raise an error about
149 using SVE functions when SVE is disabled.
150 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
151 and call it for SVE functions too. Update aapcs_nprn similarly
152 to the other register counts.
153 (aarch64_layout_frame): If a big-endian function needs to save
154 and restore Z8-Z15, search for a spare predicate that it can use.
155 Store SVE predicates at the bottom of the register save area,
156 followed by SVE vectors, then followed by the normal slots.
157 Keep pointing the hard frame pointer at the base of the normal slots,
158 above the SVE vectors. Update the various frame creation and
159 tear-down strategies for the new layout, initializing the new
160 sve_callee_adjust field. Add an additional layout for frames
161 whose saved registers are all SVE registers.
162 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
163 (aarch64_return_address_signing_enabled): Likewise.
164 (aarch64_push_regs, aarch64_pop_regs): Update calls to
165 aarch64_reg_save_mode.
166 (aarch64_adjust_sve_callee_save_base): New function.
167 (aarch64_add_cfa_expression): Move earlier in file. Take the
168 saved register as an rtx rather than a register number and use
169 its mode for the MEM slot.
170 (aarch64_save_callee_saves): Remove the mode argument and instead
171 use aarch64_reg_save_mode to get the mode of each save slot.
172 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
173 offsets. Allow GP offsets to be saved at a VL-based offset from
174 the stack, handling this case using the frame pointer if available
175 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
176 big-endian SVE functions; use normal moves for other SVE saves.
177 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
178 returns true. Add explicit CFA notes when not storing via the
179 stack pointer. Do not try to pair SVE saves.
180 (aarch64_restore_callee_saves): Cope with poly_int64 register
181 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
182 use normal moves for other SVE restores. Only add CFA restore notes
183 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
185 (aarch64_get_separate_components): Always keep the first SVE save
186 in the prologue if we need to use it as a stack probe. Don't allow
187 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
188 Likewise the spare predicate register that they need. Update the
189 offset calculation to account for the SVE save area. Use the
190 appropriate range check for SVE LDR and STR instructions.
191 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
192 (aarch64_process_components): Likewise. Update the offset
193 calculation to account for the SVE save area. Only mark the
194 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
195 Do not try to pair SVE saves.
196 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
197 reg_offsets. When handling the final allocation, expect the
198 first SVE register save to be part of the initial allocation
199 and for it to act as a probe at SP. Account for the SVE callee
200 save area in the dump information.
201 (aarch64_expand_prologue): Update the frame diagram. Fold the
202 SVE callee allocation into the initial allocation if stack clash
203 protection is enabled. Use new variables to track the offset
204 of the frame chain (and hard frame pointer) from the current
205 stack pointer, and likewise the offset of the bottom of the
206 register save area. Update calls to aarch64_save_callee_saves
207 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
208 saving the FP&SIMD registers. Save the predicate registers.
209 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
210 into account when setting the stack pointer from the frame pointer,
211 and when deciding whether we can inherit the initial adjustment
212 amount from the prologue. Restore the predicate registers after
213 the vector registers, then apply sve_callee_adjust, then restore
214 the general registers.
215 (aarch64_secondary_reload): Don't use secondary SVE reloads
217 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
218 (aarch64_short_vector_p): Return false for SVE types.
219 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
220 at the start of the function. Return false for SVE types.
221 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
223 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
224 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
225 to big-endian targets for bytewise moves.
226 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
228 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
229 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
230 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
232 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
233 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
234 aarch64-sve-builtins-base.o to extra_objs. Add
235 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
236 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
237 (aarch64-sve-builtins-shapes.o): Likewise.
238 (aarch64-sve-builtins-base.o): New rules.
239 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
240 (aarch64_resolve_overloaded_builtin): Likewise.
241 (aarch64_check_builtin_call): Likewise.
242 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
243 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
245 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
246 (aarch64_svprfop): New enum.
247 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
248 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
249 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
250 (aarch64_output_sve_cnt_pat_immediate): Likewise.
251 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
252 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
253 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
254 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
255 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
256 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
257 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
258 (aarch64_sve::mangle_builtin_type): Likewise.
259 (aarch64_sve::resolve_overloaded_builtin): Likewise.
260 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
261 (aarch64_sve::expand_builtin): Likewise.
262 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
263 (aarch64_sve_int_mode): Likewise.
264 (aarch64_ptrue_all_mode): New function.
265 (aarch64_convert_sve_data_to_pred): Make public.
266 (svprfop_token): New function.
267 (aarch64_output_sve_prefetch): Likewise.
268 (aarch64_fold_sve_cnt_pat): Likewise.
269 (aarch64_output_sve_cnt_pat_immediate): Likewise.
270 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
271 instead of gen_while_ult.
272 (aarch64_replace_reg_mode): Make public.
273 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
274 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
275 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
276 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
277 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
278 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
279 (aarch64_sve_ptrue_svpattern_p): Likewise.
280 (aarch64_sve_pred_valid_immediate): Check
281 aarch64_sve_ptrue_svpattern_p.
282 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
283 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
285 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
286 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
287 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
288 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
289 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
290 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
292 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
293 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
294 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
295 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
296 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
297 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
298 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
299 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
300 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
301 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
302 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
303 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
304 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
305 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
306 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
307 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
308 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
309 (Vesize): Handle partial vector modes.
310 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
312 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
314 (s, paired_extend, inc_dec): New code attributes.
315 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
316 (SVE_INT_UNARY): Add UNSPEC_RBIT.
317 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
318 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
319 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
320 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
322 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
323 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
324 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
325 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
326 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
327 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
328 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
329 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
330 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
331 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
332 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
333 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
334 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
335 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
336 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
337 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
339 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
340 (binqops_op, binqops_op_rev, last_op): New int attributes.
341 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
342 (fn, ab): New int attributes.
343 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
344 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
345 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
346 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
348 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
349 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
350 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
351 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
352 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
354 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
355 (brk_reg_con, brk_reg_opno): New int attributes.
356 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
357 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
358 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
360 (max_elem_bits): New int attribute.
361 (min_elem_bits): Handle UNSPEC_RBIT.
362 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
363 TRUNCATE as well as SUBREG.
364 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
365 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
366 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
367 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
368 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
369 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
370 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
371 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
372 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
373 (aarch64_gather_scale_operand_h): New predicates.
374 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
375 (vgd, vgh, vgw, vsQ, vsS): New constraints.
376 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
377 (*aarch64_sve_reinterpret<mode>): Allow any source register
378 instead of requiring an exact match.
379 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
380 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
381 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
382 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
383 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
384 (aarch64_update_ffrt): New patterns.
385 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
386 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
387 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
388 (@aarch64_ld<fn>f1<mode>): New patterns.
389 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
390 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
391 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
392 (@aarch64_ldnt1<mode>): New patterns.
393 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
394 the scalar part of the address.
395 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
396 scalar part of the addresse and add an alternative for handling
398 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
399 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
400 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
401 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
402 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
403 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
404 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
405 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
406 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
407 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
408 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
409 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
410 (@aarch64_sve_prefetch<mode>): New patterns.
411 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
412 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
413 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
414 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
415 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
416 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
417 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
418 (@aarch64_stnt1<mode>): New patterns.
419 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
420 the scalar part of the address.
421 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
422 the scalar part of the addresse and add an alternative for handling
424 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
425 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
426 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
427 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
428 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
429 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
431 (vec_duplicate<mode>): Use QI as the mode of the input operand.
432 (extract_last_<mode>): Generalize to...
433 (@extract_<LAST:last_op>_<mode>): ...this.
434 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
435 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
436 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
437 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
438 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
439 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
440 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
441 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
442 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
443 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
444 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
445 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
446 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
447 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
448 (*aarch64_adr_uxtw_unspec): Likewise.
449 (*aarch64_adr_uxtw): Rename to...
450 (*aarch64_adr_uxtw_and): ...this.
451 (@aarch64_adr<mode>_shift): New expander.
452 (*aarch64_adr_shift_sxtw): New pattern.
453 (aarch64_<su>abd<mode>_3): Rename to...
454 (@aarch64_pred_<su>abd<mode>): ...this.
455 (<su>abd<mode>_3): Update accordingly.
456 (@aarch64_cond_<su>abd<mode>): New expander.
457 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
458 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
459 (*<su>mul<mode>3_highpart): Rename to...
460 (@aarch64_pred_<optab><mode>): ...this.
461 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
462 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
463 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
464 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
465 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
466 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
467 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
468 (*v<ASHIFT:optab><mode>3): Rename to...
469 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
470 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
471 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
472 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
473 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
474 (@cond_asrd<mode>): New expander.
475 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
476 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
477 (*sdiv_pow2<mode>3): Delete.
478 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
479 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
480 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
481 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
482 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
483 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
484 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
485 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
486 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
487 (*add<SVE_F:mode>3): Rename to...
488 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
490 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
491 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
492 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
493 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
494 (*sub<SVE_F:mode>3): Rename to...
495 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
497 (@aarch64_pred_abd<SVE_F:mode>): New expander.
498 (*fabd<SVE_F:mode>3): Rename to...
499 (*aarch64_pred_abd<SVE_F:mode>): ...this.
500 (@aarch64_cond_abd<SVE_F:mode>): New expander.
501 (*mul<SVE_F:mode>3): Rename to...
502 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
504 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
505 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
507 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
508 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
509 (*<nlogical><PRED_ALL:mode>3): Rename to...
510 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
511 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
512 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
513 (*<logical_nn><PRED_ALL:mode>3): Rename to...
514 (aarch64_pred_<logical_nn><mode>_z): ...this.
515 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
516 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
517 (*fma<SVE_I:mode>4): Rename to...
518 (@aarch64_pred_fma<SVE_I:mode>): ...this.
519 (*fnma<SVE_I:mode>4): Rename to...
520 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
521 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
522 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
523 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
524 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
525 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
526 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
527 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
528 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
529 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
530 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
531 (@aarch64_sve_tmad<mode>): Likewise.
532 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
533 (*aarch64_sel_dup<mode>): Rename to...
534 (@aarch64_sel_dup<mode>): ...this.
535 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
536 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
537 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
538 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
539 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
540 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
541 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
542 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
543 (*fcm<cmp_op><mode>): Rename to...
544 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
545 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
546 (*fcmuo<mode>): Rename to...
547 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
548 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
549 (@aarch64_pred_fac<cmp_op><mode>): New expander.
550 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
551 (fold_extract_last_<mode>): Generalize to...
552 (@fold_extract_<last_op>_<mode>): ...this.
553 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
554 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
555 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
556 DImode result explicit.
557 (reduc_plus_scal_<mode>): Update accordingly.
558 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
559 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
560 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
561 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
562 (*aarch64_sve_tbl<mode>): Rename to...
563 (@aarch64_sve_tbl<mode>): ...this.
564 (@aarch64_sve_compact<mode>): New pattern.
565 (*aarch64_sve_dup_lane<mode>): Rename to...
566 (@aarch64_sve_dup_lane<mode>): ...this.
567 (@aarch64_sve_dupq_lane<mode>): New pattern.
568 (@aarch64_sve_splice<mode>): Likewise.
569 (aarch64_sve_<perm_insn><mode>): Rename to...
570 (@aarch64_sve_<perm_insn><mode>): ...this.
571 (*aarch64_sve_ext<mode>): Rename to...
572 (@aarch64_sve_ext<mode>): ...this.
573 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
574 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
576 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
577 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
579 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
581 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
582 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
583 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
584 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
586 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
587 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
589 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
590 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
591 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
593 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
594 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
595 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
596 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
597 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
599 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
600 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
601 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
602 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
603 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
604 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
605 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
606 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
607 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
608 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
609 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
610 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
611 (aarch64_sve_cnt_pat): Likewise.
612 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
613 (*aarch64_sve_incsi_pat): Likewise.
614 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
615 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
616 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
617 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
618 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
619 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
620 (*aarch64_sve_decsi_pat): Likewise.
621 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
622 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
623 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
624 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
625 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
626 (@aarch64_pred_cntp<mode>): Likewise.
627 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
629 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
630 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
631 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
633 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
635 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
636 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
637 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
638 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
639 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
640 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
641 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
643 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
644 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
645 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
647 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
649 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
651 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
652 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
654 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
655 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
657 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
658 * config/aarch64/arm_sve.h: New file.
659 * config/aarch64/aarch64-sve-builtins.h: Likewise.
660 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
661 * config/aarch64/aarch64-sve-builtins.def: Likewise.
662 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
663 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
664 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
665 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
666 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
667 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
669 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
671 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
673 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
676 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
678 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
679 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
681 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
682 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
683 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
684 (aarch64_hard_regno_nregs): Handle the new register classes.
685 (aarch64_hard_regno_mode_ok): Likewise.
686 (aarch64_regno_regclass): Likewise.
687 (aarch64_class_max_nregs): Likewise.
688 (aarch64_register_move_cost): Likewise.
689 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
690 as general register_operands.
692 2019-10-29 Martin Liska <mliska@suse.cz>
694 * ggc-common.c: One can't subtract unsigned types
697 2019-10-29 Martin Liska <mliska@suse.cz>
699 * cgraphunit.c (symbol_table::compile): Pass
700 title as dump_memory_report argument.
701 * toplev.c (dump_memory_report): New argument.
702 (finalize): Pass new argument.
703 * toplev.h (dump_memory_report): Add argument.
705 2019-10-29 Martin Liska <mliska@suse.cz>
707 * ggc-common.c: Move Leak to the first column.
709 2019-10-29 Martin Liska <mliska@suse.cz>
711 * cgraphunit.c (symbol_table::compile): Remove argument
712 for dump_memory_report.
713 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
714 (compare_final): Remove in order to make report
716 * ggc.h (dump_ggc_loc_statistics): Remove argument.
717 * mem-stats.h (mem_alloc_description::get_list):
719 (mem_alloc_description::dump): Likewise here.
720 * toplev.c (dump_memory_report): Remove final
722 (finalize): Likewise.
723 * toplev.h (dump_memory_report): Remove argument.
725 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
727 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
728 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
729 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
730 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
733 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
735 * coretypes.h (string_int_pair): New typedef.
736 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
737 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
738 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
740 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
742 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
743 (simulate_builtin_function_decl): Declare.
744 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
745 (LANG_HOOKS_INITIALIZER): Include it.
746 * langhooks.c (add_builtin_function_common): Rename to...
747 (build_builtin_function): ...this. Add a location parameter and use
748 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
750 (add_builtin_function): Update accordingly, passing the returned
751 decl to the lang hook.
752 (add_builtin_function_ext_scope): Likewise
753 (simulate_builtin_function_decl): New function.
755 2019-10-29 Jakub Jelinek <jakub@redhat.com>
757 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
758 example, use actual names of supported offload targets.
761 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
763 2019-10-28 Martin Sebor <msebor@redhat.com>
765 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
766 (handle_store): Pass argument to get_addr_stridx.
768 2019-10-28 Martin Sebor <msebor@redhat.com>
770 PR tree-optimization/92226
771 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
772 the offset is in the open range outlined by SI's length.
774 2019-10-28 Martin Sebor <msebor@redhat.com>
777 * doc/cpp.texi (__has_builtin): Document.
778 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
780 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
783 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
784 doubleword and low doubleword result of multiplication on
787 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
788 pure qualifier to the built-in.
789 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
791 (struct mips_builtin_description): Add is_pure flag.
792 (mips_init_builtins): Mark built-in as pure if the flag in the
793 corresponding mips_builtin_description struct is set.
795 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
796 alternative which covers the floating-point input value. Also
797 forbid the split of insert.d pattern for floating-point values.
799 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
801 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
802 * config/riscv/riscv-sr.c: New file.
803 * config/riscv/riscv.c (riscv_reorg): New function.
804 (TARGET_MACHINE_DEPENDENT_REORG): Define.
805 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
806 (riscv_remove_unneeded_save_restore_calls): Declare.
807 * config/riscv/t-riscv (riscv-sr.o): New build rule.
809 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
811 PR tree-optimization/92163
812 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
813 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
814 before calling bitmap_set_bit.
815 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
816 delete_dead_or_redundant_assignment.
817 (dse_dom_walker::dse_optimize_stmt): Likewise.
818 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
820 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
823 * tree-vect-stmts.c (vectorizable_condition): Support
824 EXTRACT_LAST_REDUCTION with fully-masked loops.
826 2019-10-28 Richard Biener <rguenther@suse.de>
828 PR tree-optimization/92252
829 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
830 STMT_VINFO_REDUC_IDX when swapping operands.
832 2019-10-28 Richard Biener <rguenther@suse.de>
834 PR tree-optimization/92241
835 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
836 we failed to update the reduction index do not use the pattern
837 stmts for the reduction chain.
838 (vectorizable_reduction): When the reduction chain is corrupt,
840 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
841 fail to update the reduction chain.
843 2019-10-28 Richard Biener <rguenther@suse.de>
845 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
846 STMT_VINFO_REDUC_IDX from the actual stmt.
847 (vect_transform_reduction): Likewise.
848 (vectorizable_reduction): Compute the reduction chain length,
849 do not recompute the reduction operand index. Remove no longer
850 necessary restriction for condition reduction chains.
852 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
855 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
856 condition for V2DImode.
858 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
860 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
861 Remove %k operand modifier.
862 (*vec_extractv2df_1_sse): Remove %q operand modifier.
864 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
866 PR rtl-optimization/92007
867 * cfgcleanup.c (thread_jump): Add an assertion that we don't
868 call it after reload if hot/cold partitioning has been done.
869 (class pass_postreload_jump): Rename to
870 pass_jump_after_combine.
871 (make_pass_postreload_jump): Rename to
872 make_pass_jump_after_combine.
873 * passes.def(pass_postreload_jump): Move before reload, rename
874 to pass_jump_after_combine.
875 * tree-pass.h (make_pass_postreload_jump): Rename to
876 make_pass_jump_after_combine.
878 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
881 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
883 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
885 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
887 PR tree-optimization/88760
888 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
889 Enable -funroll-loops for -O2 and above.
890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
891 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
892 do not turn on web and rngreg implicitly, if the unroller is not
895 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
897 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
900 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
902 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
903 * cgraph.h (cgraph_node::rtl_info): Likewise.
905 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
907 * ipa-cp.c (propagate_constants_across_call): If args are not available
908 just drop everything to varying.
909 (find_aggregate_values_for_callers_subset): Watch for missing
911 (find_more_scalar_values_for_callers_subs): Likewise.
912 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
913 update_jump_functions_after_inlining, propagate_controlled_uses):
914 Watch for missing summaries.
915 (ipa_propagate_indirect_call_infos): Remove summary after propagation
917 (ipa_write_node_info): Watch for missing summaries.
918 (ipa_read_edge_info): Create new ref.
919 (ipa_edge_args_sum_t): Add remove.
920 (IPA_EDGE_REF_GET_CREATE): New macro.
921 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
923 (remap_edge_change_prob): Likewise.
925 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
927 * ipa-inline-transform.c (inline_call): update function summaries
928 after expanidng thunk.
930 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
932 * ipa-icf.c (sem_function::merge): Update function summaries.
933 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
935 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
937 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
938 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
939 operand already has scalar mode.
940 (iptr): Remove SF/DF.
942 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
945 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
946 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
949 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
952 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
953 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
954 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
955 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
956 <sse>_vmmaskcmp<mode>3):
957 Change predicates from vector_operand to nonimmediate_operand,
958 constraints xBm to xm, since scalar operations don't need
959 memory address alignment.
960 (avx512f_vmcmp<mode>3<round_saeonly_name>,
961 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
962 round_saeonly_nimm_predicate with
963 round_saeonly_nimm_scalar_predicate.
964 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
965 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
966 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
967 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
968 avx512f_vmfmadd_<mode>_mask3<round_name>,
969 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
970 *avx512f_vmfmsub_<mode>_mask<round_name>,
971 avx512f_vmfmsub_<mode>_mask3<round_name>,
972 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
973 *avx512f_vmfnmadd_<mode>_mask<round_name>,
974 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
975 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
976 *avx512f_vmfnmsub_<mode>_mask<round_name>,
977 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
978 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
979 cvtusi2<ssescalarmodesuffix>32<round_name>,
980 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
981 round_nimm_predicate with round_nimm_scalr_predicate.
982 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
983 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
984 avx512er_vmrcp28<mode><round_saeonly_name>,
985 avx512er_vmrsqrt28<mode><round_saeonly_name>,
986 ): Replace round_saeonly_nimm_predicate with
987 round_saeonly_nimm_scalar_predicate.
988 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
989 vector_operand with nonimmediate_operand.
990 * config/i386/subst.md (round_scalar_nimm_predicate,
991 round_saeonly_scalar_nimm_predicate): Replace
992 vector_operand with nonimmediate_operand.
994 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
997 * config/i386/i386.md (*rcpsf2_sse): Add
998 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
999 (*rsqrtsf2_sse): Ditto.
1000 (*sqrt<mode>2_sse): Ditto.
1001 (sse4_1_round<mode>2): separate constraint vm, add
1002 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
1003 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
1005 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
1007 (*sse_vmrsqrtv4sf2): Ditto.
1008 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
1009 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
1010 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
1011 <iptr> pointer size modifier since vround support memory operand.
1013 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
1016 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
1019 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1020 Tobias Burnus <tobias@codesourcery.com>
1022 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
1023 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
1026 2019-10-25 Richard Biener <rguenther@suse.de>
1028 PR tree-optimization/92222
1029 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
1030 (_slp_oprnd_info::second_pattern): Likewise.
1031 (_slp_oprnd_info::any_pattern): New.
1032 (vect_create_oprnd_info): Adjust.
1033 (vect_get_and_check_slp_defs): Compute whether any stmt is
1035 (vect_build_slp_tree_2): Avoid building up a node from scalars
1036 if any of the operand defs, not just the first, is in a pattern.
1038 2019-10-25 Richard Biener <rguenther@suse.de>
1040 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
1041 swapping if we actually have to modify the IL on a shared stmt.
1042 (vect_build_slp_tree_2): Never fail swapping on shared stmts
1043 because we no longer modify the IL.
1045 2019-10-25 Martin Liska <mliska@suse.cz>
1047 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
1049 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
1051 * tree-vect-loop.c (vectorizable_reduction): Restrict the
1052 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
1053 handled by vect_transform_reduction. Allow fully-masked loops
1054 to be used with reduction chains.
1055 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
1056 operations in fully-masked loops.
1057 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
1058 operations in fully-masked loops.
1060 2019-10-25 Richard Biener <rguenther@suse.de>
1062 * tree-vect-loop.c (vectorizable_reduction): Verify
1063 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
1065 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
1066 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
1069 2019-10-24 Jakub Jelinek <jakub@redhat.com>
1071 * gimplify.h (omp_construct_selector_matches): Declare.
1072 * gimplify.c (struct gimplify_omp_ctx): Add code member.
1073 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
1074 called function if needed for flag_openmp.
1075 (gimplify_scan_omp_clauses): Set ctx->code.
1076 (omp_construct_selector_matches): New function.
1077 * omp-general.h (omp_constructor_traits_to_codes,
1078 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
1079 * omp-general.c (omp_constructor_traits_to_codes,
1080 omp_context_selector_matches, omp_resolve_declare_variant): New
1083 * config/arc/arc.c (hwloop_optimize): Add missing space in string
1085 * config/rx/rx.c (rx_print_operand): Likewise.
1086 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1087 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
1088 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
1090 * genemit.c (emit_c_code): Likewise.
1091 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
1093 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
1095 * symbols-summary.h (fast_function_summary<T *, V>::release,
1096 fast_call_summary<T *, V>::release): Free m_vector.
1098 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
1100 * cgraphunit.c (symbol_table::process_new_functions): Call
1101 ipa_free_size_summary.
1102 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
1103 (devirtualization_time_bonus): Update.
1104 (ipcp_propagate_stage): Update.
1105 * ipa-fnsummary.c (ipa_size_summaries): New.
1106 (ipa_fn_summary_alloc): Alloc size summary.
1107 (dump_ipa_call_summary): Update.
1108 (ipa_dump_fn_summary): Update.
1109 (analyze_function_body): Update.
1110 (compute_fn_summary): Likewise.
1111 (ipa_get_stack_frame_offset): New function.
1112 (inline_update_callee_summaries): Do not update frame offsets.
1113 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
1114 remove call and function summary.
1115 (ipa_update_overall_fn_summary): Update.
1116 (inline_read_section): Update.
1117 (ipa_fn_summary_write): Update.
1118 (ipa_free_fn_summary): Do not remove summaries.
1119 (ipa_free_size_summary): New.
1120 (release summary pass): Also run at WPA.
1121 * ipa-fnsummary.h (ipa_size_summary): Declare.
1122 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
1123 estimated_self_stack_size.
1124 (ipa_size_summary_t): New type.
1125 (ipa_size_summaries): Declare.
1126 (ipa_free_size_summary): Declare.
1127 (ipa_get_stack_frame_offset): Declare.
1128 * ipa-icf.c (sem_function::merge): Update.
1129 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
1130 (estimate_growth): Update.
1131 (growth_likely_positive): Update.
1132 (clone_inlined_nodes): Update.
1133 (inline_call): Update.
1134 * ipa-inline.c (caller_growth_limits): Update.
1135 (edge_badness): Update.
1136 (recursive_inlining): Update.
1137 (inline_small_functions): Update.
1138 (inline_to_all_callers_1): Update.
1139 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
1141 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
1143 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
1144 (uavg<mode>3_ceil): ... This.
1145 (altivec_vavgs<VI_char>): Rename to...
1146 (avg<mode>3_ceil): ... This.
1147 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
1148 VAVGUW, VAVGSW): Adjust.
1150 2019-10-24 Nathan Sidwell <nathan@acm.org>
1152 * dumpfile.c (dump_begin): Reorder decls to use RAII.
1154 2019-10-24 Martin Liska <mliska@suse.cz>
1156 * symbol-summary.h (gt_pch_nx): Mark all functions
1157 with gcc_unreachable as we do not expect to be called.
1159 2019-10-24 Richard Biener <rguenther@suse.de>
1161 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
1162 chains try harder with operand swapping and instead of
1163 putting a shifted chain into the reduction operands put
1164 a repetition of the final reduction op there as if we'd
1165 reassociate the expression.
1167 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
1169 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
1170 statics_not_read and statics_not_written to statics_read and
1171 statics_written respectively.
1172 (no_module_statics): New static var.
1173 (ipa_reference_get_not_read_global): Rename to ...
1174 (ipa_reference_get_read_global): ... this.
1175 (ipa_reference_get_not_written_global): Rename to ...
1176 (ipa_reference_get_written_global): ... this.
1177 (dump_static_vars_set_to_file): Dump no_module_statics.
1178 (copy_static_var_set): Add for propagation parameter.
1179 (ipa_init): Initialize no_module_statics.
1180 (ipa_ref_opt_summary_t::duplicate): Update.
1181 (ipa_ref_opt_summary_t::remove): Update.
1182 (propagate): Update.
1183 (write_node_summary_p): Look correctly for bitmap differences.
1184 (ipa_reference_write_optimization_summary): Update.
1185 (ipa_reference_read_optimization_summary): Update.
1187 (ipa_reference_get_not_read_global): Rename to ...
1188 (ipa_reference_get_read_global): ... this.
1189 (ipa_reference_get_not_written_global): Rename to ...
1190 (ipa_reference_get_written_global): ... this.
1191 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
1192 (call_may_clobber_ref_p_1): Update.
1194 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1196 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
1198 (msp430_hard_regno_nregs_with_padding): Remove.
1200 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1202 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
1203 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
1204 shift amount is between 1 and 4.
1205 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
1208 2019-10-24 Richard Biener <rguenther@suse.de>
1210 PR tree-optimization/92205
1211 * tree-vect-loop.c (vectorizable_reduction): Restrict
1212 search for alternate vectype_in to lane-reducing patterns
1215 2019-10-24 Richard Biener <rguenther@suse.de>
1217 PR tree-optimization/92203
1218 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
1219 Skip eliminating conversion stmts inserted by insertion.
1221 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
1223 * config/s390/s390.c (s390_get_thread_pointer): Use
1224 gen_get_thread_pointer.
1225 (s390_expand_split_stack_prologue): Likewise.
1226 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
1227 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
1228 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
1229 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
1232 2019-10-24 Richard Biener <rguenther@suse.de>
1234 * tree-vect-slp.c (vect_analyze_slp): When reduction group
1235 SLP discovery fails try to handle the reduction as part
1236 of SLP reduction discovery.
1238 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
1240 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
1242 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
1243 attribute if it exists, rather than the insn size. If we use the
1244 insn size, adjust the size to remove the extra size that prefixed
1246 (rs6000_adjust_insn_length): New function.
1247 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
1248 update the instruction sized if prefixed instructions are used.
1249 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
1250 (non_prefixed_length attribute): Delete.
1251 (num_insns attribute): New insn attribute to return the number of
1253 (max_prefixed_insns attribute): New insn attribute to return the
1254 maximum number of prefixed instructions in an insn.
1255 (length attribute): Do not adjust for prefix instructions here,
1256 punt to ADJUST_INSN_LENGTH.
1257 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
1258 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
1259 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
1260 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
1261 max_prefixed_insns and num_insns.
1263 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
1264 (movtd_64bit_nodm): Reformat.
1265 (mov<mode>_32bit): Reformat.
1266 (mov<mode>_softfloat): Reformat.
1267 (FMOVE128_GPR splitter): Reformat.
1268 (DIFD splitter): Reformat.
1269 (TI2 splitter): Reformat.
1270 * config/rs6000/predicates.md (lwa_operand): If the bottom two
1271 bits of the offset for the memory address are non-zero, use PLWA
1272 if prefixed instructions are available.
1274 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
1276 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
1278 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
1280 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
1283 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
1285 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
1286 (cmp_symbol_files): New.
1287 (lto_output): Copy sections in file order.
1288 * lto-streamer.h (lto_file_decl_data): Add field order.
1290 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
1292 * ipa-reference.h (ipa_reference_var_uid): Move offline.
1293 * ipa-reference.c (reference_vars_map_t): new type.
1294 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
1295 (ipa_reference_var_uid): Implement.
1296 (varpool_node_hooks): New static var.
1297 (varpool_removal_hook): New function.
1298 (is_improper): Do not check bitmap for id==-1
1299 (get_static_name): Update.
1300 (ipa_init): Initialize new datastructures.
1301 (analyze_function): Do not recompute ids.
1302 (propagate): Free reference_vars_to_consider.
1303 (stream_out_bitmap): Update.
1304 (ipa_reference_read_optimization_summary): Update.
1306 2019-10-23 qing zhao <qing.zhao@oracle.com>
1308 PR gcov-profile/91971
1309 * coverage.c (coverage_init): Mangle the full path of filename when
1310 filename is a absolute path.
1312 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1314 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
1315 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
1316 (msp430_has_hwmult): New.
1317 (msp430_output_labelref):
1318 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
1319 * config/msp430/msp430.md (mulhisi3): Likewise.
1320 (umulhisi3): Likewise.
1321 (mulsidi3): Likewise.
1322 (umulsidi3): Likewise.
1324 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
1327 * params.def (inline-heuristics-hint-percent): Set to 600.
1329 2019-10-23 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/65930
1332 * tree-vect-loop.c (check_reduction_path): Allow conversions
1333 that only change the sign.
1334 (vectorizable_reduction): Relax latch def stmts we handle further.
1336 2019-10-23 Jakub Jelinek <jakub@redhat.com>
1339 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
1340 (remove_unused_ivs): Use it instead of get_computation_at. When
1341 choosing best candidate, only consider candidates where
1342 get_debug_computation_at actually returns non-NULL.
1344 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
1346 PR tree-optimization/92131
1347 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
1348 range would be symbolic, drop to varying for any explicit overflow
1349 in the constant part or if neither range is a singleton.
1351 2019-10-23 Martin Liska <mliska@suse.cz>
1354 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
1357 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
1359 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
1360 int_mode_for_mode rather than mode_for_int_vector for scalars.
1362 2019-10-23 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/92179
1365 * tree-vect-stmts.c (vectorizable_shift): For shift args
1366 that are all the same remove type restriction in the SLP case.
1367 Adjust SLP code to handle converting of the shift arg to
1368 only apply in case the modes are different.
1370 2019-10-23 Martin Liska <mliska@suse.cz>
1373 * ipa-inline.c (recursive_inlining): Do not print
1374 when curr->count is not initialized.
1376 2019-10-23 Richard Biener <rguenther@suse.de>
1378 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
1379 op from scalars in case there's a constant operand in its
1382 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
1384 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
1385 against out of range max skip or log values.
1387 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
1389 * cgraph.c (dump_graphviz): Change name to dump_name
1391 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
1393 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
1394 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
1395 subtraction from a carry operation.
1397 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
1399 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
1401 2019-10-22 Richard Biener <rguenther@suse.de>
1403 PR tree-optimization/92173
1404 * tree-vect-loop.c (vectorizable_reduction): If
1405 vect_transform_reduction cannot handle code-generation try without
1406 the single-def-use-cycle optimization. Pass optab_vector to
1407 optab_for_tree_code to get vector shifts as that's what we'd
1410 2019-10-22 Michael Matz <matz@suse.de>
1413 * gimple-loop-jam.c (any_access_function_variant_p): New function.
1414 (adjust_unroll_factor): Use it to constrain safety, new parameter.
1415 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
1417 2019-10-22 Richard Biener <rguenther@suse.de>
1419 PR tree-optimization/92173
1420 * tree-vect-loop.c (vectorizable_reduction): If
1421 vect_transform_reduction cannot handle code-generation try without
1422 the single-def-use-cycle optimization. Pass optab_vector to
1423 optab_for_tree_code to get vector shifts as that's what we'd
1426 2019-10-22 Martin Liska <mliska@suse.cz>
1428 * diagnostic-format-json.cc (json_from_expanded_location):
1429 Use json::integer_number.
1430 * gcov.c (output_intermediate_json_line): Use new
1431 json::integer_number.
1432 (output_json_intermediate_file): Likewise.
1433 * json.cc (number::print): Move to ...
1434 (float_number::print): ... this.
1435 (integer_number::print): New.
1436 (test_writing_numbers): Move to ...
1437 (test_writing_float_numbers): ... this.
1438 (test_writing_integer_numbers): New.
1439 (json_cc_tests): Register test_writing_integer_numbers.
1440 * json.h (class value): Add forward declaration
1441 for float_number and integer_number.
1442 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
1443 (class number): Move to ...
1444 (class float_number): ... this.
1445 (class integer_number): New.
1446 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
1447 Use json::integer_number.
1448 (optrecord_json_writer::location_to_json): Likewise.
1449 (optrecord_json_writer::profile_count_to_json): Likewise.
1450 (optrecord_json_writer::pass_to_json): Likewise.
1452 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
1454 * tree-vect-slp.c (vect_slp_bb_region): Check whether
1455 autodetected_vector_size rather than vector_size is zero.
1456 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1457 Set autodetected_vector_size immediately after calling
1458 vect_analyze_loop_2. Check for a fatal error before advancing
1461 2019-10-21 Jason Merrill <jason@redhat.com>
1463 * lock-and-run.sh: Check for process existence rather than timeout.
1465 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1467 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
1468 widening multiplication.
1470 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
1472 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
1473 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
1475 (subsi3_carryin_shift): Separate into register and constant controlled
1476 alternatives. Use shift_amount_operand for operand 4. Set shift
1477 attribute and simplify type attribute.
1478 (subsi3_carryin_shift_alt): Likewise.
1479 (rsbsi3_carryin_shift): Likewise.
1480 (rsbsi3_carryin_shift_alt): Likewise.
1481 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
1482 and register controlled shifts into distinct alternatives.
1483 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1484 (andsi_not_shiftsi_si_scc): Likewise.
1485 (arm_cmpsi_negshiftsi_si): Likewise.
1486 (not_shiftsi): Remove redundant M constraint from alternative 1.
1487 (not_shiftsi_compare0): Likewise.
1488 (arm_cmpsi_insn): Remove redundant alternative 2.
1489 (cmpsi_shift_swp): Likewise.
1490 (sub_shiftsi): Likewise.
1491 (sub_shiftsi_compare0_scratch): Likewise.
1492 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
1493 (thumb2_cmpsi_neg_shiftsi): Likewise.
1495 2019-10-21 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/92162
1498 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
1499 STMT_VINFO_REDUC_IDX in reduc_info.
1500 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1502 2019-10-21 Richard Biener <rguenther@suse.de>
1504 * tree-vectorizer.h (_slp_tree::ops): New member.
1505 (SLP_TREE_SCALAR_OPS): New.
1506 (vect_get_slp_defs): Adjust prototype.
1507 * tree-vect-slp.c (vect_free_slp_tree): Release
1508 SLP_TREE_SCALAR_OPS.
1509 (vect_create_new_slp_node): Initialize it. New overload for
1510 initializing by an operands array.
1511 (_slp_oprnd_info::ops): New member.
1512 (vect_create_oprnd_info): Initialize it.
1513 (vect_free_oprnd_info): Release it.
1514 (vect_get_and_check_slp_defs): Populate the operands array.
1515 Do not swap operands in the IL when not necessary.
1516 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
1517 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
1518 swap operands in the operands array. Do not swap operands in
1520 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
1521 (vect_gather_slp_loads): Fix.
1522 (vect_detect_hybrid_slp_stmts): Likewise.
1523 (vect_slp_analyze_node_operations_1): Search for a internal
1524 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
1525 (vect_slp_analyze_node_operations): Skip ops-only stmts for
1526 the def-type push/pop dance.
1527 (vect_get_constant_vectors): Compute number_of_vectors here.
1528 Use SLP_TREE_SCALAR_OPS and simplify greatly.
1529 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
1530 (vect_get_slp_defs): Simplify greatly.
1531 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
1532 (vect_transform_reduction): Likewise.
1533 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
1534 (vectorizable_call): Likewise.
1535 (vectorizable_operation): Likewise.
1536 (vectorizable_load): Likewise.
1537 (vectorizable_condition): Likewise.
1538 (vectorizable_comparison): Likewise.
1540 2019-10-21 Richard Biener <rguenther@suse.de>
1542 PR tree-optimization/92161
1543 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
1546 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
1549 (aarch64_rndr): New define_insn.
1550 (aarch64_rndrrs): Likewise.
1551 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
1552 (TARGET_RNG): Likewise.
1553 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
1555 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
1556 Add fourth argument in prototype.
1557 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
1558 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
1559 (aarch64_init_rng_builtins): Define.
1560 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
1561 (aarch64_expand_rng_builtin): Define.
1562 (aarch64_general_expand_builtin): Use IGNORE argument, handle
1564 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1565 __ARM_FEATURE_RNG when TARGET_RNG.
1566 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
1568 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1570 * tree-vect-stmts (ensure_base_align): Only change alignment if new
1571 alignment is more restrictive.
1573 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1575 * tree-vectorizer.h (vec_info::vector_size): New member variable.
1576 (vect_update_max_nunits): Update comment.
1577 (current_vector_size): Delete.
1578 * tree-vect-stmts.c (current_vector_size): Likewise.
1579 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
1580 of current_vector_size.
1581 (get_mask_type_for_scalar_type): Likewise.
1582 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1583 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
1584 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
1585 (vect_double_mask_nunits, vect_transform_loop): Likewise.
1586 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1587 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1589 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1591 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
1592 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
1593 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
1596 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1598 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
1599 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1600 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
1602 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1604 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1606 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
1608 (vect_set_loop_condition_masked): Update call accordingly.
1610 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1612 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
1613 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
1614 (simple_integer_narrowing): Update call accordingly.
1615 (vectorizable_conversion): Likewise.
1617 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1619 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
1620 (vectorizable_call): Update call accordingly.
1622 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1624 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
1625 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1626 (duplicate_and_interleave): Update call accordingly.
1627 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1629 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1631 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
1632 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
1633 (vect_get_constant_vectors): Update call accordingly.
1634 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
1636 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1638 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
1639 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1640 (vect_prologue_cost_for_slp_op): Update call accordingly.
1641 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
1642 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
1643 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
1644 (get_mask_type_for_scalar_type): Likewise.
1645 (vect_get_vector_types_for_stmt): Likewise.
1646 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1647 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1648 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
1649 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
1650 (vect_split_statement, vect_convert_input): Likewise.
1651 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
1652 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
1653 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
1654 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
1655 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
1656 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
1657 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
1658 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
1659 (vect_recog_mask_conversion_pattern): Likewise.
1660 (vect_add_conversion_to_pattern): Likewise.
1661 (vect_recog_gather_scatter_pattern): Likewise.
1662 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
1663 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
1665 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1667 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
1668 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1669 (vect_check_load_store_mask): Update call accordingly.
1670 (vect_get_mask_type_for_stmt): Likewise.
1671 * tree-vect-patterns.c (check_bool_pattern): Likewise.
1672 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
1673 (vect_convert_mask_for_vectype): Likewise.
1675 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1677 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
1679 (vect_recog_dot_prod_pattern): Update call accordingly.
1680 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
1681 (vect_recog_widen_sum_pattern): Likewise.
1683 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1685 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
1686 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
1687 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
1690 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
1692 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
1693 get_vectype_for_scalar_type_and_size instead of
1694 get_vectype_for_scalar_type.
1696 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1698 * common.opt (-fcommon): Fix description.
1700 2019-10-20 Jakub Jelinek <jakub@redhat.com>
1702 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
1703 * config/i386/i386.c (ix86_pre_reload_split): New function.
1704 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
1705 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
1706 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
1707 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
1708 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
1709 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
1710 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
1711 *<shift_insn><dwi>3_doubleword_mask,
1712 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
1713 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
1714 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
1715 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
1716 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
1717 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
1718 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
1719 *avx2_<code>v8qiv8si2<mask_name>_2,
1720 *sse4_1_<code>v4qiv4si2<mask_name>_2,
1721 *sse4_1_<code>v4hiv4si2<mask_name>_2,
1722 *avx512f_<code>v8qiv8di2<mask_name>_2,
1723 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
1724 *sse4_1_<code>v2hiv2di2<mask_name>_2,
1725 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
1726 sse4_2_pcmpistr): Likewise.
1728 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
1730 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
1731 now defaults to https.
1733 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
1735 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
1736 skip non-zero array accesses.
1738 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
1740 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
1741 and return a boolean success value. Move the allocation and
1742 initialization of the bb_vec_info to...
1743 (vect_slp_bb_region): ...here. Update call accordingly.
1744 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
1745 than in vect_slp_analyze_bb_1.
1747 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
1749 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
1750 when processing the given datarefs for the first time and
1751 check_datarefs subsequently.
1752 (vect_slp_bb_region): New function, split out of...
1753 (vect_slp_bb): ...here. Don't recompute the region bounds and
1754 dataref sets when retrying with a different vector size.
1756 2019-10-19 Jakub Jelinek <jakub@redhat.com>
1757 Uroš Bizjak <ubizjak@gmail.com>
1760 * config/i386/predicates.md (int_nonimmediate_operand): New special
1762 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
1763 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
1764 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
1765 define_insn_and_split patterns.
1767 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
1769 * config/rs6000/rs6000.md: Delete out--of-date comment about
1770 special-casing integer loads.
1772 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
1774 * escaped_string.h (escaped_string): New header.
1775 * tree.c (escaped_string): Remove escaped_string class.
1777 2019-10-18 Martin Sebor <msebor@redhat.com>
1779 PR tree-optimization/92157
1780 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
1781 compute_string_length to return a negative result.
1783 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1785 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
1786 (negvsi3, negvdi3): Delete.
1787 (negdi2_compare): Delete.
1789 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1791 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
1793 (subdi3_compare1): Delete pattern.
1794 (subvsi3_borrow): New insn pattern.
1795 (subvsi3_borrow_imm): Likewise.
1797 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1799 * config/arm/arm.md (subv<mode>4): Delete.
1800 (subvdi4): New expander pattern.
1801 (subvsi4): Likewise. Handle some immediate values.
1802 (subvsi3_intmin): New insn pattern.
1803 (subvsi3): Likewise.
1804 (subvsi3_imm1): Likewise.
1805 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
1808 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1810 * config/arm/arm.md (usubvdi4): Allow registers or integers for
1811 incoming operands. Early split the calculation into SImode
1813 (usubvsi3_borrow): New insn pattern.
1814 (usubvsi3_borrow_imm): Likewise.
1816 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1818 * config/arm/arm.md (usubv<mode>4): Delete expansion.
1819 (usubvsi4): New pattern. Allow some immediate values for inputs.
1820 (usubvdi4): New pattern.
1822 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1824 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
1825 or second operand of the PLUS inside a DImode equality test to be
1826 sign-extend when selecting CC_Vmode.
1827 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
1829 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
1831 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
1832 (addsi3_cin_vout_0): Likewise.
1833 (adddi3_compareV): Delete.
1835 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1837 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
1838 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
1839 to transform this back into the summation version when that leads
1842 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1844 * config/arm/arm.md (addv<mode>4): Delete.
1845 (addvsi4): New pattern. Handle immediate values that the architecture
1847 (addvdi4): New pattern.
1848 (addsi3_compareV): Rename to ...
1849 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
1850 and use COMPARE rather than NE.
1851 (addsi3_compareV_imm): New pattern.
1852 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
1853 a signed-overflow check.
1855 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1857 * config/arm/arm-modes.def (CC_ADC): New CC mode.
1858 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
1860 (maybe_get_arm_condition_code): Handle CC_ADCmode.
1861 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
1863 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
1865 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
1866 (addsi3_cin_cout_imm_insn): Likewise.
1867 (adddi3_compareC): Delete insn.
1868 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
1870 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1872 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
1873 * (uaddv<mode>4): Delete expansion pattern.
1874 (uaddvsi4): New pattern.
1875 (uaddvdi4): Likewise.
1876 (addsi3_compareC): Delete pattern, change callers to use
1878 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
1879 reduce the number of alternatives and re-work type attribute handling.
1880 (addsi3_compare_op2): Clean up constraints to reduce the number of
1881 alternatives and re-work type attribute handling.
1882 (compare_addsi2_op0): Likewise.
1883 (compare_addsi2_op1): Likewise.
1885 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1887 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
1888 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
1889 for DImode operands.
1890 (arm_gen_dicompare_reg): Remove unreachable expansion code.
1891 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
1893 * config/arm/arm.md (arm_cmpdi_insn): Delete.
1894 (arm_cmpdi_unsigned): Delete.
1896 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1898 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
1899 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
1900 unchanged only if that will be cheaper.
1901 (arm_select_cc_mode): Recognize a swapped comparison that will
1902 be regenerated using RSBS or RSCS. Relax restriction on selecting
1904 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
1906 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
1908 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
1910 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
1911 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
1913 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1915 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
1916 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
1918 (arm_gen_dicompare_reg): New code to early expand the sub-operations
1919 of EQ, NE, LT, GE, LTU and GEU.
1920 * config/arm/iterators.md (CC_EXTEND): New code attribute.
1921 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
1922 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
1923 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
1924 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
1926 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1928 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
1930 (cstoredi4): Similarly, but for operand 3.
1931 * config/arm/arm.c (arm_canoncialize_comparison): Allow
1932 canonicalization of unsigned compares with a constant on Arm.
1933 Prefer using const+1 and adjusting the comparison over swapping the
1934 operands whenever the original constant was not valid.
1935 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
1937 (arm_validize_comparison): Do not force invalid DImode operands to
1940 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1942 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
1943 return CC_Zmode if comparing against a constant where one word is
1945 (arm_gen_compare_reg): Split DImode handling to ...
1946 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
1947 against simple constants.
1948 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
1950 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1952 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
1953 (rsbsi3_carryin_shift_alt): Likewise.
1955 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1957 * config/arm/arm.md (negscc_borrow): New pattern.
1958 (mov_negscc): Don't split if the insn would match negscc_borrow.
1959 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
1960 (thumb2_mov_negscc_strict_it): Likewise.
1962 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1964 * config/arm/arm.c (arm_insn_cost): New function.
1965 (TARGET_INSN_COST): Override default definition.
1967 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1969 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
1972 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1974 * config/arm/arm.c (strip_carry_operation): New function.
1975 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
1978 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1980 * config/arm/predicates.md (arm_carry_operation): New special
1982 * config/arm/iterators.md (LTUGEU): Delete iterator.
1983 (cnb): Delete code attribute.
1984 (optab): Delete ltu and geu elements.
1985 * config/arm/arm.md (addsi3_carryin): Renamed from
1986 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
1987 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
1988 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
1989 (addsi3_carryin_clobercc): Similarly.
1990 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
1993 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1995 * config/arm/arm.md (arm_subdi3): Delete insn.
1996 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
1998 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2000 * config/arm/arm-modes.def (CC_RSB): New CC mode.
2001 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
2002 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
2004 (maybe_get_arm_condition_code): Handle CC_RSBmode.
2005 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
2007 (subdi3): Rewrite to early-expand the sub-operations.
2008 (rsb_im_compare): New pattern.
2010 (negdi2_insn): Delete.
2011 (arm_negsi2): Correct type attribute to alu_imm.
2012 (negsi2_0compare): New insn pattern.
2013 (negsi2_carryin): New insn pattern.
2015 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2017 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
2020 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2022 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
2023 to match canonical form.
2025 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2027 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
2028 (extend<mode>di2): Likewise.
2030 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2032 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
2033 * config/arm/arm.c (arm_decompose_di_binop): New function.
2034 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
2035 If not generating Thumb-1 code, decompose the operation into 32-bit
2037 * add0si_carryin_<optab>: New pattern.
2039 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2041 * arm.md (adddi3): Only accept register operands.
2042 (arm_adddi3): Convert to simple insn with no split. Do not accept
2044 (adddi_sesidi_di): Delete patern.
2045 (adddi_zesidi_di): Likewise.
2046 (uaddv<mode>4): Use LTU as condition for branch.
2047 (adddi3_compareV): Convert to simple insn with no split.
2048 (addsi3_compareV_upper): Delete pattern.
2049 (adddi3_compareC): Convert to simple insn with no split. Correct
2050 flags setting expression.
2051 (addsi3_compareC_upper): Delete pattern.
2052 (addsi3_compareC): Correct flags setting expression.
2053 (subdi3_compare1): Convert to simple insn with no split.
2054 (subsi3_carryin_compare): Delete pattern.
2055 (arm_subdi3): Convert to simple insn with no split.
2056 (subdi_zesidi): Delete pattern.
2057 (subdi_di_sesidi): Delete pattern.
2058 (subdi_zesidi_di): Delete pattern.
2059 (subdi_sesidi_di): Delete pattern.
2060 (subdi_zesidi_zesidi): Delete pattern.
2061 (negvdi3): Use s_register_operand.
2062 (negdi2_compare): Convert to simple insn with no split.
2063 (negdi2_insn): Likewise.
2064 (negsi2_carryin_compare): Delete pattern.
2065 (negdi_zero_extendsidi): Delete pattern.
2066 (arm_cmpdi_insn): Convert to simple insn with no split.
2067 (negdi2): Don't call gen_negdi2_neon.
2068 * config/arm/neon.md (adddi3_neon): Delete pattern.
2069 (subdi3_neon): Delete pattern.
2070 (negdi2_neon): Delete pattern.
2071 (splits for negdi2_neon): Delete splits.
2073 2019-10-18 Jakub Jelinek <jakub@redhat.com>
2076 * ggc-page.c (release_pages): Read g->alloc_size before free rather
2079 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
2081 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
2082 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
2083 new multilib variants and new mappings.
2085 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
2088 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
2090 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2091 Richard Sandiford <richard.sandiford@arm.com>
2094 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
2095 and define hashmap traits for it.
2096 (loop_vec_info::scalar_cond_masked_set): New member.
2097 (vect_record_loop_mask): Adjust prototype.
2098 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
2100 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
2101 vect_record_loop_mask.
2102 (vectorizable_live_operation): Likewise.
2103 (vect_record_loop_mask): New param scalar_mask. Add entry
2104 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
2105 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
2106 Pass it as last arg to vect_record_loop_mask.
2107 (vectorizable_call): Pass scalar_mask as last arg to
2108 vect_record_loop_mask.
2109 (vectorizable_store): Likewise.
2110 (vectorizable_load): Likewise.
2111 (vectorizable_condition): Check if another part of vectorized code
2112 applies loop_mask to condition or to it's inverse, and if yes,
2113 apply loop_mask to result of vector comparison.
2115 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
2117 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
2119 2019-10-18 Jakub Jelinek <jakub@redhat.com>
2121 PR tree-optimization/92056
2122 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
2123 before calling compute_builtin_object_size.
2125 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
2128 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
2129 (movdi_low_st): Delete.
2130 * config/rs6000/rs6000.c
2131 (darwin_rs6000_legitimate_lo_sum_const_p): New.
2132 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
2133 * config/rs6000/rs6000.md (movsi_low): Delete.
2135 2019-10-17 Jason Merrill <jason@redhat.com>
2137 * gimplify.h (get_initialized_tmp_var): Add default argument to
2139 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
2140 NULL post_p argument.
2141 * targhooks (std_gimplify_va_arg_expr): Likewise.
2143 2019-10-17 Richard Biener <rguenther@suse.de>
2145 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
2146 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
2147 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
2148 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
2149 * tree-vect-loop.c (vect_is_simple_reduction): Set
2150 STMT_VINFO_REDUC_CODE.
2151 (vectorizable_reduction): Remove dead and redundant code, use
2152 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
2154 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
2156 Fix breakage introduced by r276985.
2158 * config/avr/avr.c (avr_option_override): Remove set of
2159 PARAM_ALLOW_STORE_DATA_RACES.
2160 * common/config/avr/avr-common.c (avr_option_optimization_table)
2161 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
2163 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
2165 * config/i386/i386.h (processor_costs): Add clear_ratio.
2166 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
2167 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
2168 of 6 and move_ratio in all cost models.
2170 2019-10-17 Richard Biener <rguenther@suse.de>
2172 * tree-vect-loop.c (check_reduction_path): Compute reduction
2174 (vect_is_simple_reduction): Remove special-case of single-stmt
2175 reduction path detection.
2177 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
2179 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
2181 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
2183 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
2184 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
2185 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
2186 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
2187 New combine patterns.
2188 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
2190 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
2192 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
2194 * tree-vrp.c (value_range_base::dump): Display +INF for both
2195 pointers and integers when appropriate.
2197 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
2199 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
2200 when to use versioning threshold.
2202 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
2204 * tree-vect-loop.c (determine_peel_for_niter): New function contained
2205 outlined code from ...
2206 (vect_analyze_loop_2): ... here.
2208 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
2210 * tree-vect-loop.c (vect_transform_loop): Move code from here...
2211 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
2212 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
2214 2019-10-17 Richard Biener <rguenther@suse.de>
2216 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
2217 (vect_is_simple_reduction): Move all validity checks ...
2218 (vectorizable_reduction): ... here. Compute whether we
2219 need a fold-left reduction here.
2220 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
2221 both overloads, check needs_fold_left_reduction_p directly.
2222 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
2224 2019-10-17 Richard Biener <rguenther@suse.de>
2226 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
2227 TARGET_MEM_REF creation.
2229 2019-10-17 Richard Biener <rguenther@suse.de>
2231 PR tree-optimization/92129
2232 * tree-vect-loop.c (vectorizable_reduction): Also fail
2233 on GIMPLE_SINGLE_RHS.
2235 2019-10-17 Jakub Jelinek <jakub@redhat.com>
2237 PR tree-optimization/92056
2238 * tree-object-size.c (cond_expr_object_size): Return early if then_
2239 processing resulted in unknown size.
2241 PR tree-optimization/92115
2242 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
2243 temporary if it could trap.
2245 2019-10-17 Richard Biener <rguenther@suse.de>
2248 * dwarf2out.c (gen_formal_parameter_die): Also try to match
2249 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
2251 2019-10-16 Jakub Jelinek <jakub@redhat.com>
2253 * tree-ssa-strlen.c (maybe_invalidate): Use
2254 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
2256 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
2257 Jim Wilson <jimw@sifive.com>
2259 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
2260 regs to SIBCALL_REGS.
2261 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
2262 passing regs to SIBCALL_REGS.
2264 2019-10-16 Martin Sebor <msebor@redhat.com>
2266 PR tree-optimization/83821
2267 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
2268 the length of a string when available.
2269 (handle_builtin_memset) Add argument.
2270 (handle_store, strlen_check_and_optimize_call): Same.
2271 (check_and_optimize_stmt): Same. Pass it to callees.
2273 2019-10-16 Martin Sebor <msebor@redhat.com>
2275 PR tree-optimization/91996
2276 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
2278 (compare_nonzero_chars): Add an overload.
2279 (count_nonzero_bytes): Add an argument. Call overload above.
2280 Handle non-constant lengths in some range.
2281 (handle_store): Add an argument.
2282 (check_and_optimize_stmt): Pass an argument to handle_store.
2284 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
2286 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
2288 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2290 * config/mips/mips.c (mips_expand_builtin_insn): Force the
2291 operands which correspond to the same input-output register to
2292 have the same pseudo assigned to them.
2294 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
2296 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
2298 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
2300 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2301 Apply reasonable limit to symbol offsets.
2303 2019-10-16 Richard Biener <rguenther@suse.de>
2305 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
2306 (vect_is_simple_reduction): Delay checking to
2307 vectorizable_reduction and relax the checking.
2308 (vectorizable_reduction): Check we have a simple use. Check
2309 for bogus condition reductions.
2310 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
2311 are looking at the last stmt in a pattern sequence when
2312 filling in backedge PHI values.
2314 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
2315 Jiufu Guo <guojiufu@linux.ibm.com>
2318 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
2319 the callee explicitly disables some isa_flags the caller is using.
2321 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2323 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
2325 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2327 * genmodes.c (mode_data::order): New field.
2328 (blank_mode): Update accordingly.
2329 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
2330 (make_vector_modes): Likewise.
2331 (VECTOR_MODES): Update use accordingly.
2332 (cmp_modes): Sort by the new order field ahead of sorting by size.
2333 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
2334 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
2335 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
2336 (aarch64_classify_vector_mode): Handle the new partial modes.
2337 (aarch64_vl_bytes): New function.
2338 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
2339 when counting the number of registers in an SVE mode.
2340 (aarch64_class_max_nregs): Likewise.
2341 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
2343 (aarch64_classify_address): Treat partial vectors analogously
2345 (aarch64_print_address_internal): Consolidate the printing of
2346 MUL VL addresses, using aarch64_vl_bytes as the number of
2347 bytes represented by "VL".
2348 (aarch64_vector_mode_supported_p): Reject partial vector modes.
2350 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2352 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
2353 rather than known_lt when choosing frame layouts.
2355 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2357 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
2358 that all the adjustments add up to the full frame size.
2359 Use crtl->outgoing_args_size directly as the final adjustment
2362 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2364 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
2365 "frame" reference instead of always referring directly to
2366 "cfun->machine->frame".
2368 2019-10-16 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/92119
2371 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
2372 against missing bswap lhs.
2374 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2377 * poly-int.h (constant_lower_bound_with_limit): New function.
2378 (constant_upper_bound_with_limit): Likewise.
2379 * doc/poly-int.texi: Document them.
2380 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
2381 into the worst-case INTEGER_CST bounds.
2383 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
2386 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
2387 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
2388 * ipa-predicat.h (struct expr_eval_op): New struct.
2389 (expr_eval_ops): New typedef.
2390 (struct condition): Add type and param_ops fields, remove size field.
2391 (add_condition): Replace size parameter with type parameter, add
2392 param_ops parameter.
2393 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
2394 (predicate::add_clause): Add comparisons on type and param_ops.
2395 (dump_condition): Add debug dump for param_ops.
2396 (remap_after_inlining): Adjust call arguments to add_condition.
2397 (add_condition): Replace size parameter with type parameter, add
2398 param_ops parameter. Unshare constant value used in conditions.
2399 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
2400 parameter expressions using param_ops.
2401 (decompose_param_expr): New function.
2402 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
2403 to replace call to unmodified_parm_or_parm_agg_item.
2404 (set_switch_stmt_execution_predicate): Likewise.
2405 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
2407 (inline_read_section): Read param_ops from summary stream.
2408 (ipa_fn_summary_write): Write param_ops to summary stream.
2410 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
2412 PR rtl-optimization/92107
2413 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
2416 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
2418 * config/darwin.c: Update description of fix and continue.
2420 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
2422 * config/darwin.c (darwin_binds_local_p): Update to call
2423 default_binds_local_p_3 () directly. amend comments.
2425 2019-10-15 Richard Biener <rguenther@suse.de>
2427 * lto-streamer-out.c (lto_variably_modified_type_p): New.
2428 (tree_is_indexable): Use it.
2429 * tree-streamer-out.c (pack_ts_type_common_value_fields):
2430 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
2431 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2433 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2435 * config/msp430/msp430.md (zero_extendqipsi2): New.
2436 (zero_extendqisi2): Optimize case where src register and base dst
2437 register are the same.
2438 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
2439 (zero_extendpsisi2): Optimize r->m case.
2440 Add unnamed insn patterns to catch insns combine searches for when
2441 optimizing pointer manipulation.
2443 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2445 * config/msp430/msp430.md: Group zero_extend* insns together.
2447 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2449 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
2451 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
2453 (msp430_subreg): Likewise.
2454 (msp430_split_addsi): Likewise.
2455 (msp430_print_operand_addr): Likewise.
2456 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
2457 (USE_STORE_POST_INCREMENT): Define.
2458 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
2459 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
2460 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
2461 (msp430_general_dst_operand): New.
2462 (msp430_general_dst_nonv_operand): New.
2463 (msp430_nonsubreg_operand): Remove.
2464 (msp430_nonsubreg_dst_operand): New.
2465 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
2466 of defunct msp430_nonsubreg_operand.
2467 (msp430_nonsubregnonpostinc_or_imm_operand): New.
2469 2019-10-15 Richard Biener <rguenther@suse.de>
2471 PR tree-optimization/91929
2472 * tree-ssa-pre.c (pre_expr_d::loc): New member.
2473 (get_or_alloc_expr_for_name): Initialize it.
2474 (get_or_alloc_expr_for_constant): Likewise.
2475 (phi_translate_1): Copy it.
2476 (create_expression_by_pieces): Use the original location
2477 of the expression for the inserted stmt.
2478 (compute_avail): Record the location of the stmt for the
2479 expressions created.
2481 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
2483 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
2484 before using tree_to_uhwi.
2486 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
2488 * config/s390/s390.md: Run %a0:DI splitters only after reload.
2490 2019-10-15 Richard Biener <rguenther@suse.de>
2492 PR tree-optimization/92094
2493 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
2494 do not adjust the reduction definition def type.
2495 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
2496 defines the latch argument of the PHI.
2498 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
2501 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
2502 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
2503 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
2504 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
2505 _mm_maskz_roundscale_round_sd): New intrinsics.
2506 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
2507 __builtin_ia32_rndscales?_mask_round builtins instead of
2508 __builtin_ia32_rndscales?_round.
2509 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
2510 __builtin_ia32_rndscalesd_round): Remove.
2511 (__builtin_ia32_rndscaless_mask_round,
2512 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
2513 * config/i386/sse.md
2514 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
2515 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
2516 ... this, adjust and add subst atrributes to make it maskable.
2518 2019-10-15 Richard Biener <rguenther@suse.de>
2521 * common.opt (fallow-store-data-races): New.
2522 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
2523 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
2524 * doc/invoke.texi (fallow-store-data-races): Document.
2525 (--param allow-store-data-races): Remove docs.
2526 * opts.c (default_options_table): Enable -fallow-store-data-races
2528 (default_options_optimization): Do not enable --param
2529 allow-store-data-races at -Ofast.
2530 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
2531 instead of PARAM_ALLOW_STORE_DATA_RACES.
2532 * tree-ssa-loop-im.c (execute_sm): Likewise.
2534 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2536 PR tree-optimization/92085
2537 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
2538 instead of calling it unconditionally after
2539 delete_dead_or_redundant_assignment and fix indentation.
2541 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2543 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
2545 (*fmsub<SDF:mode>4): Likewise.
2546 *fnmsub<SDF:mode>4): Likewise.
2547 (*fnmadd<SDF:mode>4): Likewise.
2549 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
2551 * doc/tree-ssa.texi: Update renamed macro name.
2553 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2555 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
2558 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
2560 * config/darwin.c: Use unsigned ints for the picbase label
2561 counters, initialise the vars explicitly.
2562 (update_pic_label_number_if_needed): Move a variable declaration
2563 to where it's needed.
2564 (machopic_output_function_base_name): Use a more strict checking
2565 assert, and and unsigned int for the picbase label counter.
2566 (machopic_get_function_picbase): Likewise.
2568 2019-10-14 Richard Biener <rguenther@suse.de>
2571 * dse.c (scan_insn): Use param max_active_local_stores.
2572 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
2573 based on optimization level.
2574 * loop-invariant.c (move_loop_invariants): Adjust
2575 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
2576 * opts.c (default_options_optimization): Do not adjust
2577 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
2578 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
2580 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
2582 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
2584 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
2586 * config/arm/arm.c (arm_option_override): Don't override sched
2589 2019-10-14 Richard Biener <rguenther@suse.de>
2591 PR tree-optimization/92069
2592 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
2593 cycles do not set vect_nested_cycle on the latch definition.
2595 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
2597 * function-abi.h (expr_callee_abi): Declare.
2598 * function-abi.cc (expr_callee_abi): New function.
2600 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
2602 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
2604 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
2605 non-zero being represented as [1,MAX].
2607 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2609 * tree-sra.c (dump_access): Add missing braces.
2611 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
2613 * config/darwin.c (machopic_indirection_name): Rework the
2614 function to emit linker-visible symbols only for indirections
2615 in the data section. Clean up the code and update comments.
2617 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
2619 * config/darwin.c (machopic_indirect_data_reference): Remove
2622 2019-10-13 Nathan Sidwell <nathan@acm.org>
2624 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
2626 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2628 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
2631 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
2633 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
2634 so non-virutal are before virutals.
2635 (output_function): Avoid body modifications.
2637 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
2639 * config/pa/pa.c (pa_output_call): Load descriptor address to register
2640 %r22. Load function address before global pointer.
2641 (pa_attr_length_indirect_call): Adjust length of inline versions of
2643 (pa_output_indirect_call): Remove fast inline version of $$dyncall
2644 before normal cases. Update inline $$dyncall sequences to preserve
2645 function descriptor address in register %r22.
2646 (TRAMPOLINE_CODE_SIZE): Adjust.
2647 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
2648 register %r22 contains trampoline address.
2649 (pa_trampoline_init): Adjust offsets.
2650 (pa_trampoline_adjust_address): Likewise.
2651 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
2653 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
2656 * config/darwin.c (machopic_indirection): New field to flag
2657 non-lazy-symbol-pointers in the data section.
2658 (machopic_indirection_name): Compute if an indirection should
2659 appear in the data section.
2660 (machopic_output_data_section_indirection): New callback split
2661 from machopic_output_indirection.
2662 (machopic_output_stub_indirection): Likewise.
2663 (machopic_output_indirection): Retain the code for non-lazy
2664 symbol pointers in their regular section.
2665 (machopic_finish): Use the new callbacks to order the indirection
2668 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
2670 * config/darwin-protos.h (machopic_finish): Delete.
2671 * config/darwin.c (machopic_finish): Make static.
2673 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
2675 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
2676 sections when building kernel extension code.
2678 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
2680 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
2683 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
2685 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
2688 2019-10-12 Jakub Jelinek <jakub@redhat.com>
2691 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
2692 <case VEC_COND_EXPR>: Return false with *handled = false.
2693 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
2694 recursing on the first operand.
2695 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
2696 instead of tree_could_trap_p.
2697 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
2699 2019-10-11 Jim Wilson <jimw@sifive.com>
2701 PR rtl-optimization/91860
2702 * combine.c (subst): If new_rtx is a constant, also check for
2703 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
2705 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
2707 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
2708 INTVAL when calling store_bit_field.
2710 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
2712 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
2715 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2717 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
2718 vectorizable_live_operation.
2719 (vectorizable_live_operation): Adjust parameters.
2720 * tree-vect-stmts.c (vect_init_vector,
2721 vect_gen_widened_results_half): Fix typo in function comment.
2722 (can_vectorize_live_stmts): Adjust function comment.
2723 Adjust parameters. Adjust call to vectorizable_live_operation.
2724 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
2725 (vect_transform_stmt): Adjust function comment. Adjust call to
2726 can_vectorize_live_stmts.
2727 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
2729 2019-10-11 Richard Biener <rguenther@suse.de>
2731 PR tree-optimization/90883
2732 PR tree-optimization/91091
2733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
2734 alias-sets both for recording VN table entries and continuing
2735 walking after translating through copies. Handle same-sized
2736 reads from SSA names by returning the plain SSA name.
2737 (eliminate_dom_walker::eliminate_stmt): Properly handle
2738 non-size precision stores in redundant store elimination.
2740 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
2742 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
2743 (ggc_collect): Dump later to not interfere with release_page dump.
2744 (ggc_trim): New function.
2745 * ggc-none.c (ggc_trim): New.
2746 * ggc.h (ggc_trim): Declare.
2748 2019-10-11 Richard Biener <rguenther@suse.de>
2750 PR tree-optimization/92066
2751 PR tree-optimization/92046
2752 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2753 Fix bogus cost model check.
2755 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
2757 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
2758 (LANG_HOOKS_DECLS): Add it.
2759 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
2760 update comment for omp_is_optional_argument.
2761 * omp-general.c (omp_is_allocatable_or_ptr): New.
2762 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
2763 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
2764 Fortran's optional arguments and allocatable/pointer scalars
2765 with use_device_addr.
2767 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
2770 * config/s390/2827.md: Add new opcodes.
2771 * config/s390/2964.md: Likewise.
2772 * config/s390/3906.md: Likewise.
2773 * config/s390/8561.md: Likewise.
2774 * config/s390/s390-builtins.def (s390_vfchesb): Use
2775 the new vec_cmpgev4sf_quiet_nocc.
2776 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
2777 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
2778 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
2779 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
2780 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
2781 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
2782 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
2783 * config/s390/s390-modes.def (CCSFPS): New mode.
2784 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
2785 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
2786 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
2787 (s390_expand_vec_compare): Use non-signaling patterns where
2789 (s390_reverse_condition): Support CCSFPS.
2790 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
2791 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
2792 (asm_fcmp_op): Likewise.
2793 (*smaxv2df3_vx): Use pattern for quiet comparison.
2794 (*sminv2df3_vx): Likewise.
2795 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
2796 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
2797 (vec_cmpgt<mode>_quiet_nocc): Likewise.
2798 (vec_cmplt<mode>_quiet_nocc): New expander.
2799 (vec_cmpge<mode>_quiet_nocc): New pattern.
2800 (vec_cmple<mode>_quiet_nocc): New expander.
2801 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
2802 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
2803 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
2804 (*vec_cmpge<mode>_signaling_nocc): Likewise.
2805 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
2806 (vec_cmpungt<mode>): New expander.
2807 (vec_cmpunge<mode>): Likewise.
2808 (vec_cmpuneq<mode>): Use quiet patterns.
2809 (vec_cmpltgt<mode>): Allow only on z14+.
2810 (vec_cmpordered<mode>): Use quiet patterns.
2811 (vec_cmpunordered<mode>): Likewise.
2812 (VEC_CMP_EXPAND): Add ungt and unge.
2814 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
2816 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
2818 * lto-streamer-out.c: Include tree-dfa.h.
2819 (output_cfg): Do not use cfun.
2820 (lto_prepare_function_for_streaming): New.
2821 (output_function): Do not push cfun; do not initialize loop optimizer.
2822 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
2823 * passes.c (ipa_write_summaries): Use it.
2824 (ipa_write_optimization_summaries): Do not modify bodies.
2825 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
2826 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
2827 * tree-ssa-dse.c (pass_dse::execute): Update use of
2828 renumber_gimple_stmt_uids.
2829 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
2831 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
2833 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2834 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
2836 2019-10-10 Joseph Myers <joseph@codesourcery.com>
2838 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
2840 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
2841 Also define DFP macros for these conditions.
2842 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
2843 DEC128_SUBNORMAL_MIN): Do not define.
2844 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
2845 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
2847 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
2848 Sandra Loosemore <sandra@codesourcery.com>
2851 * doc/lto.texi (IPA): Reference to the IPA passes.
2852 * doc/passes.texi (Pass manager): Add node IPA passes and
2853 description for each IPA pass.
2855 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
2857 * ipa-reference.c: Do not include splay-tree.h
2858 (reference_vars_to_consider): Turn to hash map.
2859 (get_static_name, ipa_init, analyze_function, propagate,
2860 stream_out_bitmap, ipa_reference_write_optimization_summary,
2861 ipa_reference_write_optimization_summary): Update.
2863 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
2865 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
2867 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
2869 * config/darwin.c: Lookup Objective C metadata and force indirection
2872 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
2874 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
2876 (mem_operand_gpr): Add check for prefixed addresses.
2877 (mem_operand_ds_form): Add check for prefixed addresses.
2878 (rs6000_legitimate_offset_address_p): If we support prefixed
2879 addresses, check for a 34-bit offset instead of 16-bit.
2880 (rs6000_legitimate_address_p): Add check for prefixed addresses.
2881 Do not allow load/store with update if the address is prefixed.
2882 (rs6000_mode_dependent_address): If we support prefixed
2883 addresses, check for a 34-bit offset instead of 16-bit.
2885 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
2888 * config/s390/vector.md (vcond_comparison_operator): New
2890 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
2892 2019-10-10 David Malcolm <dmalcolm@redhat.com>
2895 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
2897 * configure.ac (--with-documentation-root-url): New option.
2898 * configure: Regenerate.
2899 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
2900 option URL, add it as a new string field of the diagnostic option.
2901 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
2902 (print_option_information): If get_option_url is non-NULL, call
2903 it, and if the result is non-NULL, potentially emit an escape
2904 sequence to markup the option text with the resulting URL.
2905 * diagnostic.h (diagnostic_context::get_option_url): New callback.
2906 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
2907 example of JSON output.
2908 * opts-diagnostic.h (get_option_url): New decl.
2909 * opts.c (get_option_url): New function.
2910 * toplev.c (general_init): Initialize the get_option_url callback.
2912 2019-10-10 David Malcolm <dmalcolm@redhat.com>
2915 * common.opt (fdiagnostics-urls=): New option.
2916 (diagnostic-url.h): Add SourceInclude.
2917 (diagnostic_url_rule): New enum.
2918 * diagnostic-color.c: Include "diagnostic-url.h".
2919 (diagnostic_urls_enabled_p): New function.
2920 * diagnostic-url.h: New file.
2921 * diagnostic.c: Include "diagnostic-url.h".
2922 (diagnostic_urls_init): New function.
2923 * diagnostic.h (diagnostic_urls_init): New decl.
2924 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2925 -fdiagnostics-urls to the list.
2926 (-fdiagnostics-urls): New option.
2927 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
2928 (driver::global_initializations): Call diagnostic_urls_init.
2929 * opts-global.c (init_options_once): Likewise.
2930 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
2931 * pretty-print.c (pretty_printer::pretty_printer): Initialize
2933 (pp_begin_url): New function.
2934 (pp_end_url): New function.
2935 (selftest::test_urls): New selftest.
2936 (selftest::pretty_print_c_tests): Call it.
2937 * pretty-print.h (pretty_printer::show_urls): New field.
2938 (pp_begin_url): New decl.
2939 (pp_end_url): New decl.
2941 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
2944 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
2946 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
2949 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
2950 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
2951 also for TARGET_FPU_SH4_300.
2952 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
2954 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
2955 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
2956 (*negsf2_i): Split into ...
2957 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
2958 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
2959 (**abssf2_i): Split into ...
2960 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
2961 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
2962 (*negdf2_i): Split into ...
2963 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
2964 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
2965 (**abssf2_i): Split into ...
2966 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
2968 2019-10-10 Richard Biener <rguenther@suse.de>
2971 * opts.c (finish_options): Do not influence global --params
2972 from options that are adjustable per function.
2973 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2974 Apply --param adjustment based on active cost-model.
2975 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
2976 further store-sinking when vectorization or if-conversion
2979 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
2982 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
2983 rather than ggc_alloc_cleared to alloc symbol table.
2984 * toplev.c (general_init): Likewise.
2985 * cgraph.h (symbol_table): Explicitly construct every field.
2987 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
2989 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
2991 * config.gcc: Add z15 as option for --with-arch and --with-tune
2993 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
2994 error reporting for unsupported builtins.
2995 * config/s390/s390-opts.h (enum processor_type): Rename
2996 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
2997 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
2998 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3000 * config/s390/s390-builtins.def: Likewise.
3001 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
3002 (s390_expand_builtin): Add missing check for unsupported builtins.
3003 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
3004 (s390_rtx_costs): Likewise.
3005 (s390_get_sched_attrmask): Rename arch13 to z15.
3006 (s390_get_unit_mask): Likewise.
3007 (s390_is_fpd): Likewise.
3008 (s390_is_fxd): Likewise.
3009 * config/s390/s390.h (enum processor_flags): Likewise.
3010 * config/s390/s390.md: Likewise.
3011 * config/s390/vector.md: Likewise.
3012 * config/s390/vx-builtins.md: Likewise.
3013 * config/s390/s390.opt: Add z15 to processor_type value.
3015 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
3018 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
3020 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
3021 ("split_stack_data", "split_stack_call")
3022 ("split_stack_call_<mode>", "split_stack_cond_call")
3023 ("split_stack_cond_call_<mode>"): Remove.
3024 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
3026 * config/s390/s390.c (s390_output_split_stack_data): New function.
3027 (s390_expand_split_stack_prologue): Use the merged expander.
3029 2019-10-09 Martin Sebor <msebor@redhat.com>
3031 PR tree-optimization/90879
3032 * builtins.c (check_access): Avoid using maxbound when null.
3033 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
3034 * doc/invoke.texi (-Wstring-compare): Document new warning option.
3035 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
3037 (get_range_strlen): Overwrite initial maxbound when non-null.
3038 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
3040 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
3041 (used_only_for_zero_equality): New function.
3042 (handle_builtin_memcmp): Call it.
3043 (determine_min_objsize): Return an integer instead of tree.
3044 (get_len_or_size, strxcmp_eqz_result): New functions.
3045 (maybe_warn_pointless_strcmp): New function.
3046 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
3047 between a longer string and a smaller array.
3048 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
3050 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
3052 * config/darwin.c (darwin_override_options): Make the check for
3053 Objective-C ABI version more specific for 64bit code.
3055 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
3057 * config/darwin.c (machopic_indirect_data_reference): Set flag to
3058 indicate that the new symbol is an indirection.
3059 (machopic_indirect_call_target): Likewise.
3060 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
3061 (MACHO_SYMBOL_INDIRECTION_P): New.
3062 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
3064 2019-10-08 Jason Merrill <jason@redhat.com>
3066 * doc/invoke.texi: Document -fconcepts-ts.
3068 2019-10-09 Richard Biener <rguenther@suse.de>
3070 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
3071 allow stmts other than GIMPLE_ASSIGN in nested cycles.
3073 2019-10-08 Richard Biener <rguenther@suse.de>
3075 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
3076 (_stmt_vec_info::force_single_cycle): Likewise.
3077 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
3078 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
3079 * tree-vect-loop.c (vectorizable_reduction): Set
3080 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
3081 (vect_transform_reduction): Use them to remove redundant code.
3082 (vect_transform_cycle_phi): Likewise.
3084 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
3086 PR tree-optimization/90836
3087 * gcc/match.pd (popcount): New pattern.
3089 2019-10-08 Martin Sebor <msebor@redhat.com>
3093 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
3094 again once nbytes has been set. Set the access size when not yet set.
3096 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
3098 * config/darwin.c (machopic_select_section): Remove dead code for
3099 old Objective-C section selection method, replace with unreachable.
3101 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
3103 * config/darwin.c (machopic_indirect_data_reference): Check for
3104 required indirections before making direct access to defined
3106 (machopic_output_indirection): Place the indirected pointes for
3107 required indirections into the non-lazy symbol pointers section.
3108 (darwin_encode_section_info):
3109 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
3110 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
3112 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
3115 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
3116 instead of ALL_SSE_REG to check if function call preserves some
3117 256-bit SSE registers.
3119 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3121 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
3122 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
3123 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
3125 2019-10-08 Richard Biener <rguenther@suse.de>
3127 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
3128 (_stmt_vec_info::is_reduc_info): Add.
3129 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
3130 (vectorizable_condition): Remove.
3131 (vectorizable_shift): Likewise.
3132 (vectorizable_reduction): Adjust.
3133 (info_for_reduction): New.
3134 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
3135 (vect_analyze_scalar_cycles_1): ... here.
3136 (vect_analyze_loop_operations): Adjust.
3137 (needs_fold_left_reduction_p): Simplify for single caller.
3138 (vect_is_simple_reduction): Likewise. Remove stmt restriction
3139 for nested cycles not part of double reductions.
3140 (vect_model_reduction_cost): Pass in the reduction type.
3141 (info_for_reduction): New function.
3142 (vect_create_epilog_for_reduction): Use it, access reduction
3143 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
3144 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
3145 (vectorize_fold_left_reduction): Remove pointless assert.
3146 (vectorizable_reduction): Analyze the full reduction when
3147 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
3148 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
3149 stmt code-generation to vectorizable_* in most cases. Verify
3150 code-generation only for cases handled by
3151 vect_transform_reductuon.
3152 (vect_transform_reduction): Use info_for_reduction to get at
3153 reduction meta. Simplify.
3154 (vect_transform_cycle_phi): Likewise.
3155 (vectorizable_live_operation): Likewise.
3156 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
3157 at the PHI node for STMT_VINFO_REDUC_TYPE.
3158 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
3159 longer necessary code.
3160 * tree-vect-stmts.c (vectorizable_shift): Make static again.
3161 (vectorizable_condition): Likewise. Get at reduction related
3162 info via info_for_reduction.
3163 (vect_analyze_stmt): Adjust.
3164 (vect_transform_stmt): Likewise.
3165 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3166 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
3168 2019-10-08 Joseph Myers <joseph@codesourcery.com>
3170 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
3171 -fno-fp-int-builtin-inexact default for C2X.
3173 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3174 Richard Biener <rguenther@suse.de>
3176 PR tree-optimization/91532
3177 * tree-if-conv.c: Include tree-ssa-dse.h.
3178 (ifcvt_local_dce): Change param from bb to loop,
3179 and call dse_classify_store.
3180 (tree_if_conversion): Pass loop instead of loop->header as arg
3182 * tree-ssa-dse.c: Include tree-ssa-dse.h.
3183 (delete_dead_or_redundant_assignment): Remove static qualifier from
3184 declaration, and add prototype in tree-ssa-dse.h.
3185 (dse_store_status): Move to tree-ssa-dse.h.
3186 (dse_classify_store): Remove static qualifier and add new tree param
3187 stop_at_vuse, and add prototype in tree-ssa-dse.h.
3188 * tree-ssa-dse.h: New header.
3190 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
3192 * config/darwin.c (machopic_output_indirection): Don't put
3193 hidden symbol indirections into the .data section, use the
3194 non-lazy symbol pointers section as normal.
3195 (darwin_encode_section_info): Record if a symbol is hidden.
3196 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
3197 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
3199 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
3201 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
3202 predicates instead of accessing bits directly.
3203 (machopic_indirect_call_target): Likewise.
3204 (machopic_output_indirection): Likewise.
3205 (darwin_encode_section_info): Improve description. Use renamed
3206 symbol flags. Use predicate macros for variables and functions.
3208 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
3209 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
3210 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
3211 (MACHO_SYMBOL_VARIABLE_P): New.
3212 (MACHO_SYMBOL_DEFINED_P):New.
3213 (MACHO_SYMBOL_STATIC_P): New.
3214 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
3215 (SYMBOL_FLAG_SUBT_DEP): New.
3216 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
3218 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3220 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
3221 (msp430_expand_epilogue): Likewise.
3222 * config/msp430/predicates.md: Likewise.
3223 * config/msp430/msp430.md: Likewise.
3224 Replace blocks of 8 spaces with tabs.
3226 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3228 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
3229 * config/msp430/msp430.c (msp430_split_addsi): New.
3230 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
3231 a block of C code for splitting addsi.
3233 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
3235 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
3236 ix86_expand_rounddf_32): Reorder functions.
3237 * config/i386/i386-protos.h: Update.
3239 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3241 * config.in: Regenerate.
3242 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
3243 Add new "Yx" constraint.
3244 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
3246 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
3248 * config/msp430/msp430.c (msp430_option_override): Allow the lower
3249 code/data region to be selected in the small memory model.
3250 (msp430_section_attr): Don't warn if the "section" and "lower"
3251 attributes are used together.
3252 (msp430_handle_generic_attribute): Likewise.
3253 (msp430_var_in_low_mem): New function.
3254 (TARGET_ENCODE_SECTION_INFO): Define.
3255 (msp430_encode_section_info): New function.
3256 (gen_prefix): Return early in the small memory model.
3257 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
3258 ".lower" prefix if -m{code,data}-region=lower have been passed.
3259 (msp430_output_aligned_decl_common): Emit common symbols when
3260 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
3262 (TARGET_ASM_FILE_END): Define.
3263 (msp430_file_end): New function.
3264 (msp430_do_not_relax_short_jumps): Allow relaxation when
3265 function will be in the lower region.
3266 (msp430_op_not_in_high_mem): New function.
3267 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
3268 the 'X' operand selector.
3269 Clarify comment for 'x' operand selector.
3270 * config/msp430/msp430.h (LINK_SPEC): Propagate
3271 -m{code,data}-region to the linker via spec function
3272 msp430_propagate_region_opt.
3273 (msp430_propagate_region_opt): New prototype.
3274 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
3275 (SYMBOL_FLAG_LOW_MEM): Define.
3276 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
3278 (zero_extendqihi2): Fix operand number used by "%X" selector.
3279 (zero_extendqisi2): Likewise.
3280 (zero_extendhisi2): Likewise.
3281 (movqi): Use "Yx" constraint in place of "%X" operand selector.
3286 (addhi3_cy): Likewise.
3287 (addchi4_cy): Likewise.
3291 (bic<mode>3): Likewise.
3292 (and<mode>3): Likewise.
3293 (ior<mode>3): Likewise.
3294 (xor<mode>3): Likewise.
3295 (slli_1): Add missing "%X" operand selector.
3303 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
3305 (cbranchhi4_real): Likewise.
3306 (cbranchqi4_reversed): Likewise.
3307 (cbranchhi4_reversed): Likewise.
3308 (*bitbranch<mode>4): Likewise.
3309 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
3310 * config/msp430/msp430.opt (mcode-region=): Set default to
3311 MSP430_REGION_LOWER. Improve docstring.
3312 (mdata-region=): Likewise.
3313 (muse-lower-region-prefix): New option.
3314 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
3315 mdata-region=none multilib.
3316 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
3317 mdata-region=none multilib.
3318 MULTILIB_EXCEPTIONS: Remove.
3319 MULTILIB_REQUIRED: Define.
3320 * configure: Regenerate.
3321 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
3322 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
3323 * doc/extend.texi: Clarify comment for {upper,lower,either}
3324 function attributes.
3325 Add separate description for "lower" variable attribute.
3327 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
3330 * optabs-tree.c (vcond_icode_p): New function.
3331 (vcond_eq_icode_p): Likewise.
3332 (expand_vec_cond_expr_p): Use vcond_icode_p and
3334 * optabs.c (can_vcond_compare_p): New function.
3335 * optabs.h (can_vcond_compare_p): Likewise.
3337 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
3340 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
3341 caller passes a non-trapping condition.
3342 (is_gimple_condexpr): Allow trapping conditions.
3343 (is_gimple_condexpr_1): New helper function.
3344 (is_gimple_condexpr_for_cond): New function, acts like old
3346 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
3347 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
3348 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
3349 * gimplify.c (gimplify_cond_expr): Use
3350 is_gimple_condexpr_for_cond.
3351 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
3352 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
3354 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
3355 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
3356 is_gimple_condexpr_for_cond, remove pointless tmp check
3357 (forward_propagate_into_cond): Remove pointless tmp check.
3359 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
3361 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
3362 match that of other gsi_next_* functions. Adjust the comment.
3363 (gsi_start_nonvirtual_phis): New function.
3364 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
3365 gsi_next_nonvirtual_phi accordingly. (No functional change.)
3367 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
3369 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
3370 setjmp situation here. Fix a verb's ending: "the exact variables or
3371 elements for which there are warnings depends" -> "... depend".
3373 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
3375 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
3377 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
3379 * ipa-prop.c (ipa_vr::nonzero_p): New.
3380 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
3382 * ipa-prop.h (class ipa_vr): Add nonzero_p.
3383 * tree-vrp.c (range_has_numeric_bounds_p): New.
3384 (range_int_cst_p): Use range_has_numeric_bounds_p.
3385 (get_range_op_handler): New.
3386 (supported_types_p): New.
3387 (defined_ranges_p): New.
3388 (drop_undefines_to_varying): New.
3389 (range_fold_binary_symbolics_p): New.
3390 (range_fold_unary_symbolics_p): New.
3391 (range_fold_unary_expr): Extract out into above functions.
3392 (range_fold_binary_expr): Same.
3393 (value_range_base::normalize_addresses): New.
3394 (value_range_base::normalize_symbolics): Normalize addresses.
3395 * tree-vrp.h (class value_range_base): Add normalize_addresses.
3397 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
3399 * tree-vrp.c (value_range_base::singleton_p): Use
3400 value_range_base::num_pairs instead of vrp_val_is* to check
3401 if a range has one sub-range.
3403 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
3405 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
3406 DEF is not a true earlyclobber but is tied to a specific input
3407 operand, and so is effectively earlyclobber wrt inputs that have
3409 (make_early_clobber_and_input_conflicts): Pass this case to the above.
3411 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
3413 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
3414 (pod_mode): Mark operators likewise.
3415 (scalar_int_mode): Mark non-default constructors and
3416 operators with CONSTEXPR.
3417 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
3418 (fixed_size_mode): Likewise.
3420 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
3423 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
3424 and wrap the unspec_volatile in a parallel.
3425 (*avx_vzeroupper): New define_insn. Use a match_parallel around
3426 the unspec_volatile.
3427 * config/i386/predicates.md (vzeroupper_pattern): Expect the
3428 unspec_volatile to be wrapped in a parallel.
3429 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
3430 (ix86_add_reg_usage_to_vzerouppers): New functions.
3431 (rest_of_handle_insert_vzeroupper): Use them to add register
3432 usage information to the vzeroupper instructions.
3434 2019-10-07 Richard Biener <rguenther@suse.de>
3436 PR tree-optimization/91975
3437 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
3440 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
3442 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
3443 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
3445 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
3447 * config/darwin.c (darwin_override_options): Adjust objective-c
3448 ABI version error messages to avoid punctuation and contracted
3451 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
3453 * ipa-inline.c: Fix type; compute size rather than self_size
3454 for size of caller function.
3456 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
3459 * config/darwin.c (darwin_rodata_section): Add relocation flag,
3460 choose const_data section for constants with relocations.
3461 (machopic_select_section): Pass relocation flag to
3462 darwin_rodata_section ().
3464 2019-10-05 Jakub Jelinek <jakub@redhat.com>
3466 PR tree-optimization/91734
3467 * generic-match-head.c: Include fold-const-call.h.
3468 * match.pd (sqrt(x) cmp c): Check the boundary value and
3469 in case inexact computation of c*c affects comparison of the boundary,
3470 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
3471 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
3472 for -frounding-math. For c2, try the next smaller or larger floating
3473 point constant depending on comparison code and if it has the same
3474 sqrt as c2, use it instead of c2.
3476 2019-10-04 Martin Sebor <msebor@redhat.com>
3479 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
3480 MEM_REF right operand. Avoid failing for MEM_REF assignments from
3481 uninitialized objects.
3483 2019-10-04 Martin Sebor <msebor@redhat.com>
3485 * builtins.c (compute_objsize): Add an argument.
3486 * tree-object-size.c (addr_object_size): Same.
3487 (compute_builtin_object_size): Same.
3488 * tree-object-size.h (compute_builtin_object): Same.
3490 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
3492 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
3494 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
3496 * match.pd (sinh (x) / cosh (x)): New simplification rule.
3498 2019-10-04 Martin Jambor <mjambor@suse.cz>
3500 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
3501 fntype when switching to calling memcpy instead of memset.
3503 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3505 * hash-table.h (hash_table::empty_slow): Don't assign
3506 size_t values to int variables.
3508 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3510 * expr.c (convert_mode_scalar): Remove shadowing local var.
3511 (emit_block_move): Rename local vars.
3512 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
3513 (emit_push_insn): Rename local vars.
3514 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
3515 shadowing local vars.
3516 (store_constructor): Remove shadowing local vars. Rename local var.
3517 (store_field, expand_cond_expr_using_cmove,
3518 expand_expr_real_2): Remove shadowing local vars.
3519 (expand_expr_real_1,
3520 do_store_flag): Remove shadowing local vars. Rename local vars.
3522 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3524 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
3526 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3528 * genmatch.c (commutate): Rename local var.
3529 (lower_cond): Reuse local var.
3530 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
3531 dt_operand::gen, dt_operand::gen_gimple_expr,
3532 dt_simplify::gen): Add a param. Rename generated vars.
3533 (decision_tree::insert_operand,
3534 (capture_info::walk_match, capture_info::walk_result,
3535 capture_info::walk_c_expr): Rename local vars.
3536 (expr::gen_transform): Rename generated vars.
3537 Use snprintf. Rename local vars.
3538 (capture::gen_transform, dt_operand::get_name,
3539 dt_operand::gen_opname): Rename generated vars.
3540 (write_predicate): Adjust call to gen_kids.
3541 (parser::get_internal_capture_id): Rename generated vars.
3542 (parser::parse_expr): Rename local vars.
3543 (parser::parse_if): Remove local var.
3544 (parser::parse_pattern, add_operator): Rename local vars.
3546 2019-10-04 Joseph Myers <joseph@codesourcery.com>
3548 * builtins.def (DEF_C2X_BUILTIN): New macro.
3549 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
3550 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
3551 (strndup): Use DEF_C2X_BUILTIN.
3552 * coretypes.h (enum function_class): Add function_c2x_misc.
3554 2019-10-04 Maya Rashish <coypu@sdf.org>
3556 * ira-color.c (update_costs_from_allocno): Call
3557 ira_init_register_move_cost_if_necessary.
3559 2019-10-04 Jeff Law <law@redhat.com>
3561 * config/h8300/h8300.md (cpymemsi): Disable.
3562 (movmd, movmd_internal_<mode>, movstr, movsd):
3563 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
3564 (movmd splitter, movsd splitter): Likewise.
3566 * range-op.cc (range_tests): Avoid two tests when ints and
3567 shorts are the same size.
3569 2019-10-04 Richard Biener <rguenther@suse.de>
3572 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
3575 2019-10-04 Richard Biener <rguenther@suse.de>
3577 PR tree-optimization/91982
3578 * tree-vect-loop.c (vectorizable_live_operation): Also guard
3579 against EXTRACT_LAST_REDUCTION.
3580 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
3582 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
3584 * range-op.o (value_range_from_overflowed_bounds): Rename from
3585 adjust_overflow_bound.
3586 (value_range_with_overflow): Rename from
3587 create_range_with_overflow.
3588 (create_possibly_reversed_range): Adjusted for above renames.
3589 (operator_*::wi_fold): Same.
3590 (cross_product_operator::wi_cross_productor): Same.
3592 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3594 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
3595 -Wshadow=compatible-local): Fix description.
3596 Add an example where -Wshadow=compatible-local does not
3599 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
3601 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
3603 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
3604 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
3606 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
3608 * expr.c (emit_block_move_hints): Slightly cleaner fix to
3609 can_move_by_pieces issue.
3611 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
3614 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
3615 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
3616 is available and the user has not set one on the command line.
3618 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3621 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
3622 instead of REGNO equality check on addr.reg.
3624 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
3626 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
3627 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
3628 * doc/invoke.texi (inline-heuristics-hint-percent,
3629 inline-heuristics-hint-percent-O2): Document.
3630 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
3632 (can_inline_edge_by_limits_p): Use it.
3634 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
3636 * config/arm/arm.c (arm_print_value): Use real_to_decimal
3637 to print CONST_DOUBLEs.
3639 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
3641 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
3642 * ipa-prop.c (ipcp_free_transformation_sum): New function.
3643 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
3645 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
3647 * Makefile.in (OBJS): Add range.o and range-op.o.
3648 Remove wide-int-range.o.
3649 * function-tests.c (test_ranges): New.
3650 (function_tests_c_tests): Call test_ranges.
3651 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
3652 range_fold_unary_expr instead of extract_range_from_unary_expr.
3653 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
3654 * range-op.cc: New file.
3655 * range-op.h: New file.
3656 * range.cc: New file.
3657 * range.h: New file.
3658 * selftest.h (range_tests): New prototype.
3659 * ssa.h: Include range.h.
3660 * tree-vrp.c (value_range_base::value_range_base): New
3662 (value_range_base::singleton_p): Do not call
3663 ranges_from_anti_range until sure we will need to.
3664 (value_range_base::type): Rename gcc_assert to
3665 gcc_checking_assert.
3666 (vrp_val_is_max): New argument.
3667 (vrp_val_is_min): Same.
3668 (wide_int_range_set_zero_nonzero_bits): Move from
3670 (extract_range_into_wide_ints): Remove.
3671 (extract_range_from_multiplicative_op): Remove.
3672 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
3673 from extract_range_from_binary_expr.
3674 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
3675 from extract_range_from_binary_expr.
3676 (extract_range_from_binary_expr): Remove.
3677 (normalize_for_range_ops): New.
3678 (range_fold_binary_expr): New.
3679 (range_fold_unary_expr): New.
3680 (value_range_base::num_pairs): New.
3681 (value_range_base::lower_bound): New.
3682 (value_range_base::upper_bound): New.
3683 (value_range_base::upper_bound): New.
3684 (value_range_base::contains_p): New.
3685 (value_range_base::invert): New.
3686 (value_range_base::union_): New.
3687 (value_range_base::intersect): New.
3688 (range_compatible_p): New.
3689 (value_range_base::operator==): New.
3690 (determine_value_range_1): Call range_fold_*expr instead of
3691 extract_range_from_*expr.
3692 * tree-vrp.h (class value_range_base): Add new constructors.
3693 Add methods for union_, intersect, operator==, contains_p,
3694 num_pairs, lower_bound, upper_bound, invert.
3695 (vrp_val_is_min): Add handle_pointers argument.
3696 (vrp_val_is_max): Same.
3697 (extract_range_from_unary_expr): Remove.
3698 (extract_range_from_binary_expr): Remove.
3699 (range_fold_unary_expr): New.
3700 (range_fold_binary_expr): New.
3701 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
3702 range_fold_binary_expr instead of extract_range_from_binary_expr.
3703 (vr_values::extract_range_basic): Same.
3704 (vr_values::extract_range_from_unary_expr): Call
3705 range_fold_unary_expr instead of extract_range_from_unary_expr.
3706 * wide-int-range.cc: Remove.
3707 * wide-int-range.h: Remove.
3709 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
3711 * config/rs6000/rs6000.c (mem_operand_gpr): Use
3712 SIGNED_16BIT_OFFSET_EXTRA_P macro.
3713 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
3714 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
3717 2019-10-02 Joseph Myers <joseph@codesourcery.com>
3719 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
3720 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
3721 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
3722 * glimits.h: Likewise.
3724 2019-10-03 Jakub Jelinek <jakub@redhat.com>
3726 PR rtl-optimization/91976
3727 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
3728 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
3729 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
3731 2019-10-02 Martin Sebor <msebor@redhat.com>
3733 PR tree-optimization/80936
3734 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
3736 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
3738 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
3739 instead of reg_class_contents[ALL_REGS].
3741 2019-09-30 Jason Merrill <jason@redhat.com>
3743 Add some hash_map_safe_* functions like vec_safe_*.
3744 * hash-map.h (default_hash_map_size): New variable.
3745 (create_ggc): Use it as default argument.
3746 (hash_map_maybe_create, hash_map_safe_get)
3747 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
3749 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
3751 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
3752 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
3753 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
3754 (can_inline_edge_by_limits_p): Use it.
3755 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
3756 (want_inline_small_function_p): Use O2 bounds.
3757 (edge_badness): LIkewise.
3758 * opts.c (default_options): Add OPT_finline_functions.
3759 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
3760 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
3762 * doc/invoke.texi (-finline-functions): Update documentation.
3763 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
3764 inline-min-speedup-O2): Document.
3765 (early-inlining-insns-O2): Simplify docs.
3767 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
3769 PR rtl-optimization/87047
3770 * ifcvt.c (average_cost): New static function. Use it...
3771 (noce_process_if_block): ... here.
3773 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
3775 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
3776 * config/rs6000/rs6000-string.c (expand_block_move): Add
3778 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
3779 (cpymemsi): Add might_overlap parm to expand_block_move() call.
3781 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
3783 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
3784 (expand_builtin_memcpy): Use might_overlap parm.
3785 (expand_builtin_mempcpy_args): Use might_overlap parm.
3786 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
3787 (expand_builtin_memory_copy_args): Add might_overlap parm.
3788 * expr.c (emit_block_move_via_cpymem): Rename to
3789 emit_block_move_via_pattern, add might_overlap parm, use cpymem
3790 or movmem optab as appropriate.
3791 (emit_block_move_hints): Add might_overlap parm, do the right
3792 thing for might_overlap==true.
3793 * expr.h (emit_block_move_hints): Update prototype.
3795 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
3797 * tree-eh.h (unsplit_eh_edges): Declare.
3798 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
3799 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
3800 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
3801 (struct store_immediate_info): Add lp_nr field.
3802 (store_immediate_info::store_immediate_info): Add NR2 parameter and
3803 initialize lp_nr with it.
3804 (struct merged_store_group): Add lp_nr and only_constants fields.
3805 (merged_store_group::merged_store_group): Initialize them.
3806 (merged_store_group::can_be_merged_into): Deal with them.
3807 (pass_store_merging): Rename terminate_and_release_chain into
3808 terminate_and_process_chain.
3809 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
3810 renaming and remove useless assertions.
3811 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
3812 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
3813 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
3814 instead of always recomputing it and compare lp_nr.
3815 (imm_store_chain_info::output_merged_store): If the group is in an
3816 active EH region, register new stores if they can throw. Moreover,
3817 if the insertion has created new basic blocks, adjust the PHI nodes
3818 of the post landing pad.
3819 (imm_store_chain_info::output_merged_stores): If the original stores
3820 are in an active EH region, deregister them.
3821 (lhs_valid_for_store_merging_p): Prettify.
3822 (adjust_bit_pos): New function extracted from...
3823 (mem_valid_for_store_merging): ...here. Use it for the base address
3824 and also for the offset if it is the addition of a constant.
3825 (lp_nr_for_store): New function.
3826 (pass_store_merging::process_store): Change return type to bool.
3827 Call lp_nr_for_store to initialize the store info. Propagate the
3828 return status of various called functions to the return value.
3829 (store_valid_for_store_merging_p): New predicate.
3830 (enum basic_block_status): New enumeration.
3831 (get_status_for_store_merging): New function.
3832 (pass_store_merging::execute): If the function can throw and catch
3833 non-call exceptions, unsplit the EH edges on entry and clean up the
3834 CFG on exit if something changed. Call get_status_for_store_merging
3835 for every basic block and keep the chains open across basic blocks
3836 when possible. Terminate and process open chains at the end, if any.
3838 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
3840 * reginfo.c (globalize_reg): Fix shadowed variable in
3843 2019-10-02 Martin Jambor <mjambor@suse.cz>
3845 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
3846 do not compute some stuff when set.
3847 (cgraph_node::create_edge): Likewise.
3848 (cgraph_node::create_indirect_edge): Renamed last parameter to
3849 coning_p and flipped its meaning, don't even calculate
3850 inline_failed when set.
3851 * cgraph.h (cgraph_node::create_edge): Add new parameter.
3852 (symbol_table::::create_edge): Likewise.
3853 (cgraph_node::create_indirect_edge): Rename last parameter, flip
3855 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
3856 call graph edge creating functions.
3858 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
3861 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
3864 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
3866 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
3868 2019-10-02 Richard Biener <rguenther@suse.de>
3870 * tree-vectorizer.h (vect_transform_reduction): Declare.
3871 * tree-vect-stmts.c (vect_transform_stmt): Use it.
3872 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
3873 stmt transform to ...
3874 (vect_transform_reduction): ... this.
3876 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
3878 * omp-low.c (lower_omp_target): Dereference optional argument
3879 to work with the right pointer.
3881 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
3883 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
3885 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
3886 * langhooks.h (omp_is_optional_argument): New hook.
3887 * omp-general.c (omp_is_optional_argument): New.
3888 * omp-general.h (omp_is_optional_argument): New declaration.
3889 * omp-low.c (lower_omp_target): Create temporary for received value
3890 and take the address for new_var if the original variable was a
3891 DECL_BY_REFERENCE. Use size of referenced object when a
3892 pass-by-reference optional argument used as argument to firstprivate.
3894 2019-10-02 Jakub Jelinek <jakub@redhat.com>
3896 PR tree-optimization/91940
3897 * tree-vect-patterns.c: Include tree-vector-builder.h and
3899 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
3900 unpromoting the argument back to uint16_t, or by converting into a
3901 rotate, or into shifts plus ior.
3903 2019-10-02 Richard Biener <rguenther@suse.de>
3905 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
3907 (vect_transform_cycle_phi): Declare.
3908 * tree-vect-stmts.c (vect_transform_stmt): Call
3909 vect_transform_cycle_phi.
3910 * tree-vect-loop.c (vectorizable_reduction): Split out
3911 PHI transformation stage to ...
3912 (vect_transform_cycle_phi): ... here.
3914 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
3917 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
3918 eliminable registers.
3919 (make_hard_regno_live): Likewise, and don't make them live.
3921 2019-10-01 David Malcolm <dmalcolm@redhat.com>
3923 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
3924 Call pp_emit_prefix.
3925 (layout::print_source_line): Likewise.
3926 (layout::start_annotation_line): Likewise.
3927 (diagnostic_show_locus): Remove call to temporarily clear the
3929 (selftest::test_one_liner_fixit_remove): Add test coverage for the
3930 interaction of pp_set_prefix with rulers and fix-it hints.
3931 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
3932 prefix when calling diagnostic_show_locus, rather than destroying
3934 (print_parseable_fixits): Temporarily clear prefix.
3935 * pretty-print.c (pp_format): Save and restore line_length, rather
3936 than assuming it is zero.
3937 (pp_output_formatted_text): Remove assertion that line_length is
3940 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
3942 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
3944 (nonoverlapping_refs_since_match_p): ... this; handle also
3946 (alias_stats): Update stats.
3947 (dump_alias_stats): Likewise.
3948 (cheap_array_ref_low_bound): New function.
3949 (aliasing_matching_component_refs_p): Add partial_overlap
3951 pass it to nonoverlapping_refs_since_match_p.
3952 (aliasing_component_refs_walk): Update call of
3953 aliasing_matching_component_refs_p
3954 (nonoverlapping_array_refs_p): New function.
3955 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
3956 indirect_refs_may_alias_p): Update calls of
3957 nonoverlapping_refs_since_match_p.
3959 2019-10-01 Maya Rashish <coypu@sdf.org>
3962 * ira-color.c (allocno_copy_cost_saving): Call
3963 ira_init_register_move_cost_if_necessary.
3965 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
3967 * Makefile.in (gnat_install_lib): New variable.
3968 * configure.ac: Substitute it.
3969 * configure: Regenerate.
3971 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
3974 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
3975 is matched with non-C++ type
3977 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3979 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
3982 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
3984 * doc/invoke.texi (early-inlining-insns-O2): Document.
3985 (early-inlining-insns): Update.
3986 * params.def (early-inlining-insns-O2): New bound.
3987 (early-inlining-insns): Update docs.
3988 * ipa-inline.c (want_early_inline_function_p): Use new bound.
3990 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
3993 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
3994 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
3995 a memory access insn.
3997 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
3999 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
4002 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
4005 * config/s390/s390.c (s390_expand_vec_compare): Use
4006 gen_vec_cmpordered and gen_vec_cmpunordered.
4007 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
4008 vec_unordered): Delete.
4009 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
4010 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
4011 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
4012 (vec_cmp<code>): Generic dispatcher.
4014 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
4017 * config/s390/vector.md (V_HW): Add V1TI in order to make
4018 vcond$a$b generate vcondv1tiv1tf.
4020 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
4022 PR rtl-optimization/91948
4023 * ira-build.c (ira_create_allocno): Initialize
4024 ALLOCNO_CROSSED_CALLS_ABIS.
4025 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
4026 than regno to ira_need_caller_save_p.
4028 2019-10-01 Alexandre Oliva <oliva@adacore.com>
4030 * config/i386/i386-options.c
4031 (ix86_recompute_optlev_based_flags): New, moved out of...
4032 (ix86_option_override_internal): ... this. Call it.
4033 (ix86_override_options_after_change): Call it here too.
4036 * dwarf2out.c (override_type_for_decl_p): New.
4037 (gen_variable_die): Use it.
4039 2019-10-01 Richard Biener <rguenther@suse.de>
4041 * tree-vect-loop.c (vectorizable_reduction): Move variables
4042 to where they are used.
4044 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4046 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
4047 (build_def_use): Use PC instead of CC0 in a comment.
4049 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
4051 * rtl.def (CLOBBER_HIGH): Delete.
4052 * doc/rtl.texi (clobber_high): Remove documentation.
4053 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
4054 (reg_is_clobbered_by_clobber_high): Delete.
4055 (gen_hard_reg_clobber_high): Likewise.
4056 * alias.c (record_set): Remove CLOBBER_HIGH handling.
4057 * cfgexpand.c (expand_gimple_stmt): Likewise.
4058 * combine-stack-adj.c (single_set_for_csa): Likewise.
4059 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
4060 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
4061 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
4062 * cse.c (invalidate_reg): Remove clobber_high parameter.
4063 (invalidate): Update call accordingly.
4064 (canonicalize_insn): Remove CLOBBER_HIGH handling.
4065 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
4066 (count_reg_usage, insn_live_p): Likewise.
4067 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
4068 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
4069 (cselib_invalidate_rtx_note_stores): Update call accordingly.
4070 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
4071 (cselib_invalidate_regno, cselib_process_insn): Likewise.
4072 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
4073 (mark_nonreg_stores_2): Likewise.
4074 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
4075 (df_get_call_refs): Likewise.
4076 * dwarf2out.c (mem_loc_descriptor): Likewise.
4077 * emit-rtl.c (verify_rtx_sharing): Likewise.
4078 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
4079 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
4080 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
4081 * genemit.c (gen_exp, gen_insn): Likewise.
4082 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
4083 * haifa-sched.c (haifa_classify_rtx): Likewise.
4084 * ira-build.c (create_insn_allocnos): Likewise.
4085 * ira-costs.c (scan_one_insn): Likewise.
4086 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
4087 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
4088 * jump.c (mark_jump_label_1): Likewise.
4089 * lra-int.h (lra_insn_reg::clobber_high): Delete.
4090 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
4092 (mark_not_eliminable): Likewise.
4093 * lra-lives.c (process_bb_lives): Likewise.
4094 * lra.c (new_insn_reg): Remove clobber_high parameter.
4095 (collect_non_operand_hard_regs): Likewise. Update call to new
4096 insn_reg. Remove CLOBBER_HIGH handling.
4097 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
4098 to collect_non_operand_hard_regs.
4099 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
4100 Update call to new_insn_reg.
4101 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
4102 * postreload.c (reload_cse_simplify, reload_combine_note_use)
4103 (move2add_note_store): Likewise.
4104 * print-rtl.c (print_pattern): Likewise.
4105 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
4106 (if_test_bypass_p): Likewise.
4107 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
4108 * reginfo.c (reg_scan_mark_refs): Likewise.
4109 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
4110 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
4111 (forget_old_reloads_1): Likewise.
4112 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
4113 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
4114 (dbr_schedule): Likewise.
4115 * resource.c (update_live_status, mark_referenced_resources)
4116 (mark_set_resources): Likewise.
4117 * rtl.c (copy_rtx): Likewise.
4118 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
4119 (note_pattern_stores): Likewise.
4120 (reg_is_clobbered_by_clobber_high): Delete.
4121 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
4122 CLOBBER_HIGH handling.
4124 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
4127 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
4128 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
4129 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
4130 Handle ARM_PCS_TLSDESC.
4131 (aarch64_tlsdesc_abi_id): New function.
4132 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
4133 rtx instead of a list of clobbers and clobber_highs.
4134 (tlsdesc_small_<mode>): Update accordingly.
4136 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
4138 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
4139 extra callee_abi argument.
4140 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
4141 Insert a CALLEE_ABI unspec into the call pattern as the second
4142 element in the PARALLEL.
4143 (aarch64_simd_call_p): Delete.
4144 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
4145 the new CALLEE_ABI element of the PARALLEL.
4146 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
4147 from the function type, if given.
4148 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
4149 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
4150 when passed the function_arg_info end marker.
4151 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
4152 final argument of gen_sibcall.
4153 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
4154 (call): Make operand 2 a const_int_operand and pass it to expand_call.
4155 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
4157 (call_value): Likewise operand 3.
4158 (sibcall): Likewise operand 2. Place the unspec before rather than
4160 (sibcall_value): Likewise operand 3.
4161 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
4162 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
4163 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
4165 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
4167 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
4169 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
4170 choose_hard_reg_mode.
4171 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4173 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4175 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
4176 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
4177 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
4179 2019-09-30 David Malcolm <dmalcolm@redhat.com>
4181 * diagnostic-show-locus.c (line_label::line_label): Initialize
4183 (line_label::comparator): Reverse the sort order by m_state_idx,
4184 so that when the list is walked backwards the labels appear in
4185 order of insertion into the rich_location.
4186 (line_label::m_has_vbar): New field.
4187 (layout::print_any_labels): When dealing with multiple labels at
4188 the same line and column, only print vertical bars for the one
4189 with the highest label_line.
4190 (selftest::test_one_liner_labels): Update test for multiple labels
4191 to expect the labels to be in the order of insertion into the
4192 rich_location. Add a test for many such labels, where the column
4193 numbers are out-of-order relative to the insertion order.
4195 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4197 * config/i386/i386.h (ix86_frame::expensive_p): New field.
4198 (ix86_frame::expensive_count): Likewise.
4199 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
4200 of use_fast_prologue_epilogue robust against incidental changes
4203 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
4206 * config/s390/vector.md (vec_unordered<mode>): Call
4207 gen_vec_ordered<mode>.
4209 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
4211 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
4212 New pattern for ASRD.
4213 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
4214 * internal-fn.def (IFN_DIV_POW2): New internal function.
4215 * optabs.def (sdiv_pow2_optab): New optab.
4216 * tree-vect-patterns.c (vect_recog_divmod_pattern):
4217 Modify pattern to support new operation.
4218 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
4219 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
4220 Document new target selector.
4222 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4224 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
4225 to test whether we're compiling a vector PCS function and to test
4226 whether the function needs to save a particular register.
4227 Remove the vector PCS handling of df_set_regs_ever_live.
4228 (aarch64_components_for_bb): Use crtl->abi to test whether
4229 the function needs to save a particular register.
4230 (aarch64_process_components): Use crtl->abi to test whether
4231 we're compiling a vector PCS function.
4232 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
4233 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
4235 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4237 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
4239 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
4240 whether the block calls a function that clobbers more registers
4241 than the current function is allowed to.
4242 (aarch64_use_simple_return_insn_p): Delete.
4243 * config/aarch64/aarch64.md (simple_return): Remove condition.
4245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4247 * function-abi.h (function_abi_aggregator): New class.
4248 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
4250 * ira.c (update_equiv_regs_prescan): New function. Call
4251 set_paradoxical_subreg here rather than...
4252 (update_equiv_regs): ...here.
4253 (ira): Call update_equiv_regs_prescan.
4255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4257 * hard-reg-set.h (regs_invalidated_by_call): Only define if
4259 (call_used_or_fixed_regs): Likewise.
4260 (call_used_or_fixed_reg_p): Likewise.
4261 * reginfo.c (regs_invalidated_by_call): New macro.
4263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4265 * shrink-wrap.c: Include function-abi.h.
4266 (requires_stack_frame_p): Use crtl->abi to test whether the
4267 current function can use a register without saving it first.
4269 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4271 * sel-sched-ir.h (_def::crosses_call): Replace with...
4272 (_def::crossed_call_abis): ..this new field.
4273 (def_list_add): Take a mask of ABIs instead of a crosses_call
4275 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
4276 of _def accordingly.
4277 * sel-sched.c: Include function-abi.h.
4278 (hard_regs_data::regs_for_call_clobbered): Delete.
4279 (reg_rename::crosses_call): Replace with...
4280 (reg_rename::crossed_call_abis): ...this new field.
4281 (fur_static_params::crosses_call): Replace with...
4282 (fur_static_params::crossed_call_abis): ...this new field.
4283 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
4284 (init_hard_regs_data): Use crtl->abi to test which registers the
4285 current function would need to save before it uses them.
4286 (mark_unavailable_hard_regs): Update handling of call-clobbered
4287 registers, using call_clobbers_in_region to find out which registers
4288 might be call-clobbered (but without taking -fipa-ra into account
4289 for now). Remove separate handling of partially call-clobbered
4291 (verify_target_availability): Use crossed_call_abis instead of
4293 (get_spec_check_type_for_insn, find_used_regs): Likewise.
4294 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
4296 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4298 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
4299 function to test whether a register is fully or partly clobbered.
4301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4303 * rtlanal.c: Include function-abi.h.
4304 (reg_set_p): Use insn_callee_abi to get the ABI of the called
4305 function and clobbers_reg_p to test whether the register
4307 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
4308 to get the ABI of the called function and full_reg_clobbers to
4309 get the set of fully call-clobbered registers. Warn about the
4310 pitfalls of using this mode.
4312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4314 * reload.c: Include function-abi.h.
4315 (find_equiv_reg): Use clobbers_reg_p to test whether either
4316 of the equivalent registers is clobbered by a call.
4317 * reload1.c: Include function-abi.h.
4318 (reg_reloaded_call_part_clobbered): Delete.
4319 (reload): Use crtl->abi to test which registers would need
4320 saving in the prologue before use.
4321 (find_reg): Likewise.
4322 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
4323 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
4324 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
4326 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4328 * regrename.h (du_head::call_clobber_mask): New field.
4329 (du_head::need_caller_save_reg): Replace with...
4330 (du_head::call_abis): ...this new field.
4331 * regrename.c: Include function-abi.h.
4332 (call_clobbered_in_chain_p): New function.
4333 (check_new_reg_p): Use crtl->abi when deciding whether a register
4334 is free for use after RA. Use call_clobbered_in_chain_p to test
4335 whether a candidate register would be clobbered by a call.
4336 (find_rename_reg): Don't add call-clobber conflicts here.
4337 (rename_chains): Check call_abis instead of need_caller_save_reg.
4338 (merge_chains): Update for changes to du_head.
4339 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
4340 target. Record the ABI identifier in call_abis and the set of
4341 fully or partially clobbered registers in call_clobber_mask.
4342 Add fully-clobbered registers to hard_conflicts here rather
4343 than in find_rename_reg.
4344 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
4345 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
4346 * config/aarch64/falkor-tag-collision-avoidance.c: Include
4348 * config/c6x/c6x.c: Likewise.
4350 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4352 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
4353 mode of the register when deciding whether it is no longer
4354 available after a call.
4356 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4358 * recog.c: Include function-abi.h.
4359 (peep2_find_free_register): Use crtl->abi when deciding whether
4360 a register is free for use after RA.
4362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4364 * postreload-gcse.c: Include regs.h and function-abi.h.
4365 (record_opr_changes): Use insn_callee_abi to get the ABI of the
4366 call insn target. Conservatively assume that partially-clobbered
4367 registers are altered.
4369 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4371 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
4372 when deciding whether a register is free for use after RA.
4373 (reload_combine): Remove unnecessary use of fixed_reg_set.
4374 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
4375 call insn target. Use reg_mode when testing whether a register
4376 is no longer available.
4378 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4380 * target.def (return_call_with_max_clobbers): Delete.
4381 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
4382 * doc/tm.texi: Regenerate.
4383 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
4384 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
4385 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
4386 (lra_reg::call_insn): Delete.
4387 * lra.c: Include function-abi.h.
4388 (initialize_lra_reg_info_element): Don't initialize the fields above.
4389 (lra): Use crtl->abi to test whether the current function needs to
4390 save a register in the prologue. Remove special pre-inheritance
4391 lra_create_live_ranges pass for flag_ipa_ra.
4392 * lra-assigns.c: Include function-abi.h
4393 (find_hard_regno_for_1): Use crtl->abi to test whether the current
4394 function needs to save a register in the prologue.
4395 (lra_assign): Assert that registers aren't allocated to a
4396 conflicting register, rather than checking only for overlaps
4397 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
4398 and for registers that are not live across a call.
4399 * lra-constraints.c (last_call_for_abi): New variable.
4400 (full_and_partial_call_clobbers): Likewise.
4401 (setup_next_usage_insn): Remove the register from
4402 full_and_partial_call_clobbers.
4403 (need_for_call_save_p): Use call_clobbered_in_region_p to test
4404 whether the register needs a caller save.
4405 (need_for_split_p): Use full_and_partial_reg_clobbers instead
4406 of call_used_or_fixed_regs.
4407 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
4408 full_and_partial_call_clobbers.
4409 * lra-lives.c (check_pseudos_live_through_calls): Replace
4410 last_call_used_reg_set and call_insn arguments with an abi argument.
4411 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
4412 as the set of conflicting registers.
4413 (calls_have_same_clobbers_p): Delete.
4414 (process_bb_lives): Track the ABI of the last call instead of an
4415 insn/HARD_REG_SET pair. Update calls to
4416 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
4417 the set of registers that could be clobbered by an EH edge.
4418 Include partially-clobbered as well as fully-clobbered registers.
4419 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
4420 * lra-remat.c: Include function-abi.h.
4421 (call_used_regs_arr_len, call_used_regs_arr): Delete.
4422 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
4423 registers and bitmap_view to combine them into dead_regs.
4424 (call_used_input_regno_present_p): Take a function_abi argument
4425 and use it to test whether a register is call-clobbered.
4426 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
4427 call insn target. Update tje call to call_used_input_regno_present_p.
4428 (do_remat): Likewise.
4429 (lra_remat): Remove the initialization of call_used_regs_arr_len
4430 and call_used_regs_arr.
4432 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4434 * loop-iv.c: Include regs.h and function-abi.h.
4435 (simplify_using_initial_values): Use insn_callee_abi to get the
4436 ABI of the call insn target. Conservatively assume that
4437 partially-clobbered registers are altered.
4439 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4441 * function-abi.h (call_clobbers_in_region): Declare.
4442 (call_clobbered_in_region_p): New function.
4443 * function-abi.cc (call_clobbers_in_region): Likewise.
4444 * ira-int.h: Include function-abi.h.
4445 (ira_allocno::crossed_calls_abis): New field.
4446 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
4447 (ira_need_caller_save_regs): New function.
4448 (ira_need_caller_save_p): Likewise.
4449 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
4450 of call_used_or_fixed_regs.
4451 (do_reload): Use crtl->abi to test whether the current function
4452 needs to save a register in the prologue. Count registers that
4453 need to be saved rather than registers that don't.
4454 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
4455 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4456 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
4457 (propagate_some_info_from_allocno): Likewise.
4458 (copy_info_to_removed_store_destinations): Likewise.
4459 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
4460 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
4461 (ira_build): Use ira_need_caller_save_regs instead of
4462 call_used_or_fixed_regs.
4463 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
4464 whether the current function would need to save a register
4466 (calculate_spill_cost): Likewise.
4467 (allocno_reload_assign): Use ira_need_caller_save_regs and
4468 ira_need_caller_save_p instead of call_used_or_fixed_regs.
4469 * ira-conflicts.c (ira_build_conflicts): Use
4470 ira_need_caller_save_regs rather than call_used_or_fixed_regs
4471 as the set of call-clobbered registers. Remove the
4472 call_used_or_fixed_regs mask from the calculation of
4473 temp_hard_reg_set and mask its use instead. Remove special
4474 handling of partially-clobbered registers.
4475 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
4476 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
4477 calculate the set of conflicting registers for calls that
4478 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
4479 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
4480 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4481 Use eh_edge_abi to calculate the set of registers that could
4482 be clobbered by an EH edge. Include partially-clobbered as
4483 well as fully-clobbered registers.
4485 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4487 * haifa-sched.c: Include function-abi.h.
4488 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
4489 the function would need to save a register before using it.
4491 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4493 * gcse.c: Include function-abi.h.
4494 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
4495 the call insn target. Invalidate partially call-clobbered
4496 registers as well as fully call-clobbered ones.
4498 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4500 * function.c (aggregate_value_p): Work out which ABI the
4501 function is using before testing which registers are at least
4502 partly preserved by a call.
4504 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4506 * early-remat.c: Include regs.h and function-abi.h.
4507 (early_remat::maybe_add_candidate): Don't check for call-clobbered
4509 (early_remat::restrict_remat_for_unavail_regs): New function.
4510 (early_remat::restrict_remat_for_call): Likewise.
4511 (early_remat::process_block): Before calling emit_remat_insns
4512 for a previous call in the block, invalidate any candidates
4513 that would clobber call-preserved registers.
4514 (early_remat::emit_remat_insns_for_block): Likewise for the
4515 final call in a block. Do the same thing for live-in registers
4516 when calling emit_remat_insns at the head of a block.
4518 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4520 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
4521 whether the current function needs to save at least part of a
4522 register before using it.
4523 (df_get_exit_block_use_set): Likewise for epilogue restores.
4525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4527 * df-problems.c: Include regs.h and function-abi.h.
4528 (df_rd_problem_data): Rename sparse_invalidated_by_call to
4529 sparse_invalidated_by_eh and dense_invalidated_by_call to
4530 dense_invalidated_by_eh.
4531 (df_print_bb_index): Update accordingly.
4532 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
4533 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
4534 that are clobbered by an EH edge. Clobber partially-clobbered
4535 registers as well as fully-clobbered ones.
4536 (df_md_confluence_n): Likewise.
4537 (df_rd_local_compute): Likewise. Update for changes to
4539 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
4540 of registers that are clobbered by an EH edge. Includde partially-
4541 clobbered registers as well as fully-clobbered ones.
4543 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4545 * cselib.c (cselib_process_insn): If we know what mode a
4546 register was set in, check whether it is clobbered in that
4547 mode by a call. Only fall back to reg_raw_mode if that fails.
4549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4551 * cse.c: Include regs.h and function-abi.h.
4552 (invalidate_for_call): Take the call insn as an argument.
4553 Use insn_callee_abi to get the ABI of the call and invalidate
4554 partially clobbered registers as well as fully clobbered ones.
4555 (cse_insn): Update call accordingly.
4557 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4559 * combine.c: Include function-abi.h.
4560 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
4561 of the target of call insns. Invalidate partially-clobbered
4562 registers as well as fully-clobbered ones.
4564 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4566 * cfgloopanal.c: Include regs.h and function-abi.h.
4567 (init_set_costs): Use default_function_abi to test whether
4568 a general register is call-clobbered.
4570 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4572 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
4573 instead of the call-clobbered sets.
4575 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4577 * caller-save.c (setup_save_areas): Remove redundant |s of
4579 (save_call_clobbered_regs): Likewise. Use the call ABI rather
4580 than call_used_or_fixed_regs to decide whether a REG_RETURNED
4583 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4585 * rtl.h (predefined_function_abi): Declare.
4586 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
4587 instead of a boolean call_save flag.
4588 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
4590 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4591 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4592 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
4593 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4594 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4595 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
4596 * reginfo.c (init_reg_modes_target): Likewise.
4597 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
4598 instead of a boolean call_save flag.
4599 * targhooks.c: Include function-abi.h.
4600 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
4601 using eh_edge_abi to choose the mode.
4603 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4605 * target.def (hard_regno_call_part_clobbered): Take an ABI
4606 identifier instead of an rtx_insn.
4607 * doc/tm.texi: Regenerate.
4608 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
4609 (hook_bool_uint_uint_mode_false): New function.
4610 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
4611 (hook_bool_uint_uint_mode_false): New function.
4612 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
4613 Take an ABI identifier instead of an rtx_insn.
4614 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
4615 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
4616 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
4617 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
4618 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
4620 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
4621 * cselib.c: Include function-abi.h.
4622 (cselib_process_insn): Update call to
4623 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
4624 to get the appropriate ABI identifier.
4625 * function-abi.cc (predefined_function_abi::initialize): Update call
4626 to targetm.hard_regno_call_part_clobbered.
4627 * ira-conflicts.c (ira_build_conflicts): Likewise.
4628 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4629 * lra-constraints.c: Include function-abi.h.
4630 (need_for_call_save_p): Update call to
4631 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
4632 to get the appropriate ABI identifier.
4633 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4634 * regcprop.c (copyprop_hardreg_forward_1): Update call
4635 to targetm.hard_regno_call_part_clobbered.
4636 * reginfo.c (choose_hard_reg_mode): Likewise.
4637 * regrename.c (check_new_reg_p): Likewise.
4638 * reload.c (find_equiv_reg): Likewise.
4639 * reload1.c (emit_reload_insns): Likewise.
4640 * sched-deps.c: Include function-abi.h.
4641 (deps_analyze_insn): Update call to
4642 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
4643 to get the appropriate ABI identifier.
4644 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
4645 call to targetm.hard_regno_call_part_clobbered.
4646 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
4648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4650 * config/i386/i386.c: Include function-abi.h.
4651 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
4652 if they preserve some 256-bit or 512-bit SSE registers.
4654 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4656 * target.def (insn_callee_abi): New hook.
4657 (remove_extra_call_preserved_regs): Delete.
4658 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
4659 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
4660 * doc/tm.texi: Regenerate.
4661 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
4662 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
4663 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
4665 (aarch64_remove_extra_call_preserved_regs): Delete.
4666 (aarch64_insn_callee_abi): New function.
4667 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
4668 (TARGET_INSN_CALLEE_ABI): New macro.
4669 * rtl.h (get_call_fndecl): Declare.
4670 (cgraph_rtl_info): Fix formatting. Tweak comment for
4671 function_used_regs. Remove function_used_regs_valid.
4672 * rtlanal.c (get_call_fndecl): Moved from final.c
4673 * function-abi.h (insn_callee_abi): Declare.
4674 (target_function_abi_info): Mention insn_callee_abi.
4675 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
4676 way to get_call_reg_set_usage did.
4677 (insn_callee_abi): New function.
4678 * regs.h (get_call_reg_set_usage): Delete.
4679 * final.c: Include function-abi.h.
4680 (collect_fn_hard_reg_usage): Add fixed and stack registers to
4681 function_used_regs before the main loop rather than afterwards.
4682 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
4683 if function_used_regs ends up not being useful.
4684 (get_call_fndecl): Move to rtlanal.c
4685 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
4686 * caller-save.c: Include function-abi.h.
4687 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
4688 instead of get_call_reg_set_usage.
4689 * cfgcleanup.c: Include function-abi.h.
4690 (old_insns_match_p): Use insn_callee_abi instead of
4691 get_call_reg_set_usage.
4692 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
4694 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
4696 * df-scan.c: Include function-abi.h.
4697 (df_get_call_refs): Use insn_callee_abi instead of
4698 get_call_reg_set_usage.
4699 * ira-lives.c: Include function-abi.h.
4700 (process_bb_node_lives): Use insn_callee_abi instead of
4701 get_call_reg_set_usage.
4702 * lra-lives.c: Include function-abi.h.
4703 (process_bb_lives): Use insn_callee_abi instead of
4704 get_call_reg_set_usage.
4705 * postreload.c: Include function-abi.h.
4706 (reload_combine): Use insn_callee_abi instead of
4707 get_call_reg_set_usage.
4708 * regcprop.c: Include function-abi.h.
4709 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
4710 get_call_reg_set_usage.
4711 * resource.c: Include function-abi.h.
4712 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
4713 instead of get_call_reg_set_usage.
4714 * var-tracking.c: Include function-abi.h.
4715 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
4716 get_call_reg_set_usage.
4718 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4720 * target.def (fntype_abi): New target hook.
4721 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
4722 * doc/tm.texi: Regenerate.
4723 * target.h (predefined_function_abi): Declare.
4724 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
4726 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
4727 * config/aarch64/aarch64.c: Include function-abi.h.
4728 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
4729 (TARGET_FNTYPE_ABI): Define.
4731 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4733 * Makefile.in (OBJS): Add function-abi.o.
4734 (GTFILES): Add function-abi.h.
4735 * function-abi.cc: New file.
4736 * function-abi.h: Likewise.
4737 * emit-rtl.h (rtl_data::abi): New field.
4738 * function.c: Include function-abi.h.
4739 (prepare_function_start): Initialize crtl->abi.
4740 * read-rtl-function.c: Include regs.h and function-abi.h.
4741 (read_rtl_function_body): Initialize crtl->abi.
4742 (read_rtl_function_body_from_file_range): Likewise.
4743 * reginfo.c: Include function-abi.h.
4744 (init_reg_sets_1): Initialize default_function_abi.
4745 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
4746 when making a register global.
4747 * target-globals.h (this_target_function_abi_info): Declare.
4748 (target_globals::function_abi_info): New field.
4749 (restore_target_globals): Copy it.
4750 * target-globals.c: Include function-abi.h.
4751 (default_target_globals): Initialize the function_abi_info field.
4752 (target_globals): Allocate it.
4753 (save_target_globals): Free it.
4755 2019-09-30 Nick Clifton <nickc@redhat.com>
4758 * config/frv/frv.c (frv_register_move_cost): Add break statements
4759 to avoid falling through to the wrong cases. Tidy code.
4761 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
4763 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
4764 For multi-registers modes, test how big each register part is.
4766 2019-09-30 Nick Clifton <nickc@redhat.com>
4769 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
4770 (TARGET_ASM_SELECT_SECTION): Remove definition.
4771 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
4773 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
4775 * emit-rtl.c (init_raw_REG): New function.
4776 (gen_raw_REG): Use init_raw_REG.
4777 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
4779 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
4780 * rtl.h (rtx_init): New function.
4781 (rtx_alloca): New function.
4782 (init_raw_REG): New function.
4783 (alloca_raw_REG): New macro.
4785 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
4787 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
4788 (pcrel_local_address): Replace pcrel_address predicate, use the
4789 new function address_to_insn_form.
4790 (pcrel_external_address): Replace with new implementation using
4791 address_to_insn_form..
4792 (prefixed_mem_operand): Delete predicate which is now unused.
4793 (pcrel_external_mem_operand): Delete predicate which is now
4795 * config/rs6000/rs6000-protos.h (enum insn_form): New
4797 (enum non_prefixed_form): New enumeration.
4798 (address_to_insn_form): New declaration.
4799 (prefixed_load_p): New declaration.
4800 (prefixed_store_p): New declaration.
4801 (prefixed_paddi_p): New declaration.
4802 (rs6000_asm_output_opcode): New declaration.
4803 (rs6000_final_prescan_insn): Move declaration and update calling
4805 (address_is_prefixed): New helper inline function.
4806 * config/rs6000/rs6000.c(print_operand_address): Check for either
4807 PC-relative local symbols or PC-relative external symbols.
4808 (rs6000_emit_move): Support loading PC-relative addresses.
4809 (mode_supports_prefixed_address_p): Delete, no longer used.
4810 (rs6000_prefixed_address_mode_p): Delete, no longer used.
4811 (address_to_insn_form): New function to decode an address format.
4812 (reg_to_non_prefixed): New function to identify what the
4813 non-prefixed memory instruction format is for a register.
4814 (prefixed_load_p): New function to identify prefixed loads.
4815 (prefixed_store_p): New function to identify prefixed stores.
4816 (prefixed_paddi_p): New function to identify prefixed load
4818 (next_insn_prefixed_p): New static state variable.
4819 (rs6000_final_prescan_insn): New function to determine if an insn
4820 uses a prefixed instruction.
4821 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
4822 prefixed instruction.
4823 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
4824 (ASM_OUTPUT_OPCODE): New target hook.
4825 * config/rs6000/rs6000.md (prefixed): New insn attribute for
4826 prefixed instructions.
4827 (prefixed_length): New insn attribute for the size of prefixed
4829 (non_prefixed_length): New insn attribute for the size of
4830 non-prefixed instructions.
4831 (pcrel_local_addr): New insn to load up a local PC-relative
4833 (pcrel_extern_addr): New insn to load up an external PC-relative
4835 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
4836 GPR and loading a 128-bit floating point type to a GPR.
4838 2019-09-30 Richard Biener <rguenther@suse.de>
4840 * gimple.c (gimple_get_lhs): For PHIs return the result.
4841 * tree-vectorizer.h (vectorizable_live_operation): Also get the
4842 SLP instance as argument.
4843 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
4844 double-reduction PHIs with vectorizable_lc_phi.
4845 (vect_analyze_loop_operations): Adjust.
4846 (vect_create_epilog_for_reduction): Remove all code not dealing
4847 with reduction LC PHI or epilogue generation.
4848 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
4849 for live stmts of reductions.
4850 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
4851 do not handle defs that are not vect_internal_def.
4852 (can_vectorize_live_stmts): Adjust.
4853 (vect_analyze_stmt): When the vectorized stmt defined a value
4854 used on backedges adjust the backedge uses of vectorized PHIs.
4856 2019-09-30 Martin Jambor <mjambor@suse.cz>
4859 * tree-inline.c (force_value_to_type): New function.
4860 (setup_one_parameter): Use force_value_to_type to convert type.
4861 * tree-inline.c (force_value_to_type): Declare.
4862 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
4863 with register type mismatches.
4865 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
4867 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
4869 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
4870 * config/rs6000/t-freebsd64: Make use of the above define and build
4871 the 32-bit libraries with secure-plt.
4873 2019-09-30 Jakub Jelinek <jakub@redhat.com>
4876 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
4877 gen_int_mode instead of GEN_INT.
4879 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
4881 * config/darwin.c (gen_macho_low): Amend to include the mode
4883 (machopic_indirect_data_reference): Amend gen_macho_low call
4884 to include mode argument
4885 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
4886 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
4887 the macho_high expander and two define_insn entries.
4889 2019-09-29 Jakub Jelinek <jakub@redhat.com>
4892 * optc-save-gen.awk: Fix up printing string option differences.
4894 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
4896 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
4897 vec_perm cost to 1 for non-Power7 VSX architectures.
4899 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
4901 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
4902 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
4903 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
4905 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
4907 * config/darwin.c (gen_macho_high): Amend to include the mode
4909 (machopic_indirect_data_reference): Amend gen_macho_high call
4910 to include mode argument.
4911 (machopic_legitimize_pic_address): Likewise.
4912 * config/rs6000/rs6000.c (rs6000_legitimize_address):
4913 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
4914 the macho_high expander and two define_insn entries.
4916 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4919 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4921 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4924 * config/sh/sh.c (parse_validate_atomic_model_option): Use
4925 std::string::compare instead of std::string::find.
4927 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
4929 * configure: Regenerate.
4931 2019-09-27 Jakub Jelinek <jakub@redhat.com>
4934 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
4935 variables as shared.
4937 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
4939 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
4940 replaces the expander and two define_insn entries.
4941 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
4943 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
4945 2019-09-27 David Malcolm <dmalcolm@redhat.com>
4947 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
4948 (fibonacci_heap::nodes): Likewise.
4949 (fibonacci_heap::min_key): Likewise.
4950 (fibonacci_heap::min): Likewise.
4952 2019-09-27 David Malcolm <dmalcolm@redhat.com>
4954 * cgraph.c (cgraph_node::get_fun): Make const.
4955 * cgraph.h (cgraph_node::get_fun): Likewise.
4957 2019-09-27 Jakub Jelinek <jakub@redhat.com>
4960 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
4963 2019-09-27 Richard Biener <rguenther@suse.de>
4965 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
4966 (STMT_VINFO_REDUC_FN): Likewise.
4967 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4968 STMT_VINFO_REDUC_FN.
4969 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
4970 for condition reductions.
4971 (vect_create_epilog_for_reduction): Compute all required state
4972 from the stmt to be vectorized.
4973 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
4974 invocation and remove then dead code. For single def-use chains
4975 record only a single vector stmt.
4977 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
4979 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
4980 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
4981 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
4982 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
4983 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
4984 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
4985 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
4986 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
4987 (aarch64_general_builtin_rsqrt): Declare.
4988 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
4990 (aarch64_mangle_builtin_type): Rename to...
4991 (aarch64_general_mangle_builtin_type): ...this.
4992 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
4993 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
4994 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
4995 aarch64_general_add_builtin instead of add_builtin_function.
4996 (aarch64_init_builtins): Rename to...
4997 (aarch64_general_init_builtins): ...this. Use
4998 aarch64_general_add_builtin instead of add_builtin_function.
4999 (aarch64_builtin_decl): Rename to...
5000 (aarch64_general_builtin_decl): ...this and remove the unused
5002 (aarch64_expand_builtin): Rename to...
5003 (aarch64_general_expand_builtin): ...this and remove the unused
5005 (aarch64_builtin_rsqrt): Rename to...
5006 (aarch64_general_builtin_rsqrt): ...this.
5007 (aarch64_fold_builtin): Rename to...
5008 (aarch64_general_fold_builtin): ...this. Take the function subcode
5009 and return type as arguments. Remove the "ignored" argument.
5010 (aarch64_gimple_fold_builtin): Rename to...
5011 (aarch64_general_gimple_fold_builtin): ...this. Take the function
5012 subcode and gcall as arguments, and return the new function call.
5013 * config/aarch64/aarch64.c (aarch64_init_builtins)
5014 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
5015 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
5016 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
5017 instead of aarch64_builtin_rsqrt.
5018 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
5019 instead of aarch64_mangle_builtin_type.
5021 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
5023 * target.def (check_builtin_call): New target hook.
5024 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
5025 * doc/tm.texi: Regenerate.
5027 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
5029 PR tree-optimization/91909
5030 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
5031 reduc_index parameter. When handling COND_REDUCTION, make sure
5032 that the reduction phi operand is in the correct arm of the
5034 (vectorizable_reduction): Pass reduc_index to the above.
5036 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
5038 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
5039 New combine pattern.
5041 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
5043 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
5044 loop instruction into new basic block before the loop when basic
5045 block that precedes the loop is empty.
5047 2019-09-26 Jakub Jelinek <jakub@redhat.com>
5049 * function.c (gimplify_parameters): Use build_clobber function.
5050 * tree-ssa.c (execute_update_addresses_taken): Likewise.
5051 * tree-inline.c (expand_call_inline): Likewise.
5052 * tree-sra.c (clobber_subtree): Likewise.
5053 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
5054 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
5055 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
5056 lower_omp_target): Likewise.
5057 * omp-expand.c (expand_omp_for_generic): Likewise.
5058 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
5060 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
5062 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
5063 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
5064 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
5065 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
5066 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
5067 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
5068 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
5069 LD_ELEMREV_V16QI): Use the PURE attribute.
5071 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
5073 * config/rs6000/darwin.md: Replace the expanders for
5074 load_macho_picbase and reload_macho_picbase with use of '@'
5075 and <mode> in their respective define_insns.
5076 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
5077 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
5078 Pmode to gen_load_macho_picbase.
5079 * config/rs6000/rs6000.md: Likewise.
5081 2019-09-25 Richard Biener <rguenther@suse.de>
5083 PR tree-optimization/91896
5084 * tree-vect-loop.c (vectorizable_reduction): The single
5085 def-use cycle optimization cannot apply when there's more
5086 than one pattern stmt involved.
5088 2019-09-26 Richard Biener <rguenther@suse.de>
5090 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
5091 loop-closed PHIs that are vect_internal_def.
5092 (vect_create_epilog_for_reduction): Exit early for nested cycles.
5094 (vectorizable_lc_phi): New.
5095 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
5096 (vect_transform_stmt): Likewise.
5097 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
5098 (vectorizable_lc_phi): Declare.
5100 2019-09-26 Richard Biener <rguenther@suse.de>
5102 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
5103 vectorizable_reduction for vect_double_reduction_def.
5104 (vect_transform_loop): Likewise.
5105 (vect_create_epilog_for_reduction): Move double-reduction
5106 PHI creation and preheader argument setting of PHIs ...
5107 (vectorizable_reduction): ... here. Also process
5108 vect_double_reduction_def PHIs, creating the vectorized
5109 PHI nodes, remembering the scalar adjustment computed for
5110 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
5111 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
5112 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
5113 Initialize STMT_VINFO_REDUC_CODE.
5114 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
5115 (_stmt_vec_info::reduc_code): Likewise.
5116 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
5117 (STMT_VINFO_REDUC_CODE): Likewise.
5119 2019-09-26 Matt Turner <mattst88@gmail.com>
5122 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
5123 (mtune=): Add Negative(mtune=).
5124 (mcpu=): Add Negative(mcpu=).
5125 * config/arm/arm.opt: Likewise.
5127 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5129 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
5130 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
5132 * config/arm/arm_acle.h: Define builtins for the above.
5133 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
5134 (simd32_op): Handle the above.
5135 * config/arm/unspecs.md: Define unspecs for the above.
5137 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5139 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
5140 (arm_<sup>xtb16): Likewise.
5141 (arm_usada8): Likewise.
5142 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
5143 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
5144 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
5145 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
5146 __sxtb16, __uxtab16, __uxtb16): Define.
5147 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5148 * config/arm/unspecs.md: Define unspecs for the above.
5149 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
5150 (USXTB16): Likewise.
5151 (simd32_op): New int_attribute.
5152 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
5153 * doc/sourcebuild.exp (arm_simd32_ok): Document.
5155 2019-09-26 Martin Jambor <mjambor@suse.cz>
5157 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
5160 2019-09-26 Martin Jambor <mjambor@suse.cz>
5162 * ipa-sra.c (process_scan_results): Fix continue condition.
5164 2019-09-26 Martin Liska <mliska@suse.cz>
5166 PR tree-optimization/91885
5167 * tree-vectorizer.c (try_vectorize_loop_1): Add
5168 TODO_update_ssa_only_virtuals similarly to what slp pass does.
5170 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
5172 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5173 aarch64_plus_immediate rather than aarch64_uimm12_shift
5174 to test for valid PLUS immediates.
5176 2019-09-25 Martin Jambor <mjambor@suse.cz>
5178 * tree-sra.c (no_accesses_p): Remove.
5179 (no_accesses_representant): Likewise.
5181 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5183 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
5185 (vaba_s16): Likewise.
5186 (vaba_s32): Likewise.
5187 (vaba_u8): Likewise.
5188 (vaba_u16): Likewise.
5189 (vaba_u32): Likewise.
5190 (vabal_high_s8): Likewise.
5191 (vabal_high_s16): Likewise.
5192 (vabal_high_s32): Likewise.
5193 (vabal_high_u8): Likewise.
5194 (vabal_high_u16): Likewise.
5195 (vabal_high_u32): Likewise.
5196 (vabal_s8): Likewise.
5197 (vabal_s16): Likewise.
5198 (vabal_s32): Likewise.
5199 (vabal_u8): Likewise.
5200 (vabal_u16): Likewise.
5201 (vabal_u32): Likewise.
5202 (vabaq_s8): Likewise.
5203 (vabaq_s16): Likewise.
5204 (vabaq_s32): Likewise.
5205 (vabaq_u8): Likewise.
5206 (vabaq_u16): Likewise.
5207 (vabaq_u32): Likewise.
5208 (vabd_s8): Likewise.
5209 (vabd_s16): Likewise.
5210 (vabd_s32): Likewise.
5211 (vabd_u8): Likewise.
5212 (vabd_u16): Likewise.
5213 (vabd_u32): Likewise.
5214 (vabdl_high_s8): Likewise.
5215 (vabdl_high_s16): Likewise.
5216 (vabdl_high_s32): Likewise.
5217 (vabdl_high_u8): Likewise.
5218 (vabdl_high_u16): Likewise.
5219 (vabdl_high_u32): Likewise.
5220 (vabdl_s8): Likewise.
5221 (vabdl_s16): Likewise.
5222 (vabdl_s32): Likewise.
5223 (vabdl_u8): Likewise.
5224 (vabdl_u16): Likewise.
5225 (vabdl_u32): Likewise.
5226 (vabdq_s8): Likewise.
5227 (vabdq_s16): Likewise.
5228 (vabdq_s32): Likewise.
5229 (vabdq_u8): Likewise.
5230 (vabdq_u16): Likewise.
5231 (vabdq_u32): Likewise.
5232 (vaddlv_s8): Likewise.
5233 (vaddlv_s16): Likewise.
5234 (vaddlv_u8): Likewise.
5235 (vaddlv_u16): Likewise.
5236 (vaddlvq_s8): Likewise.
5237 (vaddlvq_s16): Likewise.
5238 (vaddlvq_s32): Likewise.
5239 (vaddlvq_u8): Likewise.
5240 (vaddlvq_u16): Likewise.
5241 (vaddlvq_u32): Likewise.
5242 (vcvtx_f32_f64): Likewise.
5243 (vcvtx_high_f32_f64): Likewise.
5244 (vcvtxd_f32_f64): Likewise.
5245 (vmla_n_f32): Likewise.
5246 (vmla_n_s16): Likewise.
5247 (vmla_n_s32): Likewise.
5248 (vmla_n_u16): Likewise.
5249 (vmla_n_u32): Likewise.
5250 (vmla_s8): Likewise.
5251 (vmla_s16): Likewise.
5252 (vmla_s32): Likewise.
5253 (vmla_u8): Likewise.
5254 (vmla_u16): Likewise.
5255 (vmla_u32): Likewise.
5256 (vmlal_high_n_s16): Likewise.
5257 (vmlal_high_n_s32): Likewise.
5258 (vmlal_high_n_u16): Likewise.
5259 (vmlal_high_n_u32): Likewise.
5260 (vmlal_high_s8): Likewise.
5261 (vmlal_high_s16): Likewise.
5262 (vmlal_high_s32): Likewise.
5263 (vmlal_high_u8): Likewise.
5264 (vmlal_high_u16): Likewise.
5265 (vmlal_high_u32): Likewise.
5266 (vmlal_n_s16): Likewise.
5267 (vmlal_n_s32): Likewise.
5268 (vmlal_n_u16): Likewise.
5269 (vmlal_n_u32): Likewise.
5270 (vmlal_s8): Likewise.
5271 (vmlal_s16): Likewise.
5272 (vmlal_s32): Likewise.
5273 (vmlal_u8): Likewise.
5274 (vmlal_u16): Likewise.
5275 (vmlal_u32): Likewise.
5276 (vmlaq_n_f32): Likewise.
5277 (vmlaq_n_s16): Likewise.
5278 (vmlaq_n_s32): Likewise.
5279 (vmlaq_n_u16): Likewise.
5280 (vmlaq_n_u32): Likewise.
5281 (vmlaq_s8): Likewise.
5282 (vmlaq_s16): Likewise.
5283 (vmlaq_s32): Likewise.
5284 (vmlaq_u8): Likewise.
5285 (vmlaq_u16): Likewise.
5286 (vmlaq_u32): Likewise.
5287 (vmls_n_f32): Likewise.
5288 (vmls_n_s16): Likewise.
5289 (vmls_n_s32): Likewise.
5290 (vmls_n_u16): Likewise.
5291 (vmls_n_u32): Likewise.
5292 (vmls_s8): Likewise.
5293 (vmls_s16): Likewise.
5294 (vmls_s32): Likewise.
5295 (vmls_u8): Likewise.
5296 (vmls_u16): Likewise.
5297 (vmls_u32): Likewise.
5298 (vmlsl_high_n_s16): Likewise.
5299 (vmlsl_high_n_s32): Likewise.
5300 (vmlsl_high_n_u16): Likewise.
5301 (vmlsl_high_n_u32): Likewise.
5302 (vmlsl_high_s8): Likewise.
5303 (vmlsl_high_s16): Likewise.
5304 (vmlsl_high_s32): Likewise.
5305 (vmlsl_high_u8): Likewise.
5306 (vmlsl_high_u16): Likewise.
5307 (vmlsl_high_u32): Likewise.
5308 (vmlsl_n_s16): Likewise.
5309 (vmlsl_n_s32): Likewise.
5310 (vmlsl_n_u16): Likewise.
5311 (vmlsl_n_u32): Likewise.
5312 (vmlsl_s8): Likewise.
5313 (vmlsl_s16): Likewise.
5314 (vmlsl_s32): Likewise.
5315 (vmlsl_u8): Likewise.
5316 (vmlsl_u16): Likewise.
5317 (vmlsl_u32): Likewise.
5318 (vmlsq_n_f32): Likewise.
5319 (vmlsq_n_s16): Likewise.
5320 (vmlsq_n_s32): Likewise.
5321 (vmlsq_n_u16): Likewise.
5322 (vmlsq_n_u32): Likewise.
5323 (vmlsq_s8): Likewise.
5324 (vmlsq_s16): Likewise.
5325 (vmlsq_s32): Likewise.
5326 (vmlsq_u8): Likewise.
5327 (vmlsq_u16): Likewise.
5328 (vmlsq_u32): Likewise.
5329 (vmovl_high_s8): Likewise.
5330 (vmovl_high_s16): Likewise.
5331 (vmovl_high_s32): Likewise.
5332 (vmovl_high_u8): Likewise.
5333 (vmovl_high_u16): Likewise.
5334 (vmovl_high_u32): Likewise.
5335 (vmovl_s8): Likewise.
5336 (vmovl_s16): Likewise.
5337 (vmovl_s32): Likewise.
5338 (vmovl_u8): Likewise.
5339 (vmovl_u16): Likewise.
5340 (vmovl_u32): Likewise.
5341 (vmovn_high_s16): Likewise.
5342 (vmovn_high_s32): Likewise.
5343 (vmovn_high_s64): Likewise.
5344 (vmovn_high_u16): Likewise.
5345 (vmovn_high_u32): Likewise.
5346 (vmovn_high_u64): Likewise.
5347 (vmovn_s16): Likewise.
5348 (vmovn_s32): Likewise.
5349 (vmovn_s64): Likewise.
5350 (vmovn_u16): Likewise.
5351 (vmovn_u32): Likewise.
5352 (vmovn_u64): Likewise.
5353 (vmull_high_n_s16): Likewise.
5354 (vmull_high_n_s32): Likewise.
5355 (vmull_high_n_u16): Likewise.
5356 (vmull_high_n_u32): Likewise.
5357 (vmull_high_p8): Likewise.
5358 (vmull_high_s8): Likewise.
5359 (vmull_high_s16): Likewise.
5360 (vmull_high_s32): Likewise.
5361 (vmull_high_u8): Likewise.
5362 (vmull_high_u16): Likewise.
5363 (vmull_high_u32): Likewise.
5364 (vmull_n_s16): Likewise.
5365 (vmull_n_s32): Likewise.
5366 (vmull_n_u16): Likewise.
5367 (vmull_n_u32): Likewise.
5368 (vmull_p8): Likewise.
5369 (vmull_s8): Likewise.
5370 (vmull_s16): Likewise.
5371 (vmull_s32): Likewise.
5372 (vmull_u8): Likewise.
5373 (vmull_u16): Likewise.
5374 (vmull_u32): Likewise.
5375 (vpadal_s8): Likewise.
5376 (vpadal_s16): Likewise.
5377 (vpadal_s32): Likewise.
5378 (vpadal_u8): Likewise.
5379 (vpadal_u16): Likewise.
5380 (vpadal_u32): Likewise.
5381 (vpadalq_s8): Likewise.
5382 (vpadalq_s16): Likewise.
5383 (vpadalq_s32): Likewise.
5384 (vpadalq_u8): Likewise.
5385 (vpadalq_u16): Likewise.
5386 (vpadalq_u32): Likewise.
5387 (vpaddl_s8): Likewise.
5388 (vpaddl_s16): Likewise.
5389 (vpaddl_s32): Likewise.
5390 (vpaddl_u8): Likewise.
5391 (vpaddl_u16): Likewise.
5392 (vpaddl_u32): Likewise.
5393 (vpaddlq_s8): Likewise.
5394 (vpaddlq_s16): Likewise.
5395 (vpaddlq_s32): Likewise.
5396 (vpaddlq_u8): Likewise.
5397 (vpaddlq_u16): Likewise.
5398 (vpaddlq_u32): Likewise.
5399 (vpaddq_s8): Likewise.
5400 (vpaddq_s16): Likewise.
5401 (vpaddq_s32): Likewise.
5402 (vpaddq_s64): Likewise.
5403 (vpaddq_u8): Likewise.
5404 (vpaddq_u16): Likewise.
5405 (vpaddq_u32): Likewise.
5406 (vpaddq_u64): Likewise.
5407 (vqdmulh_n_s16): Likewise.
5408 (vqdmulh_n_s32): Likewise.
5409 (vqdmulhq_n_s16): Likewise.
5410 (vqdmulhq_n_s32): Likewise.
5411 (vqmovn_high_s16): Likewise.
5412 (vqmovn_high_s32): Likewise.
5413 (vqmovn_high_s64): Likewise.
5414 (vqmovn_high_u16): Likewise.
5415 (vqmovn_high_u32): Likewise.
5416 (vqmovn_high_u64): Likewise.
5417 (vqmovun_high_s16): Likewise.
5418 (vqmovun_high_s32): Likewise.
5419 (vqmovun_high_s64): Likewise.
5420 (vqrdmulh_n_s16): Likewise.
5421 (vqrdmulh_n_s32): Likewise.
5422 (vqrdmulhq_n_s16): Likewise.
5423 (vqrdmulhq_n_s32): Likewise.
5424 (vrsqrte_u32): Likewise.
5425 (vrsqrteq_u32): Likewise.
5426 (vtst_p8): Likewise.
5427 (vtst_p16): Likewise.
5428 (vtst_p64): Likewise.
5429 (vtstq_p8): Likewise.
5430 (vtstq_p16): Likewise.
5431 (vtstq_p64): Likewise.
5432 (vaddlv_s32): Likewise.
5433 (vaddlv_u32): Likewise.
5434 (vqtbl1_p8): Likewise.
5435 (vqtbl1_s8): Likewise.
5436 (vqtbl1_u8): Likewise.
5437 (vqtbl1q_p8): Likewise.
5438 (vqtbl1q_s8): Likewise.
5439 (vqtbl1q_u8): Likewise.
5440 (vqtbx1_s8): Likewise.
5441 (vqtbx1_u8): Likewise.
5442 (vqtbx1_p8): Likewise.
5443 (vqtbx1q_s8): Likewise.
5444 (vqtbx1q_u8): Likewise.
5445 (vqtbx1q_p8): Likewise.
5446 (vtbl1_s8): Likewise.
5447 (vtbl1_u8): Likewise.
5448 (vtbl1_p8): Likewise.
5449 (vtbl2_s8): Likewise.
5450 (vtbl2_u8): Likewise.
5451 (vtbl2_p8): Likewise.
5452 (vtbl3_s8): Likewise.
5453 (vtbl3_u8): Likewise.
5454 (vtbl3_p8): Likewise.
5455 (vtbl4_s8): Likewise.
5456 (vtbl4_u8): Likewise.
5457 (vtbl4_p8): Likewise.
5458 (vtbx2_s8): Likewise.
5459 (vtbx2_u8): Likewise.
5460 (vtbx2_p8): Likewise.
5461 (vld1_f32): Likewise.
5462 (vld1_f64): Likewise.
5463 (vld1_p8): Likewise.
5464 (vld1_p16): Likewise.
5465 (vld1_p64): Likewise.
5466 (vld1_s8): Likewise.
5467 (vld1_s16): Likewise.
5468 (vld1_s32): Likewise.
5469 (vld1_s64): Likewise.
5470 (vld1_u8): Likewise.
5471 (vld1_u16): Likewise.
5472 (vld1_u32): Likewise.
5473 (vld1_u64): Likewise.
5474 (vld1q_f32): Likewise.
5475 (vld1q_f64): Likewise.
5476 (vld1q_p8): Likewise.
5477 (vld1q_p16): Likewise.
5478 (vld1q_p64): Likewise.
5479 (vld1q_s8): Likewise.
5480 (vld1q_s16): Likewise.
5481 (vld1q_s32): Likewise.
5482 (vld1q_s64): Likewise.
5483 (vld1q_u8): Likewise.
5484 (vld1q_u16): Likewise.
5485 (vld1q_u32): Likewise.
5486 (vld1q_u64): Likewise.
5487 (vpmax_s8): Likewise.
5488 (vpmax_s16): Likewise.
5489 (vpmax_s32): Likewise.
5490 (vpmax_u8): Likewise.
5491 (vpmax_u16): Likewise.
5492 (vpmax_u32): Likewise.
5493 (vpmaxq_s8): Likewise.
5494 (vpmaxq_s16): Likewise.
5495 (vpmaxq_s32): Likewise.
5496 (vpmaxq_u8): Likewise.
5497 (vpmaxq_u16): Likewise.
5498 (vpmaxq_u32): Likewise.
5499 (vpmax_f32): Likewise.
5500 (vpmaxq_f32): Likewise.
5501 (vpmaxq_f64): Likewise.
5502 (vpmaxqd_f64): Likewise.
5503 (vpmaxs_f32): Likewise.
5504 (vpmaxnm_f32): Likewise.
5505 (vpmaxnmq_f32): Likewise.
5506 (vpmaxnmq_f64): Likewise.
5507 (vpmaxnmqd_f64): Likewise.
5508 (vpmaxnms_f32): Likewise.
5509 (vpmin_s8): Likewise.
5510 (vpmin_s16): Likewise.
5511 (vpmin_s32): Likewise.
5512 (vpmin_u8): Likewise.
5513 (vpmin_u16): Likewise.
5514 (vpmin_u32): Likewise.
5515 (vpminq_s8): Likewise.
5516 (vpminq_s16): Likewise.
5517 (vpminq_s32): Likewise.
5518 (vpminq_u8): Likewise.
5519 (vpminq_u16): Likewise.
5520 (vpminq_u32): Likewise.
5521 (vpmin_f32): Likewise.
5522 (vpminq_f32): Likewise.
5523 (vpminq_f64): Likewise.
5524 (vpminqd_f64): Likewise.
5525 (vpmins_f32): Likewise.
5526 (vpminnm_f32): Likewise.
5527 (vpminnmq_f32): Likewise.
5528 (vpminnmq_f64): Likewise.
5529 (vpminnmqd_f64): Likewise.
5530 (vpminnms_f32): Likewise.
5531 (vmla_f32): Likewise.
5532 (vmlaq_f32): Likewise.
5533 (vmlaq_f64): Likewise.
5534 (vmls_f32): Likewise.
5535 (vmlsq_f32): Likewise.
5536 (vmlsq_f64): Likewise.
5537 (vqtbl2_s8): Likewise.
5538 (vqtbl2_u8): Likewise.
5539 (vqtbl2_p8): Likewise.
5540 (vqtbl2q_s8): Likewise.
5541 (vqtbl2q_u8): Likewise.
5542 (vqtbl2q_p8): Likewise.
5543 (vqtbl3_s8): Likewise.
5544 (vqtbl3_u8): Likewise.
5545 (vqtbl3_p8): Likewise.
5546 (vqtbl3q_s8): Likewise.
5547 (vqtbl3q_u8): Likewise.
5548 (vqtbl3q_p8): Likewise.
5549 (vqtbl4_s8): Likewise.
5550 (vqtbl4_u8): Likewise.
5551 (vqtbl4_p8): Likewise.
5552 (vqtbl4q_s8): Likewise.
5553 (vqtbl4q_u8): Likewise.
5554 (vqtbl4q_p8): Likewise.
5555 (vqtbx2_s8): Likewise.
5556 (vqtbx2_u8): Likewise.
5557 (vqtbx2_p8): Likewise.
5558 (vqtbx2q_s8): Likewise.
5559 (vqtbx2q_u8): Likewise.
5560 (vqtbx2q_p8): Likewise.
5561 (vqtbx3_s8): Likewise.
5562 (vqtbx3_u8): Likewise.
5563 (vqtbx3_p8): Likewise.
5564 (vqtbx3q_s8): Likewise.
5565 (vqtbx3q_u8): Likewise.
5566 (vqtbx3q_p8): Likewise.
5567 (vqtbx4_s8): Likewise.
5568 (vqtbx4_u8): Likewise.
5569 (vqtbx4_p8): Likewise.
5570 (vqtbx4q_s8): Likewise.
5571 (vqtbx4q_u8): Likewise.
5572 (vqtbx4q_p8): Likewise.
5573 (vrev16_p8): Likewise.
5574 (vrev16_s8): Likewise.
5575 (vrev16_u8): Likewise.
5576 (vrev16q_p8): Likewise.
5577 (vrev16q_s8): Likewise.
5578 (vrev16q_u8): Likewise.
5579 (vrev32_p8): Likewise.
5580 (vrev32_p16): Likewise.
5581 (vrev32_s8): Likewise.
5582 (vrev32_s16): Likewise.
5583 (vrev32_u8): Likewise.
5584 (vrev32_u16): Likewise.
5585 (vrev32q_p8): Likewise.
5586 (vrev32q_p16): Likewise.
5587 (vrev32q_s8): Likewise.
5588 (vrev32q_s16): Likewise.
5589 (vrev32q_u8): Likewise.
5590 (vrev32q_u16): Likewise.
5591 (vrev64_f32): Likewise.
5592 (vrev64_p8): Likewise.
5593 (vrev64_p16): Likewise.
5594 (vrev64_s8): Likewise.
5595 (vrev64_s16): Likewise.
5596 (vrev64_s32): Likewise.
5597 (vrev64_u8): Likewise.
5598 (vrev64_u16): Likewise.
5599 (vrev64_u32): Likewise.
5600 (vrev64q_f32): Likewise.
5601 (vrev64q_p8): Likewise.
5602 (vrev64q_p16): Likewise.
5603 (vrev64q_s8): Likewise.
5604 (vrev64q_s16): Likewise.
5605 (vrev64q_s32): Likewise.
5606 (vrev64q_u8): Likewise.
5607 (vrev64q_u16): Likewise.
5608 (vrev64q_u32): Likewise.
5609 (vsha1cq_u32): Likewise.
5610 (vsha1mq_u32): Likewise.
5611 (vsha1pq_u32): Likewise.
5612 (vsha1h_u32): Likewise.
5613 (vsha1su0q_u32): Likewise.
5614 (vsha1su1q_u32): Likewise.
5615 (vsha256hq_u32): Likewise.
5616 (vsha256h2q_u32): Likewise.
5617 (vsha256su0q_u32): Likewise.
5618 (vsha256su1q_u32): Likewise.
5619 (vmull_p64): Likewise.
5620 (vmull_high_p64): Likewise.
5621 (vsqrt_f32): Likewise.
5622 (vsqrtq_f32): Likewise.
5623 (vsqrt_f64): Likewise.
5624 (vsqrtq_f64): Likewise.
5625 (vst1_f32): Likewise.
5626 (vst1_f64): Likewise.
5627 (vst1_p8): Likewise.
5628 (vst1_p16): Likewise.
5629 (vst1_p64): Likewise.
5630 (vst1_s8): Likewise.
5631 (vst1_s16): Likewise.
5632 (vst1_s32): Likewise.
5633 (vst1_s64): Likewise.
5634 (vst1_u8): Likewise.
5635 (vst1_u16): Likewise.
5636 (vst1_u32): Likewise.
5637 (vst1_u64): Likewise.
5638 (vst1q_f32): Likewise.
5639 (vst1q_f64): Likewise.
5640 (vst1q_p8): Likewise.
5641 (vst1q_p16): Likewise.
5642 (vst1q_p64): Likewise.
5643 (vst1q_s8): Likewise.
5644 (vst1q_s16): Likewise.
5645 (vst1q_s32): Likewise.
5646 (vst1q_s64): Likewise.
5647 (vst1q_u8): Likewise.
5648 (vst1q_u16): Likewise.
5649 (vst1q_u32): Likewise.
5650 (vst1q_u64): Likewise.
5651 (vst1_s64_x2): Likewise.
5652 (vst1_u64_x2): Likewise.
5653 (vst1_f64_x2): Likewise.
5654 (vst1_s8_x2): Likewise.
5655 (vst1_p8_x2): Likewise.
5656 (vst1_s16_x2): Likewise.
5657 (vst1_p16_x2): Likewise.
5658 (vst1_s32_x2): Likewise.
5659 (vst1_u8_x2): Likewise.
5660 (vst1_u16_x2): Likewise.
5661 (vst1_u32_x2): Likewise.
5662 (vst1_f16_x2): Likewise.
5663 (vst1_f32_x2): Likewise.
5664 (vst1_p64_x2): Likewise.
5665 (vst1q_s8_x2): Likewise.
5666 (vst1q_p8_x2): Likewise.
5667 (vst1q_s16_x2): Likewise.
5668 (vst1q_p16_x2): Likewise.
5669 (vst1q_s32_x2): Likewise.
5670 (vst1q_s64_x2): Likewise.
5671 (vst1q_u8_x2): Likewise.
5672 (vst1q_u16_x2): Likewise.
5673 (vst1q_u32_x2): Likewise.
5674 (vst1q_u64_x2): Likewise.
5675 (vst1q_f16_x2): Likewise.
5676 (vst1q_f32_x2): Likewise.
5677 (vst1q_f64_x2): Likewise.
5678 (vst1q_p64_x2): Likewise.
5679 (vst1_s64_x3): Likewise.
5680 (vst1_u64_x3): Likewise.
5681 (vst1_f64_x3): Likewise.
5682 (vst1_s8_x3): Likewise.
5683 (vst1_p8_x3): Likewise.
5684 (vst1_s16_x3): Likewise.
5685 (vst1_p16_x3): Likewise.
5686 (vst1_s32_x3): Likewise.
5687 (vst1_u8_x3): Likewise.
5688 (vst1_u16_x3): Likewise.
5689 (vst1_u32_x3): Likewise.
5690 (vst1_f16_x3): Likewise.
5691 (vst1_f32_x3): Likewise.
5692 (vst1_p64_x3): Likewise.
5693 (vst1q_s8_x3): Likewise.
5694 (vst1q_p8_x3): Likewise.
5695 (vst1q_s16_x3): Likewise.
5696 (vst1q_p16_x3): Likewise.
5697 (vst1q_s32_x3): Likewise.
5698 (vst1q_s64_x3): Likewise.
5699 (vst1q_u8_x3): Likewise.
5700 (vst1q_u16_x3): Likewise.
5701 (vst1q_u32_x3): Likewise.
5702 (vst1q_u64_x3): Likewise.
5703 (vst1q_f16_x3): Likewise.
5704 (vst1q_f32_x3): Likewise.
5705 (vst1q_f64_x3): Likewise.
5706 (vst1q_p64_x3): Likewise.
5707 (vst2_s64): Likewise.
5708 (vst2_u64): Likewise.
5709 (vst2_f64): Likewise.
5710 (vst2_s8): Likewise.
5711 (vst2_p8): Likewise.
5712 (vst2_s16): Likewise.
5713 (vst2_p16): Likewise.
5714 (vst2_s32): Likewise.
5715 (vst2_u8): Likewise.
5716 (vst2_u16): Likewise.
5717 (vst2_u32): Likewise.
5718 (vst2_f16): Likewise.
5719 (vst2_f32): Likewise.
5720 (vst2_p64): Likewise.
5721 (vst2q_s8): Likewise.
5722 (vst2q_p8): Likewise.
5723 (vst2q_s16): Likewise.
5724 (vst2q_p16): Likewise.
5725 (vst2q_s32): Likewise.
5726 (vst2q_s64): Likewise.
5727 (vst2q_u8): Likewise.
5728 (vst2q_u16): Likewise.
5729 (vst2q_u32): Likewise.
5730 (vst2q_u64): Likewise.
5731 (vst2q_f16): Likewise.
5732 (vst2q_f32): Likewise.
5733 (vst2q_f64): Likewise.
5734 (vst2q_p64): Likewise.
5735 (vst3_s64): Likewise.
5736 (vst3_u64): Likewise.
5737 (vst3_f64): Likewise.
5738 (vst3_s8): Likewise.
5739 (vst3_p8): Likewise.
5740 (vst3_s16): Likewise.
5741 (vst3_p16): Likewise.
5742 (vst3_s32): Likewise.
5743 (vst3_u8): Likewise.
5744 (vst3_u16): Likewise.
5745 (vst3_u32): Likewise.
5746 (vst3_f16): Likewise.
5747 (vst3_f32): Likewise.
5748 (vst3_p64): Likewise.
5749 (vst3q_s8): Likewise.
5750 (vst3q_p8): Likewise.
5751 (vst3q_s16): Likewise.
5752 (vst3q_p16): Likewise.
5753 (vst3q_s32): Likewise.
5754 (vst3q_s64): Likewise.
5755 (vst3q_u8): Likewise.
5756 (vst3q_u16): Likewise.
5757 (vst3q_u32): Likewise.
5758 (vst3q_u64): Likewise.
5759 (vst3q_f16): Likewise.
5760 (vst3q_f32): Likewise.
5761 (vst3q_f64): Likewise.
5762 (vst3q_p64): Likewise.
5763 (vst4_s64): Likewise.
5764 (vst4_u64): Likewise.
5765 (vst4_f64): Likewise.
5766 (vst4_s8): Likewise.
5767 (vst4_p8): Likewise.
5768 (vst4_s16): Likewise.
5769 (vst4_p16): Likewise.
5770 (vst4_s32): Likewise.
5771 (vst4_u8): Likewise.
5772 (vst4_u16): Likewise.
5773 (vst4_u32): Likewise.
5774 (vst4_f16): Likewise.
5775 (vst4_f32): Likewise.
5776 (vst4_p64): Likewise.
5777 (vst4q_s8): Likewise.
5778 (vst4q_p8): Likewise.
5779 (vst4q_s16): Likewise.
5780 (vst4q_p16): Likewise.
5781 (vst4q_s32): Likewise.
5782 (vst4q_s64): Likewise.
5783 (vst4q_u8): Likewise.
5784 (vst4q_u16): Likewise.
5785 (vst4q_u32): Likewise.
5786 (vst4q_u64): Likewise.
5787 (vst4q_f16): Likewise.
5788 (vst4q_f32): Likewise.
5789 (vst4q_f64): Likewise.
5790 (vst4q_p64): Likewise.
5791 (vtbx4_s8): Likewise.
5792 (vtbx4_u8): Likewise.
5793 (vtbx4_p8): Likewise.
5794 (vtrn_f32): Likewise.
5795 (vtrn_p8): Likewise.
5796 (vtrn_p16): Likewise.
5797 (vtrn_s8): Likewise.
5798 (vtrn_s16): Likewise.
5799 (vtrn_s32): Likewise.
5800 (vtrn_u8): Likewise.
5801 (vtrn_u16): Likewise.
5802 (vtrn_u32): Likewise.
5803 (vtrnq_f32): Likewise.
5804 (vtrnq_p8): Likewise.
5805 (vtrnq_p16): Likewise.
5806 (vtrnq_s8): Likewise.
5807 (vtrnq_s16): Likewise.
5808 (vtrnq_s32): Likewise.
5809 (vtrnq_u8): Likewise.
5810 (vtrnq_u16): Likewise.
5811 (vtrnq_u32): Likewise.
5812 (vrsqrte_f16): Likewise.
5813 (vrsqrteq_f16): Likewise.
5814 (vsqrt_f16): Likewise.
5815 (vsqrtq_f16): Likewise.
5816 (vabd_f16): Likewise.
5817 (vabdq_f16): Likewise.
5818 (vpadd_f16): Likewise.
5819 (vpaddq_f16): Likewise.
5820 (vpmax_f16): Likewise.
5821 (vpmaxq_f16): Likewise.
5822 (vpmaxnm_f16): Likewise.
5823 (vpmaxnmq_f16): Likewise.
5824 (vpmin_f16): Likewise.
5825 (vpminq_f16): Likewise.
5826 (vpminnm_f16): Likewise.
5827 (vpminnmq_f16): Likewise.
5828 (vrsqrts_f16): Likewise.
5829 (vrsqrtsq_f16): Likewise.
5831 2019-09-25 Richard Biener <rguenther@suse.de>
5833 PR tree-optimization/91896
5834 * tree-vect-loop.c (vectorizable_reduction): The single
5835 def-use cycle optimization cannot apply when there's more
5836 than one pattern stmt involved.
5838 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
5840 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
5841 the 'P' mode iterator, replacing the (removed) SI and DI variants.
5842 (reload_macho_picbase_<mode>): Likewise.
5844 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
5846 * config/rs6000/rs6000.md: Move darwin.md include until
5847 after the definition of the mode iterators.
5849 2019-09-23 Martin Sebor <msebor@redhat.com>
5851 PR tree-optimization/91570
5852 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
5853 non-constant minlen, maxlen and maxbound.
5855 2019-09-24 Richard Biener <rguenther@suse.de>
5857 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
5859 (_stmt_vec_info::cond_reduc_code): ... this.
5860 (_stmt_vec_info::induc_cond_initial_val): Add.
5861 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
5862 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
5863 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
5864 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
5865 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
5867 (vect_create_epilog_for_reduction): Drop special
5868 induction condition reduction params, pass in reduction code
5870 (vectorizable_reduction): Perform condition reduction kind
5871 selection only at analysis time. Adjust passing on state.
5873 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5875 * config/aarch64/aarch64.md (mov<mode>): Don't call
5876 aarch64_split_dimode_const_store on volatile MEM.
5878 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
5880 * config/aarch64/aarch64-option-extensions.def (fp16fml):
5881 Update hwcap string for fp16fml.
5883 2019-09-24 Jakub Jelinek <jakub@redhat.com>
5886 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
5887 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
5889 2019-09-24 Martin Liska <mliska@suse.cz>
5891 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
5892 instead of if-elseif-elseif-...
5893 * gimple-expr.c (extract_ops_from_tree): Likewise.
5894 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5895 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
5897 2019-09-24 Martin Jambor <mjambor@suse.cz>
5900 * ipa-param-manipulation.c (carry_over_param): Make a method of
5901 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
5902 in case of a context mismatch.
5903 (ipa_param_body_adjustments::common_initialization): Adjust call to
5905 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
5906 private method carry_over_param.
5908 2019-09-24 Martin Jambor <mjambor@suse.cz>
5911 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
5913 2019-09-24 Richard Biener <rguenther@suse.de>
5915 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
5918 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5920 * config/arm/t-arm (arm-builtins.o): Add dependency on
5921 arm_acle_builtins.def.
5923 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
5926 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
5927 canonical CONST_INTs. Use gen_rtvec.
5929 2019-09-23 Richard Biener <rguenther@suse.de>
5931 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
5932 avoid adjusting by + 0 or * 1.
5933 (vect_create_epilog_for_reduction): Get reduction code only
5934 when necessary. Deal with adjustment_def only when necessary.
5936 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
5938 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
5941 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5944 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
5947 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
5949 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
5950 code. Merge code blocks with common conditionals. Use declared
5951 macro instead of a magic number for PIC level.
5953 2019-09-21 Martin Sebor <msebor@redhat.com>
5956 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
5957 Simplify computation of the offset of the referenced subobject.
5959 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
5961 * config/darwin.c (machopic_legitimize_pic_address): Check
5964 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
5966 * ira-conflicts.c (can_use_same_reg_p): New function.
5967 (process_reg_shuffles): Take an insn parameter. Ignore cases
5968 in which input operand op_num could seemingly never be allocated
5969 to the same register as the destination.
5970 (add_insn_allocno_copies): Update call to process_reg_shuffles.
5972 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
5974 * simplify-rtx.c (neg_const_int): Replace with...
5975 (neg_poly_int_rtx): ...this new function.
5976 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
5977 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
5978 (simplify_plus_minus): Likewise for constant terms here.
5980 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
5982 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
5983 HOST_WIDE_PRINT_UNSIGNED.
5985 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
5987 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
5990 2019-09-20 Maya Rashish <coypu@sdf.org>
5993 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
5994 Define to speculation_safe_value_not_needed.
5996 2019-09-20 Richard Biener <rguenther@suse.de>
5997 Uros Bizjak <ubizjak@gmail.com>
6000 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
6002 (general_scalar_chain::convert_op): Force not suitable memory
6003 operands to a register.
6005 2019-09-20 Richard Biener <rguenther@suse.de>
6007 PR tree-optimization/91821
6008 * tree-vect-loop.c (check_reduction_path): Check we can compute
6010 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
6011 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
6012 operands in canonical order.
6013 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6014 STMT_VINFO_REDUC_IDX.
6015 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
6016 (STMT_VINFO_REDUC_IDX): Likewise.
6018 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
6021 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6023 2019-09-20 Richard Biener <rguenther@suse.de>
6025 PR tree-optimization/91822
6026 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
6028 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
6029 for reduc_index in nested cycles, adjust vectorizable_condition
6031 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
6033 (vect_analyze_stmt): Adjust.
6034 (vect_transform_stmt): Likewise.
6036 2019-09-20 Richard Biener <rguenther@suse.de>
6039 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
6040 Ensure there's a sequence point between allocating the new register
6041 and passing a reference to a reg via regno_reg_rtx.
6043 2019-09-20 Martin Jambor <mjambor@suse.cz>
6045 * coretypes.h (cgraph_edge): Declare.
6046 * ipa-param-manipulation.c: Rewrite.
6047 * ipa-param-manipulation.h: Likewise.
6048 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
6049 (OBJS): Added ipa-sra.o.
6050 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
6051 and ref_p, added fields param_adjustments and performed_splits.
6052 (struct cgraph_clone_info): Remove ags_to_skip and
6053 combined_args_to_skip, new field param_adjustments.
6054 (cgraph_node::create_clone): Changed parameters to use
6055 ipa_param_adjustments.
6056 (cgraph_node::create_virtual_clone): Likewise.
6057 (cgraph_node::create_virtual_clone_with_body): Likewise.
6058 (tree_function_versioning): Likewise.
6059 (cgraph_build_function_type_skip_args): Removed.
6060 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
6061 using ipa_param_adjustments.
6062 (clone_of_p): Likewise.
6063 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
6064 (build_function_decl_skip_args): Likewise.
6065 (duplicate_thunk_for_node): Adjust parameters using
6066 ipa_param_body_adjustments, copy param_adjustments instead of
6068 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
6069 (cgraph_node::create_virtual_clone): Likewise.
6070 (cgraph_node::create_version_clone_with_body): Likewise.
6071 (cgraph_materialize_clone): Likewise.
6072 (symbol_table::materialize_all_clones): Likewise.
6073 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
6074 ipa_replace_map check.
6075 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
6076 (initialize_node_lattices): Make aware that some parameters might have
6077 already been removed.
6078 (want_remove_some_param_p): New function.
6079 (create_specialized_node): Convert to using ipa_param_adjustments and
6080 deal with possibly pre-existing adjustments.
6081 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
6082 (output_node_opt_summary): Do not stream removed fields. Stream
6083 parameter adjustments instead of argumetns to skip.
6084 (input_node_opt_summary): Likewise.
6085 (input_node_opt_summary): Likewise.
6086 * lto-section-in.c (lto_section_name): Added ipa-sra section.
6087 * lto-streamer.h (lto_section_type): Likewise.
6088 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
6090 (copy_decl_to_var): Declare.
6091 * tree-inline.c (update_clone_info): Do not remap old_tree.
6092 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
6093 statements, walk all extra generated statements and remap their
6095 (redirect_all_calls): Add killed SSA names to a hash set.
6096 (remap_ssa_name): Do not remap killed SSA names.
6097 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
6098 half of functionality moved to ipa_param_body_adjustments.
6099 (copy_decl_to_var): Make exported.
6100 (copy_body): Destroy killed_new_ssa_names hash set.
6101 (expand_call_inline): Remap performed splits.
6102 (update_clone_info): Likewise.
6103 (tree_function_versioning): Simplify tree_map processing. Updated to
6104 accept ipa_param_adjustments and use ipa_param_body_adjustments.
6105 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
6106 for the new interface.
6107 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
6108 (simd_clone_compute_base_data_type): Likewise.
6109 (simd_clone_init_simd_arrays): Adjust for the new interface.
6110 (simd_clone_adjust_argument_types): Likewise.
6111 (struct modify_stmt_info): Likewise.
6112 (ipa_simd_modify_stmt_ops): Likewise.
6113 (ipa_simd_modify_function_body): Likewise.
6114 (simd_clone_adjust): Likewise.
6115 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
6116 (type_internals_preclude_sra_p): Make public.
6117 * tree-sra.h: New file.
6118 * ipa-inline-transform.c (save_inline_function_body): Update to
6119 refelct new tree_function_versioning signature.
6120 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
6121 ipa_param_adjustments to get current parameter indices.
6122 (ipcp_modif_dom_walker::before_dom_children): Likewise.
6123 (ipcp_update_bits): Likewise.
6124 (ipcp_update_vr): Likewise.
6125 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
6126 * ipa-sra.c: New file.
6127 * multiple_target.c (create_target_clone): Update to reflet new type
6128 of create_version_clone_with_body.
6129 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
6130 tree_function_versioning.
6131 (modify_function): Update to reflect new type of
6132 tree_function_versioning.
6133 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
6134 * passes.def: Remove old IPA-SRA and add new one.
6135 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
6136 (make_pass_ipa_sra): Declare.
6137 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
6139 * doc/invoke.texi (ipa-sra-max-replacements): New.
6141 2019-09-19 Martin Sebor <msebor@redhat.com>
6144 * builtins.c (component_size): Correct trailing array computation,
6145 rename to component_ref_size and move...
6146 (compute_objsize): Adjust.
6147 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
6148 (builtin_access::strict): Do not consider memmove.
6149 (builtin_access::write_off): New function.
6150 (builtin_memref::builtin_memref): Initialize refsize.
6151 (builtin_memref::set_base_and_offset): Adjust refoff and compute
6153 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
6155 (builtin_access::builtin_access): Initialize dstoff to destination
6156 refeence offset here instead of in maybe_diag_overlap. Adjust
6157 referencess even to unrelated objects. Adjust sizrange of bounded
6158 string functions to reflect bound. For strcat, adjust destination
6159 sizrange by that of source.
6160 (builtin_access::strcat_overlap): Adjust offsets and sizes
6161 to reflect the increase in destination sizrange above.
6162 (builtin_access::overlap): Do not set dstoff here but instead
6163 in builtin_access::builtin_access.
6164 (check_bounds_or_overlap): Use builtin_access::write_off.
6165 (maybe_diag_access_bounds): Add argument. Add informational notes.
6166 (dump_builtin_memref, dump_builtin_access): New functions.
6167 * tree.c (component_ref_size): ...to here.
6168 * tree.h (component_ref_size): Declare.
6169 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
6170 nul in the size of the source string.
6172 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
6175 * doc/cpp.texi: Document support for extended characters in
6177 * doc/cppopts.texi: Likewise.
6179 2019-09-19 Richard Biener <rguenther@suse.de>
6181 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
6182 (check_reduction_path): New overload having the path as result.
6183 (vect_is_simple_reduction): From the detected reduction
6184 path build a SLP reduction chain if possible.
6186 2019-09-19 Richard Biener <rguenther@suse.de>
6189 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
6190 Force operand to a register if it isn't nonimmediate_operand.
6192 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6194 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
6195 * config/arm/iterators.md (optab): Add and, ior, xor entries.
6196 (logical_op): Remove code attribute.
6197 (logical_OP): Likewise.
6199 2019-09-19 Martin Liska <mliska@suse.cz>
6201 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
6204 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
6206 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
6209 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
6210 for NE comparison of TImode values.
6211 (aarch64_emit_load_exclusive): Add support for TImode.
6212 (aarch64_emit_store_exclusive): Likewise.
6213 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
6214 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
6215 Change iterator from ALLI to ALLI_TI.
6216 (@atomic_compare_and_swap<JUST_TI>): New.
6217 (@atomic_compare_and_swap<JUST_TI>_lse): New.
6218 (aarch64_load_exclusive_pair): New.
6219 (aarch64_store_exclusive_pair): New.
6220 * config/aarch64/iterators.md (JUST_TI): New.
6222 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
6223 strong_zero_p for aarch64_track_speculation; unify some code paths;
6224 use aarch64_gen_compare_reg instead of open-coding.
6226 * config/aarch64/aarch64.opt (-moutline-atomics): New.
6227 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
6228 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
6229 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
6230 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
6231 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
6232 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
6233 (atomic_<atomic_op><ALLI>): Likewise.
6234 (atomic_fetch_<atomic_op><ALLI>): Likewise.
6235 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
6236 * doc/invoke.texi: Document -moutline-atomics.
6238 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
6240 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
6241 trivial predicate for condition branch.
6242 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
6244 (compute_bb_predicates): Update predicate based on post-dominating
6246 (analyze_function_body): Calculate post-dominating information.
6248 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
6250 * tree-vectorizer.h (vectorizable_condition): Take an int
6251 reduction index instead of a boolean flag.
6252 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6253 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
6254 reductions if the reduction accumulator is the "then" rather
6255 than the "else" value.
6256 (vect_analyze_stmt): Update call accordingly.
6257 (vect_transform_stmt): Likewise.
6258 * tree-vect-loop.c (vectorizable_reduction): Likewise,
6259 asserting that the index is > 0.
6261 2019-09-19 Martin Liska <mliska@suse.cz>
6263 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
6264 (sort_congruence_classes_by_decl_uid): Likewise.
6265 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
6267 (sem_item_optimizer::merge_classes): Likewise.
6269 2019-09-19 Richard Biener <rguenther@suse.de>
6271 PR tree-optimization/91812
6272 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
6275 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
6277 * defaults.h (TARGET_UNIT): New macro.
6278 (target_unit): New type.
6279 * rtl.h (native_encode_rtx, native_decode_rtx)
6280 (native_decode_vector_rtx, subreg_size_lsb): Declare.
6281 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
6282 * rtlanal.c (subreg_lsb_1): Delete.
6283 (subreg_size_lsb): New function.
6284 * simplify-rtx.c: Include rtx-vector-builder.h
6285 (simplify_immed_subreg): Delete.
6286 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
6287 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
6289 (simplify_subreg): Use them.
6290 (test_vector_subregs_modes, test_vector_subregs_repeating)
6291 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
6292 (test_vector_subregs): New functions.
6293 (test_vector_ops): Call test_vector_subregs for integer vector
6294 modes with at least 2 elements.
6296 2019-09-19 Richard Biener <rguenther@suse.de>
6298 * tree-parloops.c (parloops_is_slp_reduction): Do not set
6299 LOOP_VINFO_OPERANDS_SWAPPED.
6300 (parloops_is_simple_reduction): Likewise.
6301 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
6302 initialize operands_swapped.
6303 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
6304 (vect_is_slp_reduction): Do not swap operands.
6305 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
6306 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
6308 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
6311 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
6312 Add avx_partial_xmm_update.
6314 2019-09-18 Jim Wilson <jimw@sifive.com>
6317 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
6318 (riscv_move_integer): Likewise.
6319 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
6320 riscv_move_integer arg.
6321 (riscv_legitimize_move): Likewise.
6322 (riscv_force_temporary): New parameter in_splitter. Don't call
6324 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
6326 (riscv_add_offset): Likewise.
6327 (riscv_split_symbol): New parameter in_splitter. Pass to
6328 riscv_force_temporary.
6329 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
6331 (riscv_move_integer): New parameter in_splitter. New local
6332 can_create_psuedo. Don't call riscv_split_integer or force_reg when
6334 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
6335 riscv_split_symbol, and riscv_force_temporary args.
6336 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
6337 riscv_move_integer arg.
6338 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
6340 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
6343 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
6344 hard register store cost to 6.
6346 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
6349 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
6350 pseudo register store cost from 3 to 6 to make it the same as
6353 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
6356 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
6357 (one_cmpldi2): Likewise.
6358 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
6359 of the constant parts is simple.
6360 * config/arm/iterators.md (LOGICAL): Add new code iterator.
6361 (logical_op): Add new code attribute.
6362 (logical_OP): Likewise.
6363 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
6364 (arm_iordi_operand): Add predicate.
6365 (arm_xordi_operand): Add predicate.
6367 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
6369 * config/arm/arm.md (maddsidi4): Remove expander.
6370 (mulsidi3adddi): Remove pattern.
6371 (mulsidi3adddi_v6): Likewise.
6372 (mulsidi3_nov6): Likewise.
6373 (mulsidi3_v6): Likewise.
6374 (umulsidi3): Remove expander.
6375 (umulsidi3_nov6): Remove pattern.
6376 (umulsidi3_v6): Likewise.
6377 (umulsidi3adddi): Likewise.
6378 (umulsidi3adddi_v6): Likewise.
6379 (<Us>mulsidi3): Add combined expander.
6380 (<Us>maddsidi4): Likewise.
6381 (<US>mull): Add combined umull and smull pattern.
6382 (<US>mlal): Likewise.
6383 * config/arm/iterators.md (Us): Add new iterator.
6385 2019-09-18 Richard Biener <rguenther@suse.de>
6387 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
6389 (vectorize_fold_left_reduction): Remove assert.
6390 (vectorizable_reduction): Also expect COND_EXPR non-reduction
6391 operand in position 2. Remove assert.
6393 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
6395 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
6396 (smulsi3_highpart_nov6): Remove pattern.
6397 (smulsi3_highpart_v6): Likewise.
6398 (umulsi3_highpart): Likewise.
6399 (umulsi3_highpart_nov6): Likewise.
6400 (umulsi3_highpart_v6): Likewise.
6401 (<US>mull_high): Add new combined multiply pattern.
6403 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
6405 * config/arm/arm.md (arm_mulsi3): Remove pattern.
6406 (arm_mulsi3_v6): Likewise.
6407 (mulsi3addsi_v6): Likewise.
6408 (mulsi3subsi): Likewise.
6409 (mul): Add new multiply pattern.
6413 2019-09-18 Richard Biener <rguenther@suse.de>
6415 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
6416 (parloops_valid_reduction_input_p): Copy from
6417 valid_reduction_input_p.
6418 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
6419 (parloops_needs_fold_left_reduction_p): Copy from
6420 needs_fold_left_reduction_p.
6421 (parloops_is_simple_reduction): Copy from
6422 vect_is_simple_reduction.
6423 (parloops_force_simple_reduction): Copy from
6424 vect_force_simple_reduction.
6425 (gather_scalar_reductions): Adjust.
6426 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
6427 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
6429 2019-09-18 Richard Biener <rguenther@suse.de>
6431 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
6432 * tree-vect-loop.c (get_initial_def_for_reduction): Make
6434 (vect_create_epilog_for_reduction): Remove dead code.
6436 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
6438 * varasm.c (assemble_real): Generate canonical const_ints.
6440 2019-09-18 Richard Biener <rguenther@suse.de>
6443 * lto-streamer-in.c (input_eh_regions): Move EH init to
6444 lto_materialize_function.
6445 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
6448 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
6450 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
6453 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
6455 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
6456 of checking specifically for INTEGER_CST.
6458 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
6460 * stor-layout.c (compute_record_mode): Operate on poly_uint64
6461 sizes instead of uhwi sizes.
6463 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
6465 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
6466 (add_const_value_attribute): Handle CONST_POLY_INT.
6468 2019-09-18 Martin Liska <mliska@suse.cz>
6470 * dbgcnt.def (store_merging): New counter.
6471 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
6472 Use it in store merging.
6474 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
6476 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
6478 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
6479 * config/arm/arm.c (arm_sched_variable_issue): New function.
6480 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
6482 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
6484 * config/arm/types.md (no_reservation): New reservation.
6485 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
6487 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
6488 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
6489 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
6490 * config/arm/arm1020e.md (1020alu_op): Likewise.
6491 * config/arm/arm1026ejs.md (alu_op): Likewise.
6492 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
6493 * config/arm/arm926ejs.md (9_alu_op): Likewise.
6494 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
6495 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
6496 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
6497 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
6498 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
6499 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
6500 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
6501 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
6502 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
6503 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
6504 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
6505 * config/arm/fa526.md (526_alu_op): Likewise.
6506 * config/arm/fa606te.md (606te_alu_op): Likewise.
6507 * config/arm/fa626te.md (626te_alu_op): Likewise.
6508 * config/arm/fa726te.md (726te_alu_op): Likewise.
6509 * config/arm/xgene1.md (xgene1_nop): Likewise.
6511 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
6513 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
6514 "no_insn" to "branch".
6516 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
6518 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
6520 2019-09-17 Richard Biener <rguenther@suse.de>
6523 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
6524 was missing generate locations only once.
6526 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
6529 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
6531 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
6532 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
6533 for switch default case using range analysis information.
6535 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
6538 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
6539 mode attributed is supported by FDPIC.
6541 2019-09-17 Richard Biener <rguenther@suse.de>
6543 PR tree-optimization/91790
6544 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
6545 use the correct DR for setting up realignment.
6547 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
6550 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
6551 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
6552 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
6553 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
6555 2019-09-16 Jason Merrill <jason@redhat.com>
6557 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
6559 2019-09-16 Martin Liska <mliska@suse.cz>
6561 * gimple-fold.c (or_comparisons_1): Remove rules moved
6563 * match.pd: ... here.
6565 2019-09-16 Martin Liska <mliska@suse.cz>
6567 * gimple-fold.c (or_comparisons_1): Remove rules
6569 * match.pd: ... here.
6571 2019-09-16 Martin Liska <mliska@suse.cz>
6573 * genmatch.c (dt_node::append_simplify): Do not print
6574 warning when we have duplicate patterns belonging
6575 to a same simplify rule.
6576 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
6577 (maybe_fold_comparisons_from_match_pd): Handle
6578 tcc_comparison as a results.
6579 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
6581 2019-09-16 Li Jia He <helijia@linux.ibm.com>
6582 Qi Feng <ffengqi@linux.ibm.com>
6585 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
6586 (x > y && x == XXX_MIN): Optimize into 'false'.
6587 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
6588 (x < y && x != XXX_MAX): Optimize into 'x < y'.
6589 (x < y && x == XXX_MAX): Optimize into 'false'.
6590 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
6591 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
6592 (x <= y || x != XXX_MIN): Optimize into 'true'.
6593 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
6594 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
6595 (x >= y || x != XXX_MAX): Optimize into 'true'.
6596 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
6598 2019-09-16 Li Jia He <helijia@linux.ibm.com>
6599 Martin Liska <mliska@suse.cz>
6601 * gimple-fold.c (and_comparisons_1): Add type as first
6603 (and_var_with_comparison): Likewise.
6604 (and_var_with_comparison_1): Likewise.
6605 (or_comparisons_1): Likewise.
6606 (or_var_with_comparison): Likewise.
6607 (or_var_with_comparison_1): Likewise.
6608 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
6609 (maybe_fold_or_comparisons): Likewise.
6610 (maybe_fold_comparisons_from_match_pd): New.
6611 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
6612 (maybe_fold_or_comparisons): Likewise.
6613 * gimple.c (gimple_size): Make it public and add num_ops argument.
6614 (gimple_init): New function.
6615 (gimple_alloc): Call gimple_init.
6616 * gimple.h (gimple_size): New.
6617 (gimple_init): Likewise.
6618 * tree-if-conv.c (fold_or_predicates): Pass type.
6619 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6620 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
6621 (optimize_vec_cond_expr): Likewise.
6622 (ovce_extract_ops): Return type of conditional expression.
6623 * tree-ssanames.c (init_ssa_name_imm_use): New.
6624 (make_ssa_name_fn): Use init_ssa_name_imm_use.
6625 * tree-ssanames.h (init_ssa_name_imm_use): New.
6627 2019-09-16 Richard Biener <rguenther@suse.de>
6629 PR tree-optimization/91756
6630 PR tree-optimization/87132
6631 * tree-ssa-alias.h (enum translate_flags): New.
6632 (get_continuation_for_phi): Use it instead of simple bool flag.
6633 (walk_non_aliased_vuses): Likewise.
6634 * tree-ssa-alias.c (maybe_skip_until): Adjust.
6635 (get_continuation_for_phi): When looking across backedges only
6636 disallow valueization.
6637 (walk_non_aliased_vuses): Adjust.
6638 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
6641 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
6644 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
6645 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
6646 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
6647 * target.def (have_count_reg_decr_p): New hook.
6648 (doloop_cost_for_generic): Likewise.
6649 (doloop_cost_for_address): Likewise.
6650 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
6651 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
6652 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
6653 * doc/tm.texi: Regenerate.
6654 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
6656 (record_group): Init doloop_p.
6657 (add_candidate_1): Add optional argument doloop, change the handlings
6659 (add_candidate): Likewise.
6660 (generic_predict_doloop_p): Update attribute.
6661 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
6662 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
6663 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
6665 (get_computation_cost): Update for doloop IV cand extra cost.
6666 (determine_group_iv_cost_cond): Update for doloop IV cand.
6667 (determine_iv_cost): Likewise.
6668 (ivopts_estimate_reg_pressure): Likewise.
6669 (may_eliminate_iv): Update handlings for doloop IV cand.
6670 (add_iv_candidate_for_doloop): New function.
6671 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
6672 (iv_ca_set_no_cp): Update for doloop IV cand.
6673 (iv_ca_set_cp): Likewise.
6674 (iv_ca_dump): Dump register cost.
6675 (find_doloop_use): New function.
6676 (analyze_and_mark_doloop_use): Likewise.
6677 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
6679 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
6682 * cse.c (cse_insn): Do not replace anything with a
6685 2019-09-13 Ian Lance Taylor <iant@golang.org>
6687 * doc/invoke.texi (Optimize Options): Fix typo.
6689 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
6691 PR tree-optimization/89386
6692 * config/i386/sse.md (smulhrs<mode>3): New expander.
6693 (smulhrsv4hi3): Ditto.
6695 2019-09-12 Richard Biener <rguenther@suse.de>
6697 PR tree-optimization/91750
6698 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
6699 in the type of the evolution.
6701 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
6703 PR tree-optimization/89386
6704 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
6705 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
6706 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
6707 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
6708 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
6709 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
6710 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
6711 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
6712 (su, r): Handle the unspecs above.
6713 (bt): New int attribute.
6714 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
6715 * internal-fn.c (first_commutative_argument): Commutativity info for
6717 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
6718 (umulhrs_optab): New optabs.
6719 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
6720 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
6721 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
6723 (vect_vect_recog_func_ptrs): Add it.
6725 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
6727 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
6730 2019-09-11 Nathan Sidwell <nathan@acm.org>
6732 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
6733 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
6735 2019-09-11 Richard Biener <rguenther@suse.de>
6737 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
6738 * lto-wrapper.c (merge_and_complain): Pick up -g.
6739 (append_compiler_options): Likewise.
6740 (run_gcc): Re-instantiate handling -g0 at link-time.
6741 * doc/invoke.texi (flto): Document debug info generation.
6743 2019-09-11 Richard Biener <rguenther@suse.de>
6745 PR tree-optimization/90387
6746 * vr-values.c (vr_values::extract_range_basic): After inlining
6747 simplify non-constant __builtin_constant_p to false.
6749 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
6751 PR rtl-optimization/89795
6752 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
6753 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
6755 2019-09-11 Jakub Jelinek <jakub@redhat.com>
6757 PR tree-optimization/91723
6758 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
6759 instead of pointer equality when checking if argument vectypes are
6763 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
6764 of get_nonzero_bits, only call it for integral types.
6766 2019-09-11 Richard Biener <rguenther@suse.de>
6769 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
6771 * match.pd: Add flag_unsafe_math_optimizations check
6772 before deciding on the widest type in a binary math operation.
6774 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6776 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
6777 and CALL_REALLY_USED_REGISTERS must be defined, and that
6778 CALL_REALLY_USED_REGISTERS is preferred.
6779 * doc/tm.texi: Regenerate.
6780 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
6781 (call_really_used_regs): Likewise.
6782 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
6783 CALL_REALLY_USED_REGISTERS are defined.
6784 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
6785 initial value if defined.
6786 (initial_call_really_used_regs): Delete.
6787 (saved_call_really_used_regs): Likewise.
6788 (CALL_REALLY_USED_REGNO_P): Likewise.
6789 (init_reg_sets): Remove handling of call_really_used_regs.
6790 (save_register_info, restore_register_info, globalize_reg): Likewise.
6791 (init_reg_sets_1): Likewise. Use call_used_regs instead of
6792 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
6793 outside operand_reg_set.
6794 (fix_register): Don't change call_used_regs if
6795 CALL_REALLY_USED_REGISTERS is defined.
6796 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
6797 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
6798 instead of call_really_used_regs.
6799 (csky_conditional_register_usage): Remove the old handling of
6800 call_used_regs and change the handling of call_really_used_regs
6801 to use call_used_regs instead.
6802 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
6803 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
6804 making a register fixed.
6805 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
6806 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
6807 instead of call_really_used_regs.
6808 (m32r_conditional_register_usage): Don't set call_used_regs when
6809 making a register fixed.
6810 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
6811 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
6812 instead of call_really_used_regs.
6813 (mips_interrupt_extra_call_saved_reg_p): Likewise.
6814 (mips_cfun_call_saved_reg_p): Likewise.
6815 (mips_swap_registers): Remove the old handling of call_used_regs
6816 and change the handling of call_really_used_regs to use call_used_regs
6818 (mips_conditional_register_usage): Likewise.
6819 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
6820 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
6821 instead of call_really_used_regs.
6822 (mn10300_get_live_callee_saved_regs): Likewise.
6823 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
6824 (mn10300_conditional_register_usage): Don't set call_used_regs when
6825 making a register fixed.
6826 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
6827 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6828 Remove the old handling of call_used_regs and change the handling
6829 of call_really_used_regs to use call_used_regs instead.
6830 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
6831 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
6832 instead of call_really_used_regs.
6833 (s390_register_info_gprtofpr, s390_register_info): Likewise.
6834 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
6835 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
6836 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
6837 (s390_conditional_register_usage): Remove the old handling of
6838 call_used_regs and change the handling of call_really_used_regs
6839 to use call_used_regs instead.
6840 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
6841 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
6842 (sh_fix_range, reg_unused_after): Likewise.
6843 (sh_conditional_register_usage): Remove the old handling of
6844 call_used_regs and change the handling of call_really_used_regs
6845 to use call_used_regs instead.
6846 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
6847 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
6848 call_used_regs when making a register fixed.
6849 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
6850 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
6851 call_used_regs when making a register fixed.
6852 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
6853 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
6854 set call_used_regs when making a register fixed.
6855 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
6856 * config/visium/visium.c (visium_conditional_register_usage): Remove
6857 the old handling of call_used_regs and change the handling of
6858 call_really_used_regs to use call_used_regs instead.
6860 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6862 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
6863 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
6864 * reginfo.c (call_used_regs): New macro.
6866 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6868 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
6870 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
6871 (bpf_expand_epilogue): Likewise.
6872 * config/c6x/c6x.c (c6x_save_reg): Likewise.
6873 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
6874 (ft32_expand_epilogue): Likewise.
6875 * config/i386/i386.c (ix86_save_reg): Likewise.
6876 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
6877 (moxie_expand_epilogue): Likewise.
6878 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
6879 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
6880 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
6882 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6884 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
6885 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
6886 instead of testing call_used_regs directly.
6887 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
6888 (aarch64_components_for_bb): Likewise.
6889 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
6890 * config/arc/arc.c (arc_must_save_register): Likewise.
6891 (arc_epilogue_uses): Likewise.
6892 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
6893 (legitimize_pic_address, callee_saved_reg_p): Likewise.
6894 (arm_compute_save_reg0_reg12_mask): Likewise.
6895 (arm_compute_save_core_reg_mask): Likewise.
6896 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
6897 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
6898 (cmse_nonsecure_entry_clear_before_return): Likewise.
6899 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
6900 (arm_expand_epilogue): Likewise.
6901 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
6902 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
6903 (_reg_unused_after): Likewise.
6904 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
6905 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
6906 (add_to_reg, hwloop_optimize): Likewise.
6907 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
6908 (bpf_expand_epilogue): Likewise.
6909 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
6910 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
6911 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
6912 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
6913 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
6914 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
6915 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
6916 * config/frv/frv.c (frv_stack_info): Likewise.
6917 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
6918 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
6919 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
6920 (move_callee_saved_registers): Likewise.
6921 * config/h8300/h8300.c (byte_reg): Likewise.
6922 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
6923 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
6924 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
6925 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
6926 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
6927 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
6928 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
6929 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
6930 * config/m32c/m32c.c (need_to_save): Likewise.
6931 * config/m68k/m68k.c (m68k_save_reg): Likewise.
6932 * config/mcore/mcore.c (calc_live_regs): Likewise.
6933 * config/microblaze/microblaze.c (microblaze_must_save_register):
6935 * config/mmix/mmix.c (mmix_local_regno): Likewise.
6936 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
6937 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
6938 (mmix_expand_epilogue): Likewise.
6939 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
6940 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
6941 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
6942 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
6943 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
6944 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
6945 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
6946 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
6947 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
6948 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
6949 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
6950 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
6951 * config/rl78/rl78.c (need_to_save): Likewise.
6952 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
6953 (rs6000_stack_info, generate_set_vrsave): Likewise.
6954 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
6955 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
6956 * config/rx/rx.c (rx_get_stack_layout): Likewise.
6957 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6958 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
6959 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
6960 (save_local_or_in_reg_p): Likewise.
6961 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
6962 (xstormy16_epilogue_uses): Likewise.
6963 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
6964 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
6965 * config/v850/v850.c (compute_register_save_size): Likewise.
6966 * config/vax/vax.c (vax_expand_prologue): Likewise.
6967 * config/visium/visium.c (visium_save_reg_p): Likewise.
6968 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
6969 * cselib.c (cselib_process_insn): Likewise.
6970 * df-scan.c (df_get_entry_block_def_set): Likewise.
6971 * function.c (aggregate_value_p): Likewise.
6972 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
6973 * ira-lives.c (process_bb_node_lives): Likewise.
6974 * ira.c (do_reload): Likewise.
6975 * lra-lives.c (process_bb_lives): Likewise.
6976 * lra-remat.c (lra_remat): Likewise.
6977 * lra.c (lra): Likewise.
6978 * postreload.c (reload_combine_recognize_pattern): Likewise.
6979 (reload_cse_move2add): Likewise.
6980 * recog.c (peep2_find_free_register): Likewise.
6981 * regrename.c (check_new_reg_p): Likewise.
6982 * reload.c (find_equiv_reg): Likewise.
6983 * reload1.c (reload, find_reg): Likewise.
6984 * sel-sched.c (init_hard_regs_data): Likewise.
6986 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6988 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
6989 regs_invalidated_by_call & ~fixed_reg_set instead of
6990 call_used_or_fixed_regs & ~fixed_reg_set.
6991 * config/sh/sh.c (output_stack_adjust): Likewise.
6993 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6995 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
6996 (call_used_reg_set): Delete.
6997 (call_used_or_fixed_regs): New macro.
6998 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
6999 of call_used_reg_set.
7000 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
7001 instead of call_used_regs.
7002 (save_call_clobbered_regs): Likewise.
7003 * cfgcleanup.c (old_insns_match_p): Likewise.
7004 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
7005 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
7007 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7008 * config/sh/sh.c (output_stack_adjust): Likewise.
7009 * final.c (collect_fn_hard_reg_usage): Likewise.
7010 * ira-build.c (ira_build): Likewise.
7011 * ira-color.c (calculate_saved_nregs): Likewise.
7012 (allocno_reload_assign, calculate_spill_cost): Likewise.
7013 * ira-conflicts.c (ira_build_conflicts): Likewise.
7014 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7015 * ira-lives.c (process_bb_node_lives): Likewise.
7016 * ira.c (setup_reg_renumber): Likewise.
7017 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
7018 * lra-constraints.c (need_for_call_save_p): Likewise.
7019 (need_for_split_p, inherit_in_ebb): Likewise.
7020 * lra-lives.c (process_bb_lives): Likewise.
7021 * lra-remat.c (call_used_input_regno_present_p): Likewise.
7022 * postreload.c (reload_combine): Likewise.
7023 * regrename.c (find_rename_reg): Likewise.
7024 * reload1.c (reload_as_needed): Likewise.
7025 * rtlanal.c (find_all_hard_reg_sets): Likewise.
7026 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7027 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7029 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
7031 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
7032 (no_caller_save_reg_set): Delete.
7033 * caller-save.c (init_caller_save): Don't initialize it.
7034 * ira-conflicts.c (ira_build_conflicts): Calculate
7035 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
7037 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
7039 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
7040 (target_hard_regs::x_savable_regs): New field.
7041 (call_fixed_reg_set): Delete.
7042 (savable_regs): New macro,
7043 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
7044 (init_reg_sets_1): Likewise. Initialize savable_regs.
7045 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
7046 for all registers. Set savable_regs instead of call_fixed_reg_set.
7047 (setup_save_areas, save_call_clobbered_regs): Replace uses of
7048 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
7049 * config/sh/sh.c (output_stack_adjust): Likewise.
7051 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
7053 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
7054 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
7055 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
7057 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
7059 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
7060 * rtlanal.c (get_call_rtx_from): Likewise.
7061 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
7062 than the pattern to get_call_rtx_from.
7063 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
7064 an rtx_insn * instead of an rtx.
7065 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
7067 2019-09-10 Martin Liska <mliska@suse.cz>
7069 * common.opt: Use newly added WarnRemoved.
7070 * config/aarch64/aarch64.opt: Likewise.
7071 * config/arm/arm.opt: Likewise.
7072 * config/i386/i386.opt: Likewise.
7073 * config/ia64/ia64.opt: Likewise.
7074 * config/rs6000/rs6000.opt: Likewise.
7075 * doc/options.texi: Document WarnRemoved properly.
7076 * dwarf2out.c (gen_producer_string): Handle renamed
7077 OPT_SPECIAL_warn_removed.
7078 * lto-opts.c (lto_write_options): Likewise.
7079 * lto-wrapper.c (merge_and_complain): Likewise.
7080 * opts-common.c (decode_cmdline_option): Likewise.
7081 (prune_options): Likewise.
7082 (read_cmdline_option): Likewise.
7083 (control_warning_option): Likewise.
7084 * opts.c (print_filtered_help): Likewise.
7085 * optc-gen.awk: Parse for WarnRemoved and make usage
7086 of Deprecated an error.
7087 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
7089 2019-09-10 Arnaud Charlet <charlet@adacore.com>
7091 * doc/install.texi: Fix syntax for html generation.
7093 2019-09-10 Jakub Jelinek <jakub@redhat.com>
7096 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
7097 the shift type to type.
7099 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7101 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
7103 (stack_protect_combined_test_insn): Likewise.
7105 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7106 Mickaël Guêné <mickael.guene@st.com>
7108 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
7109 * config/arm/arm.md (FDPIC_REGNUM): New constant.
7110 (load_tp_soft_fdpic): New pattern.
7111 (load_tp_soft): Disable in FDPIC mode.
7113 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7114 Mickaël Guêné <mickael.guene@st.com>
7116 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
7117 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
7118 (arm_call_tls_get_addr): Add FDPIC support.
7119 (legitimize_tls_address): Likewise.
7120 (arm_emit_tls_decoration): Likewise.
7122 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7123 Mickaël Guêné <mickael.guene@st.com>
7125 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
7127 (arm_trampoline_init): Likewise.
7128 (arm_trampoline_adjust_address): Likewise.
7129 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
7131 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7132 Mickaël Guêné <mickael.guene@st.com>
7134 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
7135 (legitimize_pic_address): Enforce binding rules on function
7136 pointers in FDPIC mode.
7137 (arm_assemble_integer): Likewise.
7139 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7140 Mickaël Guêné <mickael.guene@st.com>
7142 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
7143 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
7146 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7147 Mickaël Guêné <mickael.guene@st.com>
7149 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
7152 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7153 Mickaël Guêné <mickael.guene@st.com>
7155 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
7157 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
7159 * config/arm/arm.c (arm_option_override): Define pic register to
7161 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
7162 have no decl or go through PLT.
7163 (calculate_pic_address_constant): New function.
7164 (legitimize_pic_address): Call calculate_pic_address_constant.
7165 (arm_load_pic_register): Handle TARGET_FDPIC.
7166 (arm_is_segment_info_known): New function.
7167 (arm_pic_static_addr): Add support for FDPIC.
7168 (arm_load_function_descriptor): New function.
7169 (arm_emit_call_insn): Add support for FDPIC.
7170 (arm_assemble_integer): Add support for FDPIC.
7171 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
7172 Define. (FDPIC_REGNUM): New define.
7173 * config/arm/arm.md (call): Add support for FDPIC.
7174 (call_value): Likewise.
7175 (restore_pic_register_after_call): New pattern.
7176 (untyped_call): Disable if FDPIC.
7177 (untyped_return): Likewise.
7178 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
7180 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7181 Mickaël Guêné <mickael.guene@st.com>
7183 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
7184 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
7185 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
7186 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
7187 (CC1_SPEC): Use FDPIC_CC1_SPEC.
7188 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
7189 * config/arm/uclinuxfdpiceabi.h: New file.
7191 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7193 * config.gcc: Handle *-*-uclinuxfdpiceabi.
7195 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7196 Mickaël Guêné <mickael.guene@st.com>
7198 * config/arm/arm.opt: Add -mfdpic option.
7199 * doc/invoke.texi: Add documentation for -mfdpic.
7201 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7203 * expmed.c (extract_bit_field): Update function comment
7205 * expr.c (expand_expr_real): Update function comment
7207 (expand_misaligned_mem_ref): New helper function.
7208 (expand_expr_real_2): Use expand_misaligned_mem_ref.
7209 Remove duplicate assignment to "base" at case MEM_REF.
7210 Remove a shadowed variable "unsignedp" at case VCE.
7212 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7214 * regset.h (regs_invalidated_by_call_regset): Delete.
7215 (fixed_reg_set_regset): Likewise.
7216 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
7217 (fixed_reg_set_regset, persistent_obstack): Likewise.
7218 (init_reg_sets_1, globalize_reg): Update accordingly.
7219 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
7220 instead of a bitmap.
7221 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
7222 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
7223 instead of regs_invalidated_by_call_regset.
7224 (df_lr_confluence_n, df_md_confluence_n): Likewise.
7225 * df-scan.c (df_scan_start_dump): Likewise.
7226 * dse.c (copy_fixed_regs): Likewise.
7227 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
7229 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7231 * array-traits.h: New file.
7232 * coretypes.h (array_traits, bitmap_view): New types.
7233 * bitmap.h: Include "array-traits.h"
7234 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
7235 (base_bitmap_view, bitmap_view): New classes.
7236 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
7237 * hard-reg-set.h: Include array-traits.h.
7238 (array_traits<HARD_REG_SET>): New struct.
7239 * regset.h (IOR_REG_SET_HRS): New macro.
7240 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
7241 rather than iterating over each hard register.
7242 * sched-deps.c (sched_analyze_insn): Likewise.
7243 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
7245 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7247 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
7248 instead of a HARD_REG_SET *.
7249 * ira-build.c (ior_hard_reg_conflicts): Likewise.
7250 (ira_build): Update call accordingly.
7251 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
7253 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7255 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
7256 (HARD_REG_SET::operator!=): Likewise.
7257 (hard_reg_set_equal_p): Delete.
7258 * cfgcleanup.c (old_insns_match_p): Use == instead of
7259 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
7260 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
7261 (add_allocno_hard_regs_to_forest): Likewise.
7262 (setup_allocno_available_regs_num): Likewise.
7263 * ira.c (setup_pressure_classes): Likewise.
7264 (setup_allocno_and_important_classes): Likewise.
7265 (setup_reg_class_relations): Likewise.
7266 * lra-lives.c (process_bb_lives): Likewise.
7267 * reg-stack.c (change_stack, convert_regs_1): Likewise.
7269 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7271 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
7272 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
7273 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
7274 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
7276 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
7277 * ira.c (setup_reg_renumber): Likewise.
7278 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7279 * regrename.c (regrename_find_superclass): Likewise.
7280 * reload1.c (find_reg): Likewise.
7282 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7284 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
7285 * caller-save.c (setup_save_areas): Use "&~" instead of
7286 AND_COMPL_HARD_REG_SET.
7287 (save_call_clobbered_regs): Likewise.
7288 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
7290 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7291 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
7292 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
7293 * config/mips/mips.c (mips_class_max_nregs): Likewise.
7294 (mips_conditional_register_usage): Likewise.
7295 * config/sh/sh.c (output_stack_adjust): Likewise.
7296 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
7297 (setup_profitable_hard_regs): Likewise.
7298 (get_conflict_and_start_profitable_regs): Likewise.
7299 * ira-conflicts.c (print_allocno_conflicts): Likewise.
7300 (ira_build_conflicts): Likewise.
7301 * ira-costs.c (restrict_cost_classes): Likewise.
7302 (setup_regno_cost_classes_by_aclass): Likewise.
7303 * ira-lives.c (process_bb_node_lives): Likewise.
7304 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
7305 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
7306 (setup_allocno_and_important_classes, setup_class_translate_array)
7307 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
7309 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7310 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
7311 (process_alt_operands, inherit_in_ebb): Likewise.
7312 * lra-eliminations.c (update_reg_eliminate): Likewise.
7313 * lra-lives.c (process_bb_lives): Likewise.
7314 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
7315 * resource.c (find_dead_or_set_registers): Likewise.
7316 (mark_target_live_regs): Likewise.
7317 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
7318 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7319 (implicit_clobber_conflict_p): Likewise.
7320 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7321 (try_shrink_wrapping): Likewise.
7323 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7325 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
7326 (HARD_REG_SET::operator|=): Likewise.
7327 (IOR_HARD_REG_SET): Delete.
7328 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
7330 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
7331 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
7332 * final.c (collect_fn_hard_reg_usage): Likewise.
7333 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
7334 * ira-build.c (merge_hard_reg_conflicts): Likewise.
7335 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
7336 (propagate_some_info_from_allocno): Likewise.
7337 (copy_info_to_removed_store_destinations): Likewise.
7338 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
7339 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
7340 (fast_allocation): Likewise.
7341 * ira-conflicts.c (ira_build_conflicts): Likewise.
7342 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
7343 (process_bb_node_lives): Likewise.
7344 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
7345 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7346 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
7347 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
7348 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
7349 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
7350 (process_bb_lives): Likewise.
7351 * lra-spills.c (assign_spill_hard_regs): Likewise.
7352 * postreload.c (reload_combine): Likewise.
7353 * reginfo.c (init_reg_sets_1): Likewise.
7354 * regrename.c (merge_overlapping_regs, find_rename_reg)
7355 (merge_chains): Likewise.
7356 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
7357 (find_reload_regs, finish_spills, choose_reload_regs_init)
7358 (emit_reload_insns): Likewise.
7359 * reorg.c (redundant_insn): Likewise.
7360 * resource.c (find_dead_or_set_registers, mark_set_resources)
7361 (mark_target_live_regs): Likewise.
7362 * rtlanal.c (find_all_hard_reg_sets): Likewise.
7363 * sched-deps.c (sched_analyze_insn): Likewise.
7364 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7365 (find_best_reg_for_expr): Likewise.
7366 * shrink-wrap.c (try_shrink_wrapping): Likewise.
7368 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7370 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
7371 (HARD_REG_SET::operator&): Likewise.
7372 (AND_HARD_REG_SET): Delete.
7373 * caller-save.c (setup_save_areas): Use "&" instead of
7375 (save_call_clobbered_regs): Likewise.
7376 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
7377 * config/m32c/m32c.c (reduce_class): Likewise.
7378 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
7379 * final.c (get_call_reg_set_usage): Likewise.
7380 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
7381 (setup_left_conflict_sizes_p): Likewise.
7382 * ira-conflicts.c (print_allocno_conflicts): Likewise.
7383 (ira_build_conflicts): Likewise.
7384 * ira-costs.c (restrict_cost_classes): Likewise.
7385 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
7386 (setup_reg_class_relations): Likewise.
7387 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
7388 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
7389 * resource.c (find_dead_or_set_registers): Likewise.
7390 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7392 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7394 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
7395 (COMPL_HARD_REG_SET): Delete.
7396 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
7397 of COMPL_HARD_REG_SET.
7398 (try_rename_operands): Likewise.
7399 * config/sh/sh.c (push_regs): Likewise.
7400 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7401 * lra-constraints.c (contains_reg_p): Likewise.
7402 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
7404 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7406 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
7407 * caller-save.c (save_call_clobbered_regs): Use assignment instead
7408 of COPY_HARD_REG_SET.
7409 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
7410 (epiphany_conditional_register_usage): Likewise.
7411 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7412 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
7413 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
7414 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
7415 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
7416 * config/mips/mips.c (mips_class_max_nregs): Likewise.
7417 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
7418 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
7419 * config/sh/sh.c (output_stack_adjust): Likewise.
7420 * final.c (collect_fn_hard_reg_usage): Likewise.
7421 (get_call_reg_set_usage): Likewise.
7422 * ira-build.c (ira_create_object, remove_low_level_allocnos)
7423 (ira_flattening): Likewise.
7424 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
7425 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
7426 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
7427 (ira_reassign_pseudos): Likewise.
7428 * ira-conflicts.c (print_allocno_conflicts): Likewise.
7429 (ira_build_conflicts): Likewise.
7430 * ira-costs.c (restrict_cost_classes): Likewise.
7431 (setup_regno_cost_classes_by_aclass): Likewise.
7432 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
7433 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
7434 (setup_stack_reg_pressure_class, setup_pressure_classes)
7435 (setup_allocno_and_important_classes, setup_class_translate_array)
7436 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
7437 (ira_setup_eliminable_regset): Likewise.
7438 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7439 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
7440 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
7441 (process_alt_operands, inherit_in_ebb): Likewise.
7442 * lra-lives.c (process_bb_lives): Likewise.
7443 * lra-spills.c (assign_spill_hard_regs): Likewise.
7444 * lra.c (lra): Likewise.
7445 * mode-switching.c (new_seginfo): Likewise.
7446 * postreload.c (reload_combine): Likewise.
7447 * reg-stack.c (straighten_stack): Likewise.
7448 * reginfo.c (save_register_info, restore_register_info): Likewise.
7449 (init_reg_sets_1, record_subregs_of_mode): Likewise
7450 * regrename.c (create_new_chain, rename_chains): Likewise.
7451 * reload1.c (order_regs_for_reload, find_reg): Likewise.
7452 (find_reload_regs): Likewise.
7453 * resource.c (find_dead_or_set_registers): Likewise.
7454 (mark_target_live_regs): Likewise.
7455 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7457 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7459 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
7460 (note_pattern_stores): Declare.
7461 (note_stores): Take an rtx_insn *.
7462 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
7463 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
7464 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
7465 (note_stores): Take an rtx_insn * as argument and process
7466 CALL_INSN_FUNCTION_USAGE. Rename old function to...
7467 (note_pattern_stores): ...this.
7468 (find_first_parameter_load): Pass the insn rather than
7469 its pattern to note_stores.
7470 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
7471 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
7472 (insert_one_insn): Likewise.
7473 * combine.c (combine_instructions): Likewise.
7474 (likely_spilled_retval_p): Likewise.
7475 (try_combine): Use note_pattern_stores instead of note_stores.
7476 (record_dead_and_set_regs): Pass the insn rather than its pattern
7478 (reg_dead_at_p): Likewise.
7479 * config/bfin/bfin.c (workaround_speculation): Likewise.
7480 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
7482 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
7483 instead of note_stores.
7484 (frv_optimize_membar_local): Pass the insn rather than its pattern
7486 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
7487 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
7488 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
7489 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
7490 (mips_reorg_process_insns): Likewise.
7491 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
7492 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
7494 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
7495 its pattern to note_stores.
7496 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
7498 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
7499 the insn to note_stores.
7500 (prescan_insns_for_dce): Update call accordingly.
7501 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
7503 * df-problems.c (can_move_insns_across): Likewise.
7504 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
7505 * function.c (assign_parm_setup_reg): Likewise.
7506 * gcse-common.c (record_last_mem_set_info_common): Likewise.
7507 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
7508 (single_set_gcse): Likewise.
7509 * ira.c (validate_equiv_mem): Likewise.
7510 (update_equiv_regs): Use note_pattern_stores rather than note_stores
7512 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
7513 pattern to note_stores.
7514 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7515 * loop-iv.c (simplify_using_initial_values): Likewise.
7516 * mode-switching.c (optimize_mode_switching): Likewise.
7517 * optabs.c (emit_libcall_block_1): Likewise.
7518 (expand_atomic_compare_and_swap): Likewise.
7519 * postreload-gcse.c (load_killed_in_block_p): Likewise.
7520 (record_opr_changes): Likewise. Remove explicit handling of
7521 CALL_INSN_FUNCTION_USAGE.
7522 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
7523 * regcprop.c (kill_clobbered_values): Likewise.
7524 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
7526 * regrename.c (build_def_use): Likewise.
7527 * reload1.c (reload): Use note_pattern_stores instead of note_stores
7528 for mark_not_eliminable.
7529 (reload_as_needed): Pass the insn rather than its pattern
7531 (emit_output_reload_insns): Likewise.
7532 * resource.c (mark_target_live_regs): Likewise.
7533 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
7534 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
7535 instead of note_stores.
7536 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
7537 its pattern to note_stores.
7538 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
7539 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
7541 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7543 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
7544 than a #define. Use a structure rather than an array as the
7545 fallback definition. Remove special cases for low array sizes.
7546 (const_hard_reg_set): New typedef.
7547 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
7548 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
7549 (hard_reg_set_empty_p): Likewise.
7550 (SET_HARD_REG_BIT): Use a function rather than a macro to
7551 handle the case in which HARD_REG_SET is a structure.
7552 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
7553 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
7554 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
7555 (IOR_COMPL_HARD_REG_SET): Likewise.
7556 (hard_reg_set_iterator::pset): Constify the pointer target.
7557 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
7558 of a "const HARD_REG_SET". Update the handling of non-integer
7560 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
7561 * reload.h: Likewise.
7562 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
7563 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
7564 of a "const HARD_REG_SET".
7565 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
7566 (range_in_hard_reg_set_p): Likewise.
7567 * ira-costs.c (restrict_cost_classes): Likewise.
7568 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
7569 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
7570 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
7571 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
7572 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
7573 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
7574 take an unsigned int and open-code the HARD_REG_SET operations.
7576 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
7578 * Makefile.in (OBJS): Remove bt-load.o.
7579 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
7580 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
7581 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
7582 document that the option no longer does anything.
7583 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
7584 * target.def (branch_target_register_class): Delete.
7585 (branch_target_register_callee_saved): Likewise.
7586 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7587 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
7588 * doc/tm.texi: Regenerate.
7589 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
7590 (make_pass_branch_target_load_optimize2): Likewise.
7591 * passes.def (pass_branch_target_load_optimize1): Likewise.
7592 (pass_branch_target_load_optimize2): Likewise.
7593 * targhooks.h (default_branch_target_register_class): Likewise.
7594 * targhooks.c (default_branch_target_register_class): Likewise.
7595 * opt-suggestions.c (test_completion_valid_options): Remove
7596 -fbtr-bb-exclusive from the list of test options.
7597 * bt-load.c: Remove.
7599 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
7601 * match.pd: Add flag_unsafe_math_optimizations check
7602 before deciding on the widest type in a binary math operation.
7604 2019-09-09 Martin Liska <mliska@suse.cz>
7606 * config/i386/i386.opt: Update comment of removed
7607 options that are preserved only for backward
7610 2019-09-09 Jakub Jelinek <jakub@redhat.com>
7613 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
7617 * config/i386/avxintrin.h (__v32qs): New typedef.
7618 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
7621 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
7623 * doc/invoke.texi (Option Summary): Cover eBPF.
7624 (eBPF Options): New section.
7625 * doc/extend.texi (BPF Built-in Functions): Likewise.
7626 (BPF Kernel Helpers): Likewise.
7628 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
7630 * config.gcc: Support for bpf-*-* targets.
7631 * common/config/bpf/bpf-common.c: New file.
7632 * config/bpf/t-bpf: Likewise.
7633 * config/bpf/predicates.md: Likewise.
7634 * config/bpf/constraints.md: Likewise.
7635 * config/bpf/bpf.opt: Likewise.
7636 * config/bpf/bpf.md: Likewise.
7637 * config/bpf/bpf.h: Likewise.
7638 * config/bpf/bpf.c: Likewise.
7639 * config/bpf/bpf-protos.h: Likewise.
7640 * config/bpf/bpf-opts.h: Likewise.
7641 * config/bpf/bpf-helpers.h: Likewise.
7642 * config/bpf/bpf-helpers.def: Likewise.
7644 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
7646 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7649 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
7651 * opt-functions.awk (integer_range_info): Make sure values are in
7652 numeric context before operating with them.
7654 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
7656 * genemit.c (gen_split): Print the filename and line number where the
7657 splitter (or peephole2) was defined, to the dump file.
7659 2019-09-07 Jakub Jelinek <jakub@redhat.com>
7661 PR tree-optimization/91665
7662 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
7663 incompatible with the type of PHI result.
7665 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
7668 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
7669 gen_unaligned_storedi for 4-byte aligned addresses.
7671 2019-09-06 Jim Wilson <jimw@sifive.com>
7673 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
7676 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
7678 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
7680 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
7682 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
7683 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
7685 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
7688 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
7689 cost of SSE->integer and integer->SSE moves from 2 to 6.
7692 2019-09-06 Jakub Jelinek <jakub@redhat.com>
7694 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
7695 before testing TYPE_TRANSPARENT_AGGR.
7696 * calls.c (initialize_argument_information, load_register_parameters):
7699 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
7701 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
7703 (cmp_ior): Likewise.
7705 2019-09-06 Martin Liska <mliska@suse.cz>
7707 * doc/match-and-simplify.texi: Separate tuples with ;.
7709 2019-09-06 Martin Liska <mliska@suse.cz>
7712 * Makefile.in: Remove tlink.o.
7713 * collect2.c (do_link): New function isolated
7716 * collect2.h (do_tlink): Remove declaration of do_tlink.
7717 * doc/extend.texi: Remove documentation of -frepo.
7718 * doc/invoke.texi: Likewise.
7719 * doc/sourcebuild.texi: Remove cleanup-repo-files.
7722 2019-09-05 Jakub Jelinek <jakub@redhat.com>
7723 Jim Wilson <jimw@sifive.com>
7726 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
7727 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
7728 paradoxical_subreg_p (operands[0]).
7729 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
7730 use as intermediate value.
7732 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
7734 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
7735 (sync_compare_and_swap<mode>_insn): Likewise.
7737 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
7740 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
7741 without movmisalign optab.
7743 2019-09-05 Jakub Jelinek <jakub@redhat.com>
7748 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
7749 types, use type of their first field instead of type of
7752 2019-09-05 Richard Biener <rguenther@suse.de>
7754 PR rtl-optimization/91656
7755 * postreload-gcse.c (record_last_mem_set_info): Revert addition
7758 2019-09-05 Richard Biener <rguenther@suse.de>
7761 * tree-inline.c (declare_return_variable): Mark the return
7762 slot as addressable after building an address of it.
7764 2019-09-05 Arnaud Charlet <charlet@adacore.com>
7766 * doc/install.texi: Update and clarify requirements to build GNAT.
7768 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
7771 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
7772 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
7773 call to be in memory.
7774 (pass_expand::execute): Call discover_nonconstant_array_refs before
7775 setting currently_expanding_to_rtl.
7777 2019-09-04 Caroline Tice <cmtice@google.com>
7779 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
7782 2019-09-04 Marek Polacek <polacek@redhat.com>
7784 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
7786 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
7789 * config/i386/i386.c (inline_secondary_memory_needed): Return true
7790 for QI and HImode moves between SSE and general registers.
7792 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7795 * doc/invoke.texi: Document -Wenum-conversion.
7797 2019-09-04 Richard Biener <rguenther@suse.de>
7799 PR rtl-optimization/36262
7800 * postreload-gcse.c: Include intl.h and gcse.h.
7801 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
7802 to avoid linear list walk.
7803 (record_last_mem_set_info): Gate off if not computing transparentness.
7804 (get_bb_avail_insn): If transparentness isn't computed give up
7806 (gcse_after_reload_main): Skip compute_transp and extended PRE
7807 if gcse_or_cprop_is_too_expensive says so.
7809 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7811 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
7813 (msp430_select_section): Handle decls with the "noinit" attribute with
7814 default_elf_select_section.
7815 Handle SECCAT_RODATA_MERGE_* section types with
7816 default_elf_select_section.
7817 Add comments about handling of unsupported section types.
7818 (msp430_section_type_flags): Remove handling of the noinit section.
7820 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7822 * config/msp430/msp430.c (msp430_attr): Remove warnings about
7823 conflicting msp430-specific attributes.
7824 (msp430_section_attr): Likewise.
7825 Add warnings about conflicts with generic "noinit" and "section"
7827 Fix grammar in -mlarge error message.
7828 (msp430_data_attr): Rename to msp430_persist_attr.
7829 Add warnings about conflicts with generic "noinit" and "section"
7831 Add warning for when variable is not initialized.
7832 Chain conditionals which prevent the attribute being added.
7833 (ATTR_EXCL): New helper.
7834 (attr_reent_exclusions): New exclusion table.
7835 (attr_naked_exclusions): Likewise.
7836 (attr_crit_exclusions): Likewise.
7837 (attr_lower_exclusions): Likewise.
7838 (attr_upper_exclusions): Likewise.
7839 (attr_either_exclusions): Likewise.
7840 (attr_persist_exclusions): Likewise.
7841 (msp430_attribute_table): Update with exclusion rules.
7842 (msp430_output_aligned_decl_common): Don't output common symbol if decl
7845 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7847 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
7848 (msp430_handle_generic_attribute): New function.
7849 * doc/tm.texi: Regenerate.
7850 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
7851 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
7852 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
7853 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
7855 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
7857 PR tree-optimization/91504
7858 * match.pd: Add ((~a & b) ^a) --> (a | b).
7860 2019-09-03 Jakub Jelinek <jakub@redhat.com>
7863 * config/i386/i386-expand.c (split_double_mode): If there is more than
7864 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
7865 already split matching MEM operand instead of calling adjust_address
7868 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
7870 * config.gcc: Obsolete spu target. Remove references to spu.
7871 * configure.ac: Remove references to spu.
7872 * configure: Regenerate.
7873 * config/spu/: Remove directory.
7874 * common/config/spu/: Remove directory.
7876 * doc/extend.texi: Remove references to spu.
7877 * doc/invoke.texi: Likewise.
7878 * doc/md.texi: Likewise.
7879 * doc/sourcebuild.texi: Likewise.
7881 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7886 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
7887 and SSA_NAME referring to CONSTANT_P correctly.
7889 2019-09-03 Richard Biener <rguenther@suse.de>
7891 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
7892 (vn_nary_op_insert): Likewise.
7893 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
7894 (vn_nary_op_lookup): Likewise.
7895 (vn_nary_op_insert): Likewise.
7897 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
7899 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
7900 (*op0, 1) instead of XEXP (*op1, 0).
7902 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7904 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
7905 (aarch64_fjcvtzs): New define_insn.
7906 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
7907 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
7909 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
7910 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
7911 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7912 __ARM_FEATURE_JCVT where appropriate.
7913 * config/aarch64/arm_acle.h (__jcvt): Define.
7915 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7917 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
7918 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
7919 (aarch64_<frintnzs_op><mode>): New define_insn.
7920 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
7921 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7922 __ARM_FEATURE_FRINT when appropriate.
7923 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
7924 frint32x, frint64z, frint64x.
7925 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
7926 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
7927 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
7928 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
7929 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
7930 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
7931 * config/aarch64/iterators.md (VSFDF): Define.
7932 (FRINTNZX): Likewise.
7933 (frintnzs_op): Likewise.
7935 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
7937 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
7938 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
7940 * config/aarch64/aarch64-tune.md: Regenerated.
7941 * doc/invoke.texi: Document the new processors.
7943 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7945 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
7949 (sve2-sm4): Likewise.
7951 (svesha3): Likewise.
7952 (svebitperm): Likewise.
7954 2019-09-03 Jakub Jelinek <jakub@redhat.com>
7955 Richard Biener <rguenther@suse.de>
7957 PR tree-optimization/91597
7958 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
7959 BIT_AND_EXPR optimization for pointers, even if both operand
7960 ranges don't include NULL, the result can be NULL.
7962 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7965 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
7966 (non_mem_decl_p): ...this.
7967 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
7968 (expand_assignment): Call mem_ref_referes_to_non_mem_p
7969 unconditionally as before.
7971 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
7974 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
7975 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
7976 * tree.def (LTGT_EXPR): Likewise.
7977 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
7979 2019-09-02 Jakub Jelinek <jakub@redhat.com>
7982 * fold-const.c (range_check_type): For enumeral and boolean
7983 type, pass 1 to type_for_size langhook instead of
7984 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
7985 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
7986 (build_range_check): Don't call unsigned_type_for for pointer types.
7987 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
7988 range_check_type result.
7990 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
7992 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
7993 (replace_ref): Do not replace a chain of only two candidates which are
7994 valid memory references.
7996 2019-09-02 Martin Liska <mliska@suse.cz>
7998 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
7999 Bail out when we'll end up with the same number of clusters as
8001 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
8002 (jump_table_cluster::can_be_handled): Remove the guard
8003 as it's already handled in ::is_enabled. Allocate output
8004 after early bail out.
8006 2019-09-02 Martin Liska <mliska@suse.cz>
8008 PR gcov-profile/91601
8009 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
8010 (path_contains_zero_or_negative_cycle_arc): ... this and handle
8011 also negative edges.
8012 (circuit): Handle also negative edges as they can happen
8015 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
8018 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
8019 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
8020 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
8022 2019-09-01 Jakub Jelinek <jakub@redhat.com>
8025 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
8026 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
8027 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
8031 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
8032 GIMPLE_ASM TREE_LIST operands.
8034 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8036 * doc/generic.texi (Unary and Binary Expressions): Mark up
8037 an instance of TYPE_MIN.
8039 2019-08-31 Stafford Horne <shorne@gmail.com>
8041 * config/or1k/constraints.md (t): New constraint.
8042 * config/or1k/or1k.h (GOT_REGS): New register class.
8043 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
8045 2019-08-30 Jim Wilson <jimw@sifive.com>
8047 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
8048 and -fpic and -mplt then disable -msave-restore and warn.
8050 2019-08-30 Martin Sebor <msebor@redhat.com>
8053 * tree-ssa-strlen.c (handle_store): Use a fallback location if
8054 the statement doesn't have one.
8055 * gimple-pretty-print.c (percent_G_format): Same.
8058 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
8059 before using them to validate MEM_REF offset.
8061 2019-08-30 Marek Polacek <polacek@redhat.com>
8063 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
8065 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8067 * config/arm/arm.md (unaligned_loaddi,
8068 unaligned_storedi): New unspec insn patterns.
8069 * config/arm/neon.md (unaligned_storev8qi): Likewise.
8070 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
8071 and unaligned_storedi for 4-byte aligned memory.
8072 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
8073 4-byte aligned memory.
8075 2019-08-30 Martin Jambor <mjambor@suse.cz>
8077 tree-optimization/91579
8078 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
8079 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
8081 (arg_needs_copy_p): Removed.
8082 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
8084 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
8086 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
8088 * config/i386/i386-features.c
8089 (general_scalar_chain::compute_convert_gain):
8090 Correct cost for double-word shifts.
8091 (general_scalar_to_vector_candidate_p): Reject count operands
8092 greater or equal to mode bitsize.
8094 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
8096 * config/i386/i386.c (inline_secondary_memory_needed): Return true
8097 for moves between SSE and non-general registers and between
8098 mask and non-general registers.
8099 (ix86_register_move_cost): Remove stalled comment.
8101 2019-08-29 Richard Biener <rguenther@suse.de>
8103 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
8104 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
8106 2019-08-29 Richard Biener <rguenther@suse.de>
8109 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
8110 Do not emit scalar copies for debug-insns, instead replace
8111 their uses with the reg copy used in the chain or reset them
8112 if there is a reaching definition outside of the chain as well.
8114 2019-08-29 Jakub Jelinek <jakub@redhat.com>
8117 * config/i386/i386-expand.c (expand_vec_perm_movs,
8118 expand_vec_perm_blend, expand_vec_perm_vpermil,
8119 expand_vec_perm_pshufb, expand_vec_perm_1,
8120 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
8121 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
8122 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
8123 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
8124 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
8125 comments - replace ix86_expand_vec_perm_builtin_1 with
8126 ix86_expand_vec_perm_const_1.
8127 (expand_vec_perm2_vperm2f128_vblend): New function.
8128 (ix86_expand_vec_perm_const_1): New forward declaration. Call
8129 expand_vec_perm2_vperm2f128_vblend as last resort.
8130 (canonicalize_perm): Formatting fix.
8132 PR tree-optimization/91351
8133 * tree-cfg.c (generate_range_test): Use range_check_type instead of
8135 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
8136 range_check_type returns NULL.
8137 * tree-switch-conversion.c (switch_conversion::build_one_array):
8138 Use range_check_type instead of unsigned_type_for, don't perform
8139 linear opt if it returns NULL.
8140 (bit_test_cluster::find_bit_tests): Formatting fix.
8141 (bit_test_cluster::emit): Use range_check_type instead of
8143 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
8146 2019-08-29 Richard Biener <rguenther@suse.de>
8148 PR tree-optimization/91568
8149 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
8150 (vect_update_max_nunits): Add overload for poly_uint64.
8151 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
8152 (vect_build_slp_tree): Record max_nunits into the subtree
8153 and merge it upwards.
8154 (vect_print_slp_tree): Print max_nunits.
8156 2019-08-28 Marek Polacek <polacek@redhat.com>
8158 Implement P1152R4: Deprecating some uses of volatile.
8160 * doc/invoke.texi: Document -Wvolatile.
8162 2019-08-28 Marek Polacek <polacek@redhat.com>
8164 PR c++/91360 - Implement C++20 P1143R2: constinit.
8165 * doc/invoke.texi: Document -Wc++20-compat.
8167 2019-08-28 Martin Sebor <msebor@redhat.com>
8169 PR tree-optimization/91457
8170 * builtins.c (component_size): New function.
8171 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
8172 * builtins.h (compute_objsize): Add argument.
8173 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
8174 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
8175 (vrp_prop::check_mem_ref): Same.
8176 (vrp_prop::search_for_addr_array): Set no-warning bit.
8177 (check_array_bounds): Same.
8179 2019-08-28 Martin Sebor <msebor@redhat.com>
8182 * opts-common.c (option_enabled): Correct checking for language
8185 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
8187 * config/i386/i386.c (ix86_register_move_cost): Do not
8188 limit the cost of moves to/from XMM register to minimum 8.
8190 2019-08-28 Martin Jambor <mjambor@suse.cz>
8193 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
8194 checking assert a normal assert to test it really is redundant.
8195 * ipa-prop.c (compute_complex_assign_jump_func): Removed
8197 (update_jump_functions_after_inlining): Removed combining unary
8198 arithmetic operations with an ancestor jump function.
8199 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
8202 2019-08-28 Richard Biener <rguenther@suse.de>
8204 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
8207 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8208 Richard Biener <rguenther@suse.de>
8210 * expr.c (expand_assignment): Handle misaligned DECLs.
8211 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
8212 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
8214 (assign_parm_setup_stack): Allocate properly aligned stack slots.
8215 * varasm.c (build_constant_desc): Align constants of misaligned types.
8216 * config/arm/predicates.md (aligned_operand): New predicate.
8217 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
8218 aligned_operand to check restrictions on memory addresses.
8219 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
8220 * config/arm/vec-common.md (mov<VALL>): Likewise.
8222 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8225 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
8226 V_128 iterator instead of VI_128.
8228 2019-08-28 Martin Liska <mliska@suse.cz>
8230 PR tree-optimization/90970
8231 * builtins.c (check_access): Remove assignment to maxread
8232 as it hasn't been used since when it was introduced in r255755.
8234 2019-08-27 Martin Sebor <msebor@redhat.com>
8236 PR tree-optimization/91567
8237 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
8239 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
8242 2019-08-27 Jeff Law <law@redhat.com>
8244 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
8245 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
8247 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
8250 * config/i386/i386-features.c (convert_scalars_to_vector):
8251 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
8252 crtl->stack_realign_processed. Update crtl->drap_reg by calling
8253 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
8254 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
8256 2019-08-27 Richard Biener <rguenther@suse.de>
8258 * config/i386/i386-features.h
8259 (general_scalar_chain::~general_scalar_chain): Add.
8260 (general_scalar_chain::insns_conv): New bitmap.
8261 (general_scalar_chain::n_sse_to_integer): New.
8262 (general_scalar_chain::n_integer_to_sse): Likewise.
8263 (general_scalar_chain::make_vector_copies): Adjust signature.
8264 * config/i386/i386-features.c
8265 (general_scalar_chain::general_scalar_chain): Outline,
8266 initialize new members.
8267 (general_scalar_chain::~general_scalar_chain): New.
8268 (general_scalar_chain::mark_dual_mode_def): Record insns
8269 we need to insert conversions at and count them.
8270 (general_scalar_chain::compute_convert_gain): Account
8271 for conversion instructions at chain boundary.
8272 (general_scalar_chain::make_vector_copies): Generate a single
8273 copy for a def by a specific insn.
8274 (general_scalar_chain::convert_registers): First populate
8275 defs_map, then make copies at out-of chain insns.
8277 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
8279 * config/arm/arm.md (stack_protect_set_insn): Add security-related
8281 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
8283 2019-08-27 Martin Liska <mliska@suse.cz>
8285 * cgraph.c (cgraph_node::remove): Remove dead assignment before
8287 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
8288 Enclose in anonymous namespace.
8289 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
8290 hard_register initialization in braces.
8291 * tree-vrp.h (value_range_base::supports_type_p): Return false
8292 for function with boolean return type.
8294 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
8296 * config/i386/i386.c (emit_i387_cw_initialization)
8297 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
8299 2019-08-26 Martin Sebor <msebor@redhat.com>
8302 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
8303 (sprintf_dom_walker): Remove class.
8304 (get_int_range): Make argument const.
8305 (directive::fmtfunc, directive::set_precision): Same.
8306 (format_none): Same.
8307 (build_intmax_type_nodes): Same.
8308 (adjust_range_for_overflow): Same.
8309 (format_floating): Same.
8310 (format_character): Same.
8311 (format_string): Same.
8312 (format_plain): Same.
8313 (get_int_range): Cast away constness.
8314 (format_integer): Same.
8315 (get_string_length): Call get_range_strlen_dynamic. Handle
8316 null lendata.maxbound.
8317 (should_warn_p): Adjust argument scope qualifier.
8319 (format_directive): Same.
8320 (parse_directive): Same.
8321 (is_call_safe): Same.
8322 (try_substitute_return_value): Same.
8323 (sprintf_dom_walker::handle_printf_call): Rename...
8324 (handle_printf_call): ...to this. Initialize target to host charmap
8325 here instead of in pass_sprintf_length::execute.
8326 (struct call_info): Make global.
8327 (sprintf_dom_walker::compute_format_length): Make global.
8328 (sprintf_dom_walker::handle_gimple_call): Same.
8329 * passes.def (pass_sprintf_length): Replace with pass_strlen.
8330 * print-rtl.c (print_pattern): Reduce the number of spaces to
8331 avoid -Wformat-truncation.
8332 * tree-pass.h (make_pass_warn_printf): New function.
8333 * tree-ssa-strlen.c (strlen_optimize): New variable.
8334 (get_string_length): Add comments.
8335 (get_range_strlen_dynamic): New function.
8336 (check_and_optimize_call): New function.
8337 (handle_integral_assign): New function.
8338 (strlen_check_and_optimize_stmt): Factor code out into
8339 strlen_check_and_optimize_call and handle_integral_assign.
8340 (strlen_dom_walker::evrp): New member.
8341 (strlen_dom_walker::before_dom_children): Use evrp member.
8342 (strlen_dom_walker::after_dom_children): Use evrp member.
8343 (printf_strlen_execute): New function.
8344 (pass_strlen::gate): Update to handle printf calls.
8345 (dump_strlen_info): New function.
8346 (pass_data_warn_printf): New variable.
8347 (pass_warn_printf): New class.
8348 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
8349 (handle_printf_call): Same.
8350 * tree-vrp.c (value_range_base::type): Adjust assertion.
8351 * vr-values.c (vr_values::update_value_range): Use type of the first
8352 argument rather than the second.
8354 2019-08-26 Richard Biener <rguenther@suse.de>
8356 * config/i386/i386-features.c (general_remove_non_convertible_regs):
8358 (convert_scalars_to_vector): Do not call it.
8360 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
8361 Uros Bizjak <ubizjak@gmail.com>
8363 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
8364 CASE_MATHFN_FLOATN for roundeven.
8365 * config/i386/i386.c (ix86_i387_mode_needed): Add case
8367 (ix86_mode_needed): Likewise.
8368 (ix86_mode_after): Likewise.
8369 (ix86_mode_entry): Likewise.
8370 (ix86_mode_exit): Likewise.
8371 (ix86_emit_mode_set): Likewise.
8372 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
8373 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
8374 (ix86_entity): Add I387_ROUNDEVEN.
8375 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
8376 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
8377 (define_int_iterator): Likewise.
8378 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
8379 (define_constant): Define ROUND_ROUNDEVEN mode.
8380 (define_attr): Add roundeven mode for i387_cw.
8381 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
8382 * internal-fn.def (ROUNDEVEN): New builtin function.
8383 * optabs.def (roundeven_optab): New optab.
8385 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
8387 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
8389 * builtins.def: Added function definitions for roundeven function
8391 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
8392 function call. Adjust condition for floor, ceil, trunc and round.
8393 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
8394 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
8395 (integer_valued_real_call_p): Added case for roundeven function.
8396 * real.c (is_even): New function. Returns true if real number is even,
8397 otherwise returns false.
8398 (is_halfway_below): New function. Returns true if real number is
8399 halfway between two integers, else return false.
8400 (real_roundeven): New function. Round real number to nearest integer,
8401 rounding halfway cases towards even.
8402 * real.h (real_value): Added descriptive comments. Added function
8403 declaration for roundeven function.
8404 * doc/extend.texi (Other Builtins): List roundeven variants among
8405 functions which can be handled as builtins.
8407 2019-08-26 Richard Biener <rguenther@suse.de>
8411 * config/i386/i386-features.h (general_scalar_chain::defs_map):
8413 (general_scalar_chain::replace_with_subreg): Remove.
8414 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
8415 (general_scalar_chain::convert_reg): Adjust signature.
8416 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
8417 iterate over all defs of a reg.
8418 (general_scalar_chain::replace_with_subreg): Remove.
8419 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
8420 (general_scalar_chain::make_vector_copies): Populate defs_map,
8421 place copy only after defs that are used as vectors in the chain.
8422 (general_scalar_chain::convert_reg): Emit a copy for a specific
8423 def in a specific instruction.
8424 (general_scalar_chain::convert_op): All reg uses are converted here.
8425 (general_scalar_chain::convert_insn): Emit copies for scalar
8426 uses of defs here. Replace uses with the copies we created.
8427 Replace and convert the def. Adjust REG_DEAD notes, remove
8428 REG_EQUIV/EQUAL notes.
8429 (general_scalar_chain::convert_registers): Only handle copies
8430 into the chain here.
8432 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
8434 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
8436 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
8438 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
8439 Add nop_convert case.
8440 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
8441 Fold all statements if requested.
8442 * tree-ssa-propagate.h (class substitute_and_fold_engine):
8443 Allow to fold all statements.
8444 * tree-vrp.c (class vrp_folder):
8445 Let substitute_and_fold_engine fold all statements.
8447 2019-08-26 Richard Biener <rguenther@suse.de>
8449 PR tree-optimization/91526
8450 * passes.def: Note that after late FRE we do TODO_update_address_taken.
8451 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
8452 TODO_update_address_taken.
8454 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
8456 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
8459 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8461 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
8462 machine mode for unspec_volatile operand.
8464 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8466 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
8467 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
8468 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
8469 (prefer_neon_for_64bits): Remove.
8470 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
8471 (tune_params): Remove PREF_NEON_64_FALSE uses.
8472 (arm_option_override): Remove prefer_neon selection code.
8473 (arm_print_tune_info): Remove prefer_neon_for_64bits.
8474 * gcc/config/arm/arm-protos.h (tune_params): Remove
8475 prefer_neon_for_64bits.
8476 (prefer_neon_for_64bits): Remove.
8478 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
8481 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
8482 and issue any diagnostics needed before collecting the pre-PCH
8485 2019-08-23 Jakub Jelinek <jakub@redhat.com>
8488 * common.opt (fexcess-precision=): Add Optimization flag. Use
8489 flag_excess_precision variable instead of
8490 flag_excess_precision_cmdline.
8491 * flags.h (class target_flag_state): Remove x_flag_excess_precision
8493 (flag_excess_precision): Don't define.
8494 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
8495 flag_excess_precision_cmdline. Remove comment.
8496 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
8497 and x_flag_excess_precision instead of
8498 frontend_set_flag_excess_precision_cmdline and
8499 x_flag_excess_precision_cmdline.
8500 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
8501 x_flag_excess_precision_cmdline.
8502 * toplev.c (init_excess_precision): Remove.
8503 (lang_dependent_init_target): Don't call it.
8505 2019-08-23 Martin Liska <mliska@suse.cz>
8507 * lto-wrapper.c (run_gcc): When setting jobserver
8508 set also parallel to 1. This was done so before r273908.
8510 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
8512 * config/arm/arm-cpus.in (cortex-m35p): New entry.
8513 (cortex-a76ae): Likewise.
8514 (cortex-a77): Likewise
8515 * config/arm/arm-tables.opt: Regenerate.
8516 * config/arm/arm-tune.md: Likewise.
8517 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
8518 cortex-a77 CPU options.
8520 2019-08-23 Martin Liska <mliska@suse.cz>
8522 * profile.c (instrument_values): Do not set
8524 * tree-profile.c (gimple_gen_interval_profiler): Remove
8526 (gimple_gen_pow2_profiler): Likewise.
8527 (gimple_gen_topn_values_profiler): Likewise.
8528 (gimple_gen_ic_profiler): Likewise.
8529 (gimple_gen_time_profiler): Likewise.
8530 (gimple_gen_average_profiler): Likewise.
8531 (gimple_gen_ior_profiler): Likewise.
8532 * value-prof.c (dump_histogram_value): Use default
8533 in switch statement instead of HIST_TYPE_MAX.
8534 (stream_in_histogram_value): Likewise.
8535 (gimple_duplicate_stmt_histograms): Do not
8536 use NULL for implicitly set arguments.
8537 (gimple_divmod_values_to_profile): Do not use
8539 (gimple_indirect_call_to_profile): Likewise.
8540 (gimple_find_values_to_profile): Use implicit
8541 function call arguments.
8542 * value-prof.h (gimple_alloc_histogram_value):
8544 (gimple_gen_interval_profiler): Remove last argument.
8545 (gimple_gen_pow2_profiler): Likewise.
8546 (gimple_gen_topn_values_profiler): Likewise.
8547 (gimple_gen_ic_profiler): Likewise.
8548 (gimple_gen_time_profiler): Likewise.
8549 (gimple_gen_average_profiler): Likewise.
8550 (gimple_gen_ior_profiler): Likewise.
8552 2019-08-22 Martin Sebor <msebor@redhat.com>
8555 * builtins.c (c_strlen): Rename argument and introduce new local.
8556 Set no-warning bit on original argument.
8557 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
8558 Fold empty and zero constructors into empty strings.
8559 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
8560 for missing initializers.
8561 * tree.c (build_string_literal): Handle optional argument.
8562 * tree.h (build_string_literal): Add defaulted argument.
8563 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
8564 no-warning bit on original expression.
8566 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
8569 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
8570 and UNSPEC_DARN_RAW.
8571 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
8573 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
8574 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
8575 (darn): Use an unspec_volatile, and UNSPECV_DARN.
8577 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
8579 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
8580 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
8581 * config/rs6000/rs6000.md (unspec): ... here.
8582 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
8583 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
8584 cmpeqb, *cmpeqb_internal): Delete, move to...
8585 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
8586 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
8587 cmpeqb, *cmpeqb_internal): ... here.
8589 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8591 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
8592 intrinsics if __ARM_FP.
8593 Use __ARM_FEATURE_CRC32 ifdef guard.
8595 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
8597 * config/arm/arm.md (neon_for_64bits): Remove.
8598 (avoid_neon_for_64bits): Remove.
8599 (arm_adddi3): Always split early.
8600 (arm_subdi3): Always split early.
8601 (negdi2): Remove Neon expansion.
8602 (split zero_extend): Split before reload.
8603 (split sign_extend): Split before reload.
8605 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
8607 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
8608 (qhs_extenddi_cstr): Likewise.
8609 * config/arm/arm.md (ashldi3): Always expand early.
8610 (ashlsi3): Likewise.
8611 (ashrsi3): Likewise.
8612 (zero_extend<mode>di2): Remove Neon variants.
8613 (extend<mode>di2): Likewise.
8614 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
8615 (signed_shift_di3_neon): Likewise.
8616 (unsigned_shift_di3_neon): Likewise.
8617 (ashrdi3_neon_imm_noclobber): Likewise.
8618 (lshrdi3_neon_imm_noclobber): Likewise.
8619 (<shift>di3_neon): Likewise.
8620 (split extend): Remove DI extend split patterns.
8622 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
8624 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
8625 (split not): Add DImode not splitter.
8626 (anddi3): Remove pattern.
8627 (anddi3_insn): Likewise.
8628 (anddi_zesidi_di): Likewise.
8629 (anddi_sesdi_di): Likewise.
8630 (anddi_notdi_di): Likewise.
8631 (anddi_notzesidi_di): Likewise.
8632 (anddi_notsesidi_di): Likewise.
8634 (iordi3_insn): Likewise.
8635 (iordi_zesidi_di): Likewise.
8636 (iordi_sesidi_di): Likewise.
8638 (xordi3_insn): Likewise.
8639 (xordi_sesidi_di): Likewise.
8640 (xordi_zesidi_di): Likewise.
8641 (one_cmpldi2): Likewise.
8642 (one_cmpldi2_insn): Likewise.
8643 * config/arm/constraints.md: Remove De, Df, Dg constraints.
8644 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
8646 (iwmmxt_xordi3): Likewise.
8647 (iwmmxt_anddi3): Likewise.
8648 * config/arm/neon.md (orndi3_neon): Remove pattern.
8649 (anddi_notdi_di): Likewise.
8650 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
8651 (arm_iordi_operand_neon): Likewise.
8652 (arm_xordi_operand_neon): Likewise.
8653 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
8654 (iordi_notzesidi_di): Likewise.
8655 (iordi_notdi_zesidi): Likewise.
8656 (iordi_notsesidi_di): Likewise.
8658 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
8660 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
8662 (iorsi3_compare0_scratch): Likewise.
8664 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
8666 * config/aarch64/aarch64-simd-builtins.def:
8669 * config/aarch64/aarch64-simd.md:
8670 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
8671 (aarch64_st1x4<VALLDIF:mode>): Likewise.
8672 (aarch64_ld1_x4_<mode>): Likewise.
8673 (aarch64_st1_x4_<mode>): Likewise.
8674 * config/aarch64/arm_neon.h:
8675 (vld1_s8_x4): New function.
8676 (vld1q_s8_x4): Likewise.
8677 (vld1_s16_x4): Likewise.
8678 (vld1q_s16_x4): Likewise.
8679 (vld1_s32_x4): Likewise.
8680 (vld1q_s32_x4): Likewise.
8681 (vld1_u8_x4): Likewise.
8682 (vld1q_u8_x4): Likewise.
8683 (vld1_u16_x4): Likewise.
8684 (vld1q_u16_x4): Likewise.
8685 (vld1_u32_x4): Likewise.
8686 (vld1q_u32_x4): Likewise.
8687 (vld1_f16_x4): Likewise.
8688 (vld1q_f16_x4): Likewise.
8689 (vld1_f32_x4): Likewise.
8690 (vld1q_f32_x4): Likewise.
8691 (vld1_p8_x4): Likewise.
8692 (vld1q_p8_x4): Likewise.
8693 (vld1_p16_x4): Likewise.
8694 (vld1q_p16_x4): Likewise.
8695 (vld1_s64_x4): Likewise.
8696 (vld1_u64_x4): Likewise.
8697 (vld1_p64_x4): Likewise.
8698 (vld1q_s64_x4): Likewise.
8699 (vld1q_u64_x4): Likewise.
8700 (vld1q_p64_x4): Likewise.
8701 (vld1_f64_x4): Likewise.
8702 (vld1q_f64_x4): Likewise.
8703 (vst1_s8_x4): Likewise.
8704 (vst1q_s8_x4): Likewise.
8705 (vst1_s16_x4): Likewise.
8706 (vst1q_s16_x4): Likewise.
8707 (vst1_s32_x4): Likewise.
8708 (vst1q_s32_x4): Likewise.
8709 (vst1_u8_x4): Likewise.
8710 (vst1q_u8_x4): Likewise.
8711 (vst1_u16_x4): Likewise.
8712 (vst1q_u16_x4): Likewise.
8713 (vst1_u32_x4): Likewise.
8714 (vst1q_u32_x4): Likewise.
8715 (vst1_f16_x4): Likewise.
8716 (vst1q_f16_x4): Likewise.
8717 (vst1_f32_x4): Likewise.
8718 (vst1q_f32_x4): Likewise.
8719 (vst1_p8_x4): Likewise.
8720 (vst1q_p8_x4): Likewise.
8721 (vst1_p16_x4): Likewise.
8722 (vst1q_p16_x4): Likewise.
8723 (vst1_s64_x4): Likewise.
8724 (vst1_u64_x4): Likewise.
8725 (vst1_p64_x4): Likewise.
8726 (vst1q_s64_x4): Likewise.
8727 (vst1q_u64_x4): Likewise.
8728 (vst1q_p64_x4): Likewise.
8729 (vst1_f64_x4): Likewise.
8730 (vst1q_f64_x4): Likewise.
8732 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8734 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
8736 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8737 Richard Sandiford <richard.sandiford@arm.com>
8740 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
8741 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
8743 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8746 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
8747 in reg if it fails aarch64_plus_operand predicate.
8749 2019-08-21 Richard Biener <rguenther@suse.de>
8751 PR tree-optimization/91482
8752 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
8753 BUILT_IN_ASSUME_ALIGNED calls.
8755 2019-08-21 Richard Biener <rguenther@suse.de>
8759 * config/i386/i386-features.c
8760 (general_scalar_chain::make_vector_copies): Copy stack temporary
8761 rtx when using it multiple times.
8762 (general_scalar_chain::convert_reg): Likewise.
8764 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8766 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
8768 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
8770 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
8771 catch more redundant zero initialization cases.
8772 (dse_dom_walker::dse_optimize_stmt): Likewise.
8774 2019-08-20 Richard Biener <rguenther@suse.de>
8777 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
8778 by collect2 when targetm.have_ctors_dtors which avoids dragging
8779 in temporary filenames from LTO input objects.
8781 2019-08-20 Richard Biener <rguenther@suse.de>
8783 PR tree-optimization/37242
8784 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
8785 to (T)a + (T)b if we know that a + b does not overflow.
8787 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
8789 PR rtl-optimization/91347
8790 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
8791 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
8793 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8795 * calls.h (function_arg_info): Add a pass_by_reference field,
8796 defaulting to false.
8797 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
8798 when applying pass-by-reference semantics.
8799 (initialize_argument_information): Likewise.
8800 (emit_library_call_value_1): Likewise.
8801 * function.c (assign_parm_data_one): Remove passed_pointer field.
8802 (assign_parm_find_data_types): Don't set it.
8803 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
8804 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
8805 arg.pass_by_reference instead of passed_pointer.
8807 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8809 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
8810 into a single function_arg_info, updating its fields when we
8811 apply pass-by-reference and promotion semantics. Use the
8812 function_arg_info to track the mode rather than keeping it in
8813 a separate local variable.
8814 (initialize_argument_information): Likewise. Base the final
8815 arg_to_skip on this new function_arg_info rather than creating
8816 a new one from scratch.
8818 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8820 * function.c (assign_parm_data_one): Replace passed_type,
8821 promoted_mode and named_arg with a function_arg_info field.
8822 (assign_parm_find_data_types): Remove local variables and
8823 assign directly to "data". Make data->passed_mode shadow
8824 data->arg.mode until promotion, then assign the promoted
8825 mode to data->arg.mode.
8826 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
8827 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
8828 (assign_parm_remove_parallels, assign_parm_setup_block_p)
8829 (assign_parm_setup_block, assign_parm_setup_reg)
8830 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
8831 arg.mode instead of promoted_mode, arg.type instead of passed_type
8832 and arg.named instead of named_arg. Use data->arg for
8833 function_arg_info structures that had the field values passed_type,
8834 promoted_mode and named_arg. Base other function_arg_infos on
8835 data->arg, changing the necessary properties.
8837 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8839 * calls.h (apply_pass_by_reference_rules): Declare.
8840 * calls.c (apply_pass_by_reference_rules): New function.
8841 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
8842 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
8843 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8844 * function.c (assign_parm_find_data_types): Likewise.
8845 * var-tracking.c (prepare_call_arguments): Likewise.
8847 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8849 * target.def (must_pass_in_stack): Take a function_arg_info instead
8850 of a mode and a type.
8851 * doc/tm.texi: Regenerate.
8852 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
8853 instead of a mode and a type.
8854 (must_pass_in_stack_var_size_or_pad): Likewise.
8855 * calls.c (must_pass_in_stack_var_size): Likewise.
8856 (must_pass_in_stack_var_size_or_pad): Likewise.
8857 (initialize_argument_information): Update call to
8858 targetm.calls.must_pass_in_stack.
8859 (must_pass_va_arg_on_stack): Likewise.
8860 * function.c (assign_parm_find_entry_rtl): Likewise.
8861 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
8862 * config/alpha/alpha.c (alpha_function_arg): Likewise.
8863 (alpha_function_arg_advance): Likewise.
8864 * config/cr16/cr16.c (cr16_function_arg): Likewise.
8865 (cr16_function_arg_advance): Likewise.
8866 * config/cris/cris.c (cris_pass_by_reference): Likewise.
8867 (cris_arg_partial_bytes): Likewise.
8868 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
8869 * config/lm32/lm32.c (lm32_function_arg): Likewise.
8870 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
8871 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
8872 * config/mips/mips.c (mips_pass_by_reference): Likewise.
8873 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
8874 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
8875 * config/sh/sh.c (sh_pass_by_reference): Likewise.
8876 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
8877 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8878 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
8879 instead of a mode and a type.
8880 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
8881 (fr30_num_arg_regs): Likewise.
8882 (fr30_setup_incoming_varargs): Update calls accordingly.
8883 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8884 (fr30_function_arg_advance): Likewise.
8885 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
8886 instead of a mode and a type.
8887 * config/gcn/gcn.c (num_arg_regs): Likewise.
8888 (gcn_function_arg, gcn_function_arg_advance): Update calls to
8889 num_arg_regs and targetm.calls.must_pass_in_stack.
8890 (gcn_arg_partial_bytes): Likewise.
8891 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
8892 function_arg_info instead of a mode and a type.
8893 (classify_argument): Update call accordingly.
8894 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
8895 function_arg_info instead of a mode and a type.
8896 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
8898 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
8899 (rs6000_parm_needs_stack): Update call accordingly.
8900 (setup_incoming_varargs): Likewise.
8902 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8904 * target.def (callee_copies): Take a function_arg_info instead
8905 of a mode, type and named flag.
8906 * doc/tm.texi: Regenerate.
8907 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
8908 instead of a mode, type and named flag.
8909 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
8910 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8911 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
8912 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
8913 instead of a mode, type and named flag.
8914 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
8915 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8916 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
8917 * calls.h (reference_callee_copied): Take a function_arg_info
8918 instead of a mode, type and named flag.
8919 * calls.c (reference_callee_copied): Likewise.
8920 (initialize_argument_information): Update call accordingly.
8921 (emit_library_call_value_1): Likewise.
8922 * function.c (gimplify_parameters): Likewise.
8923 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
8924 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
8925 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
8926 * config/c6x/c6x.c (c6x_callee_copies): Delete.
8927 (TARGET_CALLEE_COPIES): Define to
8928 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
8929 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
8930 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
8931 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
8932 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
8933 instead of a mode, type and named flag.
8934 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
8935 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
8936 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
8937 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
8938 * config/msp430/msp430.c (msp430_callee_copies): Delete.
8939 (TARGET_CALLEE_COPIES): Define to
8940 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
8941 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
8942 instead of a mode, type and named flag.
8943 * config/sh/sh.c (sh_callee_copies): Likewise.
8944 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
8945 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
8946 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
8948 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8950 * target.def (function_arg_advance): Take a function_arg_info instead
8951 of a mode, type and named flag.
8952 * doc/tm.texi: Regenerate.
8953 * targhooks.h (default_function_arg_advance): Take a function_arg_info
8954 instead of a mode, type and named flag.
8955 * targhooks.c (default_function_arg_advance): Likewise.
8956 * calls.c (initialize_argument_information): Update call to
8957 targetm.calls.function_arg_advance.
8958 (emit_library_call_value_1): Likewise.
8959 * dse.c (get_call_args): Likewise.
8960 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8961 * function.c (assign_parms, gimplify_parameters): Likewise.
8962 * var-tracking.c (prepare_call_arguments): Likewise.
8963 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
8964 function_arg_info instead of a mode, type and named flag.
8965 (aarch64_setup_incoming_varargs): Update call accordingly.
8966 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
8967 function_arg_info instead of a mode, type and named flag.
8968 (alpha_setup_incoming_varargs): Update call accordingly.
8969 * config/arc/arc.c (arc_function_arg_advance): Take a
8970 function_arg_info instead of a mode, type and named flag.
8971 (arc_setup_incoming_varargs): Update call accordingly.
8972 * config/arm/arm.c (arm_function_arg_advance): Take a
8973 function_arg_info instead of a mode, type and named flag.
8974 (cmse_func_args_or_return_in_stack): Update call accordingly.
8975 (arm_function_ok_for_sibcall): Likewise.
8976 (cmse_nonsecure_call_clear_caller_saved): Likewise.
8977 * config/avr/avr.c (avr_function_arg_advance): Take a
8978 function_arg_info instead of a mode, type and named flag.
8979 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
8980 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
8981 (c6x_call_saved_register_used): Update call accordingly.
8982 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
8983 function_arg_info instead of a mode, type and named flag.
8984 * config/cris/cris.c (cris_function_arg_advance): Likewise.
8985 * config/csky/csky.c (csky_function_arg_advance): Likewise.
8986 (csky_setup_incoming_varargs): Update call accordingly.
8987 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
8988 function_arg_info instead of a mode, type and named flag.
8989 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
8990 * config/frv/frv.c (frv_function_arg_advance): Likewise.
8991 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
8992 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
8993 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
8994 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8995 (ix86_setup_incoming_varargs): Update call accordingly.
8996 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
8997 function_arg_info instead of a mode, type and named flag.
8998 (ia64_setup_incoming_varargs): Update call accordingly.
8999 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
9000 function_arg_info instead of a mode, type and named flag.
9001 (iq2000_expand_prologue): Update call accordingly.
9002 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
9003 function_arg_info instead of a mode, type and named flag.
9004 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
9005 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
9006 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9007 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
9008 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9010 (microblaze_expand_prologue): Update call accordingly.
9011 * config/mips/mips.c (mips_function_arg_advance): Take a
9012 function_arg_info instead of a mode, type and named flag.
9013 (mips_setup_incoming_varargs): Update call accordingly.
9014 (mips_output_args_xfer): Likewise.
9015 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
9016 function_arg_info instead of a mode, type and named flag.
9017 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
9018 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
9019 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
9020 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
9021 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
9022 (nios2_setup_incoming_varargs): Update call accordingly.
9023 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
9024 function_arg_info instead of a mode, type and named flag.
9025 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
9026 * config/pa/pa.c (pa_function_arg_advance): Likewise.
9027 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
9028 * config/pru/pru.c (pru_function_arg_advance): Likewise.
9029 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
9030 (riscv_setup_incoming_varargs): Update call accordingly.
9031 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
9032 function_arg_info instead of a mode, type and named flag.
9033 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
9035 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
9036 (rs6000_parm_needs_stack): Update call accordingly.
9037 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
9038 instead of a mode, type and named flag.
9039 * config/s390/s390.c (s390_function_arg_advance): Likewise.
9040 (s390_call_saved_register_used): Update call accordingly.
9041 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
9042 instead of a mode, type and named flag.
9043 (sh_output_mi_thunk): Update call accordingly.
9044 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
9045 function_arg_info instead of a mode, type and named flag.
9046 * config/spu/spu.c (spu_function_arg_advance): Likewise.
9047 (spu_setup_incoming_varargs): Update call accordingly.
9048 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
9049 function_arg_info instead of a mode, type and named flag.
9050 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
9051 (tilegx_setup_incoming_varargs): Update call accordingly.
9052 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
9053 function_arg_info instead of a mode, type and named flag.
9054 (tilegx_setup_incoming_varargs): Update call accordingly.
9055 * config/v850/v850.c (v850_function_arg_advance): Take a
9056 function_arg_info instead of a mode, type and named flag.
9057 * config/vax/vax.c (vax_function_arg_advance): Likewise.
9058 * config/visium/visium.c (visium_function_arg_advance): Likewise.
9059 (visium_setup_incoming_varargs): Update call accordingly.
9060 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
9061 function_arg_info instead of a mode, type and named flag.
9063 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9065 * target.def (function_arg, function_incoming_arg): Take a
9066 function_arg_info instead of a mode, tree and named flag.
9067 * doc/tm.texi: Regenerate.
9068 * targhooks.h (default_function_arg): Take a function_arg_info
9069 instead of a mode, tree and named flag.
9070 (default_function_incoming_arg): Likewise.
9071 * targhooks.c (default_function_arg): Likewise.
9072 (default_function_incoming_arg): Likewise.
9073 * calls.h (function_arg_info::end_marker_p): New function.
9074 (function_arg_info::end_marker): Likewise.
9075 * calls.c (prepare_call_address, initialize_argument_information)
9076 (expand_call, emit_library_call_value_1): Update calls to
9077 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
9078 * dse.c: Include calls.h.
9079 (get_call_args): Update call to targetm.calls.function_arg.
9080 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9081 * var-tracking.c (prepare_call_arguments): Likewise.
9082 * function.c (assign_parm_find_entry_rtl): Update call to
9083 targetm.calls.function_incoming_arg.
9084 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
9085 function_arg_info instead of a mode, tree and named flag.
9086 * config/alpha/alpha.c (alpha_function_arg): Likewise.
9087 * config/arc/arc.c (arc_function_arg): Likewise.
9088 * config/arm/arm.c (arm_function_arg): Likewise.
9089 (cmse_func_args_or_return_in_stack): Update call accordingly.
9090 (arm_function_ok_for_sibcall): Likewise.
9091 (cmse_nonsecure_call_clear_caller_saved): Likewise.
9092 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
9093 instead of a mode, tree and named flag.
9094 * config/bfin/bfin.c (bfin_function_arg): Likewise.
9095 * config/c6x/c6x.c (c6x_function_arg): Likewise.
9096 (c6x_call_saved_register_used): Update call accordingly.
9097 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
9098 instead of a mode, tree and named flag.
9099 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
9100 (cris_function_arg_1): Likewise.
9101 * config/csky/csky.c (csky_function_arg): Likewise.
9102 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
9103 * config/fr30/fr30.c (fr30_function_arg): Likewise.
9104 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
9105 (frv_function_arg_1): Likewise.
9106 * config/ft32/ft32.c (ft32_function_arg): Likewise.
9107 * config/gcn/gcn.c (gcn_function_arg): Likewise.
9108 * config/h8300/h8300.c (h8300_function_arg): Likewise.
9109 * config/i386/i386.c (ix86_function_arg): Likewise.
9110 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
9111 (ia64_function_arg_1): Likewise.
9112 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
9113 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
9115 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
9116 instead of a mode, tree and named flag.
9117 * config/m32c/m32c.c (m32c_function_arg): Likewise.
9118 * config/m32r/m32r.c (m32r_function_arg): Likewise.
9119 * config/m68k/m68k.c (m68k_function_arg): Likewise.
9120 * config/mcore/mcore.c (mcore_function_arg): Likewise.
9121 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
9122 (microblaze_expand_prologue): Update call accordingly.
9123 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
9124 instead of a mode, tree and named flag.
9125 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
9126 (mmix_function_arg_1): Likewise.
9127 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
9128 * config/moxie/moxie.c (moxie_function_arg): Likewise.
9129 * config/msp430/msp430.c (msp430_function_arg): Likewise.
9130 * config/nds32/nds32.c (nds32_function_arg): Likewise.
9131 * config/nios2/nios2.c (nios2_function_arg): Likewise.
9132 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
9133 (nvptx_function_incoming_arg): Likewise.
9134 * config/or1k/or1k.c (or1k_function_arg): Likewise.
9135 * config/pa/pa.c (pa_function_arg): Likewise.
9136 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9137 * config/pru/pru.c (pru_function_arg): Likewise.
9138 * config/riscv/riscv.c (riscv_function_arg): Likewise.
9139 * config/rl78/rl78.c (rl78_function_arg): Likewise.
9140 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
9141 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
9142 (rs6000_parm_needs_stack): Update call accordingly.
9143 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
9144 instead of a mode, tree and named flag.
9145 * config/s390/s390.c (s390_function_arg): Likewise.
9146 (s390_call_saved_register_used): Update call accordingly.
9147 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
9148 instead of a mode, tree and named flag.
9149 (sh_output_mi_thunk): Update call accordingly.
9150 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
9151 (sparc_function_incoming_arg): Take a function_arg_info instead of
9152 a mode, tree and named flag.
9153 * config/spu/spu.c (spu_function_arg): Likewise.
9154 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
9155 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
9156 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
9157 * config/v850/v850.c (v850_function_arg): Likewise.
9158 * config/vax/vax.c (vax_function_arg): Likewise.
9159 * config/visium/visium.c (visium_function_arg): Likewise.
9160 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
9161 (xtensa_function_incoming_arg): Likewise.
9163 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9165 * target.def (setup_incoming_varargs): Take a function_arg_info
9166 instead of a mode and tree.
9167 * doc/tm.texi: Regenerate.
9168 * targhooks.h (default_setup_incoming_varargs): Take a
9169 function_arg_info instead of a mode and tree.
9170 * targhooks.c (default_setup_incoming_varargs): Likewise.
9171 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
9172 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
9173 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
9174 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
9175 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
9176 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9177 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
9178 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
9180 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9181 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9182 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
9183 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
9184 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9185 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9186 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9187 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9188 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9189 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
9190 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9191 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9192 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
9193 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
9194 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
9195 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
9196 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
9197 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9198 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
9199 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
9200 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
9201 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
9202 * function.c (assign_parms_setup_varargs): Update call to
9203 targetm.calls.setup_incoming_varargs.
9205 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9207 * target.def (pass_by_reference): Take a function_arg_info instead
9208 of a mode, type and named flag.
9209 * doc/tm.texi: Regenerate.
9210 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
9212 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
9213 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
9214 function_arg_info instead of a mode, type and named flag.
9215 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
9216 * calls.h (pass_by_reference): Take a function_arg_info instead of a
9217 mode, type and named flag.
9218 * calls.c (pass_by_reference): Likewise.
9219 (pass_va_arg_by_reference): Update call accordingly.
9220 (initialize_argument_information): Likewise.
9221 (emit_library_call_value_1): Likewise.
9222 * function.c (assign_parm_find_data_types): Likewise.
9223 * var-tracking.c (prepare_call_arguments): Likewise.
9224 * stor-layout.c: Include calls.h.
9225 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
9226 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
9227 function_arg_info instead of a mode, type and named flag.
9228 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
9229 * config/arc/arc.c (arc_pass_by_reference): Likewise.
9230 * config/arm/arm.c (arm_pass_by_reference): Likewise.
9231 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
9232 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
9233 (c6x_call_saved_register_used): Update call to pass_by_reference.
9234 * config/cris/cris.c (cris_pass_by_reference): Take a
9235 function_arg_info instead of a mode, type and named flag.
9236 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
9237 function_arg_info instead of a mode, type and named flag.
9238 (epiphany_arg_partial_bytes): Update call accordingly.
9239 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
9240 function_arg_info instead of a mode, type and named flag.
9241 (ft32_arg_partial_bytes): Update call accordingly.
9242 * config/i386/i386.c (ix86_pass_by_reference): Take a
9243 function_arg_info instead of a mode, type and named flag.
9244 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
9245 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
9246 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
9247 (m32r_return_in_memory): Update call accordingly.
9248 * config/mips/mips.c (mips_pass_by_reference): Take a
9249 function_arg_info instead of a mode, type and named flag.
9250 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
9251 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9252 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
9253 (moxie_arg_partial_bytes): Update call accordingly.
9254 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
9255 function_arg_info instead of a mode, type and named flag.
9256 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
9257 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
9258 * config/pa/pa.c (pa_pass_by_reference): Likewise.
9259 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
9260 (riscv_return_in_memory): Update call accordingly.
9261 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
9262 function_arg_info instead of a mode, type and named flag.
9263 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
9264 (rs6000_parm_needs_stack): Update call to pass_by_reference.
9265 * config/s390/s390.c (s390_pass_by_reference): Take a
9266 function_arg_info instead of a mode, type and named flag.
9267 (s390_call_saved_register_used): Update call accordingly.
9268 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
9269 instead of a mode, type and named flag.
9270 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
9271 * config/spu/spu.c (spu_pass_by_reference): Likewise.
9272 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
9273 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
9274 * config/v850/v850.c (v850_pass_by_reference): Likewise.
9275 * config/visium/visium.c (visium_pass_by_reference): Likewise.
9277 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9279 * target.def (arg_partial_bytes): Take a function_arg_info instead
9280 of a mode, type and named flag.
9281 * doc/tm.texi: Regenerate.
9282 * target.h (function_arg_info): Declare.
9283 * calls.h (function_arg_info): New class.
9284 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
9285 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
9286 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
9287 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
9288 * calls.c (initialize_argument_information): Update call to
9289 targetm.calls.partial_bytes.
9290 (emit_library_call_value_1): Likewise.
9291 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9292 * function.c (assign_parm_find_entry_rtl): Likewise.
9293 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
9294 function_arg_info instead of a mode, type and named flag.
9295 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
9296 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
9297 (cmse_func_args_or_return_in_stack): Update accordingly.
9298 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
9299 function_arg_info instead of a mode, type and named flag.
9300 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
9301 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
9302 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
9303 * config/fr30/fr30.c: Include calls.h.
9304 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
9305 type and named flag.
9306 * config/frv/frv.c: Include calls.h.
9307 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
9308 type and named flag.
9309 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
9310 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
9311 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
9312 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
9313 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
9314 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
9315 * config/microblaze/microblaze.c (function_arg_partial_bytes):
9317 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
9318 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
9319 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
9320 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
9321 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
9322 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
9323 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
9324 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
9325 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
9326 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
9327 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
9328 (rs6000_parm_needs_stack): Update call accordingly.
9329 * config/sh/sh.c (sh_arg_partial_bytes): Take a
9330 function_arg_info instead of a mode, type and named flag.
9331 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
9332 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
9334 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9336 * calls.h (must_pass_va_arg_in_stack): Declare.
9337 * calls.c (must_pass_va_arg_in_stack): New function.
9338 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
9339 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
9340 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
9342 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
9344 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9346 * calls.h (pass_va_arg_by_reference): Declare.
9347 * calls.c (pass_va_arg_by_reference): New function.
9348 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
9349 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
9350 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
9351 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9352 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9353 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
9354 (mips_gimplify_va_arg_expr): Likewise.
9355 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
9356 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9357 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
9358 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
9359 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9360 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
9361 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
9362 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
9363 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
9364 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
9365 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9367 2019-08-20 Richard Biener <rguenther@suse.de>
9370 * config/i386/i386-features.c (general_scalar_chain::convert_op):
9371 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
9372 (convert_scalars_to_vector): Add timode_p parameter and use it
9373 to guard TImode-only operation.
9374 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
9375 (pass_stv::execute): Pass down timode_p.
9377 2019-08-20 Lili Cui <lili.cui@intel.com>
9379 * common/config/i386/i386-common.c
9380 (processor_names): Add tigerlake and cooperlake.
9381 (processor_alias_table): Add tigerlake and cooperlake.
9382 * config.gcc: Add -march=tigerlake and cooperlake.
9383 * config/i386/driver-i386.c
9384 (host_detect_local_cpu): Detect tigerlake and cooperlake.
9385 Add "has_avx" to classify processor.
9386 * config/i386/i386-builtins.c (processor_model) :
9387 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
9388 (arch_names_table): Add tigerlake and cooperlake.
9389 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
9390 and PROCESSOR_COOPERLAKE.
9391 * config/i386/i386-c.c
9392 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
9393 * config/i386/i386-options.c
9394 (m_TIGERLAKE) : Define.
9395 (m_COOPERLAKE) : Ditto.
9396 (m_CORE_AVX512): Ditto.
9397 (processor_cost_table): Add cascadelake.
9398 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
9399 * config/i386/i386.h
9400 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
9401 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
9402 (PTA_MOVDIRI): Ditto.
9403 (PTA_MOVDIR64B): Ditto.
9404 (PTA_COOPERLAKE) : Ditto.
9405 (PTA_TIGERLAKE) : Ditto.
9406 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
9407 * doc/extend.texi: Add tigerlake and cooperlake.
9408 * doc/invoke.texi: Add tigerlake and cooperlake.
9410 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
9412 * doc/install.texi (Specific, alpha): Remove note to use
9413 binutils 2.11.2 or later.
9415 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9418 * function.c (assign_parm_find_stack_rtl): Use larger alignment
9421 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
9423 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
9424 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
9425 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
9426 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
9427 * config/aarch64/constraints.md (Dt): New constraint
9428 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
9430 2019-08-19 Richard Biener <rguenther@suse.de>
9432 PR tree-optimization/91403
9433 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
9434 cases we can handle with tail-recursion...
9435 (follow_ssa_edge_expr): ... here. Do so.
9437 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
9440 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
9441 implemented for -fsanitize=kernel-address, and merge check logic
9442 with -fsanitize=address.
9444 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
9446 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
9447 for cpu and machine. Factor 64/32b builtins.
9449 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
9451 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
9452 gone, point to sourceforge.net.
9454 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
9456 * doc/ux.texi (User Experience Guidelines): Update reference.
9458 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
9460 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
9463 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
9465 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
9466 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
9468 2019-08-16 Martin Sebor <msebor@redhat.com>
9470 * tree.def (TYPE_SIZE): Clarify.
9471 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
9473 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
9475 PR tree-optimization/91109
9476 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
9477 * lra.c (lra): Use lra_need_for_scratch_reg_p.
9478 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
9480 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
9482 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
9483 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
9484 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
9485 (uavg<mode>3_ceil): New expander.
9486 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
9487 mode iterator when creating CONST1_RTX.
9488 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
9489 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
9490 mode iterator for const1_operand predicate.
9492 2019-08-16 Richard Biener <rguenther@suse.de>
9494 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
9495 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
9497 (follow_ssa_edge_in_condition_phi_branch): Likewise.
9498 (analyze_evolution_in_loop): Likewise.
9499 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
9500 (follow_ssa_edge_expr): ... here. Refactor code.
9502 2019-08-16 Richard Biener <rguenther@suse.de>
9505 * config/i386/i386-features.c
9506 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
9508 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9511 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
9512 only if subst_name matches curr_attr string.
9514 2019-08-16 Richard Biener <rguenther@suse.de>
9516 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
9517 stmt at gsi_p, instead replace it with a NOP removed later.
9518 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
9519 that became dead because of that.
9521 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
9523 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
9524 for which we can't represent a range.
9525 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
9527 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
9528 Set VR_UNDEFINED if type is not supported.
9529 * tree-ssanames.c (get_range_info): Pass type to set_varying.
9530 * tree-vrp.c (value_range_base::check): Assert that a varying has
9532 (value_range_base::equal_p): Early bail for undefines.
9533 (value_range_base::set_varying): Accept a type.
9534 (value_range::set_varying): Same.
9535 (value_range_base::type): VARYING can have a type, while UNDEFINE
9537 (value_range_base::dump): Print type for VARYING nodes.
9538 (value_range_base::set): Add type to VARYING.
9539 (extract_range_from_multiplicative_op): Pass type to set_varying.
9540 (extract_range_from_binary_expr): Same.
9541 (value_range_base::intersect_helper): Same.
9542 (value_range_base::union_helper): Same.
9543 (value_range_base::normalize_symbolics): Same.
9544 (determine_value_range_1): Same.
9545 * tree-vrp.h (class value_range_base): Add type to set_varying.
9546 Add prototype for dump(void).
9547 Add prototype for supports_type_p.
9548 (class value_range): Add type to set_varying.
9549 Add prototype for dump(void).
9550 * vr-values.c (set_value_range_to_truthvalue): Pass type to
9552 (vr_values::get_lattice_entry): Set varying even if propagation
9554 Pass type to set_varying.
9555 (vr_values::get_value_range): Remove vr_const_varying.
9556 Reallocate the lattice if needed.
9557 (vr_values::update_value_range): Pass type to set_varying.
9558 (vr_values::extract_range_for_var_from_comparison_expr): Same.
9559 (vr_values::extract_range_from_binary_expr): Same.
9560 (vr_values::extract_range_from_unary_expr): Same.
9561 (vr_values::extract_range_from_cond_expr): Same.
9562 (vr_values::check_for_binary_op_overflow): Same.
9563 (vr_values::extract_range_basic): Same.
9564 (vr_values::extract_range_from_assignment): Same.
9565 (vr_values::vr_values): Increase size of num_vr_values.
9566 (vr_values::extract_range_from_phi_node): Pass type to
9569 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
9572 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
9573 for costs of hard register moves.
9574 (ix86_register_move_cost): Likewise.
9575 * config/i386/i386.h (processor_costs): Move costs of hard
9576 register moves to hard_register. Add int_load, int_store,
9577 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
9578 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
9579 for costs of RTL expressions.
9580 * config/i386/x86-tune-costs.h: Move costs of hard register
9581 moves to hard_register. Duplicate int_load, int_store,
9582 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
9583 sse_load, sse_store for costs of RTL expressions.
9585 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9587 * target.def (setup_incoming_vararg_bounds): Remove.
9588 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
9589 * doc/tm.texi: Regenerate.
9590 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
9591 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
9592 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
9593 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
9595 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9597 MSP430: Fix lines over 80 characters long in
9598 config/msp430/*.{c,h} files
9600 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
9601 specifier in string.
9602 (msp430_select_hwmult_lib): Split line more than 80 characters long.
9603 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
9604 redundant old comment.
9605 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
9606 Split line more than 80 characters long.
9607 * config/msp430/msp430.c (msp430_option_override): Likewise.
9608 (msp430_return_in_memory): Likewise.
9609 (msp430_gimplify_va_arg_expr): Likewise.
9610 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
9611 (msp430_legitimate_constant): Likewise.
9612 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
9613 (msp430_attr): Likewise.
9614 (msp430_data_attr): Likewise.
9615 (msp430_start_function): Likewise.
9616 (gen_prefix): Likewise.
9617 (msp430_init_sections): Likewise.
9618 (msp430_select_section): Likewise.
9619 (msp430_function_section): Likewise.
9620 (msp430_unique_section): Likewise.
9621 (msp430_output_aligned_decl_common): Likewise.
9622 (msp430_do_not_relax_short_jumps): Likewise.
9623 (msp430_init_builtins): Likewise.
9624 (msp430_expand_delay_cycles): Likewise.
9625 (msp430_expand_prologue): Likewise.
9626 (msp430_expand_epilogue): Likewise.
9627 (msp430_expand_helper): Likewise.
9628 (msp430_split_movsi): Likewise.
9629 (msp430_print_operand): Likewise.
9630 (msp430_return_addr_rtx): Likewise.
9631 (msp430x_extendhisi): Likewise.
9632 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
9633 (ASM_SPEC): Likewise.
9634 Remove very obvious comments.
9635 (LIB_SPEC): Split line more than 80 characters long.
9636 (EH_RETURN_HANDLER_RTX): Likewise.
9637 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9639 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9641 MSP430: Fix whitespace errors and incorrect indentation in
9642 config/msp430/*.{c,h} files
9644 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
9645 (msp430_select_hwmult_lib): Likewise.
9646 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
9647 (msp430_extract_mcu_data): Likewise.
9648 (struct t_msp430_mcu_data): Likewise.
9649 * config/msp430/msp430.c (struct machine_function): Remove whitespace
9650 before left square bracket.
9651 (msp430_option_override): Fix indentation.
9652 (msp430_hard_regno_nregs_with_padding): Likewise.
9653 (msp430_initial_elimination_offset): Likewise.
9654 (msp430_special_register_convention_p): Remove whitespace before left
9655 square bracket and after exclamation mark.
9656 (msp430_evaluate_arg): Likewise.
9657 (msp430_callee_copies): Fix indentation.
9658 (msp430_gimplify_va_arg_expr): Likewise.
9659 (msp430_function_arg_advance): Remove whitespace before left square
9661 (reg_ok_for_addr): Likewise.
9662 (msp430_preserve_reg_p): Likewise.
9663 (msp430_compute_frame_info): Likewise.
9664 (msp430_asm_output_addr_const_extra): Add space between function name
9665 and open parenthesis.
9666 (has_section_name): Fix indentation.
9667 (msp430_attr): Remove trailing whitespace.
9668 (msp430_section_attr): Likewise.
9669 (msp430_data_attr): Likewise.
9670 (struct msp430_attribute_table): Fix comment and whitespace.
9671 (msp430_start_function): Remove whitespace before left square bracket.
9672 Add space between function name and open parenthesis.
9673 (msp430_select_section): Remove trailing whitespace.
9674 (msp430_section_type_flags): Remove trailing whitespace.
9675 (msp430_unique_section): Remove space before closing parenthesis.
9676 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
9677 (msp430_builtins): Remove whitespace before left square bracket.
9678 (msp430_init_builtins): Fix indentation.
9679 (msp430_expand_prologue): Remove whitespace before left square bracket.
9680 Remove space before closing parenthesis.
9681 (msp430_expand_epilogue): Remove whitespace before left square bracket.
9682 (msp430_split_movsi): Remove space before closing parenthesis.
9683 (helper_function_name_mappings): Fix indentation.
9684 (msp430_use_f5_series_hwmult): Fix whitespace.
9685 (use_32bit_hwmult): Likewise.
9686 (msp430_no_hwmult): Likewise.
9687 (msp430_output_labelref): Remove whitespace before left square bracket.
9688 (msp430_print_operand_raw): Likewise.
9689 (msp430_print_operand_addr): Likewise.
9690 (msp430_print_operand): Add two spaces after '.' in comment.
9691 Fix trailing whitespace.
9692 (msp430x_extendhisi): Fix indentation.
9693 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
9695 (PC_REGNUM): Likewise.
9696 (STACK_POINTER_REGNUM): Likewise.
9697 (CC_REGNUM): Likewise.
9699 2019-08-15 Richard Biener <rguenther@suse.de>
9702 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
9704 (general_scalar_chain::make_vector_copies): Use it.
9706 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
9708 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
9710 2019-08-15 Martin Liska <mliska@suse.cz>
9712 * tree-ssa-dce.c (propagate_necessity): We can't reach now
9713 operators with no arguments.
9714 (eliminate_unnecessary_stmts): Likewise here.
9716 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
9718 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
9719 <case COMPARE>: Revert 2019-08-14 change.
9720 (convertible_comparison_p): Revert 2019-08-14 change. Return false
9721 for (TARGET_64BIT || mode != DImode).
9723 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
9725 * tree-vrp.c (value_range_base::set): Merge in code from
9726 value_range_base::set_and_canonicalize.
9727 Enforce canonicalization at set time.
9728 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
9729 (value_range_base::set_undefined): Inline call to set().
9730 (value_range_base::set_varying): Same.
9731 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
9732 (vrp_val_max): New argument handle_pointers.
9733 (vrp_val_min): Same.
9734 (ranges_from_anti_range): Same.
9735 (extract_range_into_wide_ints): Use tree argument instead of sign
9737 (extract_range_from_multiplicative_op): Take in tree type instead
9738 of precision and sign. Adapt function for canonicalized ranges.
9739 (extract_range_from_binary_expr): Pass type to
9740 extract_range_from_multiplicative_op.
9741 Adapt for canonicalized ranges.
9742 (extract_range_from_unary_expr): Same.
9743 (value_range_base::intersect_helper): Adjust for canonicalized
9745 (value_range_base::union_helper): Same.
9746 (value_range_base::normalize_symbolics): New.
9747 * tree-vrp.h (class value_range_base): Remove
9748 set_and_canonicalize.
9749 New prototype for normalize_symbolics.
9750 (class value_range): Remove set_and_canonicalize.
9751 (vrp_val_min): Adjust prototype.
9752 (vrp_val_max): Same.
9754 (vr_values::extract_range_for_var_from_comparison_expr): Call set
9755 instead of set_and_canonicalize.
9757 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9760 * tree-vect-stmts.c (vectorizable_call): Check that the function
9761 is a BUILT_IN_MD function before passing it to
9762 targetm.vectorize.builtin_md_vectorized_function.
9764 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9766 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
9767 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
9768 (aarch64_select_early_remat_modes): Use it.
9770 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9772 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
9773 16 for SVE predicates even if they are fixed-length.
9775 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9777 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
9778 operand order match the MOV /Z alias.
9780 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9782 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
9783 the vector pattern as an aarch64_svpattern argument. Update the
9784 overloaded caller accordingly.
9785 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
9786 (aarch64_output_sve_vector_inc_dec): Likewise.
9788 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9790 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
9791 multiplication case, try to compute VG * (lowest set bit) directly
9792 rather than always basing the multiplication on VG. Use
9793 expand_mult for the multiplication if we can.
9795 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9797 * config/aarch64/aarch64-protos.h
9798 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
9799 (aarch64_sve_inc_dec_immediate_p): Rename to...
9800 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
9801 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
9802 (aarch64_output_sve_scalar_inc_dec): Declare.
9803 (aarch64_output_sve_inc_dec_immediate): Rename to...
9804 (aarch64_output_sve_vector_inc_dec): ...this.
9805 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
9806 (aarch64_output_sve_scalar_inc_dec): New functions.
9807 (aarch64_output_sve_addvl_addpl): Remove the base and offset
9808 arguments. Only handle true ADDVL and ADDPL instructions;
9809 don't emit an INC or DEC.
9810 (aarch64_sve_inc_dec_immediate_p): Rename to...
9811 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
9812 (aarch64_output_sve_inc_dec_immediate): Rename to...
9813 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
9814 aarch64_sve_vector_inc_dec_immediate_p.
9815 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
9816 (aarch64_sve_plus_immediate): New predicates.
9817 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
9818 rather than aarch64_sve_addvl_addpl_immediate.
9819 (aarch64_sve_inc_dec_immediate): Rename to...
9820 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
9821 aarch64_sve_vector_inc_dec_immediate_p.
9822 (aarch64_sve_add_operand): Update accordingly.
9823 * config/aarch64/constraints.md (Uai): New constraint.
9824 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
9825 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
9826 operand into a register if it satisfies aarch64_sve_plus_immediate.
9827 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
9828 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
9829 * config/aarch64/aarch64-sve.md (add<mode>3): Call
9830 aarch64_output_sve_vector_inc_dec instead of
9831 aarch64_output_sve_inc_dec_immediate.
9833 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9835 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
9836 (UNSPEC_REVW): New constants.
9837 (elem_bits): New mode attribute.
9838 (SVE_INT_UNARY): New int iterator.
9839 (optab): Handle UNSPEC_REV[BHW].
9840 (sve_int_op): New int attribute.
9841 (min_elem_bits): Handle VNx16QI and the predicate modes.
9842 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
9843 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
9844 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
9845 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
9846 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
9847 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
9848 unspecs based on the total width of the reversed data.
9849 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
9850 reinterpret followed by a subreg on big-endian targets.
9852 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9853 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9855 * config/aarch64/aarch64-sve.md
9856 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
9857 alternatives in which one of the inputs is in the same register
9860 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9862 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
9863 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
9865 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9867 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
9868 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
9870 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9871 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9873 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
9874 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
9875 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
9877 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9878 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9880 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
9881 Add an alternative that uses reversed shifts.
9883 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9885 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
9888 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9890 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
9891 a commutativity marker.
9893 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9894 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9896 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
9897 (aarch64_prepare_sve_cond_int_fma): Declare.
9898 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
9899 (aarch64_prepare_sve_int_fma): New functions.
9900 (aarch64_prepare_sve_cond_int_fma): Likewise.
9901 * config/aarch64/aarch64-sve.md
9902 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
9903 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
9904 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
9905 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
9906 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
9907 (*madd<mode>): Rename to...
9908 (*fma<mode>4): ...this.
9909 (*msub<mode>): Rename to...
9910 (*fnma<mode>4): ...this.
9912 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9913 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9915 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
9916 Print 2.0 naturally.
9917 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
9918 * config/aarch64/predicates.md
9919 (aarch64_sve_float_negated_arith_immediate): New predicate,
9920 renamed from aarch64_sve_float_arith_with_sub_immediate.
9921 (aarch64_sve_float_arith_with_sub_immediate): Test for both
9922 positive and negative constants.
9923 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
9924 or an aarch64_sve_float_arith_with_sub_immediate.
9925 * config/aarch64/constraints.md (vsN): Use
9926 aarch64_sve_float_negated_arith_immediate.
9927 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
9929 (sve_pred_fp_rhs2_immediate): New int attribute.
9930 * config/aarch64/aarch64-sve.md
9931 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
9932 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
9933 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
9934 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
9935 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
9936 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
9938 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9939 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9941 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
9942 (*aarch64_cond_abd<SVE_F:mode>_3)
9943 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
9945 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9946 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9948 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
9949 (*aarch64_cond_<su>abd<mode>_any): New patterns.
9951 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
9952 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9954 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
9955 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
9956 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
9957 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
9959 * optabs.h (create_convert_operand_from): Expand comment.
9960 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
9961 when mapping scalar rtxes to vector operands.
9962 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
9963 ashiftrt and lshiftrt.
9964 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
9965 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
9966 (*cond_<optab><mode>_any_const): New patterns.
9968 2019-08-15 Martin Liska <mliska@suse.cz>
9971 * cgraph.c (cgraph_node::remove): When setting
9972 n->origin = NULL for all nested functions, reset
9975 2019-08-15 Martin Liska <mliska@suse.cz>
9977 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
9980 2019-08-15 Martin Liska <mliska@suse.cz>
9983 * passes.c (order): Remove.
9984 (uid_hash_t): Likewise).
9985 (remove_cgraph_node_from_order): Remove from set
9986 of pointers (cgraph_node *).
9987 (insert_cgraph_node_to_order): New.
9988 (duplicate_cgraph_node_to_order): New.
9989 (do_per_function_toporder): Register all 3 cgraph hooks.
9990 Skip removed_nodes now as we know about all of them.
9992 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
9994 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
9995 <case E_V8QImode>: Use vector_set path for
9996 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9997 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
9998 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
10000 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10002 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
10004 2019-08-14 Martin Sebor <msebor@redhat.com>
10006 PR tree-optimization/91294
10007 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
10008 source length as exact.
10010 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
10012 * doc/extend.texi: Add "noinit" attribute documentation.
10013 * doc/sourcebuild.texi: Add noinit effective target documentation.
10014 * varasm.c (default_section_type_flags): Add support for "noinit"
10016 (default_elf_select_section): Add support for "noinit" attribute.
10017 * config/msp430/msp430.c (msp430_attribute_table): Remove
10020 2019-08-14 Richard Biener <rguenther@suse.de>
10021 Uroš Bizjak <ubizjak@gmail.com>
10024 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
10026 (scalar_chain::smode): New member.
10027 (scalar_chain::vmode): Likewise.
10028 (dimode_scalar_chain): Rename to...
10029 (general_scalar_chain): ... this.
10030 (general_scalar_chain::general_scalar_chain): Take mode arguments.
10031 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
10032 base with TImode and V1TImode.
10033 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
10034 (general_scalar_chain::vector_const_cost): Adjust for SImode
10036 (general_scalar_chain::compute_convert_gain): Likewise. Add
10037 {S,U}{MIN,MAX} support.
10038 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
10039 (general_scalar_chain::make_vector_copies): Likewise. Handle
10040 non-DImode chains appropriately.
10041 (general_scalar_chain::convert_reg): Likewise.
10042 (general_scalar_chain::convert_op): Likewise.
10043 (general_scalar_chain::convert_insn): Likewise. Add
10044 fatal_insn_not_found if the result is not recognized.
10045 (convertible_comparison_p): Pass in the scalar mode and use that.
10046 (general_scalar_to_vector_candidate_p): Likewise. Rename from
10047 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
10048 (scalar_to_vector_candidate_p): Remove by inlining into single
10050 (general_remove_non_convertible_regs): Rename from
10051 dimode_remove_non_convertible_regs.
10052 (remove_non_convertible_regs): Remove by inlining into single caller.
10053 (convert_scalars_to_vector): Handle SImode and DImode chains
10054 in addition to TImode chains.
10055 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
10056 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
10057 (*<maxmin>di3_doubleword): Likewise.
10059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10060 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10062 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
10063 (*cond_bic<mode>_any): New patterns.
10065 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10067 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
10068 take the equivalent mask, as well as a bit count.
10069 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
10070 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
10071 (aarch64_sve_pred_and_operand): New predicates.
10072 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
10074 * config/aarch64/aarch64-sve.md
10075 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
10076 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
10078 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10080 * config/aarch64/aarch64-sve.md
10081 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
10082 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
10085 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10086 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10088 * config/aarch64/aarch64-sve.md
10089 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
10090 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
10092 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10093 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10095 * config/aarch64/aarch64-sve.md
10096 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
10097 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
10099 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10101 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
10102 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
10105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10106 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10108 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
10110 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10111 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10113 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
10114 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
10115 (aarch64_print_operand): Add support for %I.
10116 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
10117 Bitcast floating-point constants to the corresponding integer constant.
10118 (aarch64_float_const_representable_p): Handle vectors as well
10120 (aarch64_expand_sve_vcond): Make sure that the operands are valid
10121 for the new vcond_mask_<mode><vpred> expander.
10122 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
10123 test aarch64_float_const_representable_p.
10124 (aarch64_sve_reg_or_dup_imm): New predicate.
10125 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
10126 gen_vcond_mask_<mode><vpred> instead of
10127 gen_aarch64_sve_dup<mode>_const.
10128 (vcond_mask_<mode><vpred>): Turn into a define_expand that
10129 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
10130 for operands 1 and 2 respectively. Force operand 2 into a
10131 register if operand 1 is a register. Fold old define_insn...
10132 (aarch64_sve_dup<mode>_const): ...and this define_insn...
10133 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
10134 floating-point constants that can be moved as integers. Add
10135 alternatives for MOV /M and FMOV /M.
10136 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
10137 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
10138 1 and 2 respectively.
10139 * config/aarch64/constraints.md (Ufc): Handle vectors as well
10141 (vss): New constraint.
10143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10145 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
10146 (aarch64_sve_float_maxmin_operand): New predicates.
10147 * config/aarch64/constraints.md (vsB): New constraint.
10149 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
10150 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
10151 UNSPEC_COND_FMINNM.
10152 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
10153 Use aarch64_sve_float_maxmin_operand for operand 2.
10154 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
10155 Add alternatives for the constant forms.
10157 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10159 * config/aarch64/constraints.md (vsb): New constraint.
10160 (vsm): Generalize description.
10161 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
10163 (sve_imm_con): Handle smax, smin, umax and umin.
10164 (sve_imm_prefix): New code attribute.
10165 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
10166 (aarch64_sve_vsb_operand): New predicates.
10167 (aarch64_sve_mul_immediate): Rename to...
10168 (aarch64_sve_vsm_immediate): ...this.
10169 (aarch64_sve_mul_operand): Rename to...
10170 (aarch64_sve_vsm_operand): ...this.
10171 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
10172 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
10173 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
10174 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
10175 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
10176 add movprfx support for the immediate alternatives.
10177 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
10179 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
10182 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10184 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
10185 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
10186 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
10188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10190 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
10191 (optab, sve_int_op): Handle them.
10192 * config/aarch64/aarch64-sve.md: Expand comment.
10194 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10196 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
10197 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
10198 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
10200 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10202 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
10203 (aarch64_expand_sve_const_pred_trn): New functions.
10204 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
10205 use the above functions when the parameter is true.
10206 (aarch64_expand_sve_const_pred): Update call accordingly.
10207 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
10209 (@aarch64_sve_<perm_insn><mode>): ...this.
10211 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10213 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
10215 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
10216 (aarch64_sve_emit_int_cmp): New functions.
10217 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
10218 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
10219 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
10220 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
10221 (UNSPEC_PRED_Z): New unspec.
10222 (set_clobber_cc_nzc): Delete.
10223 * config/aarch64/aarch64-sve.md: Add a block comment about
10225 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
10226 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
10227 the old pattern with that name. Use UNSPEC_PRED_Z instead of
10228 UNSPEC_MERGE_PTRUE.
10229 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
10230 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
10231 check for compatible predicates.
10232 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
10233 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
10234 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
10237 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10239 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
10240 * config/aarch64/aarch64-sve.md: Add a section describing it.
10241 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
10242 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
10243 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
10244 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
10245 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
10246 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
10247 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
10248 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
10249 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
10250 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
10251 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
10252 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
10253 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
10254 (aarch64_evpc_rev_local): Update accordingly.
10256 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10258 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
10260 (SVE_BHSI, SVE_SDI): Tweak comment.
10261 (SVE_HSDI): Likewise. Fix definition.
10262 (SVE_SDF): New mode iterator.
10263 (elem_bits): New mode attribute.
10264 (SVE_COND_FCVT): New int iterator.
10265 * config/aarch64/aarch64-sve.md
10266 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
10267 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
10268 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
10269 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
10270 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
10271 ...these new patterns.
10272 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
10273 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
10274 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
10276 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
10277 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
10278 ...these new patterns.
10279 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
10280 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
10281 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
10282 ...this new pattern.
10283 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
10284 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
10285 ...this new pattern.
10286 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
10288 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10290 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
10291 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
10292 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
10294 (optab, su): Handle them.
10295 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
10296 * config/aarch64/aarch64-sve.md
10297 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
10298 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
10299 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
10300 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
10301 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
10302 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
10303 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
10304 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
10305 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
10307 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
10308 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
10309 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
10310 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
10311 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
10312 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
10313 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
10314 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
10315 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
10316 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
10317 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
10318 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
10319 of UNSPEC_FLOAT_CONVERT.
10320 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
10321 aarch64_sve_extend<mode><Vwide>2.
10323 2019-08-14 Richard Biener <rguenther@suse.de>
10326 * config/i386/i386-features.c
10327 (dimode_scalar_chain::compute_convert_gain): Compute and dump
10328 individual instruction gain. Fix reg-reg copy GRP cost. Use
10329 ix86_cost->sse_op for vector instruction costs.
10331 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10333 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
10334 (cmp_op): Handle it.
10335 (SVE_COND_FP_CMP): Rename to...
10336 (SVE_COND_FP_CMP_I0): ...this.
10337 (SVE_FP_CMP): Remove.
10338 * config/aarch64/aarch64-sve.md
10339 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
10340 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
10341 using unspecs to represent the comparison.
10342 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
10343 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
10345 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
10346 (aarch64_unspec_cond_code): Move after integer code. Handle
10348 (aarch64_emit_sve_predicated_cond): Replace with...
10349 (aarch64_emit_sve_fp_cond): ...this new function.
10350 (aarch64_emit_sve_or_conds): Replace with...
10351 (aarch64_emit_sve_or_fp_conds): ...this new function.
10352 (aarch64_emit_sve_inverted_cond): Replace with...
10353 (aarch64_emit_sve_invert_fp_cond): ...this new function.
10354 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
10356 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10358 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
10359 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
10360 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
10361 SVE_HSD instead of SVE_SD.
10363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10364 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10366 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
10368 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
10370 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
10371 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
10372 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
10373 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
10374 (*div<SVE_F:mode>3): Generalize to...
10375 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
10377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10378 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10380 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
10382 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
10384 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
10386 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
10388 * config/aarch64/aarch64-sve.md: Add a block comment about the
10389 handling of predicated FP operations.
10390 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
10391 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
10392 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
10393 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
10394 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
10396 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
10397 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
10399 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
10400 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
10401 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
10402 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
10403 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
10404 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
10405 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
10406 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
10407 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
10408 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
10409 strictness operands. Use aarch64_sve_pred_dominates_p to check
10410 whether the predicate on the conditional operation is suitable
10411 for merging. Split patterns into the canonical equal-predicate form.
10412 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
10413 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
10415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10416 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10418 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
10419 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
10420 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
10422 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
10423 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
10426 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10427 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10429 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
10430 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
10431 actually has, rather than relying on REG_EQUAL notes.
10432 Make the insn operand order match the SVE operand order.
10433 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
10434 the SVE operand order.
10436 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10438 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
10439 (aarch64_emit_set_immediate): Likewise.
10440 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
10441 (aarch64_pfalse_reg): Likewise.
10442 (aarch64_convert_sve_data_to_pred): New function.
10443 (aarch64_sve_move_pred_via_while): Take an optional target register
10444 and the required register mode.
10445 (aarch64_expand_sve_const_pred_1): New function.
10446 (aarch64_expand_sve_const_pred): Likewise.
10447 (aarch64_expand_mov_immediate): Build an all-true predicate
10448 if the significant bits of the immediate are all true. Use
10449 aarch64_expand_sve_const_pred for all compile-time predicate constants.
10450 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
10451 before register allocation.
10452 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
10453 a VNx16BI PTRUE when splitting the memory alternative.
10454 (vec_duplicate<mode>): Update accordingly.
10455 (*pred_cmp<cmp_op><mode>): Rename to...
10456 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
10458 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
10460 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
10461 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
10462 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
10463 (UNSPEC_PTEST): New unspec.
10464 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
10465 * config/aarch64/iterators.md (data_bytes): New mode attribute.
10466 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
10467 * config/aarch64/aarch64-sve.md: Add a new section describing the
10468 handling of UNSPEC_PTEST.
10469 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
10470 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
10471 (ptest_ptrue<mode>): Replace with...
10472 (aarch64_ptest<mode>): ...this new pattern.
10473 (cbranch<mode>4): Update after above changes.
10474 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
10475 UNSPEC_PTEST_PTRUE.
10476 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
10477 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
10478 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
10480 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
10483 * builtins.c (builtin_with_linkage_p): New function.
10484 * builtins.h (builtin_with_linkage_p): New function.
10485 * symtab.c (write_symbol): Remove redundant assert.
10486 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
10487 Remove FIXME and use builtin_with_linkage_p.
10489 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10491 PR middle-end/91421
10492 * tree-core.h (function_decl::function_code): Change type to
10494 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
10495 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
10496 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
10497 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
10498 is BUILT_IN_NORMAL.
10499 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
10500 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
10501 (fndecl_built_in_p): Change the type of the "name" argument to
10503 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
10504 after check for DECL_BUILT_IN_CLASS.
10505 * cgraphclones.c (build_function_decl_skip_args): Use
10506 set_decl_built_in_function.
10507 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
10508 * ipa-split.c (split_function): Likewise.
10509 * langhooks.c (add_builtin_function_common): Likewise.
10510 * omp-simd-clone.c (simd_clone_create): Likewise.
10511 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10512 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
10513 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
10514 DECL_FUNCTION_CODE.
10515 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
10516 instead of DECL_FUNCTION_CODE.
10517 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
10518 instead of DECL_FUNCTION_CODE.
10519 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10520 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
10521 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
10522 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
10523 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
10524 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
10525 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
10526 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
10527 (alpha_gimple_fold_builtin): Likewise.
10528 * config/arc/arc.c (arc_expand_builtin): Likewise.
10529 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
10530 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
10531 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
10532 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
10533 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
10534 * config/frv/frv.c (frv_expand_builtin): Likewise.
10535 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
10536 (gcn_expand_builtin): Likewise.
10537 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
10538 (fold_builtin_cpu): Likewise.
10539 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
10540 * config/i386/i386.c (ix86_fold_builtin): Likewise.
10541 (ix86_gimple_fold_builtin): Likewise.
10542 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
10543 (ia64_expand_builtin): Likewise.
10544 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
10545 * config/mips/mips.c (mips_expand_builtin): Likewise.
10546 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
10547 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
10548 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
10549 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
10550 * config/pa/pa.c (pa_expand_builtin): Likewise.
10551 * config/pru/pru.c (pru_expand_builtin): Likewise.
10552 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
10553 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10555 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
10556 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
10557 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
10558 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
10559 (rs6000_builtin_reciprocal): Likewise.
10560 * config/rx/rx.c (rx_expand_builtin): Likewise.
10561 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
10562 * config/s390/s390.c (s390_expand_builtin): Likewise.
10563 * config/sh/sh.c (sh_expand_builtin): Likewise.
10564 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
10565 (sparc_fold_builtin): Likewise.
10566 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
10567 * config/spu/spu.c (spu_expand_builtin): Likewise.
10568 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
10569 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
10570 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
10571 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10572 (xtensa_expand_builtin): Likewise.
10574 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10576 PR middle-end/91421
10577 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
10578 before the DECL_FUNCTION_CODE.
10579 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
10580 to check for a BUILT_IN_ALLOCA call.
10581 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
10582 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
10583 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
10584 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10585 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
10586 for BUILT_IN_NORMAL functions.
10587 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
10588 test for BUILT_IN_TM_ABORT.
10589 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
10590 to check for a BUILT_IN_STACK_RESTORE call.
10591 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
10592 * tree-ssa-threadedge.c
10593 (record_temporary_equivalences_from_stmts_at_dest): Check for a
10594 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
10595 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
10596 test for a BUILT_IN_NORMAL call instead of a negative test for
10597 an internal function call.
10599 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10601 * tree.h (build_vector_a_then_b): Declare.
10602 * tree.c (build_vector_a_then_b): New function.
10603 * fold-const-call.c (fold_while_ult): Likewise.
10604 (fold_const_call): Use it to handle IFN_WHILE_ULT.
10605 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
10606 (aarch64_svpattern): New enum.
10607 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
10608 constants through aarch64_expand_mov_immediate.
10609 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
10610 than general_operand as the predicate for operand 1.
10611 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
10612 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
10614 (simd_immediate_info::simd_immediate_info): New overload that
10615 takes a scalar_int_mode and an svpattern.
10616 (simd_immediate_info::u): Add a "pattern" field.
10617 (svpattern_token): New function.
10618 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
10619 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
10620 (aarch64_sve_move_pred_via_while): New functions.
10621 (aarch64_expand_mov_immediate): Try using
10622 aarch64_sve_move_pred_via_while for predicates that contain N ones
10623 followed by M zeros but that do not correspond to a VLnnn pattern.
10624 (aarch64_sve_pred_valid_immediate): New function.
10625 (aarch64_simd_valid_immediate): Use it instead of dealing directly
10626 with PTRUE and PFALSE.
10627 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
10630 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
10632 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
10634 (darwin_override_options): Likewise.
10635 * config/darwin.h: Likewise.
10636 * config/darwin.opt: Likewise.
10637 * config/i386/i386.c (output_pic_addr_const): Likewise.
10638 * config/rs6000/darwin.h: Likewise.
10639 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
10640 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
10641 ... this TARGET_MACHO_SYMBOL_STUBS.
10642 (FUNCTION_PROFILER):Likewise.
10643 * config/i386/i386.h: Likewise.
10645 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
10647 * config/i386/i386-expand.c (ix86_expand_vector_extract)
10648 <case E_V2SImode>: Use vec_extr path for
10649 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
10650 <case E_V8QImode>: Ditto.
10651 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
10652 Use SWI48 mode iterator. Use %k to output operand 0.
10653 (*mmx_pextrw): New insn pattern.
10654 (*mmx_pextrb): Ditto.
10655 (*mmx_pextrb_zext): Ditto.
10657 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
10659 * target.def (libc_has_function, libc_has_fast_function): Improve
10660 documentation strings.
10661 * doc/tm.texi: Regenerate.
10663 2019-08-13 Caroline Tice <cmtice@google.com>
10666 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
10667 vtv_end.o or vtv_end_preinit.o files if !static.
10669 2019-08-13 Olivier Hainque <hainque@adacore.com>
10671 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
10673 2019-08-13 Olivier Hainque <hainque@adacore.com>
10675 * rtlanal.c (tablejump_casesi_pattern): New function, to
10676 determine if a tablejump insn is a casesi dispatcher. Extracted
10677 from patch_jump_insn.
10678 * rtl.h (tablejump_casesi_pattern): Declare.
10679 * cfgrtl.c (patch_jump_insn): Use it.
10680 * dwarf2cfi.c (create_trace_edges): Use it.
10682 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
10685 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
10686 operand is larger than a long int.
10688 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10690 * machmode.h (opt_mode::else_mode): New function.
10691 (opt_mode::else_blk): Use it.
10692 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
10693 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
10694 (aarch64_gen_stepped_int_parallel): Likewise.
10695 (aarch64_stepped_int_parallel_p): Likewise.
10696 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
10698 * config/aarch64/aarch64.c
10699 (aarch64_expand_sve_widened_duplicate): Delete.
10700 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
10701 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
10702 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
10703 argument. Use early returns in the !CONST_INT_P handling.
10704 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
10705 than handling some inline.
10706 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
10708 (aarch64_simd_container_mode): ...here.
10709 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
10710 (aarch64_sve_ld1rq_operand_p): New functions.
10711 * config/aarch64/predicates.md (descending_int_parallel)
10712 (aarch64_sve_ld1rq_operand): New predicates.
10713 * config/aarch64/constraints.md (UtQ): New constraint.
10714 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
10715 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
10716 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
10717 (@aarch64_sve_reinterpret<mode>): New expander.
10718 (*aarch64_sve_reinterpret<mode>): New pattern.
10719 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
10720 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
10721 (*sve_ld1rq<Vesize>): Replace with...
10722 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
10724 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
10726 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
10729 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10731 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
10732 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
10733 (msp430_check_path_for_devices): New.
10734 (parse_devices_csv_1): New.
10735 (parse_devices_csv): New.
10736 (msp430_extract_mcu_data): Try to find devices.csv and search for the
10737 MCU data in devices.csv before using the hard-coded data.
10738 Warn if devices.csv isn't found and the MCU wasn't found in the
10739 hard-coded data either.
10740 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
10741 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
10742 Search for devices.csv on -I and -L paths.
10743 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
10744 msp430_set_driver_var.
10745 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
10746 -mdevices-csv-loc=.
10747 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
10748 searched for devices.csv.
10749 (mwarn-devices-csv): Document option.
10751 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10753 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
10754 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
10755 Use a single Dn alternative instead of separate Dz and Dm
10756 alternatives. Use aarch64_output_sve_move_immediate.
10757 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
10759 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
10760 for predicates too.
10761 (aarch64_output_sve_mov_immediate): Handle predicate modes.
10762 (aarch64_output_ptrue): Delete.
10764 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10766 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
10768 (simd_immediate_info::value, simd_immediate_info::step)
10769 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
10771 (simd_immediate_info::u): ...this new union.
10772 (simd_immediate_info::simd_immediate_info): Update accordingly.
10773 (aarch64_output_simd_mov_immediate): Likewise.
10774 (aarch64_output_sve_mov_immediate): Likewise.
10776 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10778 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
10780 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
10781 (msp430_select_cpu): New spec function.
10782 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
10784 * config/msp430/msp430-devices.c: New file.
10785 * config/msp430/msp430-devices.h: New file.
10786 * config/msp430/msp430.c: Remove msp430_mcu_data.
10787 (msp430_option_override): Use msp430_extract_mcu_data to extract
10789 (msp430_use_f5_series_hwmult): Likewise.
10790 (use_32bit_hwmult): Likewise.
10791 (msp430_no_hwmult): Likewise.
10792 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
10794 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
10796 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
10797 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
10798 Remove hard-coded MCU multilib data.
10800 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10802 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
10803 based on the mode instead of testing properties of it.
10805 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10807 * doc/md.texi: Document the x and y constraints for AArch64.
10808 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
10809 (FP_LO8_REGS): New reg_class.
10810 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
10811 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
10812 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
10813 * config/aarch64/predicates.md (aarch64_simd_register): Use
10814 FP_REGNUM_P instead of checking the classes manually.
10815 * config/aarch64/constraints.md (y): New constraint.
10817 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
10819 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
10820 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
10821 * config/aarch64/aarch64-simd.md
10822 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
10823 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
10824 from the asm template.
10825 * config/aarch64/aarch64-sve.md
10826 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
10827 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
10828 from the asm template.
10829 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
10830 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
10831 from the asm template.
10832 * config/aarch64/aarch64-simd-builtins.def: Update comment.
10834 2019-08-13 Martin Liska <mliska@suse.cz>
10836 * value-prof.c (gimple_ic_transform): Add new line.
10837 Print details with MSG_NOTE.
10839 2019-08-13 Martin Liska <mliska@suse.cz>
10841 * doc/invoke.texi: Document automatic detection of jobserver.
10842 * lto-wrapper.c (run_gcc): Detect jobserver always.
10844 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
10846 * config/i386/i386-expand.c (ix86_expand_vector_set)
10847 <case E_V2SImode>: Use vec_merge path for
10848 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
10849 <case E_V8QImode>: Ditto.
10850 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
10851 (*mmx_pinsrb): Ditto.
10853 2019-08-12 Jakub Jelinek <jakub@redhat.com>
10857 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
10858 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
10859 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
10860 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
10861 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
10863 2019-08-12 Richard Biener <rguenther@suse.de>
10866 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
10869 2019-08-12 Richard Biener <rguenther@suse.de>
10872 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
10873 lang_mask option, always use CL_DRIVER.
10874 (get_options_from_collect_gcc_options): Adjust.
10875 (find_and_merge_options): Likewise.
10876 (run_gcc): Likewise.
10878 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10880 * ipa-predicate.c (add_condition): Restore inverted test.
10882 2019-08-10 Jakub Jelinek <jakub@redhat.com>
10884 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
10885 (enum omp_clause_device_type_kind): New enum.
10886 (struct tree_omp_clause): Add subcode.device_type_kind.
10887 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
10888 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
10889 for device_type clause.
10890 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
10891 * tree-pretty-print.c (dump_omp_clause): Likewise.
10894 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
10897 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
10899 * reload1.c (finish_spills): Do not check ira_conflicts_p when
10900 handling spilled pseudos.
10902 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
10905 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
10906 to preserve the contents of the original insns.
10908 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
10910 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
10911 (addsi3_compare_op2): Likewise.
10913 2019-08-09 Martin Liska <mliska@suse.cz>
10915 * alias.c (alias_ptr_types_compatible_p): Strengten
10916 type comparison in LTO mode.
10918 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
10920 PR middle-end/90313
10921 * tree-tailcall.c (find_tail_calls): Reject calls that might
10922 read from an escaped RESULT_DECL.
10924 2019-08-09 Martin Liska <mliska@suse.cz>
10926 * doc/invoke.texi: Document the option value.
10927 * lto-wrapper.c (run_gcc): Set auto_parallel
10928 only with -flto=auto.
10930 2019-08-09 Martin Liska <mliska@suse.cz>
10932 * opts.c (common_handle_option): Error for an invalid argument
10935 2019-08-09 Martin Liska <mliska@suse.cz>
10937 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
10938 use dump_printf to report optimization.
10939 (sem_variable::merge): Likwise.
10940 (sem_item_optimizer::merge_classes): Use dump_printf to report
10943 2019-08-09 Martin Liska <mliska@suse.cz>
10945 * value-prof.c (gimple_divmod_fixed_value_transform):
10946 Use dump_printf_loc.
10947 (gimple_mod_pow2_value_transform): Likewise.
10948 (gimple_mod_subtract_transform): Likewise.
10949 (init_node_map): Likewise.
10950 (gimple_ic_transform): Likewise.
10951 (gimple_stringops_transform): Likewise.
10953 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
10955 * doc/extend.texi: Add const qualifier to ld intrinsics.
10957 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10959 * config/rs6000/dfp.md (D64_D128): Rename to ...
10960 (DDTD): ... this, throughout.
10961 (dfp_suffix): Rename to ...
10962 (q): ... this, throughout.
10964 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10966 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
10967 (dfp_suffix): Ditto.
10968 (adddd3, addtd3): Merge to ...
10969 (add<mode>3 for D64_D128): ... this.
10970 (subdd3, subtd3): Merge to ...
10971 (sub<mode>3 for D64_D128): ... this.
10972 (muldd3, multd3): Merge to ...
10973 (mul<mode>3 for D64_D128): ... this.
10974 (divdd3, divtd3): Merge to ...
10975 (div<mode>3 for D64_D128): ... this.
10976 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
10977 (*cmp<mode>_internal1 for D64_D128): ... this.
10978 (ftruncdd2, ftrunctd2): Merge to ...
10979 (ftrunc<mode>2 for D64_D128): ... this.
10980 (fixdddi2, fixtddi2): Merge to ...
10981 (fix<mode>di2 for D64_D128): ... this.
10983 2019-08-08 Jim Wilson <jimw@sifive.com>
10986 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
10987 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
10988 Pass into recursive call.
10989 (riscv_flatten_aggregate_argument): New arg. Pass to
10990 riscv_flatten_aggregate_field.
10991 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
10992 riscv_flatten_aggregate_argument twice, with false and true as last
10993 arg. Process result twice. Compare results and warn if different.
10994 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
10996 2019-08-08 Martin Liska <mliska@suse.cz>
10999 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
11000 * lto-wrapper.c (jobserver_active_p): Likewise.
11002 2019-08-08 Martin Liska <mliska@suse.cz>
11004 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
11005 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
11006 (create_version_clone_with_body): Likewise.
11008 2019-08-08 Jakub Jelinek <jakub@redhat.com>
11010 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
11011 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
11012 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
11013 GOVD_EXPLICIT flags.
11014 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
11015 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
11016 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
11017 call install_var_field with mask 11 instead of 3.
11018 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
11019 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
11021 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11023 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
11024 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
11026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11028 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
11029 MOVPRFX alternatives. Make the GPR alternatives more expensive
11032 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11034 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
11035 Disparage the GPR alternative relative to the FPR one.
11036 Fix handling of 8-bit and 16-bit FPR values.
11038 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11040 * config/aarch64/iterators.md (BITWISEV): Delete.
11041 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
11042 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
11043 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
11044 UNSPEC_FMINNMV, UNSPEC_FMINV.
11045 (bit_reduc_op): Delete.
11046 (sve_int_op): New int attribute.
11047 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
11048 UNSPEC_FMINNMV, UNSPEC_FMINV.
11049 * config/aarch64/aarch64-sve.md
11050 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
11051 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
11052 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
11053 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
11054 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
11055 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
11057 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
11058 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
11059 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
11060 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
11061 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
11064 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11066 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
11067 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
11068 (fms<mode>4, *fms<mode>4): Replace with...
11069 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
11070 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
11071 Use unspecs instead of rtx codes.
11072 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
11073 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
11075 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11077 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
11079 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
11080 * config/aarch64/aarch64-sve.md
11081 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
11082 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
11083 use a single unspec for the rhs.
11084 (*<su><maxmin><mode>3): Delete.
11085 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
11087 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11089 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
11090 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
11091 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
11092 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
11093 (optab, sve_fp_op): Handle them.
11094 (SVE_FP_UNARY): Delete.
11095 (optab): Remove sqrt entry.
11096 (sve_fp_op): Remove neg, abs and sqrt entries.
11097 (SVE_COND_FP_UNARY): New int iterator.
11098 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
11099 (*<frint_pattern><mode>2): Delete.
11100 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
11101 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
11102 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
11103 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
11105 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11107 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
11109 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11111 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
11112 (UNSPEC_COND_FADD): ...this.
11113 (UNSPEC_COND_SUB): Rename to...
11114 (UNSPEC_COND_FSUB): ...this.
11115 (UNSPEC_COND_MUL): Rename to...
11116 (UNSPEC_COND_FMUL): ...this.
11117 (UNSPEC_COND_DIV): Rename to...
11118 (UNSPEC_COND_FDIV): ...this.
11119 (UNSPEC_COND_MAX): Rename to...
11120 (UNSPEC_COND_FMAXNM): ...this.
11121 (UNSPEC_COND_MIN): Rename to...
11122 (UNSPEC_COND_FMINNM): ...this.
11123 (UNSPEC_COND_LT): Rename to...
11124 (UNSPEC_COND_FCMLT): ...this.
11125 (UNSPEC_COND_LE): Rename to...
11126 (UNSPEC_COND_FCMLE): ...this.
11127 (UNSPEC_COND_EQ): Rename to...
11128 (UNSPEC_COND_FCMEQ): ...this.
11129 (UNSPEC_COND_NE): Rename to...
11130 (UNSPEC_COND_FCMNE): ...this.
11131 (UNSPEC_COND_GE): Rename to...
11132 (UNSPEC_COND_FCMGE): ...this.
11133 (UNSPEC_COND_GT): Rename to...
11134 (UNSPEC_COND_FCMGT): ...this.
11135 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
11136 (sve_fp_op_rev): Update accordingly.
11137 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
11139 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11141 * config/aarch64/aarch64-sve.md: Reorganize contents and add
11143 * config/aarch64/check-sve-md.awk: New file.
11144 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
11145 (insn-conditions.md): Depend on it.
11147 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
11150 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
11151 (*negsi2_cmpz_zext): Ditto.
11153 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11155 * config/aarch64/iterators.md (commutative): Remove.
11157 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
11160 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
11161 processing COLLECT_GCC_OPTIONS.
11162 (run_gcc): Likewise.
11164 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11166 PR tree-optimization/91109
11167 * lra-remat.c (update_scratch_ops): Remove assignment of the
11170 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
11172 * data-streamer.h (streamer_write_poly_uint64): Declare.
11173 (streamer_read_poly_uint64): Likewise.
11174 * data-streamer-in.c (streamer_read_poly_uint64): New function.
11175 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
11176 * ipa-predicate.h (condition::size): Turn into a poly_int64.
11177 (add_condition): Take a poly_int64 size.
11178 * ipa-predicate.c (add_condition): Likewise.
11179 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
11180 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
11181 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
11182 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
11183 condition::size as a poly_int64.
11184 (unmodified_parm_1): Take a poly_int64 size pointer.
11185 (unmodified_parm): Likewise.
11186 (unmodified_parm_or_parm_agg_item): Likewise.
11187 (set_cond_stmt_execution_predicate): Update accordingly.
11188 (set_switch_stmt_execution_predicate): Likewise.
11189 (will_be_nonconstant_expr_predicate): Likewise.
11190 (will_be_nonconstant_predicate): Likewise.
11191 (inline_read_section): Stream condition::size as a poly_int.
11192 (ipa_fn_summary_write): Likewise.
11194 2019-08-07 Martin Liska <mliska@suse.cz>
11196 * fold-const.c (twoval_comparison_p): Replace int
11197 with bool as a return type.
11198 (simple_operand_p): Likewise.
11199 (operand_equal_p): Replace int with bool as a return type.
11200 * fold-const.h (operand_equal_p): Likewise.
11202 2019-08-07 Jakub Jelinek <jakub@redhat.com>
11204 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
11205 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
11206 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
11207 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
11208 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
11209 * tree-pretty-print.c (dump_omp_clause): Likewise.
11210 * tree-nested.c (convert_nonlocal_omp_clauses,
11211 convert_local_omp_clauses): Likewise.
11212 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11214 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
11215 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
11216 clause with array or reference to array types, no matter what type
11217 except for reference it has.
11219 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
11221 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
11223 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
11225 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
11226 (arch_canonicalize): Support rv32g and rv64g and fix error
11229 2019-08-06 Martin Liska <mliska@suse.cz>
11231 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
11232 and DECL_IS_OPERATOR_DELETE_P.
11234 2019-08-06 Jakub Jelinek <jakub@redhat.com>
11236 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
11237 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
11238 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
11239 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
11240 (gimplify_omp_for): Don't do C++ random access iterator clause
11241 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
11242 don't predetermine the artificial iterator in case of C++ random
11243 access iterators as lastprivate, but private. For OMP_LOOP, force
11244 bind expr around simd body and force for_pre_body before the
11245 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
11246 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
11247 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
11248 diff var of C++ random access iterators. Handle
11249 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
11250 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
11251 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
11252 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
11253 * omp-low.c (lower_rec_input_clauses): For
11254 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
11255 variables instead of default constructing them.
11256 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
11257 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
11258 is_taskloop_ctx check from the assert to the guarding condition.
11260 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
11262 * config/riscv/multilib-generator: (canonical_order): New.
11263 (arch_canonicalize): Dito.
11264 Apply arch_canonicalize for alts.
11266 2019-08-05 Martin Sebor <msebor@redhat.com>
11268 * doc/extend.texi (Common Variable Attributes): Document alias
11271 2019-08-05 Marek Polacek <polacek@redhat.com>
11273 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
11274 * doc/invoke.texi: Document -Wcomma-subscript.
11276 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
11278 * tree-core.h (tree_function_decl): Make function_code an
11279 independent field. Group the remaining bitfields into bytes
11280 and move decl_type so that it contines to be at a byte boundary.
11281 Leave 12 bits for future expansion.
11283 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
11285 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
11286 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
11287 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
11290 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
11292 * gimple.h (gimple_move_vops): Declare.
11293 * gimple.c (gimple_move_vops): New function
11294 * gimple-fold.c (replace_call_with_call_and_fold)
11295 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
11296 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
11297 (gimple_fold_call): Use it.
11298 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
11299 * tree-call-cdce.c (use_internal_fn): Likewise.
11300 * tree-if-conv.c (predicate_load_or_store): Likewise.
11301 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
11302 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11303 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
11304 (update_call_from_tree): Likewise.
11305 * tree-vect-stmts.c (vectorizable_load): Likewise.
11306 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
11308 2019-08-05 Martin Liska <mliska@suse.cz>
11311 * tree-ssa-dce.c (propagate_necessity): Handle new operators
11312 with not arguments.
11313 (eliminate_unnecessary_stmts): Likewise.
11315 2019-08-05 Richard Biener <rguenther@suse.de>
11317 PR middle-end/91169
11318 * fold-const.c (get_array_ctor_element_at_index): Create
11319 offset_ints according to the sign of the index type and treat
11320 that as signed if it is obviously so.
11322 2019-08-05 Jakub Jelinek <jakub@redhat.com>
11325 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
11326 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
11327 _mm256_storeu2_m128i): New function.
11329 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
11331 * config/riscv/riscv.c (riscv_promote_function_mode): New.
11332 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
11334 2019-08-05 Alan Modra <amodra@gmail.com>
11337 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
11338 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
11340 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
11342 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
11343 bug that was fixed in Tcl 8.6.1.
11345 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
11347 * config/rs6000/future.md: New file.
11348 * config/rs6000/rs6000.md: Include future.md.
11349 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
11351 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11353 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
11354 check to use targetm.slow_unaligned_access instead.
11356 * function.c (assign_param_data_one): Remove unused data members.
11358 2019-08-02 Steve Ellcey <sellcey@marvell.com>
11360 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
11361 build_distinct_type_copy.
11362 (simd_clone_adjust_argument_types): Ditto.
11363 (simd_clone_adjust): Call build_distinct_type_copy here.
11364 (expand_simd_clones): Ditto.
11366 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
11369 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
11371 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
11373 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
11374 from 'const void *'.
11375 (sort_locs_in_loop_postorder_cmp): Likewise.
11377 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
11379 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
11380 (hot-bb-count-ws-permille): Likewise.
11381 (hot-bb-frequency-fraction): Likewise.
11382 (unlikely-bb-count-fraction): Likewise.
11383 * params.def (hot-bb-count-fraction): Rework description.
11384 (hot-bb-count-ws-permille): Likewise.
11385 (hot-bb-frequency-fraction): Likewise.
11386 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
11387 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
11389 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
11392 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
11395 2019-08-02 Richard Biener <rguenther@suse.de>
11397 * vec.h (vec::sort): Add gcc_qsort_r support.
11398 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
11399 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
11400 to gcc_qsort_r style callback.
11401 (sort_locs_in_loop_postorder_cmp): Likewise.
11402 (analyze_memory_references): Use gcc_sort_r interfaces.
11403 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
11405 2019-08-02 Martin Liska <mliska@suse.cz>
11408 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
11409 to detect working job server.
11410 (driver::detect_jobserver): Test whether jobserver
11411 is active from GCC driver. That will prevent situation where
11412 GCC is invoked from a LD plugin and the linker already uses
11413 file descriptors suggested by make. That leads to a wrong
11415 * gcc.h (driver): Add detect_jobserver.
11416 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
11417 not scanning for --jobserver-auth prefix.
11419 2019-08-02 Jakub Jelinek <jakub@redhat.com>
11421 PR tree-optimization/91201
11422 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
11423 V16QImode extraction without sse4.1 try to use V4SImode lowpart
11426 2019-08-01 Martin Sebor <msebor@redhat.com>
11429 * tree.c (type_initializer_zero_p): Define.
11430 * tree.h (type_initializer_zero_p): New function.
11432 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
11434 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
11436 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
11438 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
11439 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
11440 * predict.c (maybe_hot_count_p): Likewise.
11441 (maybe_hot_bb_p): Tweak comment.
11442 (maybe_hot_edge_p): Likewise.
11443 (probably_never_executed): Likewise. Minor tweak.
11444 (probably_never_executed_bb_p): Likewise.
11445 (unlikely_executed_edge_p): Likewise.
11446 (probably_never_executed_edge_p): Likewise.
11447 (optimize_function_for_size_p): Likewise.
11448 (optimize_function_for_speed_p): Likewise.
11449 (function_optimization_type): Likewise.
11450 (optimize_bb_for_size_p): Likewise.
11451 (optimize_bb_for_speed_p): Likewise.
11452 (bb_optimization_type): Likewise.
11453 (optimize_edge_for_size_p): Likewise.
11454 (optimize_edge_for_speed_p): Likewise.
11455 (optimize_insn_for_size_p): Likewise.
11456 (optimize_insn_for_speed_p): Likewise.
11457 (optimize_loop_for_size_p): Likewise.
11458 (optimize_loop_for_speed_p): Likewise.
11459 (optimize_loop_nest_for_speed_p): Likewise.
11460 (optimize_loop_nest_for_size_p): Likewise.
11461 (predictable_edge_p): Likewise.
11462 (handle_missing_profiles): Minor tweak.
11464 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
11466 * config/rs6000/predicates.md (pcrel_external_address): Update
11469 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
11472 * config/i386/mmx.md (usadv8qi): New expander.
11474 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
11477 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
11478 with reserved names that are in a system header.
11480 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
11482 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
11483 (*vec_extractv2si_0_zext_sse4): New insn pattern.
11484 (*vec_extractv2si_0_zext): Ditto.
11485 (*vec_extractv2si_1): Add (rm,x) alternative.
11486 (*vec_extractv2si_1_zext): New insn pattern.
11487 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
11490 2019-08-01 Richard Biener <rguenther@suse.de>
11492 * domwalk.c (bb_postorder): Remove static variable.
11493 (cmp_bb_postorder): Adjust.
11494 (sort_bbs_postorder): Adjust and use gcc_sort_r.
11495 (dom_walker::walk): Adjust.
11497 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
11499 * sort.cc (sort_r_ctx): New struct.
11500 (reorder23): Make templated on context type.
11501 (reorder45): Ditto.
11502 (cmp1): Ditto. Adjust signature.
11504 (mergesort): Ditto.
11505 [CHECKING_P] (cmp2to3): New static function. Use it...
11506 (gcc_qsort) [CHECKING_P]: ...here.
11507 (gcc_sort_r): New function.
11508 * system.h (sort_r_cmp_fn): New function typedef.
11509 (qsort_chk): Adjust signature.
11510 (gcc_sort_r): Declare.
11511 * vec.c (qsort_chk_error): Adjust.
11512 (qsort_chk): Adjust.
11514 2019-08-01 Richard Biener <rguenther@suse.de>
11516 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
11517 (compute_antic): Localize it here.
11519 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
11521 * common/config/riscv/riscv-common.c: Check -march string ends
11524 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
11526 * ipa-devirt.c (type_warning_cmp): Make static.
11527 (decl_warning_cmp): Ditto.
11529 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
11532 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
11533 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
11534 use of deleted rs6000_dejagnu_cpu_index variable.
11535 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
11536 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
11537 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
11538 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
11539 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
11540 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
11542 2019-07-31 Richard Biener <rguenther@suse.de>
11544 PR tree-optimization/91280
11545 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11546 Decompose MEM_REF manually for offset handling.
11548 2019-07-31 Richard Biener <rguenther@suse.de>
11550 PR tree-optimization/91293
11551 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
11552 of reduction stmts.
11554 2019-07-31 Matt Thomas <matt@3am-software.com>
11555 Nick Hudson <nick@nthcliff.demon.co.uk>
11556 Matthew Green <mrg@eterna.com.au>
11557 Maya Rashish <coypu@sdf.org>
11559 * config.gcc (hppa*-*-netbsd*): New target.
11560 * config/pa/pa-netbsd.h: New file.
11561 * config/pa/pa32-netbsd.h: New file.
11563 2019-07-31 Jakub Jelinek <jakub@redhat.com>
11565 PR tree-optimization/91201
11566 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
11568 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
11570 * config/gcn/gcn-valu.md
11571 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
11572 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
11573 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
11574 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
11575 struct ilist. Add nops for delayeduse insns.
11576 * config/gcn/gcn.md (delayeduse): New attribute.
11577 (*movbi): Remove s_waitcnt from stores.
11578 (*mov<mode>_insn): Likewise.
11579 (*movti_insn): Likewise. Add delayeduse attribute.
11580 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
11581 (atomic_store<mode>): Remove or adjust s_waitcnt.
11583 2019-07-31 Richard Biener <rguenther@suse.de>
11585 * vr-values.h (vr_values::swap_vr_value): New.
11586 (vr_values::free_value_range): likewise.
11587 * vr-values.c (vr_values::swap_vr_value): Implement.
11588 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
11589 Do not return a range or take a var.
11590 (evrp_range_analyzer::stack): Change back to recording a non-const
11592 * gimple-ssa-evrp-analyze.c
11593 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
11595 (evrp_range_analyzer::pop_to_marker): Adjust.
11596 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
11597 (evrp_range_analyzer::pop_value_range): Likewise. Free the
11598 no longer needed value-range.
11600 2019-07-31 Martin Liska <mliska@suse.cz>
11602 * tree-ssa-dce.c (propagate_necessity): Delete operator can
11603 have size and (or) alignment as 2nd and later arguments.
11604 Mark all of them as necessary.
11606 2019-07-31 Richard Biener <rguenther@suse.de>
11608 PR tree-optimization/91178
11609 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
11610 Use tail-recursion.
11612 2019-07-31 Jakub Jelinek <jakub@redhat.com>
11614 PR tree-optimization/91201
11615 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
11616 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
11618 (reduc_plus_scal_<mode>): Improve formatting by introducing
11621 2019-07-31 Sudakshina Das <sudi.das@arm.com>
11623 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
11624 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
11625 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
11626 (aarch64_init_tme_builtins): New.
11627 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
11628 (aarch64_expand_builtin_tme): New.
11629 (aarch64_expand_builtin): Handle TME builtins.
11630 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11631 __ARM_FEATURE_TME when enabled.
11632 * config/aarch64/aarch64-option-extensions.def: Add "tme".
11633 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
11635 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
11636 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
11638 (tstart, ttest, tcommit, tcancel): New instructions.
11639 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
11640 (__tcancel, __ttest): New.
11641 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
11642 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
11643 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
11644 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
11645 * config/arm/types.md: Add new tme type attr.
11646 * doc/invoke.texi: Document "tme".
11648 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
11650 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
11651 warn_unused_result attribute.
11652 (cmse_check_address_range): Add warn_unused_result attribute.
11654 2019-07-31 Richard Biener <rguenther@suse.de>
11656 PR tree-optimization/91257
11657 * tree-vrp.c (union_ranges): Unify equality and less tests
11658 by using compare_values. Re-order cheap tests first.
11660 2019-07-31 Jakub Jelinek <jakub@redhat.com>
11662 PR middle-end/91301
11663 * gimplify.c (gimplify_omp_for): If for class iterator on
11664 distribute parallel for there is no data sharing clause
11665 on inner_for_stmt, look for private clause on combined
11666 parallel too and if found, move it to inner_for_stmt.
11668 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
11670 * lra-int.h (lra_operand_data): Remove early_clobber field.
11671 (lra_insn_reg): Likewise.
11672 * lra.c (debug_operand_data): Update accordingly.
11673 (setup_operand_alternative): Likewise.
11674 (new_insn_reg): Likewise. Remove early_clobber parameter.
11675 (collect_non_operand_hard_regs): Update call accordingly.
11676 Don't assign to lra_insn_reg::early_clobber.
11677 (add_regs_to_insn_regno_info): Remove early_clobber parameter
11678 and update calls to new_insn_reg.
11679 (lra_update_insn_regno_info): Update calls accordingly.
11680 * lra-constraints.c (update_and_check_small_class_inputs): Take the
11681 alternative number as a parameter and test whether the operand
11682 is earlyclobbered in that particular alternative.
11683 (process_alt_operands): Update call accordingly. Use per-alternative
11684 checks for earyclobber here too.
11685 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
11686 against zero for IRA_UNKNOWN_ALT.
11688 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
11690 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
11692 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
11694 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
11695 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11697 2019-07-30 Martin Liska <mliska@suse.cz>
11700 * cgraph.c (cgraph_edge::make_direct): Use
11701 edge->indirect_unknown_callee as edge->resolve_speculation can
11702 deallocate edge which is this pointer.
11704 2019-07-30 Richard Biener <rguenther@suse.de>
11706 PR tree-optimization/91257
11707 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
11709 2019-07-30 Martin Liska <mliska@suse.cz>
11711 * doc/invoke.texi: Document new behavior.
11712 * lto-wrapper.c (cpuset_popcount): New function
11713 is a copy of libgomp/config/linux/proc.c.
11714 (init_num_threads): Likewise.
11715 (run_gcc): Automatically detect core count for -flto.
11716 (jobserver_active_p): New function.
11718 2019-07-30 Richard Biener <rguenther@suse.de>
11720 PR tree-optimization/91257
11721 * bitmap.h (bitmap_ior_into_and_free): Declare.
11722 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
11723 whether to add the unliked element to the freelist.
11724 (bitmap_list_insert_element_after): Add defaulted param for
11725 an already allocated element.
11726 (bitmap_ior_into_and_free): New function.
11727 * tree-ssa-structalias.c (condense_visit): Reduce the
11728 ponts-to and edge bitmaps of the SCC members in a
11729 logarithmic fashion rather than all to one.
11731 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
11733 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
11734 parameter. When nonnull, make sure that the addition or subtraction
11735 has the same condition.
11736 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
11737 for CFN_COND_MUL too.
11739 2019-07-30 Richard Biener <rguenther@suse.de>
11741 PR tree-optimization/91291
11742 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
11745 2019-07-30 Jakub Jelinek <jakub@redhat.com>
11747 PR middle-end/91216
11748 * omp-low.c (global_nonaddressable_vars): New variable.
11749 (use_pointer_for_field): For global decls, if they are non-addressable,
11750 remember it in the global_nonaddressable_vars bitmap, if they are
11751 addressable and in the global_nonaddressable_vars bitmap, ignore their
11752 TREE_ADDRESSABLE bit.
11753 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
11754 vars in global_nonaddressable_vars bitmap.
11755 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
11758 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
11759 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
11760 comparison to unsigned HOST_WIDE_INT before shifting it left.
11762 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
11764 * config/i386/i386.md (movstrict<mode>): Use register_operand
11765 predicate for operand 0. Add expander condition. Assert that
11766 operand 0 is a SUBREG RTX.
11767 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
11768 Update operand constraints and insn condition.
11769 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
11770 (zero_extendqihi2_and): Do not call gen_movstrictqi.
11771 (*setcc_qi_slp): Use register_operand predicate for operand 0.
11772 Update operand 0 constraints.
11773 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
11775 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11777 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
11778 when -m{code,data}-region are used without -mlarge.
11779 * config/msp430/msp430.c (msp430_option_override): Error when a
11780 non-default code or data region is used without -mlarge.
11781 (msp430_section_attr): Emit a warning and do not add upper/lower/either
11782 attributes when they are used without -mlarge.
11784 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11787 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
11789 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11791 PR middle-end/91242
11792 * wide-int.h (generic_wide_int::sext_elt): New function.
11793 * inchash.h (hash::add_wide_int): Use it instead of elt.
11795 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11797 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
11799 * config/arm/arm.md (<crc_variant>): Rename to...
11800 (arm_<crc_variant>): ... This.
11801 (<cdp>): Rename to...
11802 (arm_<cdp>): ... This.
11803 (<ldc>): Rename to...
11804 (arm_<ldc>): ... This.
11805 (<stc>): Rename to...
11806 (arm_<stc>): ... This.
11807 (<mcr>): Rename to...
11808 (arm_<mcr>): ... This.
11809 (<mrc>): Rename to...
11810 (arm_<mrc>): ... This.
11811 (<mcrr>): Rename to...
11812 (arm_<mcrr>): ... This.
11813 (<mrrc>): Rename to...
11814 (arm_<mrrc>): ... This.
11816 2019-07-29 Richard Biener <rguenther@suse.de>
11818 PR tree-optimization/91257
11819 * tree-ssa-sccvn.h (struct vn_avail): New.
11820 (struct vn_ssa_aux): Add avail member.
11821 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
11822 member, add m_avail_freelist one.
11823 (rpo_elim::~rpo_elim): Remove.
11824 (rpo_elim::eliminate_avail): Adjust to new avail tracking
11826 (rpo_elim::eliminate_push_avail): Likewise.
11827 (do_unwind): Likewise.
11828 (do_rpo_vn): Likewise.
11830 2019-07-29 Richard Biener <rguenther@suse.de>
11832 PR tree-optimization/91257
11833 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
11834 most cases, instead call compare_values which handles the
11835 symbolic ranges we handle specially.
11836 (compare_values_warnv): Do not call operand_less_p but open-code
11837 the effective fold calls. Avoid converting so much.
11839 2019-07-29 Martin Liska <mliska@suse.cz>
11841 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
11842 remove LHS of operator new call. It's handled latter.
11844 2019-07-29 Richard Biener <rguenther@suse.de>
11846 PR tree-optimization/91267
11847 * vr-values.c (vr_values::update_value_range): Add early return
11848 for effectively VARYING lattice entry.
11850 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11853 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
11854 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
11855 necessary if keep_all_vdefs_p is true.
11856 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
11857 that keep_all_vdefs_p is false.
11858 (mark_all_reaching_defs_necessary): Likewise.
11859 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
11861 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11863 * common.opt (Og): Change the initial value of flag_dse to 0.
11864 * opts.c (default_options_table): Move OPT_ftree_dse from
11865 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
11866 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
11867 entry before the OPT_ftree_sra entry.
11868 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
11869 of flags disabled by Og.
11871 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11873 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
11876 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11878 * doc/sourcebuild.texi (check-function-bodies): Document.
11880 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11882 * simplify-rtx.c (simplify_const_unary_operation): Fold a
11883 VEC_DUPLICATE of a fixed-length vector even if the result
11884 is variable-length. Likewise fold a duplicate of a
11885 variable-length vector if the variable-length vector is
11886 itself a duplicate of a fixed-length sequence.
11887 (test_vector_ops_duplicate): Test more cases.
11889 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
11891 * vector-builder.h (vector_builder): Add a shape template parameter.
11892 (vector_builder::new_unary_operation): New function, generalizing
11893 the old tree_vector_builder function.
11894 (vector_builder::new_binary_operation): Likewise.
11895 (vector_builder::binary_encoded_nelts): Likewise.
11896 * int-vector-builder.h (int_vector_builder): Update template
11897 parameters to vector_builder.
11898 (int_vector_builder::shape_nelts): New function.
11899 * rtx-vector-builder.h (rtx_vector_builder): Update template
11900 parameters to vector_builder.
11901 (rtx_vector_builder::shape_nelts): New function.
11902 (rtx_vector_builder::nelts_of): Likewise.
11903 (rtx_vector_builder::npatterns_of): Likewise.
11904 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
11905 * tree-vector-builder.h (tree_vector_builder): Update template
11906 parameters to vector_builder.
11907 (tree_vector_builder::shape_nelts): New function.
11908 (tree_vector_builder::nelts_of): Likewise.
11909 (tree_vector_builder::npatterns_of): Likewise.
11910 (tree_vector_builder::nelts_per_pattern_of): Likewise.
11911 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
11912 (tree_vector_builder::new_binary_operation): Delete.
11913 (tree_vector_builder::binary_encoded_nelts): Likewise.
11914 * simplify-rtx.c: Include rtx-vector-builder.h.
11915 (distributes_over_addition_p): New function.
11916 (simplify_const_unary_operation)
11917 (simplify_const_binary_operation): Generalize handling of vector
11918 constants to include variable-length vectors.
11919 (test_vector_ops_series): Add more tests.
11921 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
11924 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
11925 than INDENTIFIER_POINTER.
11927 2019-07-28 Martin Liska <mliska@suse.cz>
11930 * cgraph.c (symbol_table::create_edge): Always allocate
11932 (symbol_table::free_edge): Store summary_id to
11933 edge_released_summary_ids if != -1;
11934 * cgraph.h (NEXT_FREE_NODE): Remove.
11935 (SET_NEXT_FREE_NODE): Likewise.
11936 (NEXT_FREE_EDGE): Likewise.
11937 (symbol_table::release_symbol): Store summary_id to
11938 cgraph_released_summary_ids if != -1;
11939 (symbol_table::allocate_cgraph_symbol): Always allocate
11942 2019-07-28 Alan Modra <amodra@gmail.com>
11944 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
11947 2019-07-28 Alan Modra <amodra@gmail.com>
11950 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
11952 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
11953 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
11954 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
11956 2019-07-28 Alan Modra <amodra@gmail.com>
11959 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
11960 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
11961 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
11962 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
11963 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
11964 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
11965 in asm_default spec.
11966 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
11967 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
11969 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
11971 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
11973 2019-07-26 Tamar Christina <tamar.christina@arm.com>
11976 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
11977 * config/aarch64/aarch64-option-extensions.def: Add new comments
11978 and restore easier to read options.
11980 2019-07-26 Tamar Christina <tamar.christina@arm.com>
11982 * convert.c (convert_to_real_1): Move part of conversion code...
11983 * match.pd: ...To here.
11985 2019-07-26 Martin Jambor <mjambor@suse.cz>
11988 * ipa-inline-transform.c (check_speculations_1): New function.
11989 (push_all_edges_in_set_to_vec): Likewise.
11990 (check_speculations): Use check_speculations_1, new parameter
11992 (inline_call): Pass new_edges to check_speculations.
11993 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
11995 (speculation_useful_p): Early return true if edge is inlined, remove
11996 later checks for inline_failed.
11998 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
12000 PR rtl-optimization/91223
12001 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
12002 matching with INOUT operand.
12004 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
12006 * stmt.c (expand_case): Try to narrow the index type if it's larger
12007 than a word. Tidy up.
12009 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
12011 * cif-code.def (NEVER_CALL): New code.
12012 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
12013 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
12015 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
12017 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
12018 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12020 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
12022 * ipa-devirt.c (add_type_duplicate): Fix return value.
12024 2019-07-25 Richard Biener <rguenther@suse.de>
12026 * tree-vrp.c (extract_range_from_multiplicative_op): Add
12027 type parameter and use it instead of guessing expression
12028 type from the first operand.
12029 (extract_range_from_binary_expr): Pass expr_type down.
12031 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12033 * config/arm/arm.md (SATrev): Change to code attribute.
12034 (*satsi_<SAT:code>): Adjust for the above.
12035 (*satsi_<SAT:code>_shift): Likewise.
12037 2019-07-25 Richard Biener <rguenther@suse.de>
12039 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
12040 Make value_range * temporary const.
12041 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
12043 (evrp_range_analyzer::record_ranges_from_): Likewise.
12044 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
12045 deal with having recorded a const one.
12046 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
12047 Return a const value_range *.
12048 (evrp_range_analyzer::pop_value_range): Likewise.
12049 (evrp_range_analyzer::stack): Record const value_range *s.
12050 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
12052 * gimple-ssa-sprintf.c (get_int_range): Likewise.
12053 (format_integer): Likewise.
12054 (sprintf_dom_walker::handle_gimple_call): Likewise.
12055 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
12056 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
12057 (vrp_prop::get_value_range): Adjust.
12058 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
12059 modifying the lattice in-place.
12060 (vrp_prop::visit_stmt): Likewise.
12061 * vr-values.c (vr_values::get_lattice_entry): New private method.
12062 (vr_values::get_value_range): Wrap it and return a const
12064 (vr_values::set_def_to_varying): New.
12065 (vr_values::set_defs_to_varying): Use it.
12066 (vr_values::update_value_range): Likewise.
12067 (vr_values::vrp_stmt_computes_nonzero): Adjust.
12068 (values::op_with_constant_singleton_va): Likewise.
12069 (vr_values::extract_range_for_var_from_co): Likewise.
12070 (vr_values::extract_range_from_ssa_name): Likewise.
12071 (vr_values::extract_range_from_cond_expr): Likewise.
12072 (vr_values::extract_range_basic): Likewise.
12073 (compare_ranges): Take const value_range *, adjust.
12074 (compare_range_with_value): Likewise.
12075 (vrp_valueize): Adjust.
12076 (vrp_valueize_1): Likewise.
12077 (vr_values::get_vr_for_comparison): Return a const value_range *.
12078 (vr_values::compare_name_with_value): Adjust.
12079 (vr_values::compare_names): Likewise.
12080 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
12082 (vr_values::vrp_evaluate_conditional): Likewise.
12083 (find_case_label_ranges): Take a const value_range *.
12084 (vr_values::vrp_visit_switch_stmt): Adjust.
12085 (vr_values::extract_range_from_phi_node): Likewise.
12086 (vr_values::simplify_div_or_mod_using_ran): Likewise.
12087 (vr_values::simplify_abs_using_ranges): Likewise.
12088 (test_for_singularity): Take a const value_range *.
12089 (range_fits_type_p): Likewise.
12090 (vr_values::simplify_cond_using_ranges_1): Adjust.
12091 (vr_values::simplify_cond_using_ranges_2): Likewise.
12092 (vr_values::simplify_switch_using_ranges): Likewise.
12093 (vr_values::simplify_float_conversion_usi): Likewise.
12094 (vr_values::two_valued_val_range_p): Likewise.
12095 * vr-values.h (vr_values::get_value_range): Return a const
12097 (vr_values::set_def_to_varying): New.
12098 (vr_values::get_lattice_entry): New private method.
12099 (vr_values::get_vr_for_comparison): Return a const value_range *.
12101 2019-07-25 Martin Liska <mliska@suse.cz>
12102 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
12105 * common.opt: Add -fallocation-dce
12106 * gimple.c (gimple_call_operator_delete_p): New.
12107 * gimple.h (gimple_call_operator_delete_p): Likewise.
12108 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
12109 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
12110 DECL_IS_OPERATOR_DELETE_P.
12111 (mark_all_reaching_defs_necessary_1): Likewise.
12112 (propagate_necessity): Likewise.
12113 (eliminate_unnecessary_stmts): Handle
12114 gimple_call_operator_delete_p.
12115 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
12116 Add packing of OPERATOR_DELETE.
12117 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
12119 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
12120 (DECL_SET_IS_OPERATOR_DELETE): New.
12121 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
12123 2019-07-25 Martin Liska <mliska@suse.cz>
12125 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
12126 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
12127 * coverage.c (coverage_begin_function): Likewise.
12128 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
12129 * gimple.c (gimple_call_nonnull_result_p): Likewise.
12130 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
12131 (sem_item::hash_referenced_symbol_properties): Likewise.
12132 * lto-streamer-out.c (hash_tree): Likewise.
12133 * predict.c (expr_expected_value_1): Likewise.
12134 * tree-inline.c (expand_call_inline): Likewise.
12135 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
12136 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
12137 * tree-core.h (enum function_decl_type): New enum.
12138 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
12139 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
12140 (set_function_decl_type): Likewise.
12141 (DECL_IS_OPERATOR_NEW_P): New.
12142 (DECL_SET_IS_OPERATOR_NEW): Likewise.
12143 (DECL_LAMBDA_FUNCTION): Likewise.
12144 (DECL_LAMBDA_FUNCTION_P): Likewise.
12145 (DECL_IS_OPERATOR_NEW): Remove.
12146 (DECL_SET_LAMBDA_FUNCTION): Likewise.
12148 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
12150 * ipa-profile.c (get_most_common_single_value): Use
12151 get_nth_most_common_value.
12152 * profile.c (sort_hist_value): New function.
12153 (compute_value_histograms): Call sort_hist_value to sort the
12154 values after loading from disk.
12155 * value-prof.c (get_most_common_single_value): Rename to ...
12156 get_nth_most_common_value. Add input params n, return
12157 the n_th value and count.
12158 (gimple_divmod_fixed_value_transform): Use
12159 get_nth_most_common_value.
12160 (gimple_ic_transform): Likewise.
12161 (gimple_stringops_transform): Likewise.
12162 * value-prof.h (get_most_common_single_value): Add input params
12165 2019-07-25 Richard Biener <rguenther@suse.de>
12167 PR tree-optimization/91236
12168 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
12169 size of CONSTRUCTOR write. Fix buffer size we pass to
12170 native_encode_expr.
12172 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12174 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
12175 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
12178 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12180 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
12181 explicitly disabled with --disable-initfini-array.
12183 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12185 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
12188 2019-07-24 Martin Sebor <msebor@redhat.com>
12190 PR tree-optimization/91183
12191 PR tree-optimization/86688
12192 * builtins.c (compute_objsize): Handle MEM_REF.
12193 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
12194 (get_min_string_length): Remove.
12195 (count_nonzero_bytes): New function.
12196 (handle_char_store): Rename...
12197 (handle_store): to this. Handle multibyte stores via integer types.
12198 (strlen_check_and_optimize_stmt): Adjust conditional and the called
12201 2019-07-24 Martin Sebor <msebor@redhat.com>
12204 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
12205 (diagnostic_report_diagnostic): Same.
12206 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
12207 (diagnostic_context::lang_mask): New data member.
12208 * ipa-pure-const.c (suggest_attribute): Use
12209 lang_hooks.option_lang_mask ().
12210 * opts-common.c (option_enabled): Handle new argument.
12211 (get_option_state): Pass an additional argument.
12212 * opts.c (print_filtered_help): Print supported languages for
12213 unsupported options. Adjust printing of current state.
12214 * opts.h (option_enabled): Add argument.
12215 * toplev.c (print_switch_values): Use lang_mask.
12216 (general_init): Set global_dc->lang_mask.
12218 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
12221 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
12223 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
12225 * cgraphunit.c (symbol_table::compile): Start and stop
12226 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
12227 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
12229 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
12231 * gimplify.c (flag_instrument_functions_exclude_p): Include
12232 namespace/class information in the printable name.
12233 * opts.c (add_comma_separated_to_vector): Add NUL terminator
12234 to tokens entered into the vector.
12236 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
12238 * tree-nested.c (build_simple_mem_ref_notrap): New function.
12239 (get_static_chain): Call it instead of build_simple_mem_ref.
12240 (get_frame_field): Likewise.
12241 (get_nonlocal_debug_decl): Likewise.
12242 (convert_nonlocal_reference_op): Likewise.
12244 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
12246 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
12248 (arc_compute_frame_size): Millicode is disabled when compiling
12250 (arc_return_address_register): Likewise.
12251 (arc_compute_function_type): Likewise.
12252 (arc_compute_frame_size): Likewise.
12253 (secondary_reload_info): Likewise.
12254 (arc_get_unalign): Likewise.
12255 (arc_can_use_return_insn): Declare.
12256 * config/arc/arc.c (AUX_LP_START): Define
12257 (AUX_LP_END): Likewise.
12258 (arc_frame_info): Update gmask member to 64-bit datum.
12259 (GMASK_LEN): Update.
12260 (arc_compute_function_type): Make it static, move it forward.
12261 (arc_must_save_register): Update, consider the extra regs.
12262 (arc_compute_millicode_save_restore_regs): Update to use the 64
12264 (arc_compute_frame_size): Likewise.
12265 (arc_enter_leave_p): Likewise.
12266 (arc_save_callee_saves): Likewise.
12267 (arc_restore_callee_saves): Likewise.
12268 (arc_save_callee_enter): Likewise.
12269 (arc_restore_callee_leave): Likewise.
12270 (arc_save_callee_milli): Likewise.
12271 (arc_restore_callee_milli): Likewise.
12272 (arc_expand_prologue): Add new interrupt handling.
12273 (arc_return_address_register): Make it static, move it forward.
12274 (arc_expand_epilogue): Add new interrupt handling.
12275 (arc_get_unalign): Delete.
12276 (arc_epilogue_uses): Make sure we do not remove the extra
12277 saved/restored registers when interrupt.
12278 (arc_can_use_return_insn): New function.
12279 (push_reg): Likewise.
12280 (pop_reg): Likewise.
12281 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
12283 (arc_restore_callee_saves): Likewise, but restoring.
12284 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
12285 (R33_REG): Likewise.
12286 (R34_REG): Likewise.
12287 (R35_REG): Likewise.
12288 (R36_REG): Likewise.
12289 (R37_REG): Likewise.
12290 (R38_REG): Likewise.
12291 (R39_REG): Likewise.
12292 (R45_REG): Likewise.
12293 (R46_REG): Likewise.
12294 (R47_REG): Likewise.
12295 (R48_REG): Likewise.
12296 (R49_REG): Likewise.
12297 (R50_REG): Likewise.
12298 (R51_REG): Likewise.
12299 (R52_REG): Likewise.
12300 (R53_REG): Likewise.
12301 (R54_REG): Likewise.
12302 (R55_REG): Likewise.
12303 (R56_REG): Likewise.
12304 (R58_REG): Likewise.
12305 (type): Add rtie attribute.
12306 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
12307 (movsi_insn): Accept moves to lp_count.
12308 (rtie): Update pattern.
12309 (simple_return): Simplify it, don't use this pattern as a return
12311 (arc600_rtie): New pattern.
12312 (p_return_i): Clean up.
12313 (return): Likewise.
12314 * config/arc/builtins.def (rtie): Only available for non ARC6xx
12316 * config/arc/predicates.md (move_src_operand): Consider lp_count
12319 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
12321 * config/s390/predicates.md (addv_const_operand): New predicate.
12322 * config/s390/s390-modes.def (CCO): New condition code mode.
12323 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
12324 (s390_branch_condition_mask): Likewise.
12325 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
12326 ("mulv<mode>4"): New expanders.
12327 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
12328 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
12329 pattern definitions.
12331 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12333 PR middle-end/91166
12334 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
12335 (define_predicates): Add entry for uniform_vector_p.
12336 (vec_same_elem_p): New match pattern.
12338 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
12341 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
12342 * config/i386/darwin32-biarch.h .. to here.
12343 * config/i386/darwin64-biarch.h: Adjust comments.
12344 * config/rs6000/darwin32-biarch.h: Likewise.
12345 * config/rs6000/darwin64-biarch.h: Likewise.
12346 * config.gcc: Missed commit from r273746
12347 (*-*-darwin*): Don't include CPU t-darwin here.
12348 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
12349 an error message if i686-darwin configuration is attempted for
12352 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
12355 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
12356 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
12357 an error message if i686-darwin configuration is attempted for
12359 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
12360 (powerpc-*-darwin*): Use biarch files where needed.
12361 (powerpc64-*-darwin*): Likewise.
12362 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
12363 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
12365 * config/i386/darwin32-biarch.h: New.
12366 * config/i386/darwin64.h: Rename.
12367 * config/i386/darwin64-biarch.h: To this.
12368 * config/i386/t-darwin: Rename.
12369 * config/i386/t-darwin32-biarch: To this.
12370 * config/i386/t-darwin64: Rename.
12371 * config/i386/t-darwin64-biarch: To this.
12372 * config/rs6000/darwin32-biarch.h: New.
12373 * config/rs6000/darwin64.h: Rename.
12374 * config/rs6000/darwin64-biarch.h: To this.
12375 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
12377 * config/rs6000/t-darwin8: Rename.
12378 * config/rs6000/t-darwin32-biarch: To this.
12379 * config/rs6000/t-darwin64 Rename.
12380 * config/rs6000/t-darwin64-biarch: To this.
12382 2019-07-23 Martin Sebor <msebor@redhat.com>
12384 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
12386 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
12388 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
12389 (rh): New alias for it.
12391 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
12393 * gdbhooks.py: Pass replace=True to
12394 gdb.printing.register_pretty_printer.
12396 2019-07-23 Richard Biener <rguenther@suse.de>
12399 * lto-streamer-in.c (input_function): Drop inline-entry markers
12400 that ended up with an unknown location block.
12402 2019-07-23 Richard Biener <rguenther@suse.de>
12404 PR tree-optimization/83518
12405 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
12406 init from a constant even when partial defs are already recorded.
12408 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
12410 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
12411 * config/i386/znver1.md: Enable patterns for znver2 and add store
12412 variants which use extra AGU unit.
12414 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
12416 * config/i386/i386-options.c (ix86_option_override_internal): Default
12417 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
12418 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
12421 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
12423 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
12424 (znver2_costs): Update 256 bit SSE costs and multiplication.
12426 2019-07-23 Jan Beulich <jbeulich@suse.com>
12428 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
12429 Require only AVX512F.
12430 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
12431 alternative expanding to vpternlog.
12433 2019-07-23 Martin Liska <mliska@suse.cz>
12435 * dwarf2out.c (gen_producer_string): Canonize -flto=N
12436 to -flto in dwarf producer string.
12438 2019-07-23 Richard Biener <rguenther@suse.de>
12440 * tree-cfg.c (label_for_bb): Remove global var.
12441 (main_block_label): Take label_for_bb as argument.
12442 (cleanup_dead_labels_eh): Likewise, adjust.
12443 (cleanup_dead_labels): Adjust.
12445 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
12447 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
12448 Configurations): Add documentation for __builtin_mtfsf.
12450 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
12452 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
12453 * config/riscv/riscv.c (riscv_constant_alignment): Use
12454 riscv_align_data_type.
12455 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
12456 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
12457 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
12458 * config/riscv/riscv.opt (malign-data): New.
12459 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
12461 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
12463 * cgraph.c (dump_graphviz): New function.
12464 * cgraph.h (dump_graphviz): New function.
12465 * symtab.c (dump_graphviz): New function.
12467 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
12469 * config/aarch64/aarch64-simd.md
12470 (*aarch64_simd_sra<mode>): New.
12471 * config/aarch64/iterators.md
12472 (SHIFTRT): New iterator.
12473 (sra_op): New attribute.
12475 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12477 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
12478 callee-saved regs R4->R10 in an interrupt function that calls another
12481 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
12483 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
12484 (_mm_blendv_epi8): New.
12486 2019-07-22 Richard Biener <rguenther@suse.de>
12488 PR tree-optimization/91221
12489 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
12490 restrict partial-def handling of empty constructors and
12491 memset to refs with known offset.
12493 2019-07-22 Jan Beulich <jbeulich@suse.com>
12495 * config/i386/sse.md (ternlogsuffix): New.
12496 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
12498 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
12500 2019-07-22 Martin Liska <mliska@suse.cz>
12502 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
12504 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
12506 2019-07-22 Martin Liska <mliska@suse.cz>
12508 * lto-section-in.c (lto_get_section_data):
12509 Use new function get_compression.
12510 * lto-streamer-out.c (produce_lto_section): Use
12511 set_compression to encode compression algorithm.
12512 * lto-streamer.h (struct lto_section): Do not
12513 use bitfields in the format.
12515 2019-07-22 Martin Liska <mliska@suse.cz>
12518 * opts-common.c (decode_cmdline_option): Decode
12519 argument of -Werror and check it for a wrong language.
12520 * opts-global.c (complain_wrong_lang): Remove such case.
12522 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
12524 * config/arc/arc.c (prepare_move_operands): Always use an
12525 intermediate register when storing a TLS symbols.
12527 2019-07-22 Stafford Horne <shorne@gmail.com>
12529 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
12532 2019-07-22 Stafford Horne <shorne@gmail.com>
12534 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
12535 and munordered-float validations.
12536 * config/or1k/constraints.md (d): New register constraint.
12537 * config/or1k/predicates.md (fp_comparison_operator): New.
12538 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
12540 (or1k_expand_compare): Normalize unordered comparisons.
12541 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
12542 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
12543 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
12544 * config/or1k/or1k.md (type): Add fpu.
12545 (fpu): New instruction reservation.
12546 (F, f, fr, fi, FI, FOP, fop): New.
12547 (<fop><F:mode>3): New ALU instruction definition.
12548 (float<fi><F:mode>2): New conversion instruction definition.
12549 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
12550 (fpcmpcc): New code iterator.
12551 (*sf_fp_insn): New instruction definition.
12552 (cstore<F:mode>4): New expand definition.
12553 (cbranch<F:mode>4): New expand definition.
12554 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
12555 munordered-float): New options.
12556 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
12559 2019-07-22 Stafford Horne <shorne@gmail.com>
12561 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
12562 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
12563 documenation to be more clear.
12564 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
12566 * config/or1k/or1k.opt (mrori): New option.
12567 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
12568 msfimm, mshftimm): Rewrite documentation to be more clear.
12569 * config/or1k/or1k.md (insn_support): Add ror and rori.
12570 (enabled): Add conditions for ror and rori.
12571 (rotrsi3): Replace condition for shftimm with ror and rori.
12573 2019-07-22 Stafford Horne <shorne@gmail.com>
12576 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
12577 (extend<mode>si2): Update predicate.
12578 * config/or1k/predicates.md (volatile_mem_operand): New.
12579 (reg_or_mem_operand): New.
12581 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
12583 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
12584 * config/rs6000/rs6000-call.c: ... to here.
12586 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12588 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
12591 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12593 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
12595 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12597 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
12599 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12601 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
12602 (any_memory_operand): New predicate.
12603 (reg_or_mem_operand): Use it.
12605 2019-07-20 Jakub Jelinek <jakub@redhat.com>
12608 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
12610 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
12612 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
12613 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
12615 2019-07-20 Jakub Jelinek <jakub@redhat.com>
12617 * tree.def (OMP_LOOP): New tree code.
12618 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
12619 (enum omp_clause_bind_kind): New enum.
12620 (struct tree_omp_clause): Add subcode.bind_kind.
12621 * tree.h (OMP_LOOP_CHECK): Rename to ...
12622 (OMP_LOOPING_CHECK): ... this.
12623 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12624 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
12625 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
12626 (OMP_CLAUSE_BIND_KIND): Define.
12627 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12628 bind clause entries.
12629 (walk_tree_1): Handle OMP_CLAUSE_BIND.
12630 * tree-pretty-print.c (dump_omp_clause): Likewise.
12631 (dump_generic_node): Handle OMP_LOOP.
12632 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
12633 (in_omp_construct): New variable.
12634 (is_gimple_stmt): Handle OMP_LOOP.
12635 (gimplify_scan_omp_clauses): For lastprivate don't set
12636 check_non_private if code == OMP_LOOP. For reduction clause
12637 on OMP_LOOP combined with parallel or teams propagate as shared
12638 on the combined construct. Handle OMP_CLAUSE_BIND.
12639 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
12640 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
12641 for constructs from a loop construct to gimplify_scan_omp_clauses.
12642 Don't predetermine iterator linear on OMP_SIMD from loop construct.
12643 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
12644 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
12645 to match the implicit ORT_TARGET construct around whole body.
12646 Temporarily clear in_omp_construct when processing body.
12647 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
12648 etc. temporarily set in_omp_construct when processing body.
12649 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
12650 * omp-low.c (struct omp_context): Add loop_p.
12651 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
12652 in that the original var might be private.
12653 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
12654 (check_omp_nesting_restrictions): Adjust nesting restrictions for
12655 addition of loop construct.
12656 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
12658 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
12659 lastprivate non-addressable iterator of a collapse(1) simd.
12661 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
12663 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
12666 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
12668 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
12669 refer to default conditions. Warn for the 'y' spec which is ignored
12670 by current linkers.
12672 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
12674 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
12675 cpu_supports_info, builtin_hash_struct, builtin_hasher,
12676 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
12677 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
12678 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
12679 init_cumulative_args, rs6000_promote_function_mode,
12680 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
12681 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
12682 rs6000_function_arg_boundary, rs6000_parm_offset,
12683 rs6000_parm_start, rs6000_arg_size,
12684 rs6000_darwin64_record_arg_advance_flush,
12685 rs6000_darwin64_record_arg_advance_recurse,
12686 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
12687 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
12688 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
12689 rs6000_mixed_function_arg, rs6000_psave_function_arg,
12690 rs6000_finish_function_arg, rs6000_function_arg,
12691 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
12692 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
12693 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
12694 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
12695 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
12696 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
12697 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
12698 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
12699 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
12700 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
12701 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
12702 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
12703 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
12704 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
12705 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
12706 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
12707 get_element_number, altivec_expand_vec_set_builtin,
12708 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
12709 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
12710 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
12711 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
12712 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
12713 rs6000_expand_builtin, rs6000_vector_type,
12714 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
12715 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
12716 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
12718 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
12719 cpu_supports_info, builtin_hash_struct, builtin_hasher,
12720 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
12721 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
12722 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
12723 init_cumulative_args, rs6000_promote_function_mode,
12724 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
12725 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
12726 rs6000_function_arg_boundary, rs6000_parm_offset,
12727 rs6000_parm_start, rs6000_arg_size,
12728 rs6000_darwin64_record_arg_advance_flush,
12729 rs6000_darwin64_record_arg_advance_recurse,
12730 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
12731 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
12732 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
12733 rs6000_mixed_function_arg, rs6000_psave_function_arg,
12734 rs6000_finish_function_arg, rs6000_function_arg,
12735 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
12736 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
12737 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
12738 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
12739 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
12740 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
12741 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
12742 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
12743 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
12744 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
12745 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
12746 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
12747 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
12748 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
12749 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
12750 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
12751 get_element_number, altivec_expand_vec_set_builtin,
12752 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
12753 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
12754 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
12755 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
12756 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
12757 rs6000_expand_builtin, rs6000_vector_type,
12758 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
12759 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
12760 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
12761 to here from rs6000.c.
12762 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
12763 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
12764 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
12765 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
12766 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
12767 rs6000_return_in_memory, rs6000_return_in_msb,
12768 rs6000_pass_by_reference, setup_incoming_varargs,
12769 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
12770 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
12771 rs6000_function_arg_padding, rs6000_function_arg,
12772 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
12773 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
12774 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
12775 rs6000_passes_long_double, rs6000_passes_vector,
12776 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
12777 altivec_builtin_mask_for_load) Add declarations.
12778 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
12779 * config/config.gcc: Add new source file rs6000-call.c to garbage
12780 collector and extra_objs.
12782 2019-07-19 Jeff Law <law@redhat.com>
12784 PR tree-optimization/86061
12785 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
12786 strncpy. Drop some trivial dead code.
12787 (maybe_trim_memstar_call): Handle strncpy.
12789 2019-07-19 Richard Biener <rguenther@suse.de>
12791 PR tree-optimization/91211
12792 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
12793 memset encoding size.
12795 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
12798 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
12800 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
12803 * ipa-inline.c (recursive_inlining): Fix limits check.
12805 2019-07-19 Richard Biener <rguenther@suse.de>
12807 PR tree-optimization/91200
12808 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
12809 no PHI nodes in middle-bb.
12811 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
12813 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
12815 * config/aarch64/aarch64-option-extensions.def: Likewise.
12817 2019-07-19 Jakub Jelinek <jakub@redhat.com>
12819 PR middle-end/91190
12820 * function.c (insert_temp_slot_address): Store into the hash table
12821 a copy of address to avoid RTL sharing issues.
12823 2019-07-19 Richard Biener <rguenther@suse.de>
12825 PR tree-optimization/91207
12827 2019-07-17 Richard Biener <rguenther@suse.de>
12829 PR tree-optimization/91178
12830 * tree-vect-stmts.c (get_group_load_store_type): For SLP
12831 loads with a gap larger than the vector size always use
12833 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
12834 avoid loading vectors that are only contained in the gap
12835 and thus are not needed.
12837 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
12839 * config/i386/i386.md (*addqi_2_slp): Remove.
12840 (*<code>qi_2_slp): Ditto.
12842 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
12844 * config/rs6000/predicates.md (prefixed_mem_operand): Call
12845 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
12846 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
12847 Rename function from rs6000_prefixed_address.
12848 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
12850 (TARGET_TOC): Likewise.
12851 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
12853 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
12855 (TARGET_TOC): Likewise.
12856 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
12858 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
12860 (TARGET_TOC): Likewise.
12861 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12862 check to require -mcmodel=medium for pc-relative addressing.
12863 (create_TOC_reference): Add assertion for TARGET_TOC.
12864 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
12866 (rs6000_emit_move): Likewise.
12867 (TOC_alias_set): Rename TOC alias set static variable from 'set'
12868 to 'TOC_alias_set'.
12869 (get_TOC_alias_set): Likewise.
12870 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
12872 (rs6000_can_eliminate): Likewise.
12873 (rs6000_prefixed_address_mode_p): Rename function from
12874 rs6000_prefixed_address.
12875 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
12876 TARGET_HAS_TOC and not pc-relative.
12877 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
12878 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
12880 (TARGET_TOC): Likewise.
12881 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
12884 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
12887 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
12888 for operand 0. Do not use (match_dup) to match operand 1 with
12889 operand 0. Add check in insn constraint that either input operand
12890 matches operand 0. Use SWI12 mode iterator to also handle
12892 (*and<mode>_1_slp): Ditto.
12893 (*<code>qi_1_slp): Ditto.
12894 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
12895 Do not use (match_dup) to match operand 1 with operand 0. Add
12896 check in insn constraint that operand 1 matches operand 0.
12897 Use SWI12 mode iterator to also handle HImode operands.
12898 (*ashl<mode>3_1_slp): Ditto.
12899 (*<shift_insn><mode>3_1_slp): Ditto.
12900 (*<rotate_insn><mode>3_1_slp): Ditto.
12902 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
12904 * config/arm/arm-builtins.c
12905 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
12906 (arm_expand_unop_builtin): Likewise.
12907 * config/arm/crypto.md
12908 (crypto_sha1h): Convert from define_insn to define_expand.
12909 (crypto_<crypto_pattern>): Likewise.
12910 (crypto_sha1h_lb): New define_insn.
12911 (crypto_<crypto_pattern>_lb): Likewise.
12913 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
12916 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
12917 (vsha1cq_u32): Likewise.
12918 (vsha1pq_u32): Likewise.
12919 (vsha1mq_u32): Likewise.
12920 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
12922 (crypto_sha1c): Correct vec select.
12923 (crypto_sha1m): Likewise.
12924 (crypto_sha1p): Likewise.
12926 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
12928 * config/arm/predicates.md (arm_borrow_operation): New predicate.
12929 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
12930 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
12931 (subdi_zesidi_zesidi): Likewise.
12932 (negdi2_compare, negdi2_insn): Likewise.
12933 (negdi_extensidi): Likewise.
12934 (negdi_zero_extendsidi): Likewise.
12935 (arm_cmpdi_insn): Likewise.
12936 (subsi3_carryin): Use arm_borrow_operation.
12937 (subsi3_carryin_const): Likewise.
12938 (subsi3_carryin_const0): Likewise.
12939 (subsi3_carryin_compare): Likewise.
12940 (subsi3_carryin_compare_const): Likewise.
12941 (subsi3_carryin_compare_const0): Likewise.
12942 (subsi3_carryin_shift): Likewise.
12943 (rsbsi3_carryin_shift): Likewise.
12944 (negsi2_carryin_compare): Likewise.
12946 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
12948 PR tree-optimization/91137
12949 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
12950 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
12951 Init, use and fini the above new field.
12952 (determine_base_object_1): New function.
12953 (determine_base_object): Reimplement using walk_tree.
12955 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
12957 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
12958 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
12959 CLEANUP_FORCE_FAST_DCE is set.
12960 * ifcvt.c (rest_of_handle_if_conversion): Pass
12961 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
12962 if-conversion succeeded.
12964 2019-07-18 Richard Biener <rguenther@suse.de>
12966 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
12967 branches to make code less indented.
12969 2019-07-17 Alexandre Oliva <oliva@adacore.com>
12971 PR middle-end/81824
12972 * attribs.c (decls_mismatched_attributes): Simplify the logic
12973 that avoids duplicates and false positives.
12975 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
12977 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
12978 data into data section when generating PIC code.
12979 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
12980 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
12981 generating code for SOM targets earlier than HP-UX 11. Otherwise,
12982 return 2 for SOM and 0 for other targets.
12984 2019-07-17 Jeff Law <law@redhat.com>
12986 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
12987 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
12988 avoid unexpected switch statement fallthru.
12990 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
12992 * config/i386/i386.md (*add<dwi>3_doubleword):
12993 Remove redundant constraints.
12994 (*add<mode>_1): Ditto.
12997 (*addqi_1_slp): Ditto.
12998 (*add<mode>_2): Ditto.
12999 (*addv<mode>4): Ditto.
13000 (*sub<dwi>3_doubleword): Ditto.
13001 (*sub<mode>_1): Ditto.
13002 (*subqi_1_slp): Ditto.
13003 (*sub<mode>_2): Ditto.
13004 (*subv<mode>4): Ditto.
13005 (*sub<mode>_3): Ditto.
13006 (@add<mode>3_carry): Ditto.
13007 (@sub<mode>3_carry): Ditto.
13008 (*add<mode>3_cc_overflow_1): Ditto.
13009 (*add<mode>3_zext_cc_overflow_2): Ditto.
13011 (*and<mode>_1): Ditto.
13013 (*andqi_1_slp): Ditto.
13015 (*andqi_2_maybe_si): Ditto.
13016 (*and<mode>_2): Ditto.
13017 (*andqi_2_slp): Ditto.
13018 (*<code><mode>_1): Ditto.
13019 (*<code>qi_1): Ditto.
13020 (*<code>qi_1_slp): Ditto.
13021 (*<code><mode>_2): Ditto.
13022 (*<code>qi_2_slp): Ditto.
13024 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
13026 * alias.c (record_component_aliases): Do not simplify pointed-to
13027 types of ODR types.
13029 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
13031 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
13032 partial reg stall on alternative 2.
13034 2019-07-17 Richard Biener <rguenther@suse.de>
13036 PR tree-optimization/91178
13037 * tree-ssa.c (release_defs_bitset): Iterate from higher to
13038 lower SSA names to avoid quadratic behavior in the common case.
13039 * tree-data-ref.c (split_constant_offset): Add limit argument
13040 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
13041 (split_constant_offset_1): Add limit argument and use it to
13042 limit SSA def walking. Optimize the common plus/minus case.
13044 2019-07-17 Richard Biener <rguenther@suse.de>
13046 PR tree-optimization/91178
13047 * tree-vect-stmts.c (get_group_load_store_type): For SLP
13048 loads with a gap larger than the vector size always use
13050 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
13051 avoid loading vectors that are only contained in the gap
13052 and thus are not needed.
13054 2019-07-17 Richard Biener <rguenther@suse.de>
13056 PR tree-optimization/91180
13057 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
13058 computation for memset partial defs.
13060 2019-07-17 Jakub Jelinek <jakub@redhat.com>
13062 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
13063 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
13064 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
13065 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
13066 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
13067 * omp-grid.c (grid_process_grid_body,
13068 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
13069 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
13070 == GF_OMP_FOR_KIND_SIMD.
13071 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
13072 check_omp_nesting_restrictions, scan_omp_1_stmt,
13073 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
13074 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
13075 omp_find_scan): Likewise.
13076 * omp-expand.c (expand_omp_for): Likewise.
13077 * omp-general.c (omp_extract_for_data): Likewise.
13079 PR tree-optimization/91157
13080 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
13081 a vector boolean with scalar mode.
13082 (expand_vector_condition): Handle first operand being a vector boolean
13084 (expand_vector_operations_1): For comparisons, don't bail out early
13085 if the return type is vector boolean with scalar mode, but comparison
13086 operand type is not.
13088 2019-07-17 Richard Biener <rguenther@suse.de>
13090 PR tree-optimization/91181
13091 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
13092 IFN_LOADs as calls.
13094 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
13096 * config/i386/i386.md (*testdi_1): Match CCZmode for
13097 constants that might have the SImode sign bit set.
13098 (*testqi_1_maybe_si): Remove "!" constraint modifier.
13099 Use correct constraints for pentium pairing.
13100 (*test<mode>_1): Ditto.
13102 2019-07-16 Jeff Law <law@redhat.com>
13104 PR rtl-optimization/91173
13105 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
13106 SSA_NAME with a constant value, fold its value into the offset
13107 and clear the base before calling gen_addr_rtx.
13109 2019-07-16 Jakub Jelinek <jakub@redhat.com>
13111 PR rtl-optimization/91164
13112 * dse.c (rest_of_handle_dse): If dead edges have been purged,
13113 invalidate dominance info.
13115 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
13117 * read-md.h (md_reader::record_potential_iterator_use): Add a
13118 file_location parameter.
13119 * read-rtl.c (attribute_use::loc): New field.
13120 (map_attr_string): Take a file_location parameter. Report cases
13121 in which attributes map to multiple distinct values.
13122 (apply_attribute_uses): Update call accordingly.
13123 (md_reader::handle_overloaded_name): Likewise.
13124 (md_reader::apply_iterator_to_string): Likewise. Skip empty
13126 (record_attribute_use): Take a file_location parameter.
13127 Initialize attribute_use::loc.
13128 (md_reader::record_potential_iterator_use): Take a file_location
13129 parameter. Update call to record_attribute_use.
13130 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
13131 (rtx_reader::read_rtx_code): Likewise.
13132 (rtx_reader::read_rtx_operand): Likewise. Record a location
13133 for implicitly-expanded empty strings.
13135 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
13137 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
13138 Use file_location instead of separate fields.
13139 (md_reader::set_md_ptr_loc): Take a file_location instead of a
13140 separate filename and line number.
13141 * read-md.c (ptr_loc): As above.
13142 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
13143 (md_reader::fprint_md_ptr_loc): Likewise.
13144 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
13145 instead of a separate filename and line number.
13146 (md_reader::read_string): Update call accordingly.
13148 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
13150 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
13151 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
13152 leaving the choice between SFDF and P implicit.
13153 (*mov<mode>_update2): Likewise.
13154 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
13155 rather than leaving the choice betweem IBM128 and GPR implicit.
13156 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
13157 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
13159 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
13160 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
13161 * config/rs6000/vsx.md
13162 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
13163 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
13164 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
13165 and VSX_EXTRACT_I implicit.
13167 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
13169 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
13170 Explicitly use <MOVEP1:MODE> for the mode attribute.
13172 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
13175 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
13177 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
13180 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
13181 .machine directive.
13183 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
13185 * config/i386/i386.md (@test<mode>_ccno_1):
13186 Rename from test<mode>_ccno_1.
13187 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
13188 (*testqi_1_maybe_si): Remove modrm attribute.
13189 (*test<mode>_1): Ditto.
13190 * config/i386/i386-expand.c (ix86_split_idivmod): Use
13191 gen_test_ccno_1 and gen_extend_insn.
13193 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
13195 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
13198 2019-07-15 Richard Biener <rguenther@suse.de>
13200 PR middle-end/91162
13201 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
13202 node make sure to replace all uses with something valid.
13204 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
13206 PR tree-optimization/88497
13207 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
13208 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
13209 function undistribute_bitref_for_vector.
13210 (undistribute_bitref_for_vector): New function.
13211 (cleanup_vinfo_map): Likewise.
13212 (sort_by_mach_mode): Likewise.
13214 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
13216 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
13217 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
13218 and testdi_ccno_1 using SWI48 mode attribute.
13219 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
13220 x86_64_szext_general_operand.
13221 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
13222 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
13223 instead of genera_operand mode attribute.
13225 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
13227 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
13228 fopen and fclose to their respective types.
13229 (DotFn.invoke): Ditto.
13231 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
13233 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
13234 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
13235 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
13236 (array_index_predicate): Remove.
13237 (analyze_function_body): Account cost for variable ofsetted array
13239 (estimate_node_size_and_time): Do not compute array index hint.
13240 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
13241 (inline_read_section): Do not read array index hint.
13242 (ipa_fn_summary_write): Do not write array index hint.
13243 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
13244 * ipa-cp.c (hint_time_bonus): Remove.
13245 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
13246 (ipa_fnsummary): Remove array_index.
13247 * ipa-inline.c (want_inline_small_function_p): Do not use
13249 (edge_badness): Likewise.
13250 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
13252 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
13255 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
13256 superfluous "builtin function" phrasing.
13258 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
13260 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
13262 (aliasing_component_refs_walk): Break out from ...
13263 (aliasing_component_refs_p): ... here.
13265 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
13268 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
13269 "builtin function" phrasing.
13271 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13274 * recog.h (temporary_volatile_ok): New class.
13275 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
13276 volatile_ok temporarily to true using temporary_volatile_ok.
13277 * expr.c (emit_block_move_via_cpymem): Likewise.
13278 * optabs.c (maybe_legitimize_operand): Likewise.
13280 2019-07-13 Jakub Jelinek <jakub@redhat.com>
13282 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
13283 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
13284 uses inside of order(concurrent) constructs.
13285 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
13286 OMP_CLAUSE_ORDER is seen.
13287 * omp-low.c (struct omp_context): Add order_concurrent member.
13288 (scan_sharing_clauses): Set ctx->order_concurrent if
13289 OMP_CLAUSE_ORDER is seen.
13290 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
13291 of simd order(concurrent). Diagnose constructs not allowed inside of
13292 for order(concurrent).
13293 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
13294 complaining about static double setjmp (double); or class static
13295 methods or non-global namespace setjmps.
13296 (omp_runtime_api_call): New function.
13297 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
13298 order(concurrent) loops.
13300 2019-07-12 Martin Sebor <msebor@redhat.com>
13302 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
13303 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
13304 * tree-vrp.c (vrp_prop::check_mem_ref): Use
13305 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
13307 2019-07-12 Jan Hubicka <jh@suse.cz>
13309 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
13310 (indirect_refs_may_alias_p): ... here.
13311 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
13312 mem refs in the access paths.
13314 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
13316 PR tree-optimization/89430
13317 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
13318 store elimination for local variable without address escape.
13320 2019-07-12 Jeff Law <law@redhat.com>
13322 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
13323 for the ".far" section.
13325 2019-07-12 Richard Biener <rguenther@suse.de>
13327 PR tree-optimization/91145
13328 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
13331 2019-07-12 Alexandre Oliva <oliva@adacore.com>
13333 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
13334 rather than this_state as the lowering context for the ELSE
13335 seq in a GIMPLE_EH_ELSE.
13337 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
13339 * vector-builder.h (vector_builder::elt): Allow already-supplied
13340 elements to be read back before building is complete.
13342 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
13344 PR rtl-optimization/91136
13345 * df-core.c (ACCESSING REFS): Fix typos in comment.
13346 * resource.c (mark_target_live_reg): Add artificial defs that occur at
13347 the beginning of the block to the initial set of live registers.
13349 2019-07-12 Richard Biener <rguenther@suse.de>
13351 * fold-const.h (get_array_ctor_element_at_index): Adjust.
13352 * fold-const.c (get_array_ctor_element_at_index): Add
13353 ctor_idx output parameter informing the caller where in
13354 the constructor the element was (not) found. Add early exit
13355 for when the ctor is sorted.
13356 * gimple-fold.c (fold_array_ctor_reference): Support constant
13357 folding across multiple array elements.
13359 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
13361 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
13362 doesn't have location, set the current location to the function's end.
13364 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
13366 * config/aarch64/aarch64.md (*compare_condjump<mode>)
13367 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
13368 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
13369 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
13370 * config/aarch64/aarch64-simd.md
13371 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13372 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
13373 * config/aarch64/aarch64-sve.md
13374 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
13375 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
13377 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
13379 * doc/md.texi: Document that @ patterns can have different
13380 numbers of operands.
13381 * genemit.c (handle_overloaded_gen): Handle this case.
13382 * genopinit.c (handle_overloaded_gen): Likewise.
13383 * gensupport.c (replace_operands_with_dups): Iterate over
13384 the new rtx's format rather than the old one's.
13386 2019-07-12 Jakub Jelinek <jakub@redhat.com>
13388 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
13389 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13390 order clause entries.
13391 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
13392 * tree-pretty-print.c (dump_omp_clause): Likewise.
13393 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
13395 * omp-low.c (scan_sharing_clauses): Likewise.
13396 * tree-nested.c (convert_nonlocal_omp_clauses,
13397 convert_local_omp_clauses): Likewise.
13399 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
13401 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
13402 fallthrough target of current basic block isn't the placed
13405 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
13408 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
13409 (_mm512_storeu_epi64): Likewise.
13410 (_mm512_loadu_epi32): Likewise.
13411 (_mm512_storeu_epi32): Likewise.
13412 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
13413 (_mm_storeu_epi64): Likewise.
13414 (_mm256_storeu_epi32): Likewise.
13415 (_mm_storeu_epi32): Likewise.
13417 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
13419 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
13421 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
13423 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
13426 2019-07-11 Jakub Jelinek <jakub@redhat.com>
13429 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
13430 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
13431 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
13432 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
13433 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
13434 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
13436 (ufix_truncv2dfv2si2<mask_name>): Change into ...
13437 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
13438 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
13440 (sse2_cvttpd2dq<mask_name>): Change into ...
13441 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
13442 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
13443 (*sse2_cvtpd2dq<mask_name>): Change into ...
13444 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
13445 Add "C" constraint to const0_operand.
13446 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
13447 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
13451 * config/i386/i386-builtin-types.def
13452 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
13453 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
13454 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
13455 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
13456 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
13457 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
13458 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
13459 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
13460 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
13461 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
13462 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
13463 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
13464 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
13465 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
13466 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
13467 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
13468 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
13469 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
13470 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
13471 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
13472 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
13473 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
13474 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
13475 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
13476 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
13477 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
13478 __builtin_ia32_vpdpbusd_v4si_maskz,
13479 __builtin_ia32_vpdpbusds_v16si_mask,
13480 __builtin_ia32_vpdpbusds_v16si_maskz,
13481 __builtin_ia32_vpdpbusds_v8si_mask,
13482 __builtin_ia32_vpdpbusds_v8si_maskz,
13483 __builtin_ia32_vpdpbusds_v4si_mask,
13484 __builtin_ia32_vpdpbusds_v4si_maskz,
13485 __builtin_ia32_vpdpwssd_v16si_mask,
13486 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
13487 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
13488 __builtin_ia32_vpdpwssd_v4si_maskz,
13489 __builtin_ia32_vpdpwssds_v16si_mask,
13490 __builtin_ia32_vpdpwssds_v16si_maskz,
13491 __builtin_ia32_vpdpwssds_v8si_mask,
13492 __builtin_ia32_vpdpwssds_v8si_maskz,
13493 __builtin_ia32_vpdpwssds_v4si_mask,
13494 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
13495 suffixed types rather than *_INT.
13496 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
13497 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
13498 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
13499 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
13500 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
13501 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
13503 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
13505 * tree-vrp.c (intersect_ranges): If we know the intersection is
13506 empty, there is no need to conservatively add anything else to
13509 2019-07-11 Richard Biener <rguenther@suse.de>
13511 PR middle-end/91131
13512 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
13513 when the object is volatile and we have not cleared it even though
13514 there are no nonzero elements.
13516 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
13518 * config/rs6000/predicates.md (cint34_operand): Update
13519 SIGNED_34BIT_OFFSET_P call.
13520 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
13521 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
13522 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
13523 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
13524 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
13526 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
13527 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
13528 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
13529 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
13530 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
13532 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
13534 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
13535 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
13536 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
13537 (DEF_MIN_OSX_VERSION): New.
13539 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
13541 * fold-const.c (fold_relational_const): Fix folding of
13542 vector-to-scalar NE_EXPRs.
13543 (test_vector_folding): Add more tests.
13545 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
13548 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
13549 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
13550 (vec_setv2di_internal): Reexpress as...
13551 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
13552 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
13553 rather than gen_neon_vset_lane<mode>.
13555 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
13558 * lra-constraints.c (process_alt_operands): Don't match user
13559 defined regs only if they are early clobbers.
13561 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
13563 * wide-int.h (wi::lshift): Reject negative values for the fast path.
13565 2019-07-10 Richard Biener <rguenther@suse.de>
13567 PR tree-optimization/91126
13568 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
13569 native encoding offset for BYTES_BIG_ENDIAN.
13570 (vn_reference_lookup_3): Likewise.
13572 2019-07-10 Richard Biener <rguenther@suse.de>
13574 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
13575 LHS whenever possible.
13577 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
13579 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
13580 from ...; work also on duplicated types.
13581 (nonoverlapping_component_refs_since_match): ... here
13582 (ncr_type_uid): Break out from ...
13583 (ncr_compar): ... here; look for TYPE_UID of canonical type if
13585 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
13586 the types and nonoverlapping_component_refs_p_1 to disambiguate.
13588 2019-07-09 Martin Sebor <msebor@redhat.com>
13590 PR tree-optimization/90989
13591 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
13592 optimization to just single character stores.
13594 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
13596 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
13597 Swap operands only once.
13599 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
13601 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
13602 for both call instructions.
13604 2019-07-09 John Darrington <john@darrington.wattle.id.au>
13606 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
13607 rather than GET_MODE_BITSIZE to better handle partial integer modes.
13609 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
13611 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
13612 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
13613 function from rs6000-logue.c back to rs6000.c.
13614 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
13616 2019-07-09 Martin Sebor <msebor@redhat.com>
13619 * auto-profile.c: Change class-key of PODs to struct and others
13621 * basic-block.h: Same.
13622 * bitmap.c (bitmap_alloc): Same.
13624 * builtins.c (expand_builtin_prefetch): Same.
13625 (expand_builtin_interclass_mathfn): Same.
13626 (expand_builtin_strlen): Same.
13627 (expand_builtin_mempcpy_args): Same.
13628 (expand_cmpstr): Same.
13629 (expand_builtin___clear_cache): Same.
13630 (expand_ifn_atomic_bit_test_and): Same.
13631 (expand_builtin_thread_pointer): Same.
13632 (expand_builtin_set_thread_pointer): Same.
13633 * caller-save.c (setup_save_areas): Same.
13634 (replace_reg_with_saved_mem): Same.
13635 (insert_restore): Same.
13636 (insert_save): Same.
13637 (add_used_regs): Same.
13638 * cfg.c (get_bb_copy): Same.
13639 (set_loop_copy): Same.
13642 * cfgexpand.c (alloc_stack_frame_space): Same.
13643 (add_stack_var): Same.
13644 (add_stack_var_conflict): Same.
13645 (add_scope_conflicts_1): Same.
13646 (update_alias_info_with_stack_vars): Same.
13647 (expand_used_vars): Same.
13648 * cfghooks.c (redirect_edge_and_branch_force): Same.
13649 (delete_basic_block): Same.
13650 (split_edge): Same.
13651 (make_forwarder_block): Same.
13652 (force_nonfallthru): Same.
13653 (duplicate_block): Same.
13654 (lv_flush_pending_stmts): Same.
13655 * cfghooks.h: Same.
13656 * cfgloop.c (flow_loops_cfg_dump): Same.
13657 (flow_loop_nested_p): Same.
13658 (superloop_at_depth): Same.
13659 (get_loop_latch_edges): Same.
13660 (flow_loop_dump): Same.
13661 (flow_loops_dump): Same.
13662 (flow_loops_free): Same.
13663 (flow_loop_nodes_find): Same.
13664 (establish_preds): Same.
13665 (flow_loop_tree_node_add): Same.
13666 (flow_loop_tree_node_remove): Same.
13667 (flow_loops_find): Same.
13668 (find_subloop_latch_edge_by_profile): Same.
13669 (find_subloop_latch_edge_by_ivs): Same.
13670 (mfb_redirect_edges_in_set): Same.
13671 (form_subloop): Same.
13672 (merge_latch_edges): Same.
13673 (disambiguate_multiple_latches): Same.
13674 (disambiguate_loops_with_multiple_latches): Same.
13675 (flow_bb_inside_loop_p): Same.
13676 (glb_enum_p): Same.
13677 (get_loop_body_with_size): Same.
13678 (get_loop_body): Same.
13679 (fill_sons_in_loop): Same.
13680 (get_loop_body_in_dom_order): Same.
13681 (get_loop_body_in_custom_order): Same.
13682 (release_recorded_exits): Same.
13683 (get_loop_exit_edges): Same.
13684 (num_loop_branches): Same.
13685 (remove_bb_from_loops): Same.
13686 (find_common_loop): Same.
13687 (delete_loop): Same.
13688 (cancel_loop): Same.
13689 (verify_loop_structure): Same.
13690 (loop_preheader_edge): Same.
13691 (loop_exit_edge_p): Same.
13692 (single_exit): Same.
13693 (loop_exits_to_bb_p): Same.
13694 (loop_exits_from_bb_p): Same.
13695 (get_loop_location): Same.
13696 (record_niter_bound): Same.
13697 (get_estimated_loop_iterations_int): Same.
13698 (max_stmt_executions_int): Same.
13699 (likely_max_stmt_executions_int): Same.
13700 (get_estimated_loop_iterations): Same.
13701 (get_max_loop_iterations): Same.
13702 (get_max_loop_iterations_int): Same.
13703 (get_likely_max_loop_iterations): Same.
13704 * cfgloop.h (simple_loop_desc): Same.
13706 (loop_depth): Same.
13707 (loop_outer): Same.
13708 (loop_iterator::next): Same.
13709 (loop_outermost): Same.
13710 * cfgloopanal.c (mark_irreducible_loops): Same.
13711 (num_loop_insns): Same.
13712 (average_num_loop_insns): Same.
13713 (expected_loop_iterations_unbounded): Same.
13714 (expected_loop_iterations): Same.
13715 (mark_loop_exit_edges): Same.
13716 (single_likely_exit): Same.
13717 * cfgloopmanip.c (fix_bb_placement): Same.
13718 (fix_bb_placements): Same.
13719 (remove_path): Same.
13720 (place_new_loop): Same.
13722 (scale_loop_frequencies): Same.
13723 (scale_loop_profile): Same.
13724 (create_empty_if_region_on_edge): Same.
13725 (create_empty_loop_on_edge): Same.
13728 (fix_loop_placements): Same.
13729 (copy_loop_info): Same.
13730 (duplicate_loop): Same.
13731 (duplicate_subloops): Same.
13732 (loop_redirect_edge): Same.
13733 (can_duplicate_loop_p): Same.
13734 (duplicate_loop_to_header_edge): Same.
13735 (mfb_keep_just): Same.
13736 (has_preds_from_loop): Same.
13737 (create_preheader): Same.
13738 (create_preheaders): Same.
13739 (lv_adjust_loop_entry_edge): Same.
13740 (loop_version): Same.
13741 * cfgloopmanip.h: Same.
13743 * cgraphbuild.c: Same.
13744 * combine.c (make_extraction): Same.
13745 * config/i386/i386-features.c: Same.
13746 * config/i386/i386-features.h: Same.
13747 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
13748 (ix86_emit_outlined_ms2sysv_restore): Same.
13749 (ix86_noce_conversion_profitable_p): Same.
13750 (ix86_init_cost): Same.
13751 (ix86_simd_clone_usable): Same.
13752 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
13754 * coretypes.h: Same.
13755 * data-streamer-in.c (string_for_index): Change class-key of PODs
13756 to struct and others to class.
13757 (streamer_read_indexed_string): Same.
13758 (streamer_read_string): Same.
13759 (bp_unpack_indexed_string): Same.
13760 (bp_unpack_string): Same.
13761 (streamer_read_uhwi): Same.
13762 (streamer_read_hwi): Same.
13763 (streamer_read_gcov_count): Same.
13764 (streamer_read_wide_int): Same.
13765 * data-streamer.h (streamer_write_bitpack): Same.
13766 (bp_unpack_value): Same.
13767 (streamer_write_char_stream): Same.
13768 (streamer_write_hwi_in_range): Same.
13769 (streamer_write_record_start): Same.
13770 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
13771 (add_cross_iteration_register_deps): Same.
13772 (build_intra_loop_deps): Same.
13773 * df-core.c (df_analyze): Same.
13774 (loop_post_order_compute): Same.
13775 (loop_inverted_post_order_compute): Same.
13776 * df-problems.c (df_rd_alloc): Same.
13777 (df_rd_simulate_one_insn): Same.
13778 (df_rd_local_compute): Same.
13779 (df_rd_init_solution): Same.
13780 (df_rd_confluence_n): Same.
13781 (df_rd_transfer_function): Same.
13782 (df_rd_free): Same.
13783 (df_rd_dump_defs_set): Same.
13784 (df_rd_top_dump): Same.
13785 (df_lr_alloc): Same.
13786 (df_lr_reset): Same.
13787 (df_lr_local_compute): Same.
13788 (df_lr_init): Same.
13789 (df_lr_confluence_n): Same.
13790 (df_lr_free): Same.
13791 (df_lr_top_dump): Same.
13792 (df_lr_verify_transfer_functions): Same.
13793 (df_live_alloc): Same.
13794 (df_live_reset): Same.
13795 (df_live_init): Same.
13796 (df_live_confluence_n): Same.
13797 (df_live_finalize): Same.
13798 (df_live_free): Same.
13799 (df_live_top_dump): Same.
13800 (df_live_verify_transfer_functions): Same.
13801 (df_mir_alloc): Same.
13802 (df_mir_reset): Same.
13803 (df_mir_init): Same.
13804 (df_mir_confluence_n): Same.
13805 (df_mir_free): Same.
13806 (df_mir_top_dump): Same.
13807 (df_word_lr_alloc): Same.
13808 (df_word_lr_reset): Same.
13809 (df_word_lr_init): Same.
13810 (df_word_lr_confluence_n): Same.
13811 (df_word_lr_free): Same.
13812 (df_word_lr_top_dump): Same.
13813 (df_md_alloc): Same.
13814 (df_md_simulate_one_insn): Same.
13815 (df_md_reset): Same.
13816 (df_md_init): Same.
13817 (df_md_free): Same.
13818 (df_md_top_dump): Same.
13819 * df-scan.c (df_insn_delete): Same.
13820 (df_insn_rescan): Same.
13821 (df_notes_rescan): Same.
13822 (df_sort_and_compress_mws): Same.
13823 (df_install_mws): Same.
13824 (df_refs_add_to_chains): Same.
13825 (df_ref_create_structure): Same.
13826 (df_ref_record): Same.
13827 (df_def_record_1): Same.
13828 (df_find_hard_reg_defs): Same.
13829 (df_uses_record): Same.
13830 (df_get_conditional_uses): Same.
13831 (df_get_call_refs): Same.
13832 (df_recompute_luids): Same.
13833 (df_get_entry_block_def_set): Same.
13834 (df_entry_block_defs_collect): Same.
13835 (df_get_exit_block_use_set): Same.
13836 (df_exit_block_uses_collect): Same.
13837 (df_mws_verify): Same.
13838 (df_bb_verify): Same.
13839 * df.h (df_scan_get_bb_info): Same.
13840 * doc/tm.texi: Same.
13841 * dse.c (record_store): Same.
13842 * dumpfile.h: Same.
13843 * emit-rtl.c (const_fixed_hasher::equal): Same.
13844 (set_mem_attributes_minus_bitpos): Same.
13845 (change_address): Same.
13846 (adjust_address_1): Same.
13847 (offset_address): Same.
13848 * emit-rtl.h: Same.
13849 * except.c (dw2_build_landing_pads): Same.
13850 (sjlj_emit_dispatch_table): Same.
13851 * explow.c (allocate_dynamic_stack_space): Same.
13852 (emit_stack_probe): Same.
13853 (probe_stack_range): Same.
13854 * expmed.c (store_bit_field_using_insv): Same.
13855 (store_bit_field_1): Same.
13856 (store_integral_bit_field): Same.
13857 (extract_bit_field_using_extv): Same.
13858 (extract_bit_field_1): Same.
13859 (emit_cstore): Same.
13860 * expr.c (emit_block_move_via_cpymem): Same.
13861 (expand_cmpstrn_or_cmpmem): Same.
13862 (set_storage_via_setmem): Same.
13863 (emit_single_push_insn_1): Same.
13864 (expand_assignment): Same.
13865 (store_constructor): Same.
13866 (expand_expr_real_2): Same.
13867 (expand_expr_real_1): Same.
13868 (try_casesi): Same.
13870 * function.c (try_fit_stack_local): Same.
13871 (assign_stack_local_1): Same.
13872 (assign_stack_local): Same.
13873 (cut_slot_from_list): Same.
13874 (insert_slot_to_list): Same.
13875 (max_slot_level): Same.
13876 (move_slot_to_level): Same.
13877 (temp_address_hasher::equal): Same.
13878 (remove_unused_temp_slot_addresses): Same.
13879 (assign_temp): Same.
13880 (combine_temp_slots): Same.
13881 (update_temp_slot_address): Same.
13882 (preserve_temp_slots): Same.
13883 * function.h: Same.
13885 * gcc-rich-location.h: Same.
13887 * genattrtab.c (check_attr_test): Same.
13888 (check_attr_value): Same.
13889 (convert_set_attr_alternative): Same.
13890 (convert_set_attr): Same.
13891 (check_defs): Same.
13892 (copy_boolean): Same.
13893 (get_attr_value): Same.
13894 (expand_delays): Same.
13895 (make_length_attrs): Same.
13897 (make_alternative_compare): Same.
13898 (simplify_test_exp): Same.
13899 (tests_attr_p): Same.
13900 (get_attr_order): Same.
13901 (clear_struct_flag): Same.
13903 (compares_alternatives_p): Same.
13906 (find_attrs_to_cache): Same.
13907 (write_test_expr): Same.
13908 (walk_attr_value): Same.
13909 (write_attr_get): Same.
13910 (eliminate_known_true): Same.
13911 (write_insn_cases): Same.
13912 (write_attr_case): Same.
13913 (write_attr_valueq): Same.
13914 (write_attr_value): Same.
13915 (write_dummy_eligible_delay): Same.
13916 (next_comma_elt): Same.
13918 (make_internal_attr): Same.
13919 (copy_rtx_unchanging): Same.
13920 (gen_insn_reserv): Same.
13921 (check_tune_attr): Same.
13922 (make_automaton_attrs): Same.
13923 (handle_arg): Same.
13924 * genextract.c (gen_insn): Same.
13925 (VEC_char_to_string): Same.
13926 * genmatch.c (print_operand): Same.
13928 (parser::parse_operation): Same.
13929 (parser::parse_capture): Same.
13930 (parser::parse_c_expr): Same.
13931 (parser::parse_simplify): Same.
13933 * genoutput.c (output_operand_data): Same.
13934 (output_get_insn_name): Same.
13935 (compare_operands): Same.
13936 (place_operands): Same.
13937 (process_template): Same.
13938 (validate_insn_alternatives): Same.
13939 (validate_insn_operands): Same.
13940 (gen_expand): Same.
13941 (note_constraint): Same.
13942 * genpreds.c (write_one_predicate_function): Same.
13943 (add_constraint): Same.
13944 (process_define_register_constraint): Same.
13945 (write_lookup_constraint_1): Same.
13946 (write_lookup_constraint_array): Same.
13947 (write_insn_constraint_len): Same.
13948 (write_reg_class_for_constraint_1): Same.
13949 (write_constraint_satisfied_p_array): Same.
13950 * genrecog.c (optimize_subroutine_group): Same.
13951 * gensupport.c (process_define_predicate): Same.
13952 (queue_pattern): Same.
13953 (remove_from_queue): Same.
13954 (process_rtx): Same.
13955 (is_predicable): Same.
13956 (change_subst_attribute): Same.
13957 (subst_pattern_match): Same.
13958 (alter_constraints): Same.
13959 (alter_attrs_for_insn): Same.
13960 (shift_output_template): Same.
13961 (alter_output_for_subst_insn): Same.
13962 (process_one_cond_exec): Same.
13964 (process_define_cond_exec): Same.
13965 (mnemonic_htab_callback): Same.
13966 (gen_mnemonic_attr): Same.
13967 (read_md_rtx): Same.
13968 * ggc-page.c: Same.
13969 * gimple-loop-interchange.cc (dump_reduction): Same.
13970 (dump_induction): Same.
13971 (loop_cand::~loop_cand): Same.
13972 (free_data_refs_with_aux): Same.
13973 (tree_loop_interchange::interchange_loops): Same.
13974 (tree_loop_interchange::map_inductions_to_loop): Same.
13975 (tree_loop_interchange::move_code_to_inner_loop): Same.
13976 (compute_access_stride): Same.
13977 (compute_access_strides): Same.
13978 (proper_loop_form_for_interchange): Same.
13979 (tree_loop_interchange_compute_ddrs): Same.
13980 (prune_datarefs_not_in_loop): Same.
13981 (prepare_data_references): Same.
13982 (pass_linterchange::execute): Same.
13983 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
13984 (unroll_jam_possible_p): Same.
13985 (fuse_loops): Same.
13986 (adjust_unroll_factor): Same.
13987 (tree_loop_unroll_and_jam): Same.
13988 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
13989 (loop_versioning::expensive_stmt_p): Same.
13990 (loop_versioning::version_for_unity): Same.
13991 (loop_versioning::dump_inner_likelihood): Same.
13992 (loop_versioning::find_per_loop_multiplication): Same.
13993 (loop_versioning::analyze_term_using_scevs): Same.
13994 (loop_versioning::record_address_fragment): Same.
13995 (loop_versioning::analyze_expr): Same.
13996 (loop_versioning::analyze_blocks): Same.
13997 (loop_versioning::prune_conditions): Same.
13998 (loop_versioning::merge_loop_info): Same.
13999 (loop_versioning::add_loop_to_queue): Same.
14000 (loop_versioning::decide_whether_loop_is_versionable): Same.
14001 (loop_versioning::make_versioning_decisions): Same.
14002 (loop_versioning::implement_versioning_decisions): Same.
14003 * gimple-ssa-evrp-analyze.c
14004 (evrp_range_analyzer::record_ranges_from_phis): Same.
14005 * gimple-ssa-store-merging.c (split_store::split_store): Same.
14006 (count_multiple_uses): Same.
14007 (split_group): Same.
14008 (imm_store_chain_info::output_merged_store): Same.
14009 (pass_store_merging::process_store): Same.
14010 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
14011 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
14013 (alloca_call_type): Same.
14014 (pass_walloca::execute): Same.
14015 * gimple-streamer-in.c (input_phi): Same.
14016 (input_gimple_stmt): Same.
14017 * gimple-streamer.h: Same.
14018 * godump.c (go_force_record_alignment): Same.
14019 (go_format_type): Same.
14020 (go_output_type): Same.
14021 (go_output_fndecl): Same.
14022 (go_output_typedef): Same.
14023 (keyword_hash_init): Same.
14024 (find_dummy_types): Same.
14025 * graph.c (draw_cfg_nodes_no_loops): Same.
14026 (draw_cfg_nodes_for_loop): Same.
14027 * hard-reg-set.h (hard_reg_set_iter_next): Same.
14028 * hsa-brig.c: Same.
14029 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
14030 * hsa-dump.c (dump_hsa_cfun): Same.
14031 * hsa-gen.c (gen_function_def_parameters): Same.
14032 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
14033 * input.c (dump_line_table_statistics): Same.
14034 (test_lexer): Same.
14036 * internal-fn.c (get_multi_vector_move): Same.
14037 (expand_load_lanes_optab_fn): Same.
14038 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
14039 (expand_GOMP_SIMT_EXIT): Same.
14040 (expand_GOMP_SIMT_LAST_LANE): Same.
14041 (expand_GOMP_SIMT_ORDERED_PRED): Same.
14042 (expand_GOMP_SIMT_VOTE_ANY): Same.
14043 (expand_GOMP_SIMT_XCHG_BFLY): Same.
14044 (expand_GOMP_SIMT_XCHG_IDX): Same.
14045 (expand_addsub_overflow): Same.
14046 (expand_neg_overflow): Same.
14047 (expand_mul_overflow): Same.
14048 (expand_call_mem_ref): Same.
14049 (expand_mask_load_optab_fn): Same.
14050 (expand_scatter_store_optab_fn): Same.
14051 (expand_gather_load_optab_fn): Same.
14052 * ipa-cp.c (ipa_get_parm_lattices): Same.
14053 (print_all_lattices): Same.
14054 (ignore_edge_p): Same.
14055 (build_toporder_info): Same.
14056 (free_toporder_info): Same.
14057 (push_node_to_stack): Same.
14058 (ipcp_lattice<valtype>::set_contains_variable): Same.
14059 (set_agg_lats_to_bottom): Same.
14060 (ipcp_bits_lattice::meet_with): Same.
14061 (set_single_call_flag): Same.
14062 (initialize_node_lattices): Same.
14063 (ipa_get_jf_ancestor_result): Same.
14064 (ipcp_verify_propagated_values): Same.
14065 (propagate_scalar_across_jump_function): Same.
14066 (propagate_context_across_jump_function): Same.
14067 (propagate_bits_across_jump_function): Same.
14068 (ipa_vr_operation_and_type_effects): Same.
14069 (propagate_vr_across_jump_function): Same.
14070 (set_check_aggs_by_ref): Same.
14071 (set_chain_of_aglats_contains_variable): Same.
14072 (merge_aggregate_lattices): Same.
14073 (agg_pass_through_permissible_p): Same.
14074 (propagate_aggs_across_jump_function): Same.
14075 (call_passes_through_thunk_p): Same.
14076 (propagate_constants_across_call): Same.
14077 (devirtualization_time_bonus): Same.
14078 (good_cloning_opportunity_p): Same.
14079 (context_independent_aggregate_values): Same.
14080 (gather_context_independent_values): Same.
14081 (perform_estimation_of_a_value): Same.
14082 (estimate_local_effects): Same.
14083 (value_topo_info<valtype>::add_val): Same.
14084 (add_all_node_vals_to_toposort): Same.
14085 (value_topo_info<valtype>::propagate_effects): Same.
14086 (ipcp_propagate_stage): Same.
14087 (ipcp_discover_new_direct_edges): Same.
14088 (same_node_or_its_all_contexts_clone_p): Same.
14089 (cgraph_edge_brings_value_p): Same.
14090 (gather_edges_for_value): Same.
14091 (create_specialized_node): Same.
14092 (find_more_scalar_values_for_callers_subset): Same.
14093 (find_more_contexts_for_caller_subset): Same.
14094 (copy_plats_to_inter): Same.
14095 (intersect_aggregates_with_edge): Same.
14096 (find_aggregate_values_for_callers_subset): Same.
14097 (cgraph_edge_brings_all_agg_vals_for_node): Same.
14098 (decide_about_value): Same.
14099 (decide_whether_version_node): Same.
14100 (spread_undeadness): Same.
14101 (identify_dead_nodes): Same.
14102 (ipcp_store_vr_results): Same.
14103 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
14104 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
14105 (redirect_to_unreachable): Same.
14106 (edge_set_predicate): Same.
14107 (evaluate_conditions_for_known_args): Same.
14108 (evaluate_properties_for_edge): Same.
14109 (ipa_fn_summary_t::duplicate): Same.
14110 (ipa_call_summary_t::duplicate): Same.
14111 (dump_ipa_call_summary): Same.
14112 (ipa_dump_fn_summary): Same.
14113 (eliminated_by_inlining_prob): Same.
14114 (set_cond_stmt_execution_predicate): Same.
14115 (set_switch_stmt_execution_predicate): Same.
14116 (compute_bb_predicates): Same.
14117 (will_be_nonconstant_expr_predicate): Same.
14118 (phi_result_unknown_predicate): Same.
14119 (analyze_function_body): Same.
14120 (compute_fn_summary): Same.
14121 (estimate_edge_devirt_benefit): Same.
14122 (estimate_edge_size_and_time): Same.
14123 (estimate_calls_size_and_time): Same.
14124 (estimate_node_size_and_time): Same.
14125 (remap_edge_change_prob): Same.
14126 (remap_edge_summaries): Same.
14127 (ipa_merge_fn_summary_after_inlining): Same.
14128 (ipa_fn_summary_generate): Same.
14129 (inline_read_section): Same.
14130 (ipa_fn_summary_read): Same.
14131 (ipa_fn_summary_write): Same.
14132 * ipa-fnsummary.h: Same.
14133 * ipa-hsa.c (ipa_hsa_read_section): Same.
14134 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
14135 * ipa-icf.c (sem_function::param_used_p): Same.
14136 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
14137 * ipa-inline.c (edge_badness): Same.
14138 (inline_small_functions): Same.
14139 * ipa-polymorphic-call.c
14140 (ipa_polymorphic_call_context::stream_out): Same.
14141 * ipa-predicate.c (predicate::remap_after_duplication): Same.
14142 (predicate::remap_after_inlining): Same.
14143 (predicate::stream_out): Same.
14144 * ipa-predicate.h: Same.
14145 * ipa-profile.c (ipa_profile_read_summary): Same.
14146 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
14147 (count_formal_params): Same.
14148 (ipa_dump_param): Same.
14149 (ipa_alloc_node_params): Same.
14150 (ipa_print_node_jump_functions_for_edge): Same.
14151 (ipa_print_node_jump_functions): Same.
14152 (ipa_load_from_parm_agg): Same.
14153 (get_ancestor_addr_info): Same.
14154 (ipa_compute_jump_functions_for_edge): Same.
14155 (ipa_analyze_virtual_call_uses): Same.
14156 (ipa_analyze_stmt_uses): Same.
14157 (ipa_analyze_params_uses_in_bb): Same.
14158 (update_jump_functions_after_inlining): Same.
14159 (try_decrement_rdesc_refcount): Same.
14160 (ipa_impossible_devirt_target): Same.
14161 (update_indirect_edges_after_inlining): Same.
14162 (combine_controlled_uses_counters): Same.
14163 (ipa_edge_args_sum_t::duplicate): Same.
14164 (ipa_write_jump_function): Same.
14165 (ipa_write_indirect_edge_info): Same.
14166 (ipa_write_node_info): Same.
14167 (ipa_read_edge_info): Same.
14168 (ipa_prop_read_section): Same.
14169 (read_replacements_section): Same.
14170 * ipa-prop.h (ipa_get_param_count): Same.
14171 (ipa_get_param): Same.
14172 (ipa_get_type): Same.
14173 (ipa_get_param_move_cost): Same.
14174 (ipa_set_param_used): Same.
14175 (ipa_get_controlled_uses): Same.
14176 (ipa_set_controlled_uses): Same.
14177 (ipa_get_cs_argument_count): Same.
14178 * ipa-pure-const.c (analyze_function): Same.
14179 (pure_const_read_summary): Same.
14181 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
14182 * ipa-split.c (test_nonssa_use): Same.
14183 (dump_split_point): Same.
14184 (dominated_by_forbidden): Same.
14185 (split_part_set_ssa_name_p): Same.
14186 (find_split_points): Same.
14187 * ira-build.c (finish_loop_tree_nodes): Same.
14188 (low_pressure_loop_node_p): Same.
14189 * ira-color.c (ira_reuse_stack_slot): Same.
14191 * ira.c (setup_reg_equiv): Same.
14192 (print_insn_chain): Same.
14194 * loop-doloop.c (doloop_condition_get): Same.
14196 (record_reg_sets): Same.
14197 (doloop_optimize): Same.
14198 * loop-init.c (loop_optimizer_init): Same.
14199 (fix_loop_structure): Same.
14200 * loop-invariant.c (merge_identical_invariants): Same.
14201 (compute_always_reached): Same.
14202 (find_exits): Same.
14203 (may_assign_reg_p): Same.
14204 (find_invariants_bb): Same.
14205 (find_invariants_body): Same.
14206 (replace_uses): Same.
14207 (can_move_invariant_reg): Same.
14208 (free_inv_motion_data): Same.
14209 (move_single_loop_invariants): Same.
14210 (change_pressure): Same.
14211 (mark_ref_regs): Same.
14212 (calculate_loop_reg_pressure): Same.
14213 * loop-iv.c (biv_entry_hasher::equal): Same.
14214 (iv_extend_to_rtx_code): Same.
14215 (check_iv_ref_table_size): Same.
14216 (clear_iv_info): Same.
14217 (latch_dominating_def): Same.
14218 (iv_get_reaching_def): Same.
14219 (iv_constant): Same.
14225 (get_biv_step): Same.
14227 (analyzed_for_bivness_p): Same.
14228 (record_biv): Same.
14229 (iv_analyze_biv): Same.
14230 (iv_analyze_expr): Same.
14231 (iv_analyze_def): Same.
14232 (iv_analyze_op): Same.
14233 (iv_analyze): Same.
14234 (iv_analyze_result): Same.
14236 (eliminate_implied_conditions): Same.
14237 (simplify_using_initial_values): Same.
14238 (shorten_into_mode): Same.
14239 (canonicalize_iv_subregs): Same.
14240 (determine_max_iter): Same.
14241 (check_simple_exit): Same.
14242 (find_simple_exit): Same.
14243 (get_simple_loop_desc): Same.
14244 * loop-unroll.c (report_unroll): Same.
14245 (decide_unrolling): Same.
14246 (unroll_loops): Same.
14247 (loop_exit_at_end_p): Same.
14248 (decide_unroll_constant_iterations): Same.
14249 (unroll_loop_constant_iterations): Same.
14250 (compare_and_jump_seq): Same.
14251 (unroll_loop_runtime_iterations): Same.
14252 (decide_unroll_stupid): Same.
14253 (unroll_loop_stupid): Same.
14254 (referenced_in_one_insn_in_loop_p): Same.
14255 (reset_debug_uses_in_loop): Same.
14256 (analyze_iv_to_split_insn): Same.
14257 * lra-eliminations.c (lra_debug_elim_table): Same.
14258 (setup_can_eliminate): Same.
14260 (lra_get_elimination_hard_regno): Same.
14261 (lra_eliminate_regs_1): Same.
14262 (eliminate_regs_in_insn): Same.
14263 (update_reg_eliminate): Same.
14264 (init_elimination): Same.
14265 (lra_eliminate): Same.
14267 * lra-lives.c (initiate_live_solver): Same.
14268 * lra-remat.c (create_remat_bb_data): Same.
14269 * lra-spills.c (lra_spill): Same.
14270 * lra.c (lra_set_insn_recog_data): Same.
14271 (lra_set_used_insn_alternative_by_uid): Same.
14272 (init_reg_info): Same.
14273 (expand_reg_info): Same.
14274 * lto-cgraph.c (output_symtab): Same.
14275 (read_identifier): Same.
14276 (get_alias_symbol): Same.
14277 (input_node): Same.
14278 (input_varpool_node): Same.
14280 (input_edge): Same.
14281 (input_cgraph_1): Same.
14282 (input_refs): Same.
14283 (input_symtab): Same.
14284 (input_offload_tables): Same.
14285 (output_cgraph_opt_summary): Same.
14286 (input_edge_opt_summary): Same.
14287 (input_cgraph_opt_section): Same.
14288 * lto-section-in.c (lto_free_raw_section_data): Same.
14289 (lto_create_simple_input_block): Same.
14290 (lto_free_function_in_decl_state_for_node): Same.
14291 * lto-streamer-in.c (lto_tag_check_set): Same.
14292 (lto_location_cache::revert_location_cache): Same.
14293 (lto_location_cache::input_location): Same.
14294 (lto_input_location): Same.
14295 (stream_input_location_now): Same.
14296 (lto_input_tree_ref): Same.
14297 (lto_input_eh_catch_list): Same.
14298 (input_eh_region): Same.
14299 (lto_init_eh): Same.
14300 (make_new_block): Same.
14302 (fixup_call_stmt_edges): Same.
14303 (input_struct_function_base): Same.
14304 (input_function): Same.
14305 (lto_read_body_or_constructor): Same.
14306 (lto_read_tree_1): Same.
14307 (lto_read_tree): Same.
14308 (lto_input_scc): Same.
14309 (lto_input_tree_1): Same.
14310 (lto_input_toplevel_asms): Same.
14311 (lto_input_mode_table): Same.
14312 (lto_reader_init): Same.
14313 (lto_data_in_create): Same.
14314 * lto-streamer-out.c (output_cfg): Same.
14315 * lto-streamer.h: Same.
14316 * modulo-sched.c (duplicate_insns_of_cycles): Same.
14317 (generate_prolog_epilog): Same.
14318 (mark_loop_unsched): Same.
14319 (dump_insn_location): Same.
14320 (loop_canon_p): Same.
14321 (sms_schedule): Same.
14322 * omp-expand.c (expand_omp_for_ordered_loops): Same.
14323 (expand_omp_for_generic): Same.
14324 (expand_omp_for_static_nochunk): Same.
14325 (expand_omp_for_static_chunk): Same.
14326 (expand_omp_simd): Same.
14327 (expand_omp_taskloop_for_inner): Same.
14328 (expand_oacc_for): Same.
14329 (expand_omp_atomic_pipeline): Same.
14330 (mark_loops_in_oacc_kernels_region): Same.
14331 * omp-offload.c (oacc_xform_loop): Same.
14332 * omp-simd-clone.c (simd_clone_adjust): Same.
14333 * optabs-query.c (get_traditional_extraction_insn): Same.
14334 * optabs.c (expand_vector_broadcast): Same.
14335 (expand_binop_directly): Same.
14336 (expand_twoval_unop): Same.
14337 (expand_twoval_binop): Same.
14338 (expand_unop_direct): Same.
14339 (emit_indirect_jump): Same.
14340 (emit_conditional_move): Same.
14341 (emit_conditional_neg_or_complement): Same.
14342 (emit_conditional_add): Same.
14343 (vector_compare_rtx): Same.
14344 (expand_vec_perm_1): Same.
14345 (expand_vec_perm_const): Same.
14346 (expand_vec_cond_expr): Same.
14347 (expand_vec_series_expr): Same.
14348 (maybe_emit_atomic_exchange): Same.
14349 (maybe_emit_sync_lock_test_and_set): Same.
14350 (expand_atomic_compare_and_swap): Same.
14351 (expand_atomic_load): Same.
14352 (expand_atomic_store): Same.
14353 (maybe_emit_op): Same.
14354 (valid_multiword_target_p): Same.
14355 (create_integer_operand): Same.
14356 (maybe_legitimize_operand_same_code): Same.
14357 (maybe_legitimize_operand): Same.
14358 (create_convert_operand_from_type): Same.
14359 (can_reuse_operands_p): Same.
14360 (maybe_legitimize_operands): Same.
14361 (maybe_gen_insn): Same.
14362 (maybe_expand_insn): Same.
14363 (maybe_expand_jump_insn): Same.
14364 (expand_insn): Same.
14365 * optabs.h (create_expand_operand): Same.
14366 (create_fixed_operand): Same.
14367 (create_output_operand): Same.
14368 (create_input_operand): Same.
14369 (create_convert_operand_to): Same.
14370 (create_convert_operand_from): Same.
14372 * poly-int.h: Same.
14373 * predict.c (optimize_insn_for_speed_p): Same.
14374 (optimize_loop_for_size_p): Same.
14375 (optimize_loop_for_speed_p): Same.
14376 (optimize_loop_nest_for_speed_p): Same.
14377 (get_base_value): Same.
14378 (predicted_by_loop_heuristics_p): Same.
14379 (predict_extra_loop_exits): Same.
14380 (predict_loops): Same.
14381 (predict_paths_for_bb): Same.
14382 (predict_paths_leading_to): Same.
14383 (propagate_freq): Same.
14384 (pass_profile::execute): Same.
14386 * profile-count.c (profile_count::differs_from_p): Same.
14387 (profile_probability::differs_lot_from_p): Same.
14388 * profile-count.h: Same.
14389 * profile.c (branch_prob): Same.
14390 * regrename.c (free_chain_data): Same.
14391 (mark_conflict): Same.
14392 (create_new_chain): Same.
14393 (merge_overlapping_regs): Same.
14394 (init_rename_info): Same.
14395 (merge_chains): Same.
14396 (regrename_analyze): Same.
14397 (regrename_do_replace): Same.
14398 (scan_rtx_reg): Same.
14399 (record_out_operands): Same.
14400 (build_def_use): Same.
14401 * regrename.h: Same.
14403 * reload1.c (init_reload): Same.
14404 (maybe_fix_stack_asms): Same.
14405 (copy_reloads): Same.
14406 (count_pseudo): Same.
14407 (count_spilled_pseudo): Same.
14409 (find_reload_regs): Same.
14410 (select_reload_regs): Same.
14411 (spill_hard_reg): Same.
14412 (fixup_eh_region_note): Same.
14413 (set_reload_reg): Same.
14414 (allocate_reload_reg): Same.
14415 (compute_reload_subreg_offset): Same.
14416 (reload_adjust_reg_for_icode): Same.
14417 (emit_input_reload_insns): Same.
14418 (emit_output_reload_insns): Same.
14419 (do_input_reload): Same.
14420 (inherit_piecemeal_p): Same.
14422 * sanopt.c (maybe_get_dominating_check): Same.
14423 (maybe_optimize_ubsan_ptr_ifn): Same.
14424 (can_remove_asan_check): Same.
14425 (maybe_optimize_asan_check_ifn): Same.
14426 (sanopt_optimize_walker): Same.
14427 * sched-deps.c (add_dependence_list): Same.
14428 (chain_to_prev_insn): Same.
14429 (add_insn_mem_dependence): Same.
14430 (create_insn_reg_set): Same.
14431 (maybe_extend_reg_info_p): Same.
14432 (sched_analyze_reg): Same.
14433 (sched_analyze_1): Same.
14434 (get_implicit_reg_pending_clobbers): Same.
14435 (chain_to_prev_insn_p): Same.
14436 (deps_analyze_insn): Same.
14437 (deps_start_bb): Same.
14438 (sched_free_deps): Same.
14440 (init_deps_reg_last): Same.
14442 * sched-ebb.c: Same.
14443 * sched-int.h: Same.
14444 * sched-rgn.c (add_branch_dependences): Same.
14445 (concat_insn_mem_list): Same.
14447 (sched_rgn_compute_dependencies): Same.
14448 * sel-sched-ir.c (reset_target_context): Same.
14449 (copy_deps_context): Same.
14450 (init_id_from_df): Same.
14451 (has_dependence_p): Same.
14452 (change_loops_latches): Same.
14453 (bb_top_order_comparator): Same.
14454 (make_region_from_loop_preheader): Same.
14455 (sel_init_pipelining): Same.
14456 (get_loop_nest_for_rgn): Same.
14457 (make_regions_from_the_rest): Same.
14458 (sel_is_loop_preheader_p): Same.
14459 * sel-sched-ir.h (inner_loop_header_p): Same.
14460 (get_all_loop_exits): Same.
14461 * selftest.h: Same.
14462 * sese.c (sese_build_liveouts): Same.
14463 (sese_insert_phis_for_liveouts): Same.
14464 * sese.h (defined_in_sese_p): Same.
14465 * sreal.c (sreal::stream_out): Same.
14467 * streamer-hooks.h: Same.
14468 * target-globals.c (save_target_globals): Same.
14469 * target-globals.h: Same.
14470 * target.def: Same.
14472 * targhooks.c (default_has_ifunc_p): Same.
14473 (default_empty_mask_is_expensive): Same.
14474 (default_init_cost): Same.
14475 * targhooks.h: Same.
14477 * tree-affine.c (aff_combination_mult): Same.
14478 (aff_combination_expand): Same.
14479 (aff_combination_constant_multiple_p): Same.
14480 * tree-affine.h: Same.
14481 * tree-cfg.c (build_gimple_cfg): Same.
14482 (replace_loop_annotate_in_block): Same.
14483 (replace_uses_by): Same.
14485 (dump_cfg_stats): Same.
14486 (gimple_duplicate_sese_region): Same.
14487 (gimple_duplicate_sese_tail): Same.
14488 (move_block_to_fn): Same.
14489 (replace_block_vars_by_duplicates): Same.
14490 (move_sese_region_to_fn): Same.
14491 (print_loops_bb): Same.
14492 (print_loop): Same.
14493 (print_loops): Same.
14495 (debug_loops): Same.
14496 * tree-cfg.h: Same.
14497 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
14498 (chrec_fold_multiply_poly_poly): Same.
14499 (chrec_evaluate): Same.
14500 (chrec_component_in_loop_num): Same.
14501 (reset_evolution_in_loop): Same.
14502 (is_multivariate_chrec): Same.
14503 (chrec_contains_symbols): Same.
14504 (nb_vars_in_chrec): Same.
14505 (chrec_convert_1): Same.
14506 (chrec_convert_aggressive): Same.
14507 * tree-chrec.h: Same.
14508 * tree-core.h: Same.
14509 * tree-data-ref.c (dump_data_dependence_relation): Same.
14510 (canonicalize_base_object_address): Same.
14511 (data_ref_compare_tree): Same.
14512 (prune_runtime_alias_test_list): Same.
14513 (get_segment_min_max): Same.
14514 (create_intersect_range_checks): Same.
14515 (conflict_fn_no_dependence): Same.
14516 (object_address_invariant_in_loop_p): Same.
14517 (analyze_ziv_subscript): Same.
14518 (analyze_siv_subscript_cst_affine): Same.
14519 (analyze_miv_subscript): Same.
14520 (analyze_overlapping_iterations): Same.
14521 (build_classic_dist_vector_1): Same.
14522 (add_other_self_distances): Same.
14523 (same_access_functions): Same.
14524 (build_classic_dir_vector): Same.
14525 (subscript_dependence_tester_1): Same.
14526 (subscript_dependence_tester): Same.
14527 (access_functions_are_affine_or_constant_p): Same.
14528 (get_references_in_stmt): Same.
14529 (loop_nest_has_data_refs): Same.
14530 (graphite_find_data_references_in_stmt): Same.
14531 (find_data_references_in_bb): Same.
14532 (get_base_for_alignment): Same.
14533 (find_loop_nest_1): Same.
14534 (find_loop_nest): Same.
14535 * tree-data-ref.h (dr_alignment): Same.
14536 (ddr_dependence_level): Same.
14537 * tree-if-conv.c (fold_build_cond_expr): Same.
14538 (add_to_predicate_list): Same.
14539 (add_to_dst_predicate_list): Same.
14540 (phi_convertible_by_degenerating_args): Same.
14541 (idx_within_array_bound): Same.
14542 (all_preds_critical_p): Same.
14543 (pred_blocks_visited_p): Same.
14544 (predicate_bbs): Same.
14545 (build_region): Same.
14546 (if_convertible_loop_p_1): Same.
14547 (is_cond_scalar_reduction): Same.
14548 (predicate_scalar_phi): Same.
14549 (remove_conditions_and_labels): Same.
14550 (combine_blocks): Same.
14551 (version_loop_for_if_conversion): Same.
14552 (versionable_outer_loop_p): Same.
14553 (ifcvt_local_dce): Same.
14554 (tree_if_conversion): Same.
14555 (pass_if_conversion::gate): Same.
14556 * tree-if-conv.h: Same.
14557 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
14558 * tree-loop-distribution.c (bb_top_order_cmp): Same.
14560 (stmt_has_scalar_dependences_outside_loop): Same.
14561 (copy_loop_before): Same.
14562 (create_bb_after_loop): Same.
14563 (const_with_all_bytes_same): Same.
14564 (generate_memset_builtin): Same.
14565 (generate_memcpy_builtin): Same.
14566 (destroy_loop): Same.
14567 (build_rdg_partition_for_vertex): Same.
14568 (compute_access_range): Same.
14569 (data_ref_segment_size): Same.
14570 (latch_dominated_by_data_ref): Same.
14571 (compute_alias_check_pairs): Same.
14572 (fuse_memset_builtins): Same.
14573 (finalize_partitions): Same.
14574 (find_seed_stmts_for_distribution): Same.
14575 (prepare_perfect_loop_nest): Same.
14576 * tree-parloops.c (lambda_transform_legal_p): Same.
14577 (loop_parallel_p): Same.
14578 (reduc_stmt_res): Same.
14579 (add_field_for_name): Same.
14580 (create_call_for_reduction_1): Same.
14581 (replace_uses_in_bb_by): Same.
14582 (transform_to_exit_first_loop_alt): Same.
14583 (try_transform_to_exit_first_loop_alt): Same.
14584 (transform_to_exit_first_loop): Same.
14586 (gen_parallel_loop): Same.
14587 (gather_scalar_reductions): Same.
14588 (get_omp_data_i_param): Same.
14589 (try_create_reduction_list): Same.
14590 (oacc_entry_exit_single_gang): Same.
14591 (parallelize_loops): Same.
14592 * tree-pass.h: Same.
14593 * tree-predcom.c (determine_offset): Same.
14594 (last_always_executed_block): Same.
14595 (split_data_refs_to_components): Same.
14596 (suitable_component_p): Same.
14597 (valid_initializer_p): Same.
14598 (find_looparound_phi): Same.
14599 (insert_looparound_copy): Same.
14600 (add_looparound_copies): Same.
14601 (determine_roots_comp): Same.
14602 (predcom_tmp_var): Same.
14603 (initialize_root_vars): Same.
14604 (initialize_root_vars_store_elim_1): Same.
14605 (initialize_root_vars_store_elim_2): Same.
14606 (finalize_eliminated_stores): Same.
14607 (initialize_root_vars_lm): Same.
14608 (remove_stmt): Same.
14609 (determine_unroll_factor): Same.
14610 (execute_pred_commoning_cbck): Same.
14611 (base_names_in_chain_on): Same.
14612 (combine_chains): Same.
14613 (pcom_stmt_dominates_stmt_p): Same.
14614 (try_combine_chains): Same.
14615 (prepare_initializers_chain_store_elim): Same.
14616 (prepare_initializers_chain): Same.
14617 (prepare_initializers): Same.
14618 (prepare_finalizers_chain): Same.
14619 (prepare_finalizers): Same.
14620 (insert_init_seqs): Same.
14621 * tree-scalar-evolution.c (loop_phi_node_p): Same.
14622 (compute_overall_effect_of_inner_loop): Same.
14623 (add_to_evolution_1): Same.
14624 (add_to_evolution): Same.
14625 (follow_ssa_edge_binary): Same.
14626 (follow_ssa_edge_expr): Same.
14627 (backedge_phi_arg_p): Same.
14628 (follow_ssa_edge_in_condition_phi_branch): Same.
14629 (follow_ssa_edge_in_condition_phi): Same.
14630 (follow_ssa_edge_inner_loop_phi): Same.
14631 (follow_ssa_edge): Same.
14632 (analyze_evolution_in_loop): Same.
14633 (analyze_initial_condition): Same.
14634 (interpret_loop_phi): Same.
14635 (interpret_condition_phi): Same.
14636 (interpret_rhs_expr): Same.
14637 (interpret_expr): Same.
14638 (interpret_gimple_assign): Same.
14639 (analyze_scalar_evolution_1): Same.
14640 (analyze_scalar_evolution): Same.
14641 (analyze_scalar_evolution_for_address_of): Same.
14642 (get_instantiated_value_entry): Same.
14643 (loop_closed_phi_def): Same.
14644 (instantiate_scev_name): Same.
14645 (instantiate_scev_poly): Same.
14646 (instantiate_scev_binary): Same.
14647 (instantiate_scev_convert): Same.
14648 (instantiate_scev_not): Same.
14649 (instantiate_scev_r): Same.
14650 (instantiate_scev): Same.
14651 (resolve_mixers): Same.
14652 (initialize_scalar_evolutions_analyzer): Same.
14653 (scev_reset_htab): Same.
14654 (scev_reset): Same.
14655 (derive_simple_iv_with_niters): Same.
14656 (simple_iv_with_niters): Same.
14657 (expression_expensive_p): Same.
14658 (final_value_replacement_loop): Same.
14659 * tree-scalar-evolution.h (block_before_loop): Same.
14660 * tree-ssa-address.h: Same.
14661 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
14662 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
14663 (record_edge_info): Same.
14664 * tree-ssa-live.c (var_map_base_fini): Same.
14665 (remove_unused_locals): Same.
14666 * tree-ssa-live.h: Same.
14667 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
14668 (pass_ch_vect::execute): Same.
14669 (pass_ch::process_loop_p): Same.
14670 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
14671 (movement_possibility): Same.
14672 (outermost_invariant_loop): Same.
14674 (determine_max_movement): Same.
14675 (invariantness_dom_walker::before_dom_children): Same.
14676 (move_computations): Same.
14677 (may_move_till): Same.
14678 (force_move_till_op): Same.
14679 (force_move_till): Same.
14680 (memref_free): Same.
14681 (record_mem_ref_loc): Same.
14682 (set_ref_stored_in_loop): Same.
14683 (mark_ref_stored): Same.
14684 (sort_bbs_in_loop_postorder_cmp): Same.
14685 (sort_locs_in_loop_postorder_cmp): Same.
14686 (analyze_memory_references): Same.
14687 (mem_refs_may_alias_p): Same.
14688 (find_ref_loc_in_loop_cmp): Same.
14689 (rewrite_mem_ref_loc::operator): Same.
14690 (first_mem_ref_loc_1::operator): Same.
14691 (sm_set_flag_if_changed::operator): Same.
14692 (execute_sm_if_changed_flag_set): Same.
14693 (execute_sm): Same.
14694 (hoist_memory_references): Same.
14695 (ref_always_accessed::operator): Same.
14696 (refs_independent_p): Same.
14697 (record_dep_loop): Same.
14698 (ref_indep_loop_p_1): Same.
14699 (ref_indep_loop_p): Same.
14700 (can_sm_ref_p): Same.
14701 (find_refs_for_sm): Same.
14702 (loop_suitable_for_sm): Same.
14703 (store_motion_loop): Same.
14704 (store_motion): Same.
14705 (fill_always_executed_in): Same.
14706 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
14707 (estimated_unrolled_size): Same.
14708 (loop_edge_to_cancel): Same.
14709 (remove_exits_and_undefined_stmts): Same.
14710 (remove_redundant_iv_tests): Same.
14711 (unloop_loops): Same.
14712 (estimated_peeled_sequence_size): Same.
14713 (try_peel_loop): Same.
14714 (canonicalize_loop_induction_variables): Same.
14715 (canonicalize_induction_variables): Same.
14716 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
14718 (stmt_after_inc_pos): Same.
14719 (contains_abnormal_ssa_name_p): Same.
14720 (niter_for_exit): Same.
14723 (find_givs_in_bb): Same.
14724 (find_induction_variables): Same.
14725 (find_interesting_uses_cond): Same.
14726 (outermost_invariant_loop_for_expr): Same.
14727 (idx_find_step): Same.
14728 (add_candidate_1): Same.
14729 (add_iv_candidate_derived_from_uses): Same.
14730 (alloc_use_cost_map): Same.
14731 (prepare_decl_rtl): Same.
14732 (generic_predict_doloop_p): Same.
14733 (computation_cost): Same.
14734 (determine_common_wider_type): Same.
14735 (get_computation_aff_1): Same.
14736 (get_use_type): Same.
14737 (determine_group_iv_cost_address): Same.
14739 (difference_cannot_overflow_p): Same.
14740 (may_eliminate_iv): Same.
14741 (determine_set_costs): Same.
14742 (cheaper_cost_pair): Same.
14743 (compare_cost_pair): Same.
14744 (iv_ca_cand_for_group): Same.
14745 (iv_ca_recount_cost): Same.
14746 (iv_ca_set_remove_invs): Same.
14747 (iv_ca_set_no_cp): Same.
14748 (iv_ca_set_add_invs): Same.
14749 (iv_ca_set_cp): Same.
14750 (iv_ca_add_group): Same.
14751 (iv_ca_cost): Same.
14752 (iv_ca_compare_deps): Same.
14753 (iv_ca_delta_reverse): Same.
14754 (iv_ca_delta_commit): Same.
14755 (iv_ca_cand_used_p): Same.
14756 (iv_ca_delta_free): Same.
14758 (iv_ca_free): Same.
14759 (iv_ca_dump): Same.
14760 (iv_ca_extend): Same.
14761 (iv_ca_narrow): Same.
14762 (iv_ca_prune): Same.
14763 (cheaper_cost_with_cand): Same.
14764 (iv_ca_replace): Same.
14765 (try_add_cand_for): Same.
14766 (get_initial_solution): Same.
14767 (try_improve_iv_set): Same.
14768 (find_optimal_iv_set_1): Same.
14769 (create_new_iv): Same.
14770 (rewrite_use_compare): Same.
14771 (remove_unused_ivs): Same.
14772 (determine_scaling_factor): Same.
14773 * tree-ssa-loop-ivopts.h: Same.
14774 * tree-ssa-loop-manip.c (create_iv): Same.
14775 (compute_live_loop_exits): Same.
14776 (add_exit_phi): Same.
14777 (add_exit_phis): Same.
14778 (find_uses_to_rename_use): Same.
14779 (find_uses_to_rename_def): Same.
14780 (find_uses_to_rename_in_loop): Same.
14781 (rewrite_into_loop_closed_ssa): Same.
14782 (check_loop_closed_ssa_bb): Same.
14783 (split_loop_exit_edge): Same.
14784 (ip_end_pos): Same.
14785 (ip_normal_pos): Same.
14786 (copy_phi_node_args): Same.
14787 (gimple_duplicate_loop_to_header_edge): Same.
14788 (can_unroll_loop_p): Same.
14789 (determine_exit_conditions): Same.
14790 (scale_dominated_blocks_in_loop): Same.
14791 (niter_for_unrolled_loop): Same.
14792 (tree_transform_and_unroll_loop): Same.
14793 (rewrite_all_phi_nodes_with_iv): Same.
14794 * tree-ssa-loop-manip.h: Same.
14795 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
14796 (number_of_iterations_ne): Same.
14797 (assert_no_overflow_lt): Same.
14798 (assert_loop_rolls_lt): Same.
14799 (number_of_iterations_lt): Same.
14800 (adjust_cond_for_loop_until_wrap): Same.
14801 (tree_simplify_using_condition): Same.
14802 (simplify_using_initial_conditions): Same.
14803 (simplify_using_outer_evolutions): Same.
14804 (loop_only_exit_p): Same.
14805 (ssa_defined_by_minus_one_stmt_p): Same.
14806 (number_of_iterations_popcount): Same.
14807 (number_of_iterations_exit): Same.
14808 (find_loop_niter): Same.
14809 (finite_loop_p): Same.
14810 (chain_of_csts_start): Same.
14811 (get_val_for): Same.
14812 (loop_niter_by_eval): Same.
14813 (derive_constant_upper_bound_ops): Same.
14814 (do_warn_aggressive_loop_optimizations): Same.
14815 (record_estimate): Same.
14816 (get_cst_init_from_scev): Same.
14817 (record_nonwrapping_iv): Same.
14818 (idx_infer_loop_bounds): Same.
14819 (infer_loop_bounds_from_ref): Same.
14820 (infer_loop_bounds_from_array): Same.
14821 (infer_loop_bounds_from_pointer_arith): Same.
14822 (infer_loop_bounds_from_signedness): Same.
14823 (bound_index): Same.
14824 (discover_iteration_bound_by_body_walk): Same.
14825 (maybe_lower_iteration_bound): Same.
14826 (estimate_numbers_of_iterations): Same.
14827 (estimated_loop_iterations): Same.
14828 (estimated_loop_iterations_int): Same.
14829 (max_loop_iterations): Same.
14830 (max_loop_iterations_int): Same.
14831 (likely_max_loop_iterations): Same.
14832 (likely_max_loop_iterations_int): Same.
14833 (estimated_stmt_executions_int): Same.
14834 (max_stmt_executions): Same.
14835 (likely_max_stmt_executions): Same.
14836 (estimated_stmt_executions): Same.
14837 (stmt_dominates_stmt_p): Same.
14838 (nowrap_type_p): Same.
14839 (loop_exits_before_overflow): Same.
14840 (scev_var_range_cant_overflow): Same.
14841 (scev_probably_wraps_p): Same.
14842 (free_numbers_of_iterations_estimates): Same.
14843 * tree-ssa-loop-niter.h: Same.
14844 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
14845 (idx_analyze_ref): Same.
14846 (analyze_ref): Same.
14847 (gather_memory_references_ref): Same.
14848 (mark_nontemporal_store): Same.
14849 (emit_mfence_after_loop): Same.
14850 (may_use_storent_in_loop_p): Same.
14851 (mark_nontemporal_stores): Same.
14852 (should_unroll_loop_p): Same.
14853 (volume_of_dist_vector): Same.
14854 (add_subscript_strides): Same.
14855 (self_reuse_distance): Same.
14856 (insn_to_prefetch_ratio_too_small_p): Same.
14857 * tree-ssa-loop-split.c (split_at_bb_p): Same.
14858 (patch_loop_exit): Same.
14859 (find_or_create_guard_phi): Same.
14860 (easy_exit_values): Same.
14861 (connect_loop_phis): Same.
14862 (connect_loops): Same.
14863 (compute_new_first_bound): Same.
14864 (split_loop): Same.
14865 (tree_ssa_split_loops): Same.
14866 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
14867 (is_maybe_undefined): Same.
14868 (tree_may_unswitch_on): Same.
14869 (simplify_using_entry_checks): Same.
14870 (tree_unswitch_single_loop): Same.
14871 (tree_unswitch_loop): Same.
14872 (tree_unswitch_outer_loop): Same.
14873 (empty_bb_without_guard_p): Same.
14874 (used_outside_loop_p): Same.
14875 (get_vop_from_header): Same.
14876 (hoist_guard): Same.
14877 * tree-ssa-loop.c (gate_oacc_kernels): Same.
14878 (get_lsm_tmp_name): Same.
14879 * tree-ssa-loop.h: Same.
14880 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
14881 (build_and_add_sum): Same.
14882 (no_side_effect_bb): Same.
14884 (linearize_expr): Same.
14885 (should_break_up_subtract): Same.
14886 (linearize_expr_tree): Same.
14887 * tree-ssa-scopedtables.c: Same.
14888 * tree-ssa-scopedtables.h: Same.
14889 * tree-ssa-structalias.c (condense_visit): Same.
14890 (label_visit): Same.
14891 (dump_pred_graph): Same.
14892 (perform_var_substitution): Same.
14893 (move_complex_constraints): Same.
14894 (remove_preds_and_fake_succs): Same.
14895 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
14896 (determine_bb_domination_status): Same.
14897 (duplicate_thread_path): Same.
14898 (thread_through_all_blocks): Same.
14899 * tree-ssa-threadupdate.h: Same.
14900 * tree-streamer-in.c (streamer_read_string_cst): Same.
14901 (input_identifier): Same.
14902 (unpack_ts_type_common_value_fields): Same.
14903 (unpack_ts_block_value_fields): Same.
14904 (unpack_ts_translation_unit_decl_value_fields): Same.
14905 (unpack_ts_omp_clause_value_fields): Same.
14906 (streamer_read_tree_bitfields): Same.
14907 (streamer_alloc_tree): Same.
14908 (lto_input_ts_common_tree_pointers): Same.
14909 (lto_input_ts_vector_tree_pointers): Same.
14910 (lto_input_ts_poly_tree_pointers): Same.
14911 (lto_input_ts_complex_tree_pointers): Same.
14912 (lto_input_ts_decl_minimal_tree_pointers): Same.
14913 (lto_input_ts_decl_common_tree_pointers): Same.
14914 (lto_input_ts_decl_non_common_tree_pointers): Same.
14915 (lto_input_ts_decl_with_vis_tree_pointers): Same.
14916 (lto_input_ts_field_decl_tree_pointers): Same.
14917 (lto_input_ts_function_decl_tree_pointers): Same.
14918 (lto_input_ts_type_common_tree_pointers): Same.
14919 (lto_input_ts_type_non_common_tree_pointers): Same.
14920 (lto_input_ts_list_tree_pointers): Same.
14921 (lto_input_ts_vec_tree_pointers): Same.
14922 (lto_input_ts_exp_tree_pointers): Same.
14923 (lto_input_ts_block_tree_pointers): Same.
14924 (lto_input_ts_binfo_tree_pointers): Same.
14925 (lto_input_ts_constructor_tree_pointers): Same.
14926 (lto_input_ts_omp_clause_tree_pointers): Same.
14927 (streamer_read_tree_body): Same.
14928 * tree-streamer.h: Same.
14929 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
14930 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
14931 (vect_analyze_possibly_independent_ddr): Same.
14932 (vect_analyze_data_ref_dependence): Same.
14933 (vect_compute_data_ref_alignment): Same.
14934 (vect_enhance_data_refs_alignment): Same.
14935 (vect_analyze_data_ref_access): Same.
14936 (vect_check_gather_scatter): Same.
14937 (vect_find_stmt_data_reference): Same.
14938 (vect_create_addr_base_for_vector_ref): Same.
14939 (vect_setup_realignment): Same.
14940 (vect_supportable_dr_alignment): Same.
14941 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
14942 (adjust_phi_and_debug_stmts): Same.
14943 (vect_set_loop_mask): Same.
14944 (add_preheader_seq): Same.
14945 (vect_maybe_permute_loop_masks): Same.
14946 (vect_set_loop_masks_directly): Same.
14947 (vect_set_loop_condition_masked): Same.
14948 (vect_set_loop_condition_unmasked): Same.
14949 (slpeel_duplicate_current_defs_from_edges): Same.
14950 (slpeel_add_loop_guard): Same.
14951 (slpeel_can_duplicate_loop_p): Same.
14952 (create_lcssa_for_virtual_phi): Same.
14954 (vect_update_ivs_after_vectorizer): Same.
14955 (vect_gen_vector_loop_niters_mult_vf): Same.
14956 (slpeel_update_phi_nodes_for_loops): Same.
14957 (slpeel_update_phi_nodes_for_guard1): Same.
14958 (find_guard_arg): Same.
14959 (slpeel_update_phi_nodes_for_guard2): Same.
14960 (slpeel_update_phi_nodes_for_lcssa): Same.
14961 (vect_do_peeling): Same.
14962 (vect_create_cond_for_alias_checks): Same.
14963 (vect_loop_versioning): Same.
14964 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
14965 (vect_inner_phi_in_double_reduction_p): Same.
14966 (vect_analyze_scalar_cycles_1): Same.
14967 (vect_fixup_scalar_cycles_with_patterns): Same.
14968 (vect_get_loop_niters): Same.
14969 (bb_in_loop_p): Same.
14970 (vect_get_max_nscalars_per_iter): Same.
14971 (vect_verify_full_masking): Same.
14972 (vect_compute_single_scalar_iteration_cost): Same.
14973 (vect_analyze_loop_form_1): Same.
14974 (vect_analyze_loop_form): Same.
14975 (vect_active_double_reduction_p): Same.
14976 (vect_analyze_loop_operations): Same.
14977 (neutral_op_for_slp_reduction): Same.
14978 (vect_is_simple_reduction): Same.
14979 (vect_model_reduction_cost): Same.
14980 (get_initial_def_for_reduction): Same.
14981 (get_initial_defs_for_reduction): Same.
14982 (vect_create_epilog_for_reduction): Same.
14983 (vectorize_fold_left_reduction): Same.
14984 (vectorizable_reduction): Same.
14985 (vectorizable_induction): Same.
14986 (vectorizable_live_operation): Same.
14987 (loop_niters_no_overflow): Same.
14988 (vect_get_loop_mask): Same.
14989 (vect_transform_loop_stmt): Same.
14990 (vect_transform_loop): Same.
14991 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
14992 (vect_determine_precisions): Same.
14993 (vect_pattern_recog_1): Same.
14994 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
14995 * tree-vect-stmts.c (stmt_vectype): Same.
14996 (process_use): Same.
14997 (vect_init_vector_1): Same.
14998 (vect_truncate_gather_scatter_offset): Same.
14999 (get_group_load_store_type): Same.
15000 (vect_build_gather_load_calls): Same.
15001 (vect_get_strided_load_store_ops): Same.
15002 (vectorizable_simd_clone_call): Same.
15003 (vectorizable_store): Same.
15004 (permute_vec_elements): Same.
15005 (vectorizable_load): Same.
15006 (vect_transform_stmt): Same.
15007 (supportable_widening_operation): Same.
15008 * tree-vectorizer.c (vec_info::replace_stmt): Same.
15009 (vec_info::free_stmt_vec_info): Same.
15010 (vect_free_loop_info_assumptions): Same.
15011 (vect_loop_vectorized_call): Same.
15012 (set_uid_loop_bbs): Same.
15013 (vectorize_loops): Same.
15014 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
15015 * tree.c (add_tree_to_fld_list): Same.
15016 (fld_type_variant_equal_p): Same.
15017 (fld_decl_context): Same.
15018 (fld_incomplete_type_of): Same.
15019 (free_lang_data_in_binfo): Same.
15020 (need_assembler_name_p): Same.
15021 (find_decls_types_r): Same.
15022 (get_eh_types_for_runtime): Same.
15023 (find_decls_types_in_eh_region): Same.
15024 (find_decls_types_in_node): Same.
15025 (assign_assembler_name_if_needed): Same.
15026 * value-prof.c (stream_out_histogram_value): Same.
15027 * value-prof.h: Same.
15028 * var-tracking.c (use_narrower_mode): Same.
15029 (prepare_call_arguments): Same.
15030 (vt_expand_loc_callback): Same.
15031 (resolve_expansions_pending_recursion): Same.
15032 (vt_expand_loc): Same.
15033 * varasm.c (const_hash_1): Same.
15034 (compare_constant): Same.
15035 (tree_output_constant_def): Same.
15036 (simplify_subtraction): Same.
15037 (get_pool_constant): Same.
15038 (output_constant_pool_2): Same.
15039 (output_constant_pool_1): Same.
15040 (mark_constants_in_pattern): Same.
15041 (mark_constant_pool): Same.
15042 (get_section_anchor): Same.
15043 * vr-values.c (compare_range_with_value): Same.
15044 (vr_values::extract_range_from_phi_node): Same.
15045 * vr-values.h: Same.
15046 * web.c (unionfind_union): Same.
15047 * wide-int.h: Same.
15049 2019-07-09 Martin Sebor <msebor@redhat.com>
15052 * align.h: Change class-key from class to struct and vice versa
15053 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
15054 * alloc-pool.h: Same.
15055 * asan.c (shadow_mem_size): Same.
15056 * auto-profile.c: Same.
15057 * basic-block.h: Same.
15059 * cfgexpand.c (set_rtl): Same.
15060 (expand_one_stack_var_at): Same.
15061 * cfghooks.h: Same.
15064 * config/i386/i386.h: Same.
15065 * df-problems.c (df_print_bb_index): Same.
15067 * df.h (df_single_use): Same.
15068 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
15069 (layout::annotation_line_showed_range_p): Same.
15070 (get_printed_columns): Same.
15071 (correction::ensure_terminated): Same.
15072 (line_corrections::~line_corrections): Same.
15075 * dump-context.h: Same.
15076 * dumpfile.h: Same.
15077 * dwarf2out.c: Same.
15078 * edit-context.c: Same.
15079 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
15081 * function.c (assign_stack_local): Same.
15082 * function.h: Same.
15084 * gcov.c (block_info::block_info): Same.
15085 * genattrtab.c: Same.
15086 * genextract.c: Same.
15087 * genmatch.c (comparison_code_p): Same.
15088 (id_base::id_base): Same.
15089 (decision_tree::print): Same.
15090 * genoutput.c: Same.
15091 * genpreds.c (write_one_predicate_function): Same.
15092 * genrecog.c (validate_pattern): Same.
15093 (find_operand_positions): Same.
15094 (optimize_subroutine_group): Same.
15095 (merge_pattern_transition::merge_pattern_transition): Same.
15096 (merge_pattern_info::merge_pattern_info): Same.
15097 (merge_state_result::merge_state_result): Same.
15098 (merge_into_state): Same.
15099 * gensupport.c: Same.
15100 * gensupport.h: Same.
15101 * ggc-common.c (init_ggc_heuristics): Same.
15102 * ggc-tests.c (test_union): Same.
15103 * gimple-loop-interchange.cc (dump_induction): Same.
15104 * gimple-loop-versioning.cc: Same.
15105 * gimple-match.h (gimple_match_cond::any_else): Same.
15106 * gimple-ssa-backprop.c: Same.
15107 * gimple-ssa-sprintf.c: Same.
15108 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
15110 (store_immediate_info::store_immediate_info): Same.
15111 (merged_store_group::apply_stores): Same.
15112 (get_location_for_stmts): Same.
15113 * gimple-ssa-strength-reduction.c: Same.
15114 * gimple-ssa-warn-alloca.c: Same.
15115 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
15116 * godump.c (go_type_decl): Same.
15117 * hash-map-tests.c (test_map_of_strings_to_int): Same.
15118 * hash-map.h: Same.
15119 * hash-set-tests.c (test_set_of_strings): Same.
15120 * hsa-brig.c: Same.
15121 * hsa-common.h: Same.
15122 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
15123 * input.c (assert_loceq): Same.
15126 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
15127 * ipa-fnsummary.h: Same.
15128 * ipa-inline.h: Same.
15129 * ipa-prop.h: Same.
15130 * ipa-split.c (visit_bb): Same.
15131 * ira-int.h (minmax_set_iter_next): Same.
15132 * loop-invariant.c: Same.
15134 * lra-eliminations.c: Same.
15136 * lra-lives.c (mark_regno_dead): Same.
15137 * lra-remat.c: Same.
15138 * lra-spills.c: Same.
15139 * lto-streamer.h: Same.
15140 * mem-stats.h: Same.
15141 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
15142 * omp-low.c (omp_clause_aligned_alignment): Same.
15143 * optabs-query.h (get_vcond_eq_icode): Same.
15145 * opts.c (wrap_help): Same.
15146 * poly-int.h: Same.
15147 * predict.c (predict_paths_leading_to_edge): Same.
15148 * pretty-print.h: Same.
15149 * profile-count.h: Same.
15151 * read-rtl-function.c: Same.
15154 * regrename.c: Same.
15155 * regrename.h: Same.
15157 * rtl-iter.h: Same.
15158 * rtl.h (costs_add_n_insns): Same.
15160 * sched-int.h: Same.
15161 * sel-sched-ir.h: Same.
15162 * selftest.h: Same.
15163 * sese.h (vec_find): Same.
15165 * target-globals.h: Same.
15166 * tree-affine.c (aff_combination_find_elt): Same.
15167 * tree-affine.h: Same.
15168 * tree-data-ref.h: Same.
15169 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
15170 * tree-predcom.c: Same.
15171 * tree-scalar-evolution.c (find_var_scev_info): Same.
15172 * tree-ssa-alias.h: Same.
15173 * tree-ssa-ccp.c: Same.
15174 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
15175 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
15176 (rewrite_mem_refs): Same.
15177 (execute_sm_if_changed): Same.
15178 (hoist_memory_references): Same.
15179 * tree-ssa-loop-ivopts.c (operator<=): Same.
15180 * tree-ssa-loop.h: Same.
15181 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
15182 * tree-ssa-structalias.c: Same.
15183 * tree-switch-conversion.h (cluster::cluster): Same.
15184 (simple_cluster::simple_cluster): Same.
15185 * tree-vect-patterns.c (type_conversion_p): Same.
15186 * tree-vectorizer.c (dump_stmt_cost): Same.
15187 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
15188 * tree.c (protected_set_expr_location): Same.
15189 * tree.h (desired_pro_or_demotion_p): Same.
15190 (fndecl_built_in_p): Same.
15191 * unique-ptr-tests.cc: Same.
15192 * var-tracking.c (delete_variable_part): Same.
15193 * varasm.c (assemble_real): Same.
15194 (tree_output_constant_def): Same.
15196 * wide-int-bitmask.h: Same.
15197 * wide-int.h (decompose): Same.
15199 2019-07-09 Richard Biener <rguenther@suse.de>
15201 PR tree-optimization/91114
15202 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
15203 find a vector type isn't fatal.
15205 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
15207 * config/aarch64/aarch64-simd.md
15208 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
15209 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
15210 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
15211 (*aarch64_crypto_aese_fused,
15212 *aarch64_crypto_aesd_fused): Update to new definition.
15213 * config/aarch64/aarch64.c
15214 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
15216 2019-07-09 Richard Biener <rguenther@suse.de>
15218 * gimple-match.h (gimple_match_op::resimplify): New.
15219 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
15220 gimple_resimplify4, gimple_resimplify5): Remove.
15221 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
15222 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
15224 (gimple_match_op::resimplify): New.
15225 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
15226 according to availability. Use gimple_match_op::resimplify.
15228 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
15230 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
15232 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
15234 * config/arm/crypto.md:
15235 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
15236 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
15237 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
15238 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
15240 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
15241 * config/arm/aarch-common-protos.h
15242 (aarch_crypto_can_dual_issue): Remove.
15243 * config/arm/aarch-common.c
15244 (aarch_crypto_can_dual_issue): Likewise.
15245 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
15246 * config/arm/cortex-a53.md: Likewise.
15247 * config/arm/cortex-a57.md: Likewise.
15248 * config/arm/iterators.md:
15249 (CRYPTO_BINARY): Redefine.
15250 (CRYPTO_UNARY): Removed.
15251 (CRYPTO_AES, CRYPTO_AESMC): New.
15253 2019-07-09 Richard Biener <rguenther@suse.de>
15255 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
15256 (vn_reference_lookup_3): If the main ref has no access path recorded
15257 but orig_ref has use it to do access-path based disambiguation.
15258 (vn_reference_lookup_pieces): Adjust.
15259 (vn_reference_lookup): Pass down original ref if we valueized.
15261 2019-07-09 Martin Liska <mliska@suse.cz>
15263 * doc/extend.texi: Document influence on loop
15266 2019-07-09 Martin Liska <mliska@suse.cz>
15268 * lto-compress.c (lto_normalized_zstd_level): Do not use
15269 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
15270 of libzstd. One can use 0 as a default compression level.
15272 2019-07-09 Martin Liska <mliska@suse.cz>
15274 * doc/invoke.texi: Add link from -fprofile-dir option.
15275 Use better wording for 'gcno filename'.
15277 2019-07-08 Martin Sebor <msebor@redhat.com>
15279 PR middle-end/71924
15280 PR middle-end/90549
15281 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
15283 (args_loc_t): New type.
15284 (args_loc_t, locmap_t): same.
15285 (diag_returned_locals): New function.
15286 (is_addr_local): Same.
15287 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
15288 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
15289 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
15291 2019-07-08 Jakub Jelinek <jakub@redhat.com>
15293 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
15294 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
15295 and casts in offset when different, both through gimple stmts
15296 and through trees. Rewritten using loops to minimize code duplication
15299 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
15301 * emit-rtl.c (set_insn_locations): New function moved from...
15302 * function.c (set_insn_locations): ...here.
15303 * ira-emit.c (emit_moves): Propagate location of the first instruction
15304 to the inserted move instructions.
15305 * reg-stack.c (compensate_edge): Set the location if the sequence is
15306 inserted on the edge.
15307 * rtl.h (set_insn_locations): Declare.
15309 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
15311 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
15312 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
15315 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
15317 PR rtl-optimization/88233
15318 * common.opt (fsplit-wide-types-early): New option.
15319 * common/config/rs6000/rs6000-common.c
15320 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
15322 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
15323 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
15324 flag_split_wide_types_early.
15325 (pass_data_lower_subreg3): New.
15326 (pass_lower_subreg3): New.
15327 (make_pass_lower_subreg3): New.
15328 * passes.def (pass_lower_subreg2): Move after the loop passes.
15329 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
15330 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
15331 the pass pipeline; its previous place is taken by ...
15332 (make_pass_lower_subreg3): ... this.
15334 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
15336 * config/s390/s390.c (s390_shift_truncation_mask): Define.
15337 (TARGET_SHIFT_TRUNCATION_MASK): Define.
15339 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
15341 * config/s390/constraints.md: Add new jsc constraint.
15342 * config/s390/predicates.md: New predicates.
15343 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
15344 * config/s390/s390.c (s390_valid_shift_count): New function.
15345 (print_shift_count_operand): Use s390_valid_shift_count.
15346 (print_operand): Likewise.
15347 * config/s390/s390.md: Use new predicate.
15348 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
15349 * config/s390/vector.md: Use new predicate.
15351 2019-07-08 Andrew Waterman <andrew@sifive.com>
15352 Jim Wilson <jimw@sifive.com>
15354 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
15355 bitsize instead of BITS_PER_WORD.
15357 2019-07-08 Martin Liska <mliska@suse.cz>
15359 * collect2.c (defined): Revert to before r254460.
15360 (scan_prog_file): Revert to before r254460.
15362 2019-07-08 Richard Biener <rguenther@suse.de>
15364 PR tree-optimization/83518
15365 * tree-ssa-sccvn.c: Include splay-tree.h.
15366 (struct pd_range, struct pd_data): New.
15367 (struct vn_walk_cb_data): Add data to track partial definitions.
15368 (vn_walk_cb_data::~vn_walk_cb_data): New.
15369 (vn_walk_cb_data::push_partial_def): New.
15370 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
15371 (vn_reference_lookup_2): When partial defs are registered give up.
15372 (vn_reference_lookup_3): Track partial defs for memset and
15373 constructor zeroing and for defs from constants.
15375 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
15377 * doc/install.texi (bootstrap-Og): Document.
15379 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
15381 * config/riscv/pic.md (*local_pic_load_s<mode>)
15382 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
15383 referenced by <mode>, giving...
15384 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
15385 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
15386 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
15387 use <X:MODE> for the mode attribute.
15389 2019-07-07 Jeff Law <law@redhat.com>
15391 PR tree-optimization/91090
15392 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
15393 in handling of ranges to simplify switch statements.
15395 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
15397 * config/darwin.c (darwin_override_options): Make a final check on PIC
15400 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
15402 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
15403 on for kernel code.
15405 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
15408 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
15409 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
15410 instead of matching them to "l" output operands.
15412 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
15414 * config/mips/mips.c (mips_split_move): Zero-initialize addr
15415 and check whether addr.reg is nonnull before using it.
15417 2019-07-06 Jakub Jelinek <jakub@redhat.com>
15419 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
15420 ctx->for_simd_scan_phase simd copy the outer var to the privatized
15421 variable(s). For conditional lastprivate look through outer
15422 GIMPLE_OMP_SCAN context.
15423 (lower_omp_1): For conditional lastprivate look through outer
15424 GIMPLE_OMP_SCAN context.
15426 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
15427 member to combined_into_simd_safelen1.
15428 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
15429 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
15430 clauses if ctx->combined_into_simd_safelen1 put statements after the
15431 predicate conditionalized block rather than into it.
15433 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
15435 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
15437 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
15438 Make the choice of <mode> explicit, giving...
15439 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
15441 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
15443 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
15444 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
15446 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
15447 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
15448 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
15449 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
15450 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
15451 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
15452 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
15453 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
15454 (*avx512f_scatterdi<mode>): Likewise.
15455 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
15457 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
15459 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
15460 specify the mode iterator referenced by <mode>, giving...
15461 (*push1_h8300hs_<QHI:mode>): ...this.
15463 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
15465 * config/gcn/gcn-valu.md
15466 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
15467 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
15468 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
15469 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
15470 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
15471 but using the _exec comparison patterns.
15472 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
15473 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
15474 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
15475 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
15476 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
15477 but using the _exec comparison patterns.
15479 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
15481 * config/arm/sync.md
15482 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
15483 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
15484 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
15485 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
15486 <SIDI:cas_cmp_str>.
15488 2019-07-06 Jakub Jelinek <jakub@redhat.com>
15490 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
15491 (maybe_lookup_ctx): Add forward declaration.
15492 (omp_find_scan): Likewise. Walk into body of simd if composited
15493 with worksharing loop.
15494 (scan_omp_simd_scan): New function.
15495 (scan_omp_1_stmt): Call it.
15496 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
15497 ctx->for_simd_scan_phase.
15498 (lower_rec_input_clauses): Do much less work for inscan reductions
15499 in ctx->for_simd_scan_phase is_simd regions.
15500 (lower_omp_scan): Set is_simd also on simd constructs composited
15501 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
15502 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
15503 emit their body after in simd constructs composited with worksharing
15505 (lower_omp_for_scan): Handle worksharing loop composited with simd.
15507 * omp-low.c (omp_find_scan): Make static.
15508 (lower_omp_for_scan): Fix order of merge arguments in input phase of
15509 the second loop, var2 represents the first partial sum and so needs
15510 to go before rprivb[ivar].
15512 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
15514 * config/rs6000/rs6000-logue.c: Remove unused code.
15516 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
15518 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
15520 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
15523 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
15524 check with a frame laid out check.
15526 2019-07-05 Richard Biener <rguenther@suse.de>
15528 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
15529 when comparing against a store with possibly the same value.
15531 2019-07-05 Richard Biener <rguenther@suse.de>
15533 PR tree-optimization/91091
15534 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
15535 (walk_non_aliased_vuses): Likewise.
15536 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
15537 (get_continuation_for_phi): New tbaa_p parameter and pass
15539 (walk_non_aliased_vuses): Likewise.
15540 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
15541 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
15542 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
15544 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
15545 (adjust_offsets_for_equal_base_address): New function.
15546 (vn_reference_lookup_3): Use it to catch more base equivalences.
15547 Handle and pass down tbaa_p flag.
15548 (vn_reference_lookup_pieces): Adjust.
15549 (vn_reference_lookup): Remove alias-set altering, instead pass
15550 down false as tbaa_p.
15552 2019-07-05 Richard Biener <rguenther@suse.de>
15554 PR tree-optimization/91091
15555 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
15556 accesses can happen with -fno-strict-aliasing.
15558 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
15560 * tree-ssa-alias.c (alias_stats): Add
15561 nonoverlapping_component_refs_since_match_p_must_overlap.
15562 (dump_alias_stats): Print it.
15563 (nonoverlapping_component_refs_since_match_p): Add early exit.
15564 (nonoverlapping_component_refs_p): Do not account early exit.
15566 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
15568 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
15569 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
15570 (emit_eh_dispatch): Delete.
15571 (lower_catch): Emit the eh_dispatch manually and set the location of
15572 the first catch statement onto it.
15573 (lower_eh_filter): Emit the eh_dispatch manually and set location.
15574 (lower_eh_dispatch): Propagate location.
15575 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
15576 (eliminate_build): Likewise.
15578 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
15580 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
15581 phi nodes if possible.
15582 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
15583 location info on the newly created statement.
15584 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
15585 newly created increment if needed.
15587 2019-07-04 Jakub Jelinek <jakub@redhat.com>
15589 PR middle-end/78884
15590 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
15591 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
15592 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
15593 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
15594 ctx->add_safelen1 is set.
15596 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
15597 GOMP_loop_start at the start of second worksharing loop in a scan.
15598 For nowait, don't emit GOMP_loop_end_nowait at the end of first
15599 worksharing loop in a scan even if there are conditional lastprivates,
15600 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
15602 2019-07-04 Jan Hubicka <jh@suse.cz>
15604 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
15605 Fix check for match in the ref walk.
15607 2019-07-04 Martin Liska <mliska@suse.cz>
15609 * tree-ssa-loop-niter.c
15610 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
15611 (estimate_numbers_of_iterations):
15612 Support __builtin_expect_with_probability for analysis
15613 of # of loop iterations.
15615 2019-07-04 Alexandre Oliva <oliva@adacore.com>
15617 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
15618 * except.c: Likewise.
15619 * expr.c (expand_expr_real_1): Reject it.
15620 * gimplify.c (gimplify_expr): Gimplify it, within
15622 * tree-dump.c (dequeue_and_dump): Dump it.
15623 * tree-pretty-print.c (dump_generic_node): Likewise.
15624 * tree.c (block_may_fallthru): Handle it.
15625 * tree.def (EH_ELSE_EXPR): Introduce it.
15626 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
15627 with GIMPLE_EH_ELSE as try/finally/else.
15629 2019-07-04 Richard Biener <rguenther@suse.de>
15632 * tree-pass.h (execute_all_ipa_transforms): Add a flag
15633 parameter whether to disable GC collection.
15634 * passes.c (execute_one_ipa_transform_pass): Likewise, and
15636 (execute_all_ipa_transforms): Likewise and pass it down.
15637 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
15638 collection from applying IPA transforms.
15639 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
15640 from applying IPA transforms.
15642 2019-07-04 Richard Biener <rguenther@suse.de>
15644 PR tree-optimization/90911
15645 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
15646 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
15647 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15648 scalar_loop_scaling.
15649 (vect_transform_loop): Scale scalar loop profile if needed.
15650 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
15651 the loop copy from if-conversion adjust edge probabilities
15652 and scale the vectorized loop body profile, queue the scalar
15653 profile for updating after peeling.
15655 2019-07-04 Jan Hubicka <jh@suse.cz>
15657 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
15658 parameters; return early for must-alias.
15659 (indirect_ref_may_alias_decl_p): Likewise; when establishing
15660 outer types match, try nonoverlapping_component_refs
15661 if must-alias is not obvious.
15662 (indirect_refs_may_alias_p): Likewise.
15663 (refs_may_alias_p_2): Likewise.
15665 2019-07-04 Richard Biener <rguenther@suse.de>
15667 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
15669 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
15671 (struct vn_walk_cb_data): New callback data struct.
15672 (vn_reference_lookup_2): Adjust.
15673 (vn_reference_lookup_3): Likewise.
15674 (vn_reference_lookup_pieces): Likewise.
15675 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
15676 (visit_reference_op_load): Adjust.
15678 2019-07-04 Jakub Jelinek <jakub@redhat.com>
15680 PR tree-optimization/91063
15681 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
15682 stmt from stmts sequence before calling vect_init_vector_1.
15685 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15688 * fwprop.c (reg_single_def_p): New function.
15689 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
15690 (forward_propagate_into): New parameter reg_prop_only
15691 with default value false.
15692 Propagate def's src into loop only if SET_SRC and SET_DEST
15693 of def_set have single definitions.
15694 Likewise if reg_prop_only is set to true.
15695 (fwprop): New param fwprop_addr_p.
15696 Integrate fwprop_addr into fwprop.
15697 (fwprop_addr): Remove.
15698 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
15700 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
15701 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
15702 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
15704 2019-07-04 Jakub Jelinek <jakub@redhat.com>
15706 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
15707 in worksharing loop scans.
15709 PR tree-optimization/91074
15710 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
15713 PR rtl-optimization/90756
15714 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
15717 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
15719 * config/aarch64/aarch64.md: Remove redundant constraints from
15720 define_expand but keep some patterns untouched if they are
15721 specially selected by TARGET_SECONDARY_RELOAD hook.
15722 * config/aarch64/aarch64-sve.md: Likewise.
15723 * config/aarch64/atomics.md: Remove redundant constraints from
15725 * config/aarch64/aarch64-simd.md: Likewise.
15727 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
15729 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
15730 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
15731 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
15733 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
15736 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
15738 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
15739 (STARTFILE_SPEC): Split crt3 into a separate spec.
15740 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
15741 (DARWIN_CRT2_SPEC): New.
15742 (DARWIN_CRT3_SPEC): New.
15743 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
15744 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
15745 (DARWIN_CRT3_SPEC): New.
15747 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
15749 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
15750 Change the RTL attribute "length" from "4" to "*" to allow the
15751 length attribute to be adjusted automatically for prefixed load,
15752 store, and add immediate instructions.
15753 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
15755 (extendsi<mode>2, EXTSI iterator): Likewise.
15756 (movsi_internal1): Likewise.
15757 (movsi_from_sf): Likewise.
15758 (movdi_from_sf_zero_ext): Likewise.
15759 (mov<mode>_internal): Likewise.
15760 (movcc_internal1, QHI iterator): Likewise.
15761 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
15762 (movsf_from_si): Likewise.
15763 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
15764 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
15765 (mov<mode>, FMOVE128 iterator): Likewise.
15766 (movdi_internal64): Likewise.
15767 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
15769 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
15770 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
15771 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
15772 (vsx_splat_v4sf): Likewise.
15774 2019-07-03 Mark Wielaard <mark@klomp.org>
15777 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
15778 DW_AT_addr_base if there is actually a .debug_addr section with
15780 (output_addr_table): Add DWARF5 table header generation here after
15781 checking there are actually any addresses from...
15782 (dwarf2out_finish): ...here.
15784 2019-07-03 Richard Biener <rguenther@suse.de>
15786 PR middle-end/91069
15787 * match.pd (vec_perm -> bit_insert): Fix element read from
15790 2019-07-03 Martin Liska <mliska@suse.cz>
15792 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
15793 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
15795 * generic-match-head.c: Include dbgcnt.h.
15796 * gimple-match-head.c: Likewise.
15798 2019-07-03 Martin Liska <mliska@suse.cz>
15800 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
15801 (GCOV_COUNTER_V_TOPN): New.
15802 (GCOV_COUNTER_V_INDIR): Use _topn.
15803 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
15804 (GCOV_TOPN_VALUES): New.
15805 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
15806 (GCOV_TOPN_VALUES_COUNTERS): New.
15807 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
15809 (gimple_init_gcov_profiler): Rename variables from one_value
15811 (gimple_gen_one_value_profiler): Remove.
15812 (gimple_gen_topn_values_profiler): New function.
15813 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
15814 names instead of SINGLE_VALUE.
15815 (stream_out_histogram_value): Likewise.
15816 (stream_in_histogram_value): Likewise.
15817 (get_most_common_single_value): Likewise.
15818 (gimple_divmod_fixed_value_transform): Likewise.
15819 (gimple_stringops_transform): Likewise.
15820 (gimple_divmod_values_to_profile): Likewise.
15821 (gimple_stringops_values_to_profile): Likewise.
15822 (gimple_find_values_to_profile): Likewise.
15823 * value-prof.h (enum hist_type): Rename to TOPN.
15824 (gimple_gen_one_value_profiler): Remove.
15825 (gimple_gen_topn_values_profiler): New.
15827 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
15829 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
15830 if it has the DW_AT_data_member_location attribute.
15832 2019-07-03 Richard Biener <rguenther@suse.de>
15834 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
15837 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
15839 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
15840 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
15841 (tlsdesc_small_sve_<mode>): Likewise.
15843 2019-07-03 Martin Liska <mliska@suse.cz>
15845 * Makefile.in: Define ZSTD_LIB.
15846 * common.opt: Adjust compression level
15847 to support also zstd levels.
15848 * config.in: Regenerate.
15849 * configure: Likewise.
15850 * configure.ac: Add --with-zstd and --with-zstd-include options
15852 * doc/install.texi: Mention zstd dependency.
15853 * gcc.c: Print supported LTO compression algorithms.
15854 * lto-compress.c (lto_normalized_zstd_level): Likewise.
15855 (lto_compression_zstd): Likewise.
15856 (lto_uncompression_zstd): Likewise.
15857 (lto_end_compression): Dispatch in between zlib and zstd.
15858 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
15859 (lto_uncompression_zlib): Make it static.
15860 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
15861 * lto-section-in.c (lto_get_section_data): Pass info
15862 about used compression.
15863 * lto-streamer-out.c: By default use zstd when possible.
15864 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
15865 (TV_IPA_LTO_COMPRESS): Likewise for compression.
15867 2019-07-03 Martin Liska <mliska@suse.cz>
15869 * lto-section-in.c (lto_get_section_data): Add "lto" section.
15870 * lto-section-out.c (lto_destroy_simple_output_block): Never
15871 compress LTO_section_lto section.
15872 * lto-streamer-out.c (produce_asm): Do not set major_version
15874 (lto_output_toplevel_asms): Likewise.
15875 (produce_lto_section): New function.
15876 (lto_output): Call produce_lto_section.
15877 (lto_write_mode_table): Do not set major_version and
15879 (produce_asm_for_decls): Likewise.
15880 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
15882 (struct lto_header): Remove.
15883 (struct lto_section): New struct.
15884 (struct lto_simple_header): Do not inherit from lto_header.
15885 (struct lto_file_decl_data): Add lto_section_header field.
15887 2019-07-03 Martin Liska <mliska@suse.cz>
15889 * lra-eliminations.c (eliminate_regs_in_insn): Remove
15891 * reg-stack.c (check_asm_stack_operands): Likewise.
15892 * tree-ssa-structalias.c (create_function_info_for): Likewise.
15893 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
15894 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
15895 force_expand_binop.
15897 2019-07-03 Martin Liska <mliska@suse.cz>
15899 PR tree-optimization/90892
15900 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
15901 in string constants.
15903 2019-07-03 Martin Liska <mliska@suse.cz>
15905 PR middle-end/90899
15906 * multiple_target.c (create_dispatcher_calls): Add to comdat
15907 group only if set for ifunc.
15909 2019-07-03 Martin Liska <mliska@suse.cz>
15912 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15913 Define local_object_name in outer scope in order to handle
15914 use-after-scope issue.
15916 2019-07-03 Martin Liska <mliska@suse.cz>
15918 * common.opt: Add fprofile-note.
15919 * coverage.c (coverage_init): Append the option
15921 * doc/invoke.texi: Document -fprofile-note.
15923 2019-07-03 Jakub Jelinek <jakub@redhat.com>
15925 PR tree-optimization/91033
15926 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
15927 vect_analyze_data_refs): Add bool * arguments.
15928 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
15929 if failure is due to scatter/gather, set *fatal to false if non-NULL.
15930 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15931 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
15932 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
15933 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
15934 vect_analyze_data_refs caller.
15936 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
15938 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
15939 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
15940 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
15941 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15942 OMP_CLAUSE__SCANTEMP_ entry.
15943 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
15944 * tree-pretty-print.c (dump_omp_clause): Likewise.
15945 * tree-nested.c (convert_nonlocal_omp_clauses,
15946 convert_local_omp_clauses): Likewise.
15947 * omp-general.h (struct omp_for_data): Add have_scantemp and
15948 have_nonctrl_scantemp members.
15949 * omp-general.c (omp_extract_for_data): Initialize them.
15950 * omp-low.c (struct omp_context): Add scan_exclusive member.
15951 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
15952 result again with GF_OMP_FOR_KIND_MASK. Initialize also
15953 ctx->scan_exclusive.
15954 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
15955 of !ctx->scan_inclusive.
15956 (lower_rec_input_clauses): Simplify gimplification of dtors using
15957 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
15958 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
15959 loops. Don't add barrier for reduction_omp_orig_ref if
15960 ctx->scan_??xclusive.
15961 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
15962 (lower_omp_scan): Use ctx->scan_exclusive instead
15963 of !ctx->scan_inclusive. Handle worksharing loops with inscan
15964 reductions. Use new_vard != new_var instead of repeated
15965 omp_is_reference calls.
15966 (omp_find_scan, lower_omp_for_scan): New functions.
15967 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
15969 * omp-expand.c (expand_omp_scantemp_alloc): New function.
15970 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
15971 and fd->have_scantemp.
15973 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
15974 on worksharing loop propagate it as shared clause to containing
15977 * omp-expand.c (expand_omp_for_static_nochunk,
15978 expand_omp_for_static_chunk): For nowait worksharing loop with
15979 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
15982 2019-07-02 qing zhao <qing.zhao@oracle.com>
15984 PR preprocessor/90581
15985 * doc/cppopts.texi: Add document for -fmax-include-depth.
15986 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
15988 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
15990 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
15991 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
15992 (mmx_packssdw): Ditto.
15993 (mmx_punpckhbw): Ditto.
15994 (mmx_punpcklbw): Ditto.
15995 (mmx_punpckhwd): Ditto.
15996 (mmx_punpcklwd): Ditto.
15997 (mmx_punpckhdq): Ditto.
15998 (mmx_punpckldq): Ditto.
15999 (*vec_dupv4hi): Ditto.
16000 (*vec_dupv2si): Ditto.
16001 (mmx_pmovmskb): Ditto.
16002 * config/i386/sse.md (sse_cvtpi2ps): Use
16003 TARGET_SSE2 && SSE_REG_P in split condition.
16004 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
16005 TARGET_SSSE3 && SSE_REGNO_P in split condition.
16006 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
16007 (ssse3_pshufbv8qi3): Ditto.
16008 (ssse3_palignrdi): Ditto.
16010 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
16012 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
16013 with inlined save and restore.
16015 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
16017 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
16018 to be inserted on single successor edge of the entry block. Then call
16019 commit_edge_insertions instead of inserting the instructions manually.
16020 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
16021 RTL expansion and rebuild jump labels chain.
16023 2019-07-02 Richard Biener <rguenther@suse.de>
16025 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
16027 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
16029 * tree.c (build_common_tree_nodes): Initialize them.
16030 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
16031 Make declarations comments.
16032 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
16033 chrec_known): Remove definitions.
16034 (initialize_scalar_evolutions_analyzer): Remove.
16035 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
16036 * tree-streamer.c (preload_common_nodes): Do not preload
16037 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
16039 2019-07-02 Jan Hubicka <jh@suse.cz>
16041 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
16044 2019-07-02 Jan Hubicka <jh@suse.cz>
16046 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
16048 (nonoverlapping_component_refs_since_match_p): ... this one;
16049 handle also non-decl bases; return -1 if search gave up.
16050 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
16051 nonoverlapping_component_refs_of_decl_p_no_alias to
16052 nonoverlapping_component_refs_since_match_p_may_alias,
16053 nonoverlapping_component_refs_since_match_p_no_alias.
16054 (dump_alias_stats): Update dumping.
16055 (aliasing_matching_component_refs_p): Break out from ...;
16056 dispatch to nonoverlapping_component_refs_for_decl_p
16057 and nonoverlapping_component_refs_since_match_p.
16058 (aliasing_component_refs_p): ... here; call
16059 nonoverlapping_component_refs_p in scenarios where we can not
16060 precisely determine base match.
16061 (decl_refs_may_alias_p): Use
16062 nonoverlapping_component_refs_since_match_p.
16063 (indirect_ref_may_alias_decl_p): Do not call
16064 nonoverlapping_component_refs_p.
16065 (indirect_refs_may_alias_p): Likewise.
16067 2019-07-02 Jan Hubicka <jh@suse.cz>
16069 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
16070 to clobber of return value.
16072 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16074 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
16075 for is_neon_type instructions that have not already been categorized.
16077 2019-07-02 Richard Biener <rguenther@suse.de>
16079 PR tree-optimization/58483
16080 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
16081 for MEM_REF base hashing.
16082 (equal_mem_array_ref_p): Likewise for base comparison.
16084 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16086 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
16087 parameterized name.
16088 (signbit<mode>2): Use that name. Simplify.
16090 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
16092 PR middle-end/66726
16093 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
16094 Tune heuristic from PR71016 to allow MIN / MAX.
16096 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16098 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
16099 parameterized name.
16100 (abs<mode>2): Use that name. Simplify.
16102 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16104 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
16105 parameterized name.
16106 (neg<mode>2): Use that name. Simplify.
16108 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16110 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
16112 (abs<mode>2): Use that name. Simplify.
16114 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16116 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
16118 (neg<mode>2): Use that name. Simplify.
16120 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
16122 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
16123 ("enabled" attribute): Handle sse_noavx isa attribute.
16124 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
16125 Use TARGET_SSE && SSE_REGNO_P in split condition.
16126 (*vec_dupv2sf): Ditto.
16128 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16130 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
16132 (floatsi<mode>2): Use that name. Simplify.
16134 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16136 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
16137 parameterized name.
16138 (extenddf<mode>2_vsx): Make this a parameterized name.
16139 (extenddf<mode>2): Use those names. Simplify.
16141 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16143 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
16145 (eh_return): Use that name. Simplify.
16147 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16149 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
16150 (doloop_end): Use that name. Simplify.
16152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16154 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
16155 parameterized name.
16156 (indirect_jump): Use that name. Simplify.
16158 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16160 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
16161 parameterized name.
16162 (abs<mode>2): Use that name. Simplify.
16164 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16166 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
16167 parameterized name.
16168 (fix_trunc<mode>si2): Use that name. Simplify.
16170 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16172 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
16173 (allocate_stack): Use that name. Simplify.
16175 2019-07-01 Martin Sebor <msebor@redhat.com>
16177 PR middle-end/90923
16178 * hash-map.h (hash_map::put): On insertion invoke element ctor.
16179 (hash_map::get_or_insert): Same. Reformat comment.
16180 * hash-set.h (hash_set::add): On insertion invoke element ctor.
16181 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
16182 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
16183 * hash-table.h (hash_table::operator=): Prevent copy assignment.
16184 (hash_table::hash_table (const hash_table&)): Use copy ctor
16185 instead of assignment to copy elements.
16187 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
16188 John David Anglin <danglin@gcc.gnu.org>
16191 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
16192 using saved frame pointer.
16194 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
16196 PR middle-end/64242
16197 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
16198 Add frame clobber and schedule blockage.
16200 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
16202 * doc/invoke.texi (Link Options): Further editorial changes to
16203 -flinker-output docs.
16205 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
16207 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
16208 Load both operands of a PLUS into registers separately.
16210 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
16212 * config/s390/vector.md: Fix shift count operand printing.
16214 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
16216 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
16218 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
16220 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
16221 Use recog_data to test for an output operand.
16223 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
16225 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
16226 exclude any others that are disparaged or that are bound to need
16228 (ira_get_dup_out_num): Expand comment.
16230 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
16232 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
16233 constraint string for each operand/alternative combo. Only handle
16234 '%' at the start of constraint strings, and look for it outside
16237 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
16239 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
16240 alternative_mask instead of HARD_REG_SET to represent a
16241 bitmask of alternatives.
16242 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16243 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
16245 2019-07-01 Martin Liska <mliska@suse.cz>
16247 * edit-context.c (test_applying_fixits_unreadable_file): Do not
16248 use () for a constructor call.
16249 (test_applying_fixits_line_out_of_range): Likewise.
16250 * ggc-page.c (alloc_page): Use (void *) for %p printf format
16252 (free_page): Likewise.
16254 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
16256 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
16257 parameter names to match usage (no functional change).
16258 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
16260 2019-07-01 Richard Biener <rguenther@suse.de>
16262 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
16264 (pass_fre::execute): Honor it.
16265 * passes.def: Adjust pass_fre invocations to allow iterating,
16266 add non-iterating pass_fre before late threading/dom.
16268 2019-07-01 Richard Biener <rguenther@suse.de>
16270 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
16271 TARGET_MEM_REF handling to also handle address-taken ones.
16273 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
16275 * doc/sourcebuild.texi (Effective-Target Keywords, Other
16276 hardware attributes): Document avx512vp2intersect.
16278 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
16280 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
16281 (abs<mode>2): New expander.
16282 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
16283 Use CODE_FOR_ssse3_absv8qi2.
16284 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
16285 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
16287 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
16289 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
16290 to sse, sse_noavx and avx. Update all uses.
16292 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
16294 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
16295 (*mmx_<plusminus_insn><mode>3): Ditto.
16296 (*mmx_mulv4hi3"): Ditto.
16297 (*mmx_smulv4hi3_highpart): Ditto.
16298 (*mmx_umulv4hi3_highpart): Ditto.
16299 (*mmx_pmaddwd): Ditto.
16300 (*sse2_umulv1siv1di3): Ditto.
16301 (*mmx_<code>v4hi3): Ditto.
16302 (*mmx_<code>v8qi3): Ditto.
16303 (mmx_ashr<mode>3): Ditto.
16304 ("mmx_<shift_insn><mode>3): Ditto.
16305 (*mmx_eq<mode>3): Ditto.
16306 (mmx_gt<mode>3): Ditto.
16307 (mmx_andnot<mode>3): Ditto.
16308 (*mmx_<code><mode>3): Ditto.
16309 (*mmx_pinsrw): Ditto.
16310 (*mmx_pextrw): Ditto.
16311 (mmx_pshufw_1): Ditto.
16312 (*mmx_uavgv8qi3): Ditto.
16313 (*mmx_uavgv4hi3): Ditto.
16314 ("mmx_psadbw): Ditto.
16315 * config/i386/sse.md (sse_cvtps2pi): Ditto.
16316 (sse_cvttps2pi): Ditto.
16317 (ssse3_pmaddubsw): Ditto.
16318 (*ssse3_pmulhrswv4hi3): Ditto.
16319 (ssse3_psign<mode>3): Ditto.
16321 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
16323 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
16324 adjustment for bit-fields to all aggregate types.
16326 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
16328 * config/rs6000/predicates.md (pcrel_address): Use
16329 SYMBOL_REF_LOCAL_P to determine if a label is local.
16330 (pcrel_external_address): New predicate.
16331 (non_prefixed_mem_operand): Delete, predicate not used.
16332 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
16333 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
16335 (SYMBOL_REF_PCREL_P): Likewise.
16338 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
16340 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
16341 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
16342 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
16344 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
16346 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
16347 override on extra_headers.
16349 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
16351 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
16352 * config/darwin-driver.c (darwin_default_min_version): Remove newline
16354 (darwin_driver_init): Likewise.
16356 2019-06-28 Jan Beulich <jbeulich@suse.com>
16358 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
16359 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
16360 Eliminate redundant alternative.
16362 2019-06-28 Jan Beulich <jbeulich@suse.com>
16364 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
16365 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
16366 Use vector_operand.
16368 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
16370 * config/arc/arc.c (arc_rtx_costs): All short instructions are
16371 having a lower cost regardless of the speed option.
16373 2019-06-28 Jan Beulich <jbeulich@suse.com>
16375 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
16376 vector_operand plus, on both alternatives, "Bm" constraint.
16378 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
16380 * config/arm/arm.md: Remove redundant constraints from
16381 define_expand but leave reload_inm and reload_outm patterns
16382 untouched since they need special constraints to work.
16383 * config/arm/arm-fixed.md: Remove redundant constraints from
16385 * config/arm/iwmmxt.md: Likewise.
16386 * config/arm/neon.md: Likewise.
16387 * config/arm/sync.md: Likewise.
16388 * config/arm/thumb1.md: Likewise.
16389 * config/arm/vec-common.md: Likewise.
16391 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
16393 * doc/install.texi: Document --disable-tm-clone-registry.
16395 2019-06-27 Jakub Jelinek <jakub@redhat.com>
16398 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
16401 PR tree-optimization/91010
16402 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
16403 return true. Otherwise, don't call operand_equal_p if offset1 or
16404 offset2 is NULL and just return false.
16406 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
16408 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
16409 user-specified float mode choice for kernel mode code.
16411 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
16413 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
16416 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
16418 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
16419 use longcall for 64b code.
16421 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
16423 * builtins.c (get_memory_rtx): Fix comment.
16424 * optabs.def (movmem_optab): Change to cpymem_optab.
16425 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
16426 (emit_block_move_hints): Change movmem to cpymem.
16427 * defaults.h: Change movmem to cpymem.
16428 * targhooks.c (get_move_ratio): Change movmem to cpymem.
16429 (default_use_by_pieces_infrastructure_p): Ditto.
16430 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
16431 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
16433 * config/aarch64/aarch64.h: Change movmem to cpymem.
16434 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
16435 * config/alpha/alpha.h: Change movmem to cpymem in comment.
16436 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
16438 * config/arc/arc-protos.h: Change movmem to cpymem.
16439 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
16440 * config/arc/arc.h: Change movmem to cpymem in comment.
16441 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
16442 * config/arm/arm-protos.h: Change movmem to cpymem in names.
16443 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
16444 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
16445 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
16446 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
16447 * config/avr/avr-protos.h: Change movmem to cpymem.
16448 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
16449 avr_out_movmem): Change movmem to cpymem.
16450 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
16451 Change movmem to cpymem.
16452 * config/bfin/bfin-protos.h: Change movmem to cpymem.
16453 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
16454 Change movmem to cpymem.
16455 * config/bfin/bfin.h: Change movmem to cpymem in comment.
16456 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
16457 * config/c6x/c6x-protos.h: Change movmem to cpymem.
16458 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
16459 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
16460 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
16461 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
16462 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
16463 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
16464 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
16465 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
16466 expand_small_cpymem_or_setmem,
16467 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
16468 expand_set_or_cpymem_constant_prologue,
16469 ix86_expand_set_or_cpymem): Change movmem to cpymem.
16470 * config/i386/i386-protos.h: Change movmem to cpymem.
16471 * config/i386/i386.h: Change movmem to cpymem in comment.
16472 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
16473 (setmem<mode>): Change expansion function name.
16474 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
16475 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
16476 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
16477 * config/m32c/m32c-protos.h: Change movmem to cpymem.
16478 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
16479 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
16480 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
16482 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
16483 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
16484 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
16485 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
16486 Change movmem to cpymem.
16487 * config/mips/mips.h: Change movmem to cpymem.
16488 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
16489 * config/nds32/nds32-memory-manipulation.c
16490 (nds32_expand_movmemsi_loop_unknown_size,
16491 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
16492 nds32_expand_movmemsi_unroll,
16493 nds32_expand_movmemsi): Change movmem to cpymem.
16494 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
16495 * config/nds32/nds32-protos.h: Change movmem to cpymem.
16496 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
16497 (pa_adjust_insn_length): Change call to compute_movmem_length.
16498 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
16499 movmemdi, movmemdi_prereload,
16500 movmemdi_postreload): Change movmem to cpymem.
16501 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
16502 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
16503 * config/riscv/riscv.c: Change movmem to cpymem in comment.
16504 * config/riscv/riscv.h: Change movmem to cpymem.
16505 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
16506 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
16507 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
16509 * config/s390/s390-protos.h: Change movmem to cpymem.
16510 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
16511 s390_expand_insv): Change movmem to cpymem.
16512 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
16513 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
16514 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
16515 * config/sparc/sparc.h: Change movmem to cpymem in comment.
16516 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
16517 for nonexistent function.
16518 * config/vax/vax.h: Change movmem to cpymem in comment.
16519 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
16520 * config/visium/visium.h: Change movmem to cpymem in comment.
16521 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
16522 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
16523 * doc/md.texi: Change movmem to cpymem and update description to match.
16524 * doc/rtl.texi: Change movmem to cpymem.
16525 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
16526 * doc/tm.texi: Regenerate.
16528 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
16530 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
16531 -fvariable-expansion-in-unroller by default.
16532 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
16535 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
16538 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
16539 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
16541 * config.gcc(rs6000-*-*): Define target_gtfiles.
16543 2019-06-27 Jan Hubicka <jh@suse.cz>
16545 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
16546 (add_type_duplicate): When odr hash is not allocated, to nothing.
16547 (odr_based_tbaa_p): New function.
16548 (set_type_canonical_for_odr_type): New function.
16549 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
16550 set_type_canonical_for_odr_type): New.
16551 * tree.c (gimple_canonical_types_compatible_p): ODR types with
16552 ODR based TBAA are not equivalent to non-ODR types.
16554 2019-06-27 Martin Liska <mliska@suse.cz>
16556 PR tree-optimization/90974
16557 PR rtl-optimization/90975
16558 PR rtl-optimization/90976
16560 PR tree-optimization/91017
16561 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
16563 * lra.c (lra_set_insn_recog_data): Remove a leftover from
16564 initial commit of IRA.
16565 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
16567 * tree-vect-loop.c (vect_create_epilog_for_reduction):
16568 Remove unused mode1.
16569 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
16572 2019-06-27 Jakub Jelinek <jakub@redhat.com>
16575 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
16576 instead of register_operand for operands[1], add m to its constraints
16577 if operands[2] uses "C" constraint. Ensure in condition that if
16578 operands[2] is not 0, then operands[1] is not a MEM. For last two
16579 alternatives, use unaligned loads instead of aligned if operands[1] is
16580 misaligned_operand.
16582 2019-06-27 Martin Liska <mliska@suse.cz>
16584 * asan.c (asan_emit_allocas_unpoison): Remove obviously
16586 * bt-load.c (move_btr_def): Likewise.
16587 * builtins.c (expand_builtin_apply_args_1): Likewise.
16588 (expand_builtin_apply): Likewise.
16589 * cfgexpand.c (expand_asm_stmt): Likewise.
16590 (construct_init_block): Likewise.
16591 * cfghooks.c (verify_flow_info): Likewise.
16592 * cfgloopmanip.c (remove_path): Likewise.
16593 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
16594 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
16595 * combine.c (simplify_if_then_else): Likewise.
16596 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16597 (choose_basereg): Likewise.
16598 (ix86_expand_prologue): Likewise.
16599 (ix86_preferred_output_reload_class): Likewise.
16600 * cselib.c (cselib_record_sets): Likewise.
16601 * df-scan.c (df_scan_alloc): Likewise.
16602 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
16603 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
16604 * emit-rtl.c (try_split): Likewise.
16605 * graphite-scop-detection.c (assign_parameter_index_in_region):
16607 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
16608 * ira-color.c (setup_profitable_hard_regs): Likewise.
16609 * ira.c (rtx_moveable_p): Likewise.
16610 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
16611 * read-rtl.c (read_subst_mapping): Likewise.
16612 * regrename.c (scan_rtx): Likewise.
16613 * reorg.c (fill_slots_from_thread): Likewise.
16614 * tree-inline.c (tree_function_versioning): Likewise.
16615 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
16616 * tree-ssa-sink.c (statement_sink_location): Likewise.
16617 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
16618 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
16619 (vect_create_epilog_for_reduction): Likewise.
16620 * tree.c (build_nonstandard_integer_type): Likewise.
16622 2019-06-27 Richard Biener <rguenther@suse.de>
16624 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
16626 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
16628 PR tree-optimization/89772
16629 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
16630 out-of-bound accesses checking.
16632 2019-06-27 Martin Liska <mliska@suse.cz>
16634 PR tree-optimization/91014
16635 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
16636 when LHS is NULL_TREE.
16638 2019-06-27 Martin Liska <mliska@suse.cz>
16640 * symbol-summary.h (traverse): Pass
16641 argument a to the call of callback.
16642 (gt_ggc_mx): Mark arguments as unused.
16643 (gt_pch_nx): Likewise.
16645 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
16648 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
16651 2019-06-26 Jeff Law <law@redhat.com>
16653 PR tree-optimization/90883
16654 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
16655 (delete_dead_or_redundant_assignment): Likewise.
16657 PR tree-optimization/90883
16658 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
16659 * tree-ssa-dse.c: Update various comments to distinguish between
16660 dead and redundant stores.
16661 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
16662 (dse_optimize_redundant_stores): New function.
16663 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
16664 Distinguish between dead and redundant calls in dump output. All
16666 (delete_dead_or_redundant_assignment): Similarly for assignments.
16667 (dse_optimize_stmt): Handle _CHK variants. For statements which
16668 store 0 into multiple memory locations, try to prove a subsequent
16669 store is redundant.
16671 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
16674 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
16675 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
16677 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
16679 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
16680 (branch_islands): New extern.
16681 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
16682 * config/rs6000/rs6000.c: .. here.
16684 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
16686 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
16687 (powerpc*-*-*) ... to here.
16689 2019-06-26 Jeff Law <law@redhat.com>
16691 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
16692 memcpy, memmove and memset builtins.
16693 (maybe_trim_memstar_call): Likewise.
16695 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
16697 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
16699 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
16701 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
16703 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
16705 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
16707 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
16709 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
16712 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
16714 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
16716 2019-06-26 Richard Biener <rguenther@suse.de>
16719 * tree-inline.c (remap_ssa_name): Copy SSA range info.
16721 2019-06-26 Richard Biener <rguenther@suse.de>
16723 * lto-streamer.h (lto_bitmap_alloc): Remove.
16724 (lto_bitmap_free): Likewise.
16725 * lto-streamer.c (lto_bitmap_alloc): Remove.
16726 (lto_bitmap_free): Likewise.
16727 (lto_obstack): Likewise.
16728 (lto_obstack_initialized): Likewise.
16729 * lto-streamer-out.c (lto_output): Use own obstack for local
16730 bitmap, free it consistently.
16732 2019-06-26 Jakub Jelinek <jakub@redhat.com>
16735 * config/i386/sse.md
16736 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
16737 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
16738 insns if operands[2] is misaligned_operand.
16740 2019-06-26 Li Jia He <helijia@linux.ibm.com>
16742 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
16744 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
16747 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
16749 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
16751 2019-06-26 Martin Liska <mliska@suse.cz>
16753 PR tree-optimization/90973
16754 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
16755 epilogue_cost_vec instead of prologue_cost_vec for
16758 2019-06-26 Martin Liska <mliska@suse.cz>
16760 * bb-reorder.c (connect_better_edge_p): Add missing else
16761 statement in the middle of if-else statements.
16763 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
16764 H.J. Lu <hongjiu.lu@intel.com>
16765 Olga Makhotina <olga.makhotina@intel.com>
16767 * common/config/i386/i386-common.c
16768 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
16769 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
16770 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
16771 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
16772 (ix86_handle_option): Handle -mavx512vp2intersect.
16773 * config/i386/avx512vp2intersectintrin.h: New.
16774 * config/i386/avx512vp2intersectvlintrin.h: New.
16775 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
16776 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16777 AVX512VP2INTERSECT.
16778 * config/i386/i386-builtin-types.def: Add new types.
16779 * config/i386/i386-builtin.def: Add new builtins.
16780 * config/i386/i386-builtins.c: (enum processor_features): Add
16781 F_AVX512VP2INTERSECT.
16782 (static const _isa_names_table isa_names_table): Ditto.
16783 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16784 __AVX512VP2INTERSECT__.
16785 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
16786 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
16787 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
16788 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
16789 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
16790 * config/i386/i386-options.c (ix86_target_string): Add
16791 -mavx512vp2intersect.
16792 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
16793 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
16794 P2HImode and P2QImode.
16795 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
16796 number for P2QImode and P2HImode.
16797 (ix86_regmode_natural_size): New function.
16798 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
16799 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
16800 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
16801 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
16802 * config/i386/i386.opt: Add -mavx512vp2intersect.
16803 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
16804 avx512vp2intersectvlintrin.h.
16805 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
16806 (define_mode_iterator VI48_AVX512VP2VL): New.
16807 (avx512vp2intersect_2intersect<mode>,
16808 avx512vp2intersect_2intersectv16si): New define_insn patterns.
16809 * config.gcc: Add avx512vp2intersectvlintrin.h and
16810 avx512vp2intersectintrin.h to extra_headers.
16811 * doc/invoke.texi: Document -mavx512vp2intersect.
16813 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
16815 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
16817 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
16819 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
16820 savres_routine_syms, savres_routine_name, morestack_ref,
16821 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
16822 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
16823 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
16824 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
16825 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
16826 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
16827 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
16828 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
16829 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
16830 get_stack_clash_protection_probe_interval,
16831 get_stack_clash_protection_guard_size,
16832 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
16833 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
16834 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
16835 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
16836 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
16837 gen_frame_mem_offset, rs6000_savres_routine_name,
16838 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
16839 ptr_regno_for_savres, rs6000_emit_savres_rtx,
16840 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
16841 rs6000_global_entry_point_prologue_needed_p,
16842 rs6000_get_separate_components, rs6000_components_for_bb,
16843 rs6000_disqualify_components, rs6000_emit_prologue_components,
16844 rs6000_emit_epilogue_components, rs6000_set_handled_components,
16845 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
16846 rs6000_output_savres_externs, rs6000_output_function_prologue,
16847 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
16848 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
16849 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
16850 rs6000_output_function_epilogue, gen_add3_const,
16851 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
16852 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
16854 (machine_function): Moved to rs6000.h.
16855 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
16857 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
16858 savres_routine_syms, savres_routine_name, morestack_ref,
16859 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
16860 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
16861 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
16862 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
16863 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
16864 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
16865 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
16866 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
16867 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
16868 get_stack_clash_protection_probe_interval,
16869 get_stack_clash_protection_guard_size,
16870 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
16871 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
16872 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
16873 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
16874 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
16875 gen_frame_mem_offset, rs6000_savres_routine_name,
16876 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
16877 ptr_regno_for_savres, rs6000_emit_savres_rtx,
16878 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
16879 rs6000_global_entry_point_prologue_needed_p,
16880 rs6000_get_separate_components, rs6000_components_for_bb,
16881 rs6000_disqualify_components, rs6000_emit_prologue_components,
16882 rs6000_emit_epilogue_components, rs6000_set_handled_components,
16883 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
16884 rs6000_output_savres_externs, rs6000_output_function_prologue,
16885 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
16886 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
16887 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
16888 rs6000_output_function_epilogue, gen_add3_const,
16889 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
16890 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
16891 to here from rs6000.c.
16892 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
16893 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
16894 quad_address_offset_p) Moved to here from rs6000.c.
16895 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
16896 * config/config.gcc: Add new source file rs6000-logue.c to garbage
16899 2019-06-25 Martin Liska <mliska@suse.cz>
16901 * hash-table.c (hashtab_chk_error): Move here from ...
16902 * hash-table.h (hashtab_chk_error): ... here.
16904 2019-06-25 Martin Liska <mliska@suse.cz>
16906 PR tree-optimization/90978
16907 * df-scan.c (df_update_entry_block_defs): Remove dead else
16909 (df_update_exit_block_uses): Likewise.
16911 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
16912 Andrew Stubbs <ams@codesourcery.com>
16914 * config.gcc (thread_file): Set to gcn for AMD GCN.
16915 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
16916 (TARGET_EMUTLS_VAR_INIT): New hook.
16918 2019-06-25 Martin Jambor <mjambor@suse.cz>
16921 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
16923 2019-06-25 Richard Biener <rguenther@suse.de>
16925 PR tree-optimization/90930
16926 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
16927 into parallel form in the last pass instance.
16929 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
16931 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
16932 (arc_legitimize_pic_address): Simplify and cleanup the function.
16933 (SYMBOLIC_CONST): Remove.
16934 (prepare_pic_move): Likewise.
16935 (prepare_move_operands): Handle complex mov cases here.
16936 (arc_legitimize_address_0): Remove call to
16937 arc_legitimize_pic_address.
16938 (arc_legitimize_address): Remove call to
16939 arc_legitimize_tls_address.
16940 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
16941 (movhi_insn): Likewise.
16943 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16945 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
16947 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
16948 format of "__intN" types for UINTMAX_TYPE.
16949 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
16950 format of "__intN" types for SIZETYPE.
16951 * tree.c (build_common_tree_nodes): Accept "__intN__"
16952 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
16953 * doc/invoke.texi: Document that __intN__ disables pedantic
16956 2019-06-25 Jan Hubicka <jh@suse.cz>
16958 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
16959 base2_alias_set is non-zero before doing TBAA based disambiguation.
16961 2019-06-25 Martin Liska <mliska@suse.cz>
16963 PR tree-optimization/90973
16964 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
16965 of prologue and epilogue.
16967 2019-06-24 Jan Hubicka <jh@suse.cz>
16969 * ipa-utils.h (type_with_linkage_p): Verify that type is
16971 (odr_type_p): Remove extra return.
16972 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
16973 hash STRING_FLAG only for arrays and integers.
16974 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
16975 Update analogously.
16976 * tree-streamer-out.c (pack_ts_type_common_value_fields):
16978 * print-tree.c (print_node): Print cxx-odr-p
16980 * tree.c (need_assembler_name_p): Also check that type
16982 (verify_type_variant): Update verification of SRING_FLAG;
16983 also check CXX_ODR_P.
16984 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
16985 (TYPE_STRING_FLAG): Use it.
16986 (TYPE_CXX_ODR_P): New macro.
16987 * dwarf2out.c (gen_array_type_die): First check that type
16988 is an array and then test string flag.
16990 2019-06-24 Richard Biener <rguenther@suse.de>
16992 PR tree-optimization/90972
16993 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
16994 in common code, dealing with STRING_CST properly.
16996 2019-06-24 Richard Biener <rguenther@suse.de>
16998 PR tree-optimization/90930
16999 PR tree-optimization/90316
17000 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
17001 decrement of limit.
17003 2019-06-24 Martin Sebor <msebor@redhat.com>
17005 * tree-pretty-print.h: Remove unnecessary punctuation characters
17007 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
17009 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
17011 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
17012 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
17013 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
17015 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
17017 * config/rs6000/darwin.h: Handle GCC target pragma.
17019 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
17021 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
17023 2019-06-22 Jeff Law <law@redhat.com>
17025 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17027 2019-06-22 Jan Hubicka <jh@suse.cz>
17029 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
17030 give up on bitfields; continue searching for different refs
17033 2019-06-21 Jakub Jelinek <jakub@redhat.com>
17035 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
17036 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
17037 containing the offset as possible simd lane access. Look through
17038 widening conversion. Move the
17039 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
17041 2019-06-21 Richard Biener <rguenther@suse.de>
17043 PR tree-optimization/90930
17044 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
17045 flag on new stmts to avoid re-processing them.
17047 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
17049 PR c++/90875 - added -Wswitch-outside-range option
17050 * doc/invoke.texi (Wswitch-outside-range): Document.
17052 2019-06-21 Jeff Law <law@redhat.com>
17054 PR tree-optimization/90949
17055 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
17056 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
17058 2019-06-21 Richard Biener <rguenther@suse.de>
17061 * dwarf2out.c (prune_unused_types_walk): Always consider
17062 function-local extern declarations as used.
17064 2019-06-21 Richard Biener <rguenther@suse.de>
17066 PR tree-optimization/90913
17067 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
17068 the scalar variant of if-conversion versioning.
17070 2019-06-21 Jakub Jelinek <jakub@redhat.com>
17072 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
17073 create another "omp scan inscan exclusive" array if
17074 !ctx->scan_inclusive.
17075 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
17076 (lower_omp_scan): Likewise.
17077 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
17078 2-bit bitfield for simd_lane_access_p member.
17079 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
17080 aux == (void *)-4 as simd lane access.
17081 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
17082 comment with permutations to show the canonical permutation order.
17083 (vectorizable_scan_store): Handle exclusive scan.
17084 (vectorizable_store): Call vectorizable_scan_store even for
17085 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
17087 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
17088 "omp simd array" arrays with one byte elements.
17090 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
17092 * config/alpha/alpha.md (@unaligned_store<mode>):
17093 Rename from unaligned_store<mode>.
17094 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
17095 * config/alpha/sync.md (@load_locked_<mode>): Rename
17096 from load_locked_<mode>.
17097 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
17098 (@atomic_compare_and_swap<mode>_1): Rename
17099 from atomic_compare_and_swap<mode>_1.
17100 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
17101 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
17102 Use gen_reload_in_aligned and gen_unaligned_store.
17103 (emit_load_locked): Remove.
17104 (emit_store_conditional): Ditto.
17105 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
17106 (alpha_split_compare_and_swap): Ditto.
17107 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
17108 (alpha_split_compare_and_swap_12): Use gen_load_locked
17109 and gen_store_conditional.
17110 (alpha_split_atomic_exchange): Ditto.
17111 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
17112 (alpha_split_atomic_exchange_12): Use gen_load_locked
17113 and gen_store_conditional.
17115 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
17117 * config/aarch64/aarch64-errata.h: New file.
17118 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
17119 (CA53_ERR_843419_SPEC): Delete.
17120 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
17121 * config/aarch64/aarch64-linux.h: Likewise.
17122 * config/aarch64/aarch64-netbsd.h: Likewise.
17123 * config/aarch64/aarch64-freebsd.h: Likewise.
17125 2019-06-20 Marek Polacek <polacek@redhat.com>
17127 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
17129 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
17131 * config/rs6000/rs6000.md (isa attribute): Add support for
17132 for a future processor.
17134 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
17137 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
17138 standard scalar operation pattern for V2DF.
17139 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
17140 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
17141 (*ieee_<ieee_maxmin><mode>3): Likewise.
17142 (vec_setv2df_0): Likewise.
17144 2019-06-20 Jan Hubicka <jh@suse.cz>
17146 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
17147 parameter; it has no use in gimple memory model.
17148 (indirect_ref_may_alias_decl_p): Update.
17150 2019-06-20 Martin Liska <mliska@suse.cz>
17152 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
17155 2019-06-20 Jakub Jelinek <jakub@redhat.com>
17157 * tree-vect-stmts.c (enum scan_store_kind): New type.
17158 (scan_store_can_perm_p): Change last argument from int * to
17159 vec<enum scan_store_kind> *, record precisely which permutations
17160 need whole vector left shift or that plus VEC_COND_EXPR.
17161 (vectorizable_scan_store): Adjust caller, use whole vector left shift
17162 and additional VEC_COND_EXPR only for those iterations that need it.
17164 2019-06-20 Alexandre Oliva <oliva@adacore.com>
17166 * config.gcc: Fix ARM --with-fpu checking and error message.
17168 2019-06-19 Marek Polacek <polacek@redhat.com>
17170 PR c++/60364 - noreturn after first decl not diagnosed.
17171 * attribs.c (get_attribute_namespace): No longer static.
17172 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
17174 (attr_noreturn_exclusions): Make it extern.
17175 * attribs.h (get_attribute_namespace): Declare.
17176 * tree-inline.c (function_attribute_inlinable_p): Use
17177 get_attribute_name.
17179 2019-06-19 Martin Sebor <msebor@redhat.com>
17181 PR tree-optimization/90626
17182 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
17184 PR tree-optimization/90626
17185 * tree-ssa-strlen.c (strxcmp_unequal): New function.
17186 (handle_builtin_string_cmp): Call it.
17188 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
17190 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
17191 and DARWIN_NOPIE_SPEC.
17192 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
17193 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
17194 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
17195 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
17196 (DARWIN_EXPORT_DYNAMIC): Delete.
17197 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
17198 and pie options processing to darwin.h.
17199 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
17201 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
17203 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
17204 in computing the number of options to be moved.
17206 2019-06-19 Maya Rashish <coypu@sdf.org>
17208 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
17209 (CLEAR_INSN_CACHE) Use it.
17211 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
17213 * config/i386/i386.md (cmpstrnsi): Remove dead code.
17215 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
17217 PR middle-end/84521
17218 * builtins.c (expand_builtin_setjmp_setup): Save
17219 hard_frame_pointer_rtx.
17220 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
17222 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
17224 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
17226 (remove_reg_equal_offset_note): Remove unused function.
17227 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
17229 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17230 (arc_builtin_setjmp_frame_value): Remove function.
17231 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17232 (avr_builtin_setjmp_frame_value): Remove function.
17233 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17234 (ix86_builtin_setjmp_frame_value): Remove function.
17235 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
17236 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17237 (sparc_builtin_setjmp_frame_value): Remove function.
17238 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
17239 (vax_builtin_setjmp_frame_value): Remove function.
17240 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
17241 pointer if has_nonlocal_label.
17243 2019-06-19 Jakub Jelinek <jakub@redhat.com>
17245 * doc/md.texi: Document vec_shl_<mode> pattern.
17246 * optabs.def (vec_shl_optab): New optab.
17247 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
17248 argument, if == vec_shl_optab, check for left whole vector shift
17249 pattern rather than right shift.
17250 (expand_vec_perm_const): Add vec_shl_optab support.
17251 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
17253 * tree-vect-generic.c (lower_vec_perm): Support permutations which
17254 can be handled by vec_shl_optab.
17255 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
17256 (check_scan_store): Use it.
17257 (vectorizable_scan_store): If target can't do normal permutations,
17258 try to use whole vector left shifts and if needed a VEC_COND_EXPR
17260 * config/i386/sse.md (vec_shl_<mode>): New expander.
17262 * omp-low.c (lower_rec_input_clauses): Handle references properly
17264 (lower_omp_scan): Likewise.
17266 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17268 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
17269 mem_mode is BLKmode.
17271 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
17274 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
17275 pointer adjustment for the case of no callee-saved registers and
17276 stack frame bigger than 128 bytes.
17278 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
17280 PR middle-end/90862
17281 * omp-low.c (check_omp_nesting_restrictions): Handle
17282 GF_OMP_TARGET_KIND_OACC_DECLARE.
17284 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
17286 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
17287 (@add<mode>3_carry): Rename from add<mode>3_carry.
17288 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
17289 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
17290 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
17291 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
17292 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
17293 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
17294 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
17295 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
17296 (cmpstrnsi): Use gen_cmp_1.
17297 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
17298 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
17299 (@umonitor_<mode>): Rename from umonitor_<mode>.
17300 * config/i386/i386-expand.c (ix86_expand_copysign):
17301 Use gen_copysign3_const and gen_copysign3_var.
17302 (ix86_expand_xorsign): Use gen_xorsign3_1.
17303 (ix86_expand_branch): Use gen_sub3_carry_ccc,
17304 gen_sub3_carry_ccgz and gen_cmp1.
17305 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
17306 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
17307 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
17308 (ix86_split_lshr): Ditto.
17309 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
17311 2019-06-18 Jason Merrill <jason@redhat.com>
17313 * tree.c (build_constructor): Add MEM_STAT_DECL.
17315 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17317 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
17318 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
17319 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
17320 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
17321 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
17322 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
17323 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
17324 Use CC_NZC instead of CC.
17325 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
17326 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
17327 (aarch64_print_operand): Handle E_CC_NZCmode.
17328 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
17329 of gen_set_clobber_cc.
17331 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17333 * config/aarch64/aarch64-sve.md: Tabify file.
17335 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17337 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
17338 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
17339 * config/aarch64/aarch64-sve.md: Use it.
17341 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17343 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
17344 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
17345 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
17346 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
17347 (aarch64_expand_sve_vec_cmp_int): Use it.
17348 (aarch64_expand_sve_vec_cmp_float): Likewise.
17349 * config/aarch64/aarch64-sve.md: Likewise throughout.
17351 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17352 Kugan Vivekanandarajah <kuganv@linaro.org>
17354 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
17355 (*cond_<optab><mode>_z): Fold into...
17356 (*cond_<optab><mode>_any): ...here. Also handle cases in which
17357 operand 4 can be tied to operand 0 (either inherently or via RA).
17359 2019-06-18 Richard Biener <rguenther@suse.de>
17362 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
17363 as if optimized away.
17365 2019-06-18 Tom de Vries <tdevries@suse.de>
17367 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
17368 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
17369 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
17371 (define_insn "@set_softstack_<mode>"): ... this.
17372 (define_insn "omp_simt_enter_<mode>"): Rename to ...
17373 (define_insn "@omp_simt_enter_<mode>"): ... this.
17374 (define_insn "omp_simt_exit_<mode>"): Rename to ...
17375 (define_insn "@omp_simt_exit_<mode>"): ... this.
17377 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
17379 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
17380 vf parameter. Restore the previous iv step of nscalars_step,
17381 but give it iv_type rather than compare_type. Tweak code order
17382 to match the comments.
17383 (vect_set_loop_condition_masked): Update accordingly.
17384 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
17385 for iv_precision. Tweak comment formatting.
17387 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
17389 * config/darwin.c: Strip trailing whitespace.
17391 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
17393 * config/darwin.c (darwin_emit_unwind_label): New default to false.
17394 (darwin_override_options): Set darwin_emit_unwind_label as needed.
17396 2019-06-18 Martin Jambor <mjambor@suse.cz>
17399 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
17400 caller does not have flag_ipa_cp set.
17402 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17404 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
17405 from "*fold_left_plus_<mode>", updated operands order.
17406 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
17407 * internal-fn.c (mask_fold_left_direct): New define.
17408 (expand_mask_fold_left_optab_fn): Likewise.
17409 (direct_mask_fold_left_optab_supported_p): Likewise.
17410 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
17411 * optabs.def (mask_fold_left_plus_optab): New optab.
17412 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
17413 masked internal_fn for a reduction ifn.
17414 (vectorize_fold_left_reduction): Add support for masking reductions.
17416 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
17418 PR middle-end/80791
17419 * target.def (predict_doloop_p): New hook.
17420 * targhooks.h (default_predict_doloop_p): New declaration.
17421 * targhooks.c (default_predict_doloop_p): New function.
17422 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
17423 * doc/tm.texi: Regenerate.
17424 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
17425 (TARGET_PREDICT_DOLOOP_P): New macro.
17426 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
17428 2019-06-17 Jakub Jelinek <jakub@redhat.com>
17430 * omp-low.c (struct omp_context): Add scan_inclusive field.
17431 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
17433 (struct omplow_simd_context): Add lastlane member.
17434 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
17435 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
17437 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
17438 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
17439 (lower_omp_scan): New function.
17440 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
17441 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
17442 check 3rd argument if present rather than 2nd.
17443 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
17444 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
17446 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17447 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
17449 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
17450 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
17451 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
17453 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
17454 IFN_GOMP_SIMD_LANE argument.
17455 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
17456 encoded ->aux value.
17457 * tree-vect-stmts.c: Include attribs.h.
17458 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
17459 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
17461 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
17462 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
17464 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
17467 * config/i386/i386.md (*nabstf2_1): New insn pattern.
17468 (*nabs<mode>2_1): Ditto.
17469 (nabs sse-reg splitter): New splitter.
17470 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
17472 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
17474 PR bootstrap/90873.
17475 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
17478 2019-06-17 Tom de Vries <tdevries@suse.de>
17480 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
17481 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
17482 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
17484 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
17486 (define_insn "omp_simt_enter_insn"): Rename to ...
17487 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
17488 match_operand 0, 1 and 2, as well as the unspec_volatile result.
17489 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
17490 gen_omp_simt_enter_si.
17491 (define_expand "omp_simt_exit"): New.
17492 (define_insn "omp_simt_exit"): Rename to ...
17493 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
17496 2019-06-17 Matthew Green <mrg@eterna.com.au>
17497 Maya Rashish <coypu@sdf.org>
17499 * config.gcc (aarch64*-*-netbsd*): New target.
17500 * config/aarch64/aarch64-netbsd.h: New file.
17501 * config/aarch64/t-aarch64-netbsd: Likewise.
17503 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
17505 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
17506 the access path from base to first VIEW_CONVERT_EXPR or
17509 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
17511 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
17512 access path on BIT_FIELD_REFs.
17514 2019-06-17 Martin Liska <mliska@suse.cz>
17517 * ipa-utils.h (odr_type_p): Remove dead code.
17519 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17521 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
17522 alternative Solaris 11.4 format.
17523 * configure: Regenerate.
17525 2019-06-17 Tom de Vries <tdevries@suse.de>
17527 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
17528 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
17530 (define_insn "call_value_insn"): Rename to ...
17531 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
17533 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
17536 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
17538 PR middle-end/64242
17539 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
17540 frame clobbers and schedule block.
17541 (builtin_longjmp): Likewise.
17543 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17545 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
17546 describe how to perform MSPABI compliant 64-bit shift.
17547 * config/msp430/msp430.md (ashldi3): New define_expand.
17548 (ashrdi3): New define_expand.
17549 (lshrdi3): New define_expand.
17551 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17553 * doc/sourcebuild.texi: Document new effective target keyword
17556 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
17558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
17559 indirect_refs_may_alias_p): Revert accidental commits.
17561 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
17562 at the end of structures.
17564 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
17566 * config/darwin.c (machopic_indirect_call_target): Use renamed
17567 darwin_picsymbol_stubs to decide on output.
17568 (darwin_override_options): Handle darwin_picsymbol_stubs.
17569 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
17570 (LD64_VERSION): Revise default.
17571 * config/darwin.opt: (mpic-symbol-stubs): New option.
17572 (darwin_picsymbol_stubs): New variable.
17573 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
17574 rename to TARGET_MACHO_PICSYM_STUBS.
17575 * config/i386/i386.c (output_pic_addr_const): Likewise.
17576 * config/i386/i386.h Likewise.
17577 * config/rs6000/darwin.h: Likewise.
17578 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
17579 darwin_picsymbol_stubs.
17581 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
17583 * config/darwin.opt (prebind, noprebind, seglinkedit,
17584 noseglinkedit): Add RejectNegative.
17586 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
17588 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
17589 in my previous patch.
17591 2019-06-16 Tom de Vries <tdevries@suse.de>
17593 PR tree-optimization/89376
17594 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
17596 2019-06-15 Maya Rashish <coypu@sdf.org>
17598 * doc/invoke.texi (Spec Files): Update location of the
17601 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
17603 * doc/extend.texi (Common Function Attributes): Clarify
17604 no_sanitize. Fix grammar.
17606 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
17608 * tree-ssa-alias.c (alias_stats): Add
17609 nonoverlapping_component_refs_p_may_alias,
17610 nonoverlapping_component_refs_p_no_alias,
17611 nonoverlapping_component_refs_of_decl_p_may_alias,
17612 nonoverlapping_component_refs_of_decl_p_no_alias.
17613 (dump_alias_stats): Dump them.
17614 (nonoverlapping_component_refs_of_decl_p): Add stats.
17615 (nonoverlapping_component_refs_p): Add stats; do not stop on first
17618 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
17620 * config/i386/i386.md (and<mode>3): Generate zero-extends for
17621 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
17623 (*anddi3_doubleword): Split before reload. Merge with
17624 anddi->zext pre-reload splitter.
17625 (*andndi3_doubleword): Split before reload.
17626 (*<code>di3_doubleword): Ditto.
17627 (*one_cmpldi2_doubleword): Ditto.
17629 2019-06-15 Jakub Jelinek <jakub@redhat.com>
17631 PR middle-end/90779
17632 * gimplify.c: Include omp-offload.h and context.h.
17633 (gimplify_bind_expr): Add "omp declare target" attributes
17634 to static block scope variables inside of target region or target
17637 2019-06-15 Tom de Vries <tdevries@suse.de>
17639 PR tree-optimization/90009
17640 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
17641 Return NULL if bb contains IFN_UNIQUE.
17643 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
17645 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
17646 (un): New define_mode_attr.
17647 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
17648 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
17649 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
17651 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
17653 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
17655 * config/darwin.opt: Add RejectNegative where needed, reorder
17656 and add minimal functional descriptions.
17658 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
17660 PR rtl-optimization/90765
17661 * calls.c (update_stack_alignment_for_call): New function.
17662 (expand_call): Call update_stack_alignment_for_call when
17663 outgoing parameter is passed in the stack.
17664 (emit_library_call_value_1): Likewise.
17665 * function.c (locate_and_pad_parm): Don't update
17666 stack_alignment_needed and preferred_stack_boundary.
17668 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
17671 * config/i386/i386-features.c
17672 (dimode_scalar_chain::compute_convert_gain): Replace
17673 mmxsse_to_integer with sse_to_integer.
17674 * config/i386/i386.c (ix86_register_move_cost): Verify that
17675 moves between MMX and non-MMX units require secondary memory.
17676 Correct costs of moves between SSE and integer units.
17677 * config/i386/i386.h (processor_costs): Rename cost of moving
17678 SSE register to integer to sse_to_integer. Rename cost of
17680 2019-06-14 Matt Thomas <matt@3am-software.com>
17681 Matthew Green <mrg@eterna.com.au>
17682 Nick Hudson <skrll@netbsd.org>
17683 Maya Rashish <coypu@sdf.org>
17684 Richard Earnshaw <rearnsha@arm.com>
17686 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
17687 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
17688 * config/arm/netbsd-eabi.h: New file.
17689 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
17691 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
17692 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
17693 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
17694 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
17696 2019-06-14 Richard Biener <rguenther@suse.de>
17698 * tree-loop-distribution.c (classify_partition): Return
17699 whether a reduction appeared in all partitions and do not
17700 stop builtin detection because of this.
17701 (distribute_loop): Sort a non-builtin partition last if
17702 there's a reduction in all partitions and make sure the
17703 partition prevailing as last is not a builtin.
17705 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
17708 * ipa-prop.c (add_to_agg_contents_list): New function.
17709 (clobber_by_agg_contents_list_p): Likewise.
17710 (extract_mem_content): Likewise.
17711 (get_place_in_agg_contents_list): Delete.
17712 (determine_known_aggregate_parts): Renamed from
17713 determine_locally_known_aggregate_parts. New parameter
17716 2019-06-13 Martin Sebor <msebor@redhat.com>
17718 PR tree-optimization/90662
17719 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
17722 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
17725 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
17726 dbase is not TARGET_MEM_REF.
17728 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
17730 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
17732 (and<mode>3): Use gen_extend_insn instead of indirect functions.
17733 Do not generate DImode extends for 32bit targets.
17734 (and->zext post-reload splitter): Use gen_extend_insn
17735 instead of indirect functions.
17736 (anddi->zext pre-reload splitter): New.
17737 (*zext<mode>_doubleword_and): Remove.
17738 (*zext<mode>_doubleword): Ditto.
17739 (*zextsi_doubleword): Dittto.
17741 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
17743 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
17744 Use gen_sub3_insn instead of indirect function.
17745 (ix86_expand_ashl_const): Use gen_add2_insn instead of
17747 (ix86_adjust_counter): Ditto.
17749 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
17750 Lijia He <helijia@linux.ibm.com>
17752 PR tree-optimization/77820
17753 * tree-ssa-threadedge.c
17754 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
17756 (thread_across_edge): Add call to
17757 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
17759 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
17761 * config/darwin-driver.c (validate_macosx_version_min): New.
17762 (darwin_default_min_version): Cleanup and validate supplied version.
17763 (darwin_driver_init): Likewise and push cleaned version into opts.
17765 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
17767 PR tree-optimization/90869
17768 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
17769 converts in MEM_REF referencing decl rather than view converts
17770 from decl type to MEM_REF type.
17772 2019-06-13 Richard Biener <rguenther@suse.de>
17774 PR tree-optimization/90856
17775 * tree-sra.c (build_ref_for_model): Only use
17776 build_reconstructed_reference when address-spaces are the same.
17778 2019-06-13 Jakub Jelinek <jakub@redhat.com>
17780 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
17781 wrap ei variable name in the declaration in ()s.
17782 (nvptx_single): Actually use mode_label variable. Formatting fix.
17784 2019-06-13 Richard Biener <rguenther@suse.de>
17786 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
17787 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
17788 also return the condition stmt.
17789 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
17790 loop we can version and version that, reusing the loop version
17791 created by if-conversion instead of versioning again.
17793 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
17795 * gimple-loop-versioning.cc (prune_loop_conditions): Use
17797 * tree-vrp (value_range_base::may_contain_p): Call into
17798 value_inside_range.
17799 (value_inside_range): Make private inside value_range_base class.
17800 Take min/max from *this.
17801 (range_includes_p): Remove.
17802 * tree-vrp.h (value_range_base): Add value_inside_range.
17803 (range_includes_p): Remove.
17804 (range_includes_zero_p): Call may_contain_p.
17805 * vr-values.c (compare_range_with_value): Same.
17807 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
17809 * doc/extend.texi (ARC Function Attributes): Update info.
17811 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
17813 PR tree-optimization/89713
17814 * doc/invoke.texi (-ffinite-loops): Document new option.
17815 * common.opt (-ffinite-loops): New option.
17816 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
17817 IFN_GOACC_LOOP calls as necessary.
17818 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
17820 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
17821 IFN_GOACC_LOOP call is not used.
17822 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
17824 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17827 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
17828 compare_type is not with Pmode size, we will create an IV with
17829 Pmode size with truncated use (i.e. converted to the correct type).
17830 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
17831 (vect_iv_limit_for_full_masking): New. Factored out of
17832 vect_set_loop_condition_masked.
17833 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
17834 (vect_iv_limit_for_full_masking): Declare.
17836 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17839 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
17840 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
17841 (get_alias_ptr_type_for_ptr_address): Likewise.
17842 (add_iv_candidate_for_use): Add scaled index candidate if useful.
17843 * tree-ssa-address.c (preferred_mem_scale_factor): New.
17844 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
17847 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17849 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
17851 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
17853 * common/config/pru/pru-common.c: New file.
17854 * config.gcc: Add PRU target.
17855 * config/pru/alu-zext.md: New file.
17856 * config/pru/constraints.md: New file.
17857 * config/pru/predicates.md: New file.
17858 * config/pru/pru-opts.h: New file.
17859 * config/pru/pru-passes.c: New file.
17860 * config/pru/pru-pragma.c: New file.
17861 * config/pru/pru-protos.h: New file.
17862 * config/pru/pru.c: New file.
17863 * config/pru/pru.h: New file.
17864 * config/pru/pru.md: New file.
17865 * config/pru/pru.opt: New file.
17866 * config/pru/t-pru: New file.
17867 * doc/extend.texi: Document PRU pragmas.
17868 * doc/invoke.texi: Document PRU-specific options.
17869 * doc/md.texi: Document PRU asm constraints.
17871 2019-06-12 Martin Sebor <msebor@redhat.com>
17873 PR middle-end/90676
17874 * tree-pretty-print.c (dump_mem_ref): New function. Include
17875 MEM_REF type in output when different size than operand.
17876 (dump_generic_node): Move code to dump_mem_ref and call it.
17878 2019-06-12 Martin Sebor <msebor@redhat.com>
17880 PR tree-optimization/90662
17881 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
17884 2019-06-12 Tom de Vries <tdevries@suse.de>
17886 PR tree-optimization/90009
17887 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
17889 2019-06-12 Martin Liska <mliska@suse.cz>
17891 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
17893 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
17894 * mem-stats.h (mem_alloc_description::mem_alloc_description):
17895 Do not sanitize created maps.
17897 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
17899 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
17900 value_range::singleton_p.
17901 * tree-vrp.c (value_range_constant_singleton): Remove.
17902 * tree-vrp.h (value_range_constant_singleton): Remove.
17903 * vr-values.c (vr_values::singleton): Use
17904 value_range::singleton_p.
17906 2019-06-12 Jakub Jelinek <jakub@redhat.com>
17909 * cfgexpand.c (align_local_variable): Add really_expand argument,
17910 don't SET_DECL_ALIGN if it is false.
17911 (add_stack_var): Add really_expand argument, pass it through to
17912 align_local_variable.
17913 (expand_one_stack_var_1): Pass true as really_expand to
17914 align_local_variable.
17915 (expand_one_ssa_partition): Pass true as really_expand to
17917 (expand_one_var): Pass really_expand through to add_stack_var.
17919 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
17921 * config/arm/iterators.md (VABAL): New int iterator.
17922 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
17923 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
17924 UNSPEC_VABAL_U values.
17926 2019-06-12 Martin Liska <mliska@suse.cz>
17928 * value-prof.c (stream_out_histogram_value): Only first value
17931 2019-06-12 Jakub Jelinek <jakub@redhat.com>
17934 * symtab.c (symtab_node::set_section): Allow being called on aliases
17935 as long as they aren't analyzed yet.
17937 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
17939 * config/mips/mips.c (mips_final_postscan_insn): Modify call
17940 to `mips_set_text_contents_type' to indicate whether a
17941 non-debug insn follows.
17943 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
17945 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
17946 enabling -mpcrel by default.
17947 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
17948 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
17949 that the test against -mcpu=future is done first. Then test if
17950 -mprefixed-addr is on for -mpcrel.
17951 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
17953 2019-06-11 Jakub Jelinek <jakub@redhat.com>
17956 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
17957 instead of and.u%d.
17959 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
17961 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
17963 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
17965 PR c++/90449 - add -Winaccessible-base option.
17966 * doc/invoke.texi (Winaccessible-base): Document.
17968 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
17970 PR tree-optimization/62041
17971 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
17973 2019-06-11 Jason Merrill <jason@redhat.com>
17975 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
17976 * tree.c (get_tree_code_name): Likewise.
17977 * print-tree.c (print_node): Only briefly print a node with an
17980 2019-06-11 Jakub Jelinek <jakub@redhat.com>
17983 * trans-mem.c (tm_memopt_compute_available): Add assertion
17984 that blocks is not empty. Formatting fix.
17986 2019-06-11 Martin Liska <mliska@suse.cz>
17989 * hash-table.h: Extend create_gcc, add one parameter
17990 that is passed into hash_table::hash_table.
17992 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
17994 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
17996 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
17997 Emit clobber also for non-sse operations.
17998 (ix86_split_fp_absneg_operator): New function.
17999 * config/i386/i386.md (SSEMODEF): New mode iterator.
18000 (ssevecmodef): New mode attribute.
18001 (<code>tf2): Use absneg code iterator.
18002 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
18003 Add three-operand AVX alternatives.
18004 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
18005 Use absneg code iterator and X87MODEF mode iterator.
18006 (absneg fp_reg non-sse splitter): Call absneg code iterator
18007 and X87MODEF mode iterator.
18008 (absneg general_reg non-sse splitter): Use absneg code iterator
18009 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
18010 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
18011 code iterator. Add three-operand AVX alternative.
18012 (absneg sse_reg splitter): Use absneg code iterator
18013 and SSEMODEF mode iterator. Handle AVX operands.
18014 (absneg fp_reg splitter): Use absneg code iterator
18015 and MODEF mode iterator.
18016 (absneg general_reg splitter): Merge splitters using MODEF mode
18017 iterator. Use absneg code iterator. Call
18018 ix86_split_fp_absneg_operator.
18019 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
18020 Do not enable for non-sse modes before reload.
18021 (CSGNMODE): Remove.
18022 (CSGNVMODE): Ditto.
18023 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
18024 ssevecmodef mode attribute instaed of CSGNVMODE.
18025 (copysign<mode>3_const): Ditto.
18026 (copysign<mode>3_var): Ditto.
18027 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
18028 Use absneg code iterator. Simplify code using std::swap.
18029 * config/i386/predicates.md (absneg_operator): Remove.
18031 2019-06-10 Martin Sebor <msebor@redhat.com>
18033 * gimple-fold.c (get_range_strlen): Update comment that didn't
18034 make it into r267503 or related commits.
18036 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
18038 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
18039 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
18041 2019-06-10 Jakub Jelinek <jakub@redhat.com>
18043 * tree.def (OMP_SCAN): New tree code.
18044 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
18045 OMP_CLAUSE_EXCLUSIVE.
18046 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
18047 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
18048 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
18049 OMP_CLAUSE_{IN,EX}CLUSIVE.
18050 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
18051 * tree-nested.c (convert_nonlocal_reference_stmt,
18052 convert_local_reference_stmt, convert_gimple_call): Handle
18054 * tree-pretty-print.c (dump_omp_clause): Handle
18055 OMP_CLAUSE_{IN,EX}CLUSIVE.
18056 (dump_generic_node): Handle OMP_SCAN.
18057 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
18058 * gimple.h (gomp_scan): New type.
18059 (is_a_helper <gomp_scan *>::test,
18060 is_a_helper <const gomp_scan *>::test): New templates.
18061 (gimple_build_omp_scan): Declare.
18062 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
18063 gimple_omp_scan_set_clauses): New inline functions.
18064 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
18065 * gimple.c (gimple_build_omp_scan): New function.
18066 (gimple_copy): Handle GIMPLE_OMP_SCAN.
18067 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
18068 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
18069 GIMPLE_OMP_TASKGROUP.
18070 (dump_gimple_omp_scan): New function.
18071 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
18072 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
18073 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
18074 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
18075 (is_gimple_stmt): Handle OMP_SCAN.
18076 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
18077 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
18078 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
18079 mentioned in nested #pragma omp scan. Handle
18080 OMP_CLAUSE_{IN,EX}CLUSIVE.
18081 (gimplify_expr): Handle OMP_SCAN.
18082 * omp-low.c (check_omp_nesting_restrictions): For parent context,
18083 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
18085 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
18088 2019-06-10 Martin Liska <mliska@suse.cz>
18090 * ipa-cp.c (ignore_edge_p): New function.
18091 (build_toporder_info): Use it.
18092 * ipa-inline.c (ignore_edge_p): New function.
18093 (inline_small_functions): Use it.
18094 * ipa-pure-const.c (ignore_edge_for_nothrow):
18095 Verify opt_for_fn for caller and callee.
18096 (ignore_edge_for_pure_const): Likewise.
18097 * ipa-reference.c (ignore_edge_p): Extend to check
18099 * ipa-utils.c (searchc): Refactor.
18100 * ipa-utils.h: Fix coding style.
18102 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
18104 * config/arc/arc.c (arc_rtx_costs): Update costs.
18106 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
18108 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
18109 (arc_split_ior): Likewise.
18110 (arc_check_mov_const): Likewise.
18111 (arc_split_mov_const): Likewise.
18112 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
18113 (arc_rtx_costs): Replace check Crr with Cax constraint.
18114 (prepare_move_operands): Cleanup, remove unused code.
18115 (arc_split_ior): New function.
18116 (arc_check_ior_const): Likewise.
18117 (arc_split_mov_const): Likewise.
18118 (arc_check_mov_const): Likewise.
18119 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
18120 in define_insn_and_split pattern.
18121 (iorsi3): Likewise.
18122 (mulsi3_v2): Add new matching variant.
18123 (andsi3_i): Cleanup pattern.
18124 (rotrsi3_cnt1): Update pattern.
18125 (rotrsi3_cnt8): New pattern.
18126 (ashlsi2_cnt8): Likewise.
18127 (ashlsi2_cnt16): Likewise.
18128 * config/arc/constraints.md (C0p): Update constraint.
18130 (C0x): New pattern.
18131 (Cax): New pattern.
18133 2019-06-10 Martin Liska <mliska@suse.cz>
18135 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
18136 Update coding style.
18137 (sem_item_optimizer::dump_cong_classes):
18138 Print how many items are in a non-singular class. Improve
18141 2019-06-10 Martin Liska <mliska@suse.cz>
18143 * value-prof.c (dump_histogram_value): Change dump format.
18144 (gimple_mod_subtract_transform): Remove legacy comment.
18146 2019-06-10 Martin Liska <mliska@suse.cz>
18148 * value-prof.c (dump_histogram_value): Print histogram values
18151 2019-06-10 Martin Liska <mliska@suse.cz>
18153 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
18154 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
18155 * ipa-profile.c (ipa_profile_generate_summary):
18156 Use get_most_common_single_value.
18157 * tree-profile.c (gimple_init_gcov_profiler):
18158 Instrument with __gcov_one_value_profiler_v2
18159 and __gcov_indirect_call_profiler_v4.
18160 * value-prof.c (dump_histogram_value):
18161 Print all values for HIST_TYPE_SINGLE_VALUE.
18162 (stream_out_histogram_value): Update assert for
18164 (stream_in_histogram_value): Set number of
18165 counters for HIST_TYPE_SINGLE_VALUE.
18166 (get_most_common_single_value): New.
18167 (gimple_divmod_fixed_value_transform):
18168 Use get_most_common_single_value.
18169 (gimple_ic_transform): Likewise.
18170 (gimple_stringops_transform): Likewise.
18171 (gimple_find_values_to_profile): Set number
18172 of counters for HIST_TYPE_SINGLE_VALUE.
18173 * value-prof.h (get_most_common_single_value): New.
18175 2019-06-10 Martin Liska <mliska@suse.cz>
18177 * hash-map.h: Pass default value to hash_table ctor.
18178 * hash-table.h: Add default value to call of a ctor.
18180 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
18182 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
18183 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
18185 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
18188 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
18189 Call pa_output_function_label.
18190 (TARGET_ASM_FUNCTION_PROLOGUE): define.
18191 * config/pa/pa-protos.h (pa_output_function_label): Declare.
18192 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
18194 (pa_linux_output_function_prologue): Declare.
18195 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
18196 (pa_output_function_label): New.
18197 (pa_output_function_prologue): Revise to use pa_output_function_label.
18198 (pa_linux_output_function_prologue): New.
18199 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
18201 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
18203 * tree-vrp.h (value_range_base::intersect): New.
18204 (value_range::intersect_helper): Move from here...
18205 (value_range_base::intersect_helper): ...to here.
18206 * tree-vrp.c (value_range::intersect_helper): Rename to...
18207 (value_range_base::intersect_helper): ...this, and rewrite to
18208 return a value instead of modifying THIS in place.
18209 Also, move equivalence handling...
18210 (value_range::intersect): ...here, while calling intersect_helper.
18211 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
18213 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
18215 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
18217 2019-06-07 Jakub Jelinek <jakub@redhat.com>
18219 * Makefile.in (genprogerr): Add condmd.
18220 (genprog): Remove it here.
18222 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
18224 * doc/invoke.texi (AMD GCN Options): Add gfx906.
18226 2019-06-07 Richard Biener <rguenther@suse.de>
18229 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
18230 that appear after user labels.
18232 2019-06-07 Martin Liska <mliska@suse.cz>
18234 * cselib.c (cselib_init): Disable hash table
18236 * hash-set.h: Pass new default argument to m_table.
18237 * hash-table.c: Add global variable with hash table
18238 sanitization limit.
18239 * hash-table.h (Allocator>::hash_table): Add new argument
18241 (hashtab_chk_error): New.
18242 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
18243 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
18244 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
18246 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
18248 * common.opt (flto-odr-type-merging): Ignore.
18249 * invoke.texi (-flto-odr-type-merging): Remove.
18250 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
18251 (can_be_vtable_hashed_p): Remove.
18252 (hash_odr_vtable): Remove.
18253 (odr_vtable_hasher::hash): Remove.
18254 (types_same_for_odr): Remove.
18255 (types_odr_comparable): Remove.
18256 (odr_vtable_hasher::equal): Remove.
18257 (odr_vtable_hash_type, odr_vtable_hash): Remove.
18258 (add_type_duplicate): Do not synchronize vtable and name hashtables.
18259 (get_odr_type): Do not use vtable hash.
18260 (dump_odr_type): Remove commented out code.
18261 (build_type_inheritance_graph): Do not allocate vtable hash.
18262 (rebuild_type_inheritance_graph): Do not delete vtable hash.
18263 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
18264 (odr_type_p): Likewise.
18265 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
18268 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
18270 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
18271 immediately after same_types_for_tbaa_p returns -1 and continue
18272 looking for possible exact match; if matching types are arrays
18273 watch for partial overlaps.
18274 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
18275 (indirect_refs_may_alias_p): Do type based disambiguation first;
18278 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
18280 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
18282 2019-06-07 Martin Liska <mliska@suse.cz>
18284 * doc/invoke.texi: Remove param.
18285 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
18287 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
18288 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
18289 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
18290 * profile.c (instrument_values): Remove
18291 HIST_TYPE_INDIR_CALL_TOPN.
18292 * tree-profile.c (init_ic_make_global_vars):
18293 Always build __gcov_indirect_call only.
18294 (gimple_init_gcov_profiler): Remove usage
18295 of PARAM_INDIR_CALL_TOPN_PROFILE.
18296 (gimple_gen_ic_profiler): Likewise.
18297 * value-prof.c (dump_histogram_value): Likewise.
18298 (stream_in_histogram_value): Likewise.
18299 (gimple_indirect_call_to_profile): Likewise.
18300 (gimple_find_values_to_profile): Likewise.
18301 * value-prof.h (enum hist_type): Likewise.
18303 2019-06-07 Martin Liska <mliska@suse.cz>
18305 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
18308 2019-06-07 Martin Liska <mliska@suse.cz>
18310 PR tree-optimization/78902
18311 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
18312 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
18313 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
18314 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
18315 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
18316 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
18317 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
18318 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
18319 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
18320 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
18321 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
18322 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
18323 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
18325 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
18326 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
18327 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
18328 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
18329 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
18330 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
18331 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
18332 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
18333 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
18334 warn_unused_result attribute.
18335 (BUILT_IN_STRDUP): Likewise.
18336 (BUILT_IN_STRNDUP): Likewise.
18337 (BUILT_IN_ALLOCA): Likewise.
18338 (BUILT_IN_CALLOC): Likewise.
18339 (BUILT_IN_MALLOC): Likewise.
18340 (BUILT_IN_REALLOC): Likewise.
18342 2019-06-06 Jim Wilson <jimw@sifive.com>
18345 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
18346 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
18347 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
18349 2019-06-06 Martin Sebor <msebor@redhat.com>
18351 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
18352 (handle_builtin_malloc): Remove trailing spaces.
18353 (handle_builtin_memset): Same.
18354 (handle_builtin_memcmp): Same.
18355 (compute_string_length): Same.
18356 (determine_min_objsize): Same.
18357 (handle_builtin_string_cmp): Same.
18358 (handle_char_store): Same. Break up excessively long line.
18360 2019-06-06 Martin Jambor <mjambor@suse.cz>
18362 * tree-sra.c (build_reconstructed_reference): Drop the alignment
18365 2019-06-06 Martin Jambor <mjambor@suse.cz>
18367 * tree-sra.c (struct access): New field grp_same_access_path.
18368 (dump_access): Dump it.
18369 (build_reconstructed_reference): New function.
18370 (build_ref_for_model): Use it if possible.
18371 (path_comparable_for_same_access): New function.
18372 (same_access_path_p): Likewise.
18373 (sort_and_splice_var_accesses): Set the new flag.
18374 (analyze_access_subtree): Likewise.
18375 (propagate_subaccesses_across_link): Propagate zero value of the new
18376 flag down the access tree.
18378 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
18380 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
18381 * config/gcn/gcn.opt (gpu_type): Add gfx906.
18382 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
18383 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
18386 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18388 PR tree-optimization/90332
18389 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
18390 Handle VALS containing two vectors.
18391 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
18393 (@aarch64_combinez<mode>): ... This.
18394 (*aarch64_combinez_be<mode>): Rename to...
18395 (@aarch64_combinez_be<mode>): ... This.
18396 (vec_init<mode><Vhalf>): New define_expand.
18397 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
18399 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18401 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
18402 library functions only when not optimizing for size.
18403 (ashlsi3): Likewise.
18404 (ashrhi3): Likewise.
18405 (ashrsi3): Likewise.
18406 (lshrhi3): Likewise.
18407 (lshrsi3): Likewise.
18409 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
18411 PR rtl-optimization/88751
18412 * ira.c (ira): Use the number of the actually referenced registers
18413 when calculating the threshold.
18415 2019-06-06 Jakub Jelinek <jakub@redhat.com>
18417 * configure: Regenerate.
18419 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18421 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
18422 register if it is in memory, so the shift can be emulated with a rotate
18424 (ashrhi3): Likewise.
18425 (lshrhi3): Likewise.
18427 2019-06-06 Martin Liska <mliska@suse.cz>
18429 PR tree-optimization/87954
18430 * match.pd: Simplify mult where both arguments are 0 or 1.
18432 2019-06-06 Richard Biener <rguenther@suse.de>
18434 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
18435 put equivalences on UNDEFINED ranges.
18436 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18437 Make sure to drop defs of stmts added during simplification
18440 2019-06-06 Richard Biener <rguenther@suse.de>
18442 * tree-ssa-structalias.c: Include tree-cfg.h.
18443 (make_heapvar): Do not make heap vars artificial.
18444 (find_func_aliases_for_builtin_call): Handle stack allocation
18446 (find_func_aliases): Delay processing of simple enough returns
18448 (set_uids_in_ptset): Adjust.
18449 (find_what_var_points_to): Likewise.
18450 (solve_constraints): Do not dump points-to sets here.
18451 (compute_points_to_sets): Post-process return statements,
18452 amending the escaped solution. Dump points-to sets afterwards.
18453 (ipa_pta_execute): Dump points-to sets.
18455 2019-06-06 Martin Liska <mliska@suse.cz>
18458 * doc/install.texi: Fix HTML headers and
18459 titles for 'Installing GCC' pages.
18461 2019-06-06 Martin Liska <mliska@suse.cz>
18463 * ipa-icf-gimple.h (dump_message_1): Remove.
18464 (dump_message): Likewise.
18465 (return_false_with_message_1): Print also file.
18466 (return_false_with_msg): Likewise.
18467 (return_with_result): Likewise.
18468 (return_with_debug): Likewise.
18469 * ipa-icf.c (sem_function::equals_private): Remove call
18472 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
18474 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
18475 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
18476 memory operand for it.
18477 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
18479 2019-06-05 Martin Sebor <msebor@redhat.com>
18481 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
18482 Adjust quoting and hyphenation.
18483 * convert.c (convert_to_real_1): Same.
18484 * gcc.c (driver_wrong_lang_callback): Same.
18485 (driver::handle_unrecognized_options): Same.
18486 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
18487 * opts-common.c (cmdline_handle_error): Same.
18488 (read_cmdline_option): Same.
18489 * opts-global.c (complain_wrong_lang): Same.
18490 (print_ignored_options): Same.
18491 (handle_common_deferred_options): Same.
18492 * pretty-print.h: Same.
18493 * print-rtl.c (debug_bb_n_slim): Same.
18494 * sched-rgn.c (make_pass_sched_fusion): Same.
18495 * tree-cfg.c (verify_gimple_assign_unary): Same.
18496 (verify_gimple_label): Same.
18497 * tree-ssa-operands.c (verify_ssa_operands): Same.
18498 * varasm.c (do_assemble_alias): Same.
18499 (assemble_alias): Same.
18501 2019-06-05 Richard Henderson <rth@twiddle.net>
18503 * config/alpha/alpha.c (direct_return): Move down after
18504 struct machine_function definition; use saved frame_size;
18506 (struct machine_function): Add sa_mask, sa_size, frame_size.
18507 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
18508 (alpha_compute_frame_layout): ... new function.
18509 (TARGET_COMPUTE_FRAME_LAYOUT): New.
18510 (alpha_initial_elimination_offset): Use saved sa_size.
18511 (alpha_vms_initial_elimination_offset): Likewise.
18512 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
18513 (alpha_expand_prologue): Use saved frame data. Merge integer
18514 and fp register save loops.
18515 (alpha_expand_epilogue): Likewise.
18516 (alpha_start_function): Use saved frame data.
18517 * config/alpha/alpha-protos.h (direct_return): Update.
18518 (alpha_sa_size): Remove.
18520 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
18522 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
18523 multiplication by a power-of-two value.
18524 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
18525 and turn the modulo operation into a masking operation.
18527 2019-06-05 Jakub Jelinek <jakub@redhat.com>
18530 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
18531 with VOIDmode inner operands.
18533 2019-06-05 Richard Biener <rguenther@suse.de>
18535 PR middle-end/90726
18536 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18537 turn an expression graph into a tree.
18539 2019-06-05 Jakub Jelinek <jakub@redhat.com>
18541 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
18543 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
18544 treat it like explicit monotonic schedule modifier.
18545 (expand_omp_for): Initialize has_lastprivate_conditional.
18546 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
18549 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
18550 references, lookup in in hash map MEM_REF operand instead of the
18552 (lower_omp_1): When looking for lastprivate conditional assignments,
18553 handle MEM_REFs with REFERENCE_TYPE operands.
18555 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
18556 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
18557 and references a VLA. Handle references to non-VLAs if is_simd
18558 all privatization clauses like reductions.
18559 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
18560 If omp_is_reference, use always omp simd arrays and set
18561 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
18562 fails, emit reference initialization.
18564 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
18567 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
18568 _mm_mask_fpclass_sd_mask): New intrinsics.
18569 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
18570 * config/i386/i386-builtin.def
18571 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
18573 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
18574 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
18575 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
18576 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
18577 case QI_FTYPE_V2SF_INT): Ditto.
18578 * config/i386/sse.md
18579 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
18580 Extended to insnstructions with mask operands.
18582 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18584 * config/rs6000/constraints.md (define_register_constraint "wp"):
18586 (define_register_constraint "wq"): Delete.
18587 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18588 (rs6000_init_hard_regno_mode_ok): Adjust.
18589 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18590 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
18591 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
18592 (define_mode_attr VSa): Delete.
18593 (define_mode_attr VSisa): New.
18594 (rest of file): Adjust.
18595 * doc/md.texi (Machine Constraints): Adjust.
18597 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18599 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
18600 (define_attr "enabled"): Handle those new isa values.
18602 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18604 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
18605 (define_mode_attr VSr5): Delete.
18606 (define_mode_attr VStype_sqrt): Delete.
18607 (define_mode_iterator VSX_SPDP): Delete.
18608 (define_mode_attr VS_spdp_res): Delete.
18609 (define_mode_attr VS_spdp_insn): Delete.
18610 (define_mode_attr VS_spdp_type): Delete.
18611 (*vsx_sqrt<mode>2): Adjust.
18612 (vsx_<VS_spdp_insn>): Delete, split to...
18613 (vsx_xscvdpsp): ... this. New. And...
18614 (vsx_xvcvspdp): ... this. New. And...
18615 (vsx_xvcvdpsp): ... this. New.
18617 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18619 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
18621 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
18622 (rest of file): Adjust.
18624 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18626 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
18627 (vsx_extract_<mode>_var): Ditto.
18629 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18631 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
18634 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18636 * config/rs6000/constraints.md (define_register_constraint "ww"):
18638 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18639 (rs6000_init_hard_regno_mode_ok): Adjust.
18640 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18641 RS6000_CONSTRAINT_ww.
18642 * config/rs6000/rs6000.md: Adjust.
18643 * config/rs6000/vsx.md: Adjust.
18644 * doc/md.texi (Machine Constraints): Adjust.
18646 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18648 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
18649 (define_mode_attr sd): New.
18650 (define_mode_attr s): New.
18651 (define_mode_attr Ftrad): Delete.
18652 (define_mode_attr Fvsx): Delete.
18653 (define_mode_attr Fs): Delete.
18654 (rest of file): Use the new mode attributes.
18655 * config.rs6000/vsx.md: Use the new mode attributes.
18657 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18659 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
18662 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18664 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
18665 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
18666 used with VSX_B, VSX_D, or VSX_F, with just "wa".
18668 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
18671 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
18672 C++ with strict ANSI requirements.
18674 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
18676 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
18677 computations when step is 1.
18679 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18681 * config/rs6000/constraints.md (define_register_constraint "wf"):
18683 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18684 (rs6000_init_hard_regno_mode_ok): Adjust.
18685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18686 RS6000_CONSTRAINT_wf.
18687 * config/rs6000/rs6000.md: Adjust.
18688 * config/rs6000/vsx.md: Adjust.
18689 * doc/md.texi (Machine Constraints): Adjust.
18691 2019-06-04 Andrew Pinski <apinski@marvell.com>
18693 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
18696 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18698 * config/rs6000/constraints.md (define_register_constraint "wd"):
18700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18701 (rs6000_init_hard_regno_mode_ok): Adjust.
18702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18703 RS6000_CONSTRAINT_wd.
18704 * config/rs6000/rs6000.md: Adjust.
18705 * config/rs6000/vsx.md: Adjust.
18706 * doc/md.texi (Machine Constraints): Adjust.
18708 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18710 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
18711 (rest of file): Adjust.
18713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18715 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
18716 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
18717 (vsx_splat_<mode>_reg): Adjust.
18719 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18721 * config/rs6000/constraints.md (define_register_constraint "ws"):
18723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18724 (rs6000_init_hard_regno_mode_ok): Adjust.
18725 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18726 RS6000_CONSTRAINT_ws.
18727 * config/rs6000/rs6000.md: Adjust.
18728 * config/rs6000/vsx.md: Adjust.
18729 * doc/md.texi (Machine Constraints): Adjust.
18731 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18733 * config/rs6000/constraints.md (define_register_constraint "wv"):
18735 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18736 (rs6000_init_hard_regno_mode_ok): Adjust.
18737 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18738 RS6000_CONSTRAINT_wv.
18739 * config/rs6000/rs6000.md: Adjust.
18740 * config/rs6000/vsx.md: Adjust.
18741 * doc/md.texi (Machine Constraints): Adjust.
18743 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
18745 * config/rs6000/constraints.md (define_register_constraint "wi"):
18747 (define_register_constraint "wt"): Delete.
18748 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18749 (rs6000_init_hard_regno_mode_ok): Adjust.
18750 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18751 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
18752 * config/rs6000/rs6000.md: Adjust.
18753 * config/rs6000/vsx.md: Adjust.
18754 * doc/md.texi (Machine Constraints): Adjust.
18756 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18758 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
18760 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
18761 default_elf_asm_output_external.
18763 2019-06-04 Martin Liska <mliska@suse.cz>
18765 * ipa-icf.c (INCLUDE_LIST): Remove.
18766 (sem_item_optimizer::execute): Remove call to init_wpa.
18767 * ipa-icf.h (init_wpa): Remove.
18769 2019-06-04 Jakub Jelinek <jakub@redhat.com>
18771 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
18772 conditional on combined for simd.
18773 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
18775 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
18776 constructs, don't remove lastprivate_conditional_map, but instead set
18777 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
18778 to parent construct temporaries.
18779 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
18780 like !ctx->lastprivate_conditional_map.
18781 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
18782 use up->outer context instead of up.
18783 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
18784 gimple_omp_for_combined_p.
18785 (expand_omp_for_static_nochunk): Likewise.
18786 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
18787 probably moved over into expand_omp_for_generic rather than being copied
18790 2019-06-04 Martin Liska <mliska@suse.cz>
18792 * value-prof.c (dump_histogram_value): Fix typo.
18793 (gimple_mod_subtract_transform): Likewise.
18795 2019-06-04 Richard Biener <rguenther@suse.de>
18797 PR middle-end/90726
18798 * tree-chrec.c (chrec_contains_symbols): Add to visited.
18799 (tree_contains_chrecs): Likewise.
18800 (chrec_contains_symbols_defined_in_loop): Move here and avoid
18801 exponential behaivor from ...
18802 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18804 (expression_expensive_p): Avoid exponential behavior and compute
18805 expanded size, rejecting any expansion.
18806 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
18807 (idx_contains_abnormal_ssa_name_p): Likewise.
18808 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
18809 (contains_abnormal_ssa_name_p): Simplify and use
18810 walk_tree_without_duplicates.
18812 2019-06-04 Richard Biener <rguenther@suse.de>
18814 PR tree-optimization/90738
18816 2019-06-03 Richard Biener <rguenther@suse.de>
18818 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
18819 full reference tree and record in ref->ref.
18820 (vn_reference_lookup_3): Pass in original ref to
18821 ao_ref_init_from_vn_reference.
18822 (vn_reference_lookup): Likewise.
18823 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
18824 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18825 Handle non-decl bases in the original reference.
18827 2019-06-04 Martin Liska <mliska@suse.cz>
18829 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
18830 number of references.
18831 (sem_item_optimizer::do_congruence_step):
18832 (sem_item_optimizer::worklist_push): Dump how references
18834 (sem_item_optimizer::worklist_pop): Use heap.
18835 (sem_item_optimizer::process_cong_reduction): Likewise.
18836 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
18838 2019-06-04 Martin Liska <mliska@suse.cz>
18840 * ipa-icf.h (struct sem_usage_pair_hash): New.
18841 (sem_usage_pair_hash::hash): Likewise.
18842 (sem_usage_pair_hash::equal): Likewise.
18843 (struct sem_usage_hash): Likewise.
18844 * ipa-icf.c (sem_item::sem_item): Initialize
18845 referenced_by_count.
18846 (sem_item::add_reference): Register a reference
18847 in ref_map and not in target->usages.
18848 (sem_item::setup): Remove initialization of
18850 (sem_item::~sem_item): Remove usage of dead vectors.
18851 (sem_item::dump): Remove dump of references.
18852 (sem_item_optimizer::sem_item_optimizer): Initialize
18854 (sem_item_optimizer::read_section): Remove useless
18856 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
18857 (sem_item_optimizer::build_graph): Pass m_references
18858 to ::add_reference.
18859 (sem_item_optimizer::verify_classes): Remove usage of dead
18861 (sem_item_optimizer::traverse_congruence_split): Return true
18862 when a class is split.
18863 (sem_item_optimizer::do_congruence_step_for_index): Use
18864 hash_map for look up of (sem_item *, index). That brings
18865 significant speed up.
18866 (sem_item_optimizer::do_congruence_step): Return true
18867 when a split is done.
18868 (congruence_class::is_class_used): Use referenced_by_count.
18870 2019-06-04 Alan Modra <amodra@gmail.com>
18873 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
18876 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18878 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
18879 * config/rs6000/rs6000.c (direct_move_p): Adjust.
18880 (rs6000_secondary_reload_simple_move): Adjust.
18881 (rs6000_opt_masks): Neuter the "mfpgpr" option.
18882 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
18883 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
18886 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
18887 (floatunssi<mode>2_lfiwzx): Adjust.
18888 (fix_trunc<mode>si2_stfiwx): Adjust.
18889 (fixuns_trunc<mode>si2_stfiwx): Adjust.
18890 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
18891 (mfpgpr): Mark as deprecated.
18892 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
18893 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
18894 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
18896 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18898 * config/rs6000/constraints.md (define_register_constraint "wg"):
18900 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18901 RS6000_CONSTRAINT_wg.
18902 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18903 (rs6000_init_hard_regno_mode_ok): Adjust.
18904 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
18905 Delete "wg" alternatives.
18906 * doc/md.texi (Machine Constraints): Adjust.
18908 2019-06-03 Alan Modra <amodra@gmail.com>
18910 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
18911 (get_uncond_jump_length): Assert length less than INT_MAX and
18914 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
18916 PR middle-end/64242
18917 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
18919 (expand_builtin_nonlocal_goto): Likewise.
18921 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18923 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
18924 (aarch64_asm_output_external): Declare.
18925 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
18926 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
18927 (aarch64_asm_output_alias): New.
18928 (aarch64_asm_output_external): New.
18929 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
18930 (ASM_OUTPUT_EXTERNAL): Define.
18932 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
18933 * tree-vrp.h (value_range_base::nonzero_p): New.
18934 (value_range_base::set_nonnull): Rename to...
18935 (value_range_base::set_nonzero): ...this.
18936 (value_range_base::set_null): Rename to...
18937 (value_range_base::set_zero): ...this.
18938 (value_range::set_nonnull): Remove.
18939 (value_range::set_null): Remove.
18940 * tree-vrp.c (range_is_null): Remove.
18941 (range_is_nonnull): Remove.
18942 (extract_range_from_binary_expr): Use value_range_base::*zero_p
18943 instead of range_is_*null.
18944 (extract_range_from_unary_expr): Same.
18945 (value_range_base::set_nonnull): Rename to...
18946 (value_range_base::set_nonzero): ...this.
18947 (value_range::set_nonnull): Remove.
18948 (value_range_base::set_null): Rename to...
18949 (value_range_base::set_zero): ...this.
18950 (value_range::set_null): Remove.
18951 (extract_range_from_binary_expr): Rename set_*null uses to
18953 (extract_range_from_unary_expr): Same.
18954 (union_helper): Same.
18955 * vr-values.c (get_value_range): Use set_*zero instead of
18957 (vr_values::extract_range_from_binary_expr): Same.
18958 (vr_values::extract_range_basic): Same.
18960 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
18963 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
18965 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18967 * config/aarch64/iterators.md (MAX_OPP): New code attr.
18968 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
18970 (aarch64_<su>abd<mode>_3): ... This.
18971 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
18973 2019-06-03 Richard Biener <rguenther@suse.de>
18975 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
18976 full reference tree and record in ref->ref.
18977 (vn_reference_lookup_3): Pass in original ref to
18978 ao_ref_init_from_vn_reference.
18979 (vn_reference_lookup): Likewise.
18980 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
18981 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18982 Handle non-decl bases in the original reference.
18984 2019-06-03 Martin Liska <mliska@suse.cz>
18986 * doc/generic.texi: Remove Java Trees.
18988 2019-06-03 Martin Liska <mliska@suse.cz>
18990 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
18991 returns 0 when operands are equal.
18993 2019-06-03 Richard Biener <rguenther@suse.de>
18995 PR tree-optimization/90716
18996 * tree-loop-distribution.c (destroy_loop): Process blocks in
18999 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19002 * vector-builder.h (vector_builder::count_dups): New method.
19003 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
19005 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
19006 (vec_init<mode><Vel>): New pattern.
19007 * config/aarch64/aarch64.c (emit_insr): New function.
19008 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
19009 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
19010 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
19011 (aarch64_sve_expand_vector_init): Define two overloaded functions.
19013 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19015 PR tree-optimization/90681
19016 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
19017 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
19018 special case for SLP, but fail on non-groupped loads.
19020 2019-06-03 Martin Liska <mliska@suse.cz>
19022 * cfg.c (debug): Use TDF_DETAILS for debug and
19023 print edge info only once.
19025 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
19028 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
19030 2019-06-01 Martin Sebor <msebor@redhat.com>
19032 PR middle-end/90694
19033 * tree-pretty-print.c (dump_generic_node): Add parentheses.
19035 2019-05-31 Jan Hubicka <jh@suse.cz>
19037 * alias.c: Include ipa-utils.h.
19038 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
19039 * ipa-devirt.c (prevailing_odr_type): New.
19040 * ipa-utils.h (previaling_odr_type): Declare.
19042 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
19043 Hongtao Liu <hongtao.liu@intel.com>
19046 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
19047 NOTE_INSN_DELETED_LABEL check.
19049 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
19050 Robert Suchanek <robert.suchanek@mips.com>
19052 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
19053 and 3rd operands of the fmadd/fmsub/maddv builtin.
19055 2019-05-31 Jakub Jelinek <jakub@redhat.com>
19057 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
19058 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
19059 on OMP_SIMD if not nested inside of worksharing loop that also has
19060 lastprivate conditional clause for the same decl.
19061 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
19062 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
19064 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
19066 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
19068 (lower_lastprivate_clauses): Likewise.
19069 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
19070 calling lower_rec_input_clauses.
19071 (lower_omp_for): Likewise.
19072 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
19073 clause on simd construct.
19074 * omp-expand.c (expand_omp_simd): Initialize cond_var if
19075 OMP_CLAUSE__CONDTEMP_ clause is present.
19077 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
19080 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
19083 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
19084 TEX_D32, TEX_D64 or TEX_D128.
19086 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
19088 * match.pd (~(vec?cst1:cst2)): New transformation.
19090 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
19092 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
19093 ((size_t)(A /[ex] B) CMP C): New transformation.
19095 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
19097 * doc/md.texi: Document define_insn_and_rewrite.
19098 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
19099 * gensupport.c (queue_elem): Update comment.
19100 (replace_operands_with_dups): New function.
19101 (gen_rewrite_sequence): Likewise.
19102 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
19103 * read-rtl.c (apply_subst_iterator): Likewise.
19104 (add_condition_to_rtx, named_rtx_p): Likewise.
19105 (rtx_reader::read_rtx_operand): Likewise.
19106 * config/aarch64/aarch64-sve.md
19107 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
19108 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
19109 define_insn_and_rewrite.
19110 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
19111 Remove separate define_split.
19113 2019-05-31 Jan Hubicka <jh@suse.cz>
19115 * tree-ssa-alias.c (type_has_components_p): New function.
19116 (aliasing_component_refs_p): Use it.
19118 2019-05-31 Martin Liska <mliska@suse.cz>
19120 * gdbhooks.py: Add const_tree to TreePrinter.
19122 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
19125 * common.opt (feliminate-unused-debug-symbols): Enable by default.
19126 * doc/invoke.texi (Debugging Options): Document new default of
19127 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
19129 2019-05-31 Jakub Jelinek <jakub@redhat.com>
19131 PR tree-optimization/90671
19132 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
19133 template_block used to be empty on the first call, don't use
19134 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
19135 seq with bb_seq and set it with set_bb_seq.
19137 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
19139 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
19141 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
19142 Michael Meissner <meissner@linux.ibm.com>
19144 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
19145 (prefixed_mem_operand): Likewise.
19146 (non_prefixed_mem_operand): Likewise.
19147 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
19149 * config/rs6000/rs6000.c (print_operand_address): Handle
19150 PC-relative addresses.
19151 (mode_supports_prefixed_address_p): New function.
19152 (rs6000_prefixed_address): New function.
19153 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
19154 (SYMBOL_REF_PCREL_P): Likewise.
19156 2019-05-30 Jakub Jelinek <jakub@redhat.com>
19158 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
19159 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
19160 (gimplify_omp_for): If worksharing loop with lastprivate conditional
19161 is nested inside of parallel region, add _condtemp_ clause to both.
19162 * tree-nested.c (convert_nonlocal_omp_clauses,
19163 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
19165 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
19167 * omp-general.c (omp_extract_for_data): Compute it.
19168 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
19169 (lower_rec_input_clauses): Likewise.
19170 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
19171 clause is already present, just add one further one after it.
19172 (lower_lastprivate_clauses): Handle cond_ptr with array type.
19173 (lower_send_shared_vars): Clear _condtemp_ vars.
19174 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
19175 or section or taskgroup.
19176 * omp-expand.c (determine_parallel_type): Disallow combining only if
19177 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
19178 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
19179 (expand_omp_for_generic, expand_omp_for_static_nochunk,
19180 expand_omp_for_static_chunk, expand_omp_for): Use
19181 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
19182 determine if a special set of API routines are needed and if condtemp
19183 needs to be initialized, while always initialize cond_var if
19184 fd->lastprivate_conditional is non-zero.
19186 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
19187 Michael Meissner <meissner@linux.ibm.com>
19189 * config/rs6000/constraints.md (eI): New constraint.
19190 * config/rs6000/predicates.md (cint34_operand): New predicate.
19191 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
19192 (SIGNED_34BIT_OFFSET_P): Likewise.
19193 * doc/md.texi (eI): Document constraint.
19195 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
19197 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
19199 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
19200 Michael Meissner <meissner@linux.ibm.com>
19202 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
19203 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
19204 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
19205 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
19206 (OTHER_FUTURE_MASKS): Likewise.
19207 (POWERPC_MASKS): Likewise.
19208 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
19209 specified without -mprefixed-addr or -mcpu=future. Error if
19210 -mprefixed-addr is specified without -mcpu=future.
19211 (rs6000_opt_masks): Add entry for prefixed-addr.
19212 * rs6000.opt (mprefixed-addr): New option.
19214 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
19216 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
19217 cfun->is_thunk check.
19219 2019-05-30 Jakub Jelinek <jakub@redhat.com>
19221 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
19224 2019-05-30 Martin Liska <mliska@suse.cz>
19226 * gdbinit.in: Fix 'ptc' command. Add trt
19227 that prints TREE_TYPE($).
19229 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
19230 Alan Modra <amodra@gmail.com>
19232 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
19234 (rs6000_indirect_call_template_1): ...and here.
19235 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
19236 plt16_ha, plt16_lo, mtctr indirect calls. Use
19237 rs6000_pltseq_enum.
19238 (rs6000_decl_ok_for_sibcall): New function.
19239 (rs6000_function_ok_for_sibcall): Refactor.
19240 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
19241 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
19242 when pcrel. Reorganize.
19243 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
19244 * rs6000.h (rs6000_pltseq_enum): New enum.
19245 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
19246 (*pltseq_tocsave): Use rs6000_pltseq_enum.
19247 (*pltseq_plt16_ha): Likewise.
19248 (*pltseq_plt16_lo): Likewise.
19249 (*pltseq_mtctr): Likewise.
19250 (*pltseq_plt_pcrel): New insn.
19251 (*call_local_aix): Handle @notoc calls.
19252 (*call_value_local_aix): Likewise.
19253 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
19254 (*call_value_nonlocal_aix): Likewise.
19255 (*call_indirect_pcrel): New insn.
19256 (*call_value_indirect_pcrel): Likewise.
19258 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
19260 * config/i386/sse.md (*save_multiple<mode>): Rename from
19261 save_multiple<mode>.
19262 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
19263 (*restore_multiple_and_return<mode>): Rename from
19264 restore_multiple_and_return<mode>.
19265 (*restore_multiple_leave_return<mode>): Rename from
19266 restore_multiple_leave_return<mode>.
19268 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
19270 * config.gcc (rx-*-linux*): New target.
19271 * config/rx/elf.opt: New file.
19272 * config/rx/linux.h: Likewise.
19273 * config/rx/t-linux: Likewise.
19274 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
19276 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
19277 (ASM_APP_OFF): Likewise.
19278 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
19281 2019-05-29 Jan Hubicka <jh@suse.cz>
19283 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
19284 variants are pointer equivalent.
19286 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19288 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
19289 * config/aarch64/aarch64-sve2.md: New file.
19290 (<u>avg<mode>3_floor): New pattern.
19291 (<u>avg<mode>3_ceil): Likewise.
19292 (*<sur>h<addsub><mode>): Likewise.
19293 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
19294 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
19296 2019-05-29 Jakub Jelinek <jakub@redhat.com>
19299 * optc-save-gen.awk: In cl_optimization_print, use correct condition
19300 for var_opt_string printing. In cl_optimization_print_diff, print
19301 (null) instead of invoking undefined behavior if one of the
19302 var_opt_string pointers is NULL and use && instead of first || in the
19303 guarding condition. For var_target_other options, handle const char *
19304 target variables similarly to const char * optimize node variables.
19306 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
19308 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
19309 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
19310 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
19311 Add autib1716 and pacib1716 initialisation.
19312 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
19313 for autib1716 and pacib1716.
19314 * config/aarch64/aarch64-protos.h (aarch64_key_type,
19315 aarch64_post_cfi_startproc): Define.
19316 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
19317 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
19318 aarch64_handle_pac_ret_protection): Set default sign key to A.
19319 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
19320 aarch64_expand_prologue): Add check for b-key.
19321 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
19322 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
19323 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
19324 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
19325 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
19326 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
19327 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
19328 * config/aarch64/aarch64.md (do_return): Add check for b-key.
19329 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
19330 pauth_hint_num_a with pauth_hint_num.
19331 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
19332 pauth_hint_num_a with pauth_hint_num.
19333 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
19334 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
19335 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
19336 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
19337 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
19338 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
19339 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
19340 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
19341 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
19342 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
19343 UNSPEC_AUTIA1716 respectively.
19344 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
19345 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
19346 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
19347 * doc/invoke.texi (-mbranch-protection): Add b-key type.
19348 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
19349 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
19351 2019-05-29 Jakub Jelinek <jakub@redhat.com>
19353 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
19354 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
19355 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
19356 explicit clause on combined parallel into implicit shared clause.
19357 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
19358 and firstprivate if the decl has one too from combined parallel to
19359 the worksharing construct.
19361 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
19362 Michael Meissner <meissner@linux.ibm.com>
19364 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
19366 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
19368 * rtl.h (LABEL_REF_P): New #define.
19370 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
19372 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
19374 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19376 * internal-fn.c: Marked mask_load_direct as vectorizable.
19377 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
19378 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
19379 combined even if masks different with allow_slp_p param.
19380 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
19381 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
19382 dissolve SLP-only vectorizable groups when SLP has been discarded.
19383 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
19384 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
19386 (vect_build_slp_tree_1): Fixed comment typo.
19387 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
19388 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
19389 loads for SLP only.
19390 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
19392 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
19394 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19396 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
19397 Remove obsolete use_thunk reference.
19398 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
19399 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19400 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
19401 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
19402 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
19403 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
19404 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19405 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
19406 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
19408 2019-05-28 Nathan Sidwell <nathan@acm.org>
19410 * tree.h (IDENTIFIER_ANON_P): New.
19411 (anon_aggrname_format, anon_aggname_p): Don't declare.
19412 (make_anon_name): Declare.
19413 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
19414 (hash_tree): Likewise.
19415 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
19416 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
19417 (anon_cnt, make_anon_name): New.
19419 2019-05-28 Martin Liska <mliska@suse.cz>
19422 * opts-global.c (decode_options): Print help for all
19423 help_option_arguments.
19424 * opts.c (print_help): Add new argument.
19425 (common_handle_option): Remember all values into
19426 help_option_arguments.
19427 * opts.h (print_help): Add new argument.
19429 2019-05-28 Martin Liska <mliska@suse.cz>
19432 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
19433 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
19434 (func_checker::compare_bb): Call compare_loops.
19436 2019-05-27 Jakub Jelinek <jakub@redhat.com>
19438 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
19439 on sections construct.
19440 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
19442 (lower_omp_sections): Handle lastprivate conditional.
19443 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
19444 lastprivate_conditional_map.
19445 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
19447 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
19448 critical, taskgroup and section regions when looking for a region
19449 with non-NULL lastprivate_conditional_map.
19451 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
19453 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
19454 (*ix86_gen_sub3): Ditto.
19455 (*ix86_gen_sub3_carry): Ditto.
19456 (*ix86_gen_one_cmpl2): Ditto.
19457 (*ix86_gen_andsp): Ditto.
19458 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
19459 (gen_and2_insn): New static function.
19460 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
19461 Use gen_add3_insn instead of ix86_gen_add3.
19462 (ix86_expand_split_stack_prologue): Use gen_add2_insn
19463 instead of ix86_gen_add3.
19464 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
19465 Use gen_sub3_insn instead of ix86_gen_sub3.
19466 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
19467 instead of ix86_gen_add3.
19468 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
19469 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
19470 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
19471 * config/i386/i386-options.c (ix86_option_override_internal):
19472 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
19473 ix86_gen_one_cmpl2 and ix86_gen_andsp.
19475 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
19477 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
19478 and DW_OP_GNU_const_index opcodes.
19480 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
19482 * config/i386/i386.h (STACK_SIZE_MODE): Define.
19484 2019-05-27 Richard Biener <rguenther@suse.de>
19486 PR tree-optimization/90637
19487 * tree-ssa-sink.c (statement_sink_location): Honor the
19488 computed sink location for single-uses.
19490 2019-05-27 Richard Biener <rguenther@suse.de>
19492 PR middle-end/90610
19493 * match.pd (vec_perm): Avoid clobbering op0 when not generating
19496 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
19498 * config/i386/i386.md (@sub<mode>3_carry): Rename
19499 from sub<mode>3_carry.
19500 (@leave_<mode>): New expander.
19501 (*leave): Rename from leave.
19502 (*leave_rex64): Rename from leave_rex64.
19503 (@monitorx_<mode>): Rename from monitorx_<mode>.
19504 (@clzero_<mode>): Rename from clzero_<mode>.
19505 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
19506 from sse3_monitor_<mode>.
19507 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
19508 (*ix86_gen_leave): Ditto.
19509 (*ix86_gen_monitor): Ditto.
19510 (*ix86_gen_monitorx): Ditto.
19511 (*ix86_gen_clzero): Ditto.
19512 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
19513 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
19514 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
19515 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
19516 Use gen_sse3_monitor instead of ix86_gen_monitor.
19517 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
19518 instead of ix86_gen_monitorx.
19519 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
19520 instead of ix86_gen_clzero.
19521 * config/i386/i386-options.c (ix86_option_override_internal):
19522 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
19523 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
19525 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
19527 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
19528 Rename from tls_global_dynamic_64_<mode>.
19529 (@tls_local_dynamic_base_64_<mode>): Rename from
19530 tls_local_dynamic_base_64_<mode>.
19531 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
19532 Remove indirect function.
19533 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
19534 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
19535 instead of ix86_gen_tls_global_dynamic_64.
19536 Use gen_tls_local_dynamic_base_64 instead of
19537 ix86_gen_tls_local_dynamic_base_64.
19538 * config/i386/i386-options.c (ix86_option_override_internal):
19539 Do not initialize ix86_gen_tls_global_dynamic_64 and
19540 ix86_gen_tls_local_dynamic_base_64.
19542 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
19544 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
19545 Rename from pro_epilogue_adjust_stack_<mode>_add.
19546 (@pro_epilogue_adjust_stack_sub_<mode>)
19547 Rename from pro_epilogue_adjust_stack_<mode>_sub.
19548 (@allocate_stack_worker_probe_<mode>):
19549 Rename from allocate_stack_worker_probe_<mode>.
19550 (allocate_stack): Use gen_allocate_stack_worker_probe.
19551 (probe_stack): Use gen_probe_stack_1.
19552 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
19553 (@adjust_stack_and_probe_<mode>): Rename from
19554 adjust_stack_and_probe<mode>.
19555 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
19556 (stack_protect_set): Use gen_stack_protect_set_1.
19557 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
19558 (stack_protect_test): Use gen_stack_protect_test_1.
19559 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
19560 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
19561 Remove indirect function.
19562 (*ix86_gen_adjust_stack_and_probe): Ditto.
19563 (*ix86_gen_probe_stack_range): Ditto.
19564 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
19565 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
19566 (ix86_adjust_stack_and_probe_stack_clash): Use
19567 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
19568 (ix86_adjust_stack_and_probe): Ditto.
19569 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
19570 of ix86_gen_probe_stack_range.
19571 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
19572 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
19573 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
19574 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
19575 CODE_FOR_stack_protect_test_{si,di}.
19576 * config/i386/i386-options.c (ix86_option_override_internal):
19577 Do not initialize ix86_gen_allocate_stack_worker,
19578 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
19580 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
19582 * doc/invoke.texi (Link Options): Many editorial changes around
19585 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19587 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
19588 pre-Solaris 11 referene and most Studio compiler details.
19590 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
19593 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
19594 DImode to SImode in floating-point registers on 64-bit target.
19595 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
19596 register_operand in xmpyu patterns.
19598 2019-05-24 Jakub Jelinek <jakub@redhat.com>
19600 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
19601 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
19602 OMP_CLAUSE__REDUCTEMP_.
19603 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19604 OMP_CLAUSE__CONDTEMP_.
19605 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
19606 * tree-pretty-print.c (dump_omp_clause): Likewise.
19607 * tree-nested.c (convert_nonlocal_omp_clauses,
19608 convert_local_omp_clauses): Likewise.
19609 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
19610 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
19611 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
19613 (gimplify_omp_for): Warn and disable conditional modifier from
19614 lastprivate on loop iterators.
19615 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
19617 * omp-general.c (omp_extract_for_data): Initialize it.
19618 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
19620 (delete_omp_context): Delete it.
19621 (lower_lastprivate_conditional_clauses): New function.
19622 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
19623 handle lastprivate conditional clauses.
19624 (lower_reduction_clauses): Add CLIST argument, emit it into
19625 the critical section if any.
19626 (lower_omp_sections): Adjust lower_lastprivate_clauses and
19627 lower_reduction_clauses callers.
19628 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
19629 to lower_lastprivate_clauses.
19630 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
19631 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
19632 clist into a critical section if not emitted there already by
19633 lower_reduction_clauses.
19634 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
19636 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
19637 conditional variables.
19638 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
19640 (expand_omp_for_generic, expand_omp_for_static_nochunk,
19641 expand_omp_for_static_chunk): Handle lastprivate conditional.
19642 (expand_omp_for): Handle fd.lastprivate_conditional like
19645 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
19647 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
19648 kernel does not exit cleanly.
19649 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
19651 2019-05-24 Jason Merrill <jason@redhat.com>
19654 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
19656 2019-05-24 Richard Biener <rguenther@suse.de>
19659 * tree-loop-distribution.c (struct partition): Add location
19661 (partition_alloc): Initialize all fields.
19662 (generate_memset_builtin): Use the location recorded in the
19663 partition for the generated call.
19664 (generate_memcpy_builtin): Likewise.
19665 (classify_partition): Record the location of a single store
19666 as location for the partition.
19668 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
19670 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
19673 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
19676 * common/config/aarch64/aarch64-common.c
19677 (aarch64_rewrite_selected_cpu): Change local temporary variable
19678 type from unsigned long to uint64_t.
19679 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
19680 aarch64_get_extension_string_for_isa_flags): Change declaration to
19681 match new definition by replacing unsigned long with uint64_t.
19683 2019-05-24 Jakub Jelinek <jakub@redhat.com>
19686 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
19687 gen_attr_type just once instead of 4-7 times. Formatting fixes.
19688 Handle stack_protect_test_<mode> codegen similarly to corresponding
19691 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
19693 * config/i386/darwin.h: Reject -mfentry*.
19694 * doc/sourcebuild.texi: Document mfentry target support.
19696 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
19698 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
19699 Rename to rs6000_global_entry_point_prologue_needed_p. Return
19700 false for PC-relative functions.
19701 (rs6000_output_function_prologue): Change called function name to
19702 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
19703 name,1" for PC-relative functions.
19704 (rs6000_elf_declare_function_name): Change called function name to
19705 rs6000_global_entry_point_prologue_needed_p.
19707 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
19710 * config/i386/i386.c (gen_rtx_cost):
19711 Use ix86_tune_cost instead of ix86_cost.
19713 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
19714 Michael Meissner <meissner@linux.ibm.com>
19715 Segher Boessenkool <segher@kernel.crashing.org>
19717 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
19719 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
19720 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
19721 (rs6000_fndecl_pcrel_p): Likewise.
19722 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
19723 error if -mpcrel is requested without -mcpu=future.
19724 (rs6000_opt_masks): Add entry for pcrel.
19725 (rs6000_fndecl_pcrel_p): New function.
19726 (rs6000_pcrel_p): Likewise.
19727 * config/rs6000/rs6000.opt (mpcrel): New option.
19728 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
19730 2019-05-23 Jan Hubicka <jh@suse.cz>
19731 Martin Liska <mliska@suse.cz>
19733 PR tree-optimization/90576
19734 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
19736 (aliasing_component_refs_p): Fix three way size compare conditional;
19737 give up earlier in case we can not decide on equivalence.
19739 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
19740 Michael Meissner <meissner@linux.ibm.com>
19741 Segher Boessenkool <segher@kernel.crashing.org>
19743 * config.gcc: Add future cpu.
19744 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
19745 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
19747 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
19748 (RS6000_CPU): New instantiation for future cpu.
19749 * config/rs6000/rs6000-opts.h (enum processor_type): Add
19751 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
19752 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
19753 * config/rs6000/rs6000-tables.opt: Regenerate.
19754 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
19755 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
19756 (rs6000_machine_from_flags): Handle future cpu.
19757 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
19758 PROCESSOR_POWER9 for now.
19759 (rs6000_adjust_cost): Likewise.
19760 (rs6000_issue_rate): Likewise.
19761 (rs6000_register_move_cost): Likewise.
19762 (rs6000_opt_masks): Add entry for future.
19763 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
19764 (MASK_FUTURE): New #define.
19765 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
19766 * config/rs6000/rs6000.opt (mfuture): New target option.
19767 * doc/invoke.texi (mcpu): Add future cpu.
19769 2019-05-23 Martin Liska <mliska@suse.cz>
19772 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
19773 operation points to a temporary (pointed via tree_to_wide_ref)
19774 that is out of scope after the &.
19776 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
19779 * doc/extend.texi (Function Names): Add missing word.
19781 2019-05-23 Richard Biener <rguenther@suse.de>
19783 PR tree-optimization/88440
19784 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
19786 * tree-loop-distribution.c (generate_memset_builtin): Fold the
19788 (generate_memcpy_builtin): Likewise.
19789 (distribute_loop): Pass in whether to only distribute patterns.
19790 (prepare_perfect_loop_nest): Also allow size optimization.
19791 (pass_loop_distribution::execute): When optimizing a loop
19792 nest for size allow pattern replacement.
19794 2019-05-23 Jakub Jelinek <jakub@redhat.com>
19797 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
19800 2019-05-23 Martin Liska <mliska@suse.cz>
19803 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
19804 expression similarly to gimplify_decl_expr.
19806 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19808 * cse.c (cse_dump_path): s/dump_file/f.
19810 2019-05-22 David Malcolm <dmalcolm@redhat.com>
19813 * diagnostic-format-json.cc: Include "selftest.h".
19814 (json_from_expanded_location): Only add "file" key for non-NULL
19816 (json_from_location_range): Don't add "start" and "finish"
19817 children if they are UNKNOWN_LOCATION.
19818 (selftest::test_unknown_location): New selftest.
19819 (selftest::test_bad_endpoints): New selftest.
19820 (selftest::diagnostic_format_json_cc_tests): New function.
19821 * json.cc (json::object::get): New function.
19822 (selftest::test_object_get): New selftest.
19823 (selftest::json_cc_tests): Call it.
19824 * json.h (json::object::get): New decl.
19825 * selftest-run-tests.c (selftest::run_tests): Call
19826 selftest::diagnostic_format_json_cc_tests.
19827 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
19830 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
19831 Andrew Stubbs <amd@codesourcery.com>
19833 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
19834 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
19835 (kernel): Rename to...
19836 (main_kernel): ... this.
19837 (load_image): Load _init_array and _fini_array kernels.
19838 (run): Add argument for kernel to run.
19839 (main): Run init_array_kernel before main_kernel, and
19840 fini_array_kernel after.
19841 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
19842 amdgpu_hsa_kernel attribute on functions.
19843 (gcn_disable_constructors): Delete.
19844 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
19845 * config/gcn/crt0.c (size_t): Define.
19846 (_init_array, _fini_array): New.
19847 (__preinit_array_start, __preinit_array_end,
19848 __init_array_start, __init_array_end,
19849 __fini_array_start, __fini_array_end): Declare weak references.
19851 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
19853 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
19855 2019-05-22 Jason Merrill <jason@redhat.com>
19857 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
19859 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
19862 * config/i386/i386-options.c (ix86_init_machine_status): Set
19863 stack_frame_required to true.
19864 * config/i386/i386.c (ix86_get_frame_size): New function.
19865 (ix86_frame_pointer_required): Replace get_frame_size with
19866 ix86_get_frame_size.
19867 (ix86_compute_frame_layout): Likewise.
19868 (ix86_find_max_used_stack_alignment): Changed to void. Set
19869 stack_frame_required.
19870 (ix86_finalize_stack_frame_flags): Always call
19871 ix86_find_max_used_stack_alignment. Replace get_frame_size with
19872 ix86_get_frame_size.
19873 * config/i386/i386.h (machine_function): Add stack_frame_required.
19875 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
19877 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
19879 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
19881 * common/config/aarch64/aarch64-common.c
19882 (struct aarch64_option_extension, struct processor_name_to_arch,
19883 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
19884 aarch64_contains_opt,
19885 aarch64_get_extension_string_for_isa_flags): Change type of
19886 variables storing flags to uint64_t.
19887 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
19888 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
19889 * config/aarch64/aarch64.c (struct processor,
19890 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
19891 aarch64_validate_march, aarch64_override_options,
19892 aarch64_option_print, aarch64_handle_attr_isa_flags,
19893 aarch64_declare_function_name, aarch64_start_file): Make flag
19894 variables uint64_t.
19895 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
19896 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
19897 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
19898 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
19899 * config/aarch64/driver-aarch64.c
19900 (struct aarch64_arch_extension, struct aarch64_core_data,
19901 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
19902 flag variables uint64_t.
19903 * doc/invoke.texi: Add documentation for new arguments.
19905 2019-05-22 Richard Biener <rguenther@suse.de>
19907 * alias.c (ao_ref_from_mem): Move stack-slot sharing
19909 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
19911 2019-05-22 Martin Liska <mliska@suse.cz>
19914 * doc/extend.texi: Document the change.
19916 2019-05-22 Richard Biener <rguenther@suse.de>
19918 PR tree-optimization/90450
19919 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
19920 (mem_ref_hasher::equal): Check it.
19921 (mem_ref_alloc): Initialize it.
19922 (gather_mem_refs_stmt): Set it.
19924 2019-05-22 Richard Biener <rguenther@suse.de>
19926 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
19928 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
19931 2019-05-22 Alan Modra <amodra@gmail.com>
19933 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
19934 (ASM_CPU_SPEC): Conditionally add -many.
19935 * config/rs6000/rs6000.c (rs6000_machine): New static var.
19936 (rs6000_machine_from_flags, emit_asm_machine): New functions..
19937 (rs6000_file_start): ..extracted from here, and modified to
19939 (rs6000_output_function_prologue): Emit .machine as necessary.
19941 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
19943 PR middle-end/90553
19944 * ira-lives.c (process_bb_node_lives): Consider defs
19945 for a call insn to be die before the call, not after.
19947 * function.c (assign_parm_setup_block): Raise alignment of
19948 stacked parameter only for STRICT_ALIGNMENT targets.
19950 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19952 * config/rs6000/constraints.md (define_register_constraint "wz"):
19954 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19955 RS6000_CONSTRAINT_wz.
19956 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19957 (rs6000_init_hard_regno_mode_ok): Adjust.
19958 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
19959 * doc/md.texi (Machine Constraints): Adjust.
19961 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19963 * config/rs6000/constraints.md (define_register_constraint "wl"):
19965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19966 RS6000_CONSTRAINT_wl.
19967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19968 (rs6000_init_hard_regno_mode_ok): Adjust.
19969 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
19970 * doc/md.texi (Machine Constraints): Adjust.
19972 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19974 * config/rs6000/constraints.md (define_register_constraint "wm"):
19976 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19977 RS6000_CONSTRAINT_wm.
19978 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19979 (rs6000_init_hard_regno_mode_ok): Adjust.
19980 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
19981 * doc/md.texi (Machine Constraints): Adjust.
19983 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19985 * config/rs6000/constraints.md (define_register_constraint "wk"):
19987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19988 RS6000_CONSTRAINT_wk.
19989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19990 (rs6000_init_hard_regno_mode_ok): Adjust.
19991 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
19992 * doc/md.texi (Machine Constraints): Adjust.
19994 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19996 * config/rs6000/constraints.md (define_register_constraint "wj"):
19998 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19999 RS6000_CONSTRAINT_wj.
20000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20001 (rs6000_init_hard_regno_mode_ok): Adjust.
20002 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
20004 * config/rs6000/vsx.md: Ditto.
20005 * doc/md.texi (Machine Constraints): Adjust.
20007 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
20009 * config/rs6000/constraints.md (define_register_constraint "wh"):
20011 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20012 RS6000_CONSTRAINT_wh.
20013 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20014 (rs6000_init_hard_regno_mode_ok): Adjust.
20015 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
20016 * doc/md.texi (Machine Constraints): Adjust.
20018 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
20021 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20022 Avoid calling gen_lowpart with CONST operand.
20024 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
20026 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
20027 field template_last_to_copy.
20028 (ssa_create_duplicates): Set it, and use it. Attempt to
20029 preserve more debug stmts.
20031 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
20033 * config/i386/sse.md (VF1_AVX2): New mode iterator.
20034 (signbit<mode>2): New expander
20036 2019-05-21 James Clarke <jrtc27@jrtc27.com>
20039 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
20040 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
20042 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
20044 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
20045 %ebx and %ecx bafore calling cpuid with leaf 1 or
20046 non-constant leaf argument.
20048 2019-05-21 Alan Modra <amodra@gmail.com>
20051 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
20052 power9 direct move cost.
20054 2019-05-21 Richard Biener <rguenther@suse.de>
20056 PR middle-end/90510
20057 * fold-const.c (fold_read_from_vector): New function.
20058 * fold-const.h (fold_read_from_vector): Declare.
20059 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
20060 single-element insert permutations. Canonicalize selector
20061 further and fix issue with last commit.
20063 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
20065 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
20066 parameter with default value false to declaration.
20067 (split_edges_for_insertion): New inline function. Wrapper for
20068 split_critical_edges with for_edge_insertion_p = true.
20069 * tree-cfg.c (split_critical_edges): Don't split non-critical
20070 edges if for_edge_insertion_p is false. Fix whitespace.
20071 * tree-ssa-pre.c (pass_pre::execute): Call
20072 split_edges_for_insertion instead of split_critical_edges.
20073 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
20074 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
20075 (pass_data_sink_code): Update function name in the comment.
20077 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
20079 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
20080 around is_value_included_in that knows how to handle BIT_AND_EXPR.
20081 (is_pred_expr_subset_of): Use the new function. Handle more cases where
20082 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
20085 2019-05-21 Martin Liska <mliska@suse.cz>
20087 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
20089 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
20090 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
20092 * config/rs6000/rs6000.c (rs6000_option_override_internal):
20094 (rs6000_function_arg): Likewise.
20095 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
20096 (rs6000_expand_ternop_builtin): Use interval syntax.
20097 (get_element_number): Likewise.
20098 (altivec_expand_builtin): Likewise.
20099 (rs6000_get_function_versions_dispatcher): Quote target_clones.
20101 2019-05-20 Jakub Jelinek <jakub@redhat.com>
20105 * function.h (struct function): Add calls_eh_return member.
20106 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
20107 gimplifying __builtin_eh_return call.
20108 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
20110 (expand_call_inline): Or in src_cfun->calls_eh_return into
20111 dst_cfun->calls_eh_return.
20112 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
20113 cfun->calls_eh_return.
20114 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
20115 * lto-streamer-out.c (output_struct_function_base): Write
20118 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
20120 PR rtl-optimization/43147
20121 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
20122 IX86_BUILTIN_SHUFPD.
20124 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
20126 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
20127 (refs_may_alias_p_1): ... here; update stats.
20128 (refs_may_alias_p): Do not update stats here.
20130 2019-05-20 Richard Biener <rguenther@suse.de>
20132 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
20133 doesn't produce pointers.
20134 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
20135 the first operand points to.
20137 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
20139 * tree-ssa-alias.c (compare_sizes): New function.
20140 (sompare_type_sizes): New function
20141 (aliasing_component_refs_p): Use it.
20142 (indirect_ref_may_alias_decl_p): Likewise.
20144 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20146 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
20148 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20150 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
20151 (LIBLSAN_EARLY_SPEC): Likewise.
20152 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
20154 2019-05-20 Martin Liska <mliska@suse.cz>
20156 * config/i386/i386.c (ix86_libc_has_fast_function):
20157 Add ATTRIBUTE_UNUSED for the argument.
20159 2019-05-20 Richard Biener <rguenther@suse.de>
20161 * gimple-match-head.c: Include vec-perm-indices.h.
20162 * generic-match-head.c: Likewise.
20163 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
20165 * fold-const.c (fold_vec_perm): Export.
20166 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
20167 (match.pd): ...here.
20169 2019-05-20 Jakub Jelinek <jakub@redhat.com>
20171 * cfgloop.h (struct loop): Add simdlen member.
20172 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
20173 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
20174 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
20175 as new argument to autovectorize_vector_sizes target hook. If
20176 loop->simdlen, pick up vector size where the vectorization factor
20177 is equal to loop->simd, and if there is none, fall back to the first
20179 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
20181 * omp-low.c (omp_clause_aligned_alignment): Likewise.
20182 * omp-general.c (omp_max_vf): Likewise.
20183 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
20184 * tree-vect-slp.c (vect_slp_bb): Likewise.
20185 * target.def (autovectorize_vector_sizes): Add ALL argument and
20187 * doc/tm.texi: Adjust documentation.
20188 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
20189 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
20190 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
20192 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
20193 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
20194 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
20195 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
20196 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
20197 preferred vector size is not 512-bit or 256-bit, just put those
20198 unpreferred ones last.
20200 2019-05-20 Martin Liska <mliska@suse.cz>
20202 * targhooks.c (default_libc_has_fast_function): New function.
20203 * targhooks.h (default_libc_has_fast_function): Likewise.
20205 2019-05-20 Martin Liska <mliska@suse.cz>
20207 PR middle-end/90263
20208 * builtins.c (expand_builtin_memory_copy_args): When having a
20209 target with fast mempcpy implementation do now use memcpy.
20210 * config/i386/i386.c (ix86_libc_has_fast_function): New.
20211 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
20212 * doc/tm.texi: Likewise.
20213 * doc/tm.texi.in: Likewise.
20215 * expr.c (emit_block_move_hints): Add 2 new arguments.
20216 * expr.h (emit_block_move_hints): Bail out when libcall
20217 to memcpy would be used.
20219 2019-05-20 Martin Liska <mliska@suse.cz>
20221 * profile-count.c: Add vertical spacing in order
20222 to separate functions.
20223 * profile-count.h: Likewise.
20225 2019-05-20 Martin Liska <mliska@suse.cz>
20227 * profile-count.h: Do not use full qualified
20229 * profile-count.c (profile_count::to_frequency): Likewise.
20231 2019-05-20 Martin Liska <mliska@suse.cz>
20233 * profile-count.h (enum profile_quality): Use capital letters
20234 for enum value names. Use the adjusted names.
20235 * profile-count.c: Use the adjusted names.
20237 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20239 * config/rs6000/constraints.md (define_register_constraint "wH"):
20241 (define_register_constraint "wI"): Delete.
20242 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20243 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
20244 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20245 (rs6000_init_hard_regno_mode_ok): Adjust.
20246 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
20247 resp. "d", or with "wa" as appropriate, all with "p8v".
20248 * config/rs6000/vsx.md: Ditto.
20249 * doc/md.texi (Machine Constraints): Adjust.
20251 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20253 * config/rs6000/constraints.md (define_register_constraint "wy"):
20255 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20256 RS6000_CONSTRAINT_wy.
20257 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20258 (rs6000_init_hard_regno_mode_ok): Adjust.
20259 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
20260 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
20261 (define_mode_attr Fisa): New.
20262 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
20263 * doc/md.texi (Machine Constraints): Adjust.
20265 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20267 * config/rs6000/constraints.md (define_register_constraint "wu"):
20269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20270 RS6000_CONSTRAINT_wu.
20271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20272 (rs6000_init_hard_regno_mode_ok): Adjust.
20273 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
20275 (define_mode_attr Fa): Delete.
20276 * config/rs6000/vsx.md: Ditto.
20277 * doc/md.texi (Machine Constraints): Adjust.
20279 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20281 * config/rs6000/constraints.md (define_register_constraint "wJ"):
20283 (define_register_constraint "wK"): Delete.
20284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20285 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
20286 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20287 (rs6000_init_hard_regno_mode_ok): Adjust.
20288 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
20289 Replace "wK" constraint by "wH" with "p9v".
20290 * config/rs6000/vsx.md: Ditto.
20291 * doc/md.texi (Machine Constraints): Adjust.
20293 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20295 * config/rs6000/constraints.md (define_register_constraint "wb"):
20297 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20298 RS6000_CONSTRAINT_wb.
20299 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20300 (rs6000_init_hard_regno_mode_ok): Adjust.
20301 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
20302 * config/rs6000/vsx.md: Ditto.
20303 * doc/md.texi (Machine Constraints): Adjust.
20305 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20307 * config/rs6000/constraints.md (define_register_constraint "wo"):
20309 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20310 RS6000_CONSTRAINT_wo.
20311 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20312 (rs6000_init_hard_regno_mode_ok): Adjust.
20313 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
20314 * config/rs6000/altivec.md: Ditto.
20315 * doc/md.texi (Machine Constraints): Adjust.
20317 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
20319 * config/darwin-c.c (darwin_register_objc_includes): Do not
20320 prepend the sysroot when building gnu-runtime header search
20323 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
20325 * config/darwin.c (darwin_file_end): Use switch_to_section ()
20326 instead of direct output of the asm.
20328 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
20330 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
20331 argument to be type bool (was int before).
20332 (rs6000_emit_epilogue): Simplify some code. Declare some variables
20333 at first use. Use type bool for some variables. Fix a theoretical
20334 eh_return bug for svr4.
20336 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
20338 * config/rs6000/rs6000.md (isa): New attribute.
20339 (enabled): New attribute.
20341 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
20343 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
20344 assemble_start_function and assemble_end_function.
20346 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
20348 PR middle-end/89433
20349 * omp-general.c (oacc_verify_routine_clauses): Change formal
20350 parameters. Add checking if already marked with an OpenACC
20351 'routine' directive. Adjust all users.
20353 PR middle-end/89433
20354 * omp-general.c (oacc_build_routine_dims): Move some of its
20356 (oacc_verify_routine_clauses): ... this new function.
20357 * omp-general.h (oacc_verify_routine_clauses): New prototype.
20359 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
20361 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
20362 formating of picbase labels to match other ports.
20364 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
20366 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
20367 in the generated code.
20369 2019-05-16 Martin Sebor <msebor@redhat.com>
20371 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
20372 identifiers, keywords, operators, and types in diagnostics. Correct
20373 quoting, spelling, and sentence capitalization issues.
20374 (expand_builtin_atomic_is_lock_free): Same.
20375 (fold_builtin_next_arg): Same.
20376 * cfgexpand.c (expand_one_var): Same.
20377 (tree_conflicts_with_clobbers_p): Same.
20378 (expand_asm_stmt): Same.
20379 (verify_loop_structure): Same.
20380 * cgraphunit.c (process_function_and_variable_attributes): Same.
20381 * collect-utils.c (collect_execute): Same.
20382 * collect2.c (maybe_run_lto_and_relink): Same.
20383 (is_lto_object_file): Same.
20384 (scan_prog_file): Same.
20385 * convert.c (convert_to_real_1): Same.
20386 * dwarf2out.c (dwarf2out_begin_prologue): Same.
20387 * except.c (verify_eh_tree): Same.
20388 * gcc.c (execute): Same.
20389 (eval_spec_function): Same.
20390 (run_attempt): Same.
20391 (driver::set_up_specs): Same.
20392 (compare_debug_auxbase_opt_spec_function): Same.
20393 * gcov-tool.c (unlink_gcda_file): Same.
20395 (do_rewrite): Same.
20396 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
20397 * gimplify.c (gimplify_asm_expr): Same.
20398 (gimplify_adjust_omp_clauses): Same.
20399 * hsa-gen.c (gen_hsa_addr_insns): Same.
20400 (gen_hsa_insns_for_load): Same.
20401 (gen_hsa_cmp_insn_from_gimple): Same.
20402 (gen_hsa_insns_for_operation_assignment): Same.
20403 (gen_get_level): Same.
20404 (gen_hsa_alloca): Same.
20405 (omp_simple_builtin::generate): Same.
20406 (gen_hsa_atomic_for_builtin): Same.
20407 (gen_hsa_insns_for_call): Same.
20408 * input.c (dump_location_info): Same.
20409 * ipa-devirt.c (compare_virtual_tables): Same.
20410 * ira.c (ira_setup_eliminable_regset): Same.
20411 * lra-assigns.c (lra_assign): Same.
20412 * lra-constraints.c (lra_constraints): Same.
20413 * lto-streamer-in.c (lto_input_mode_table): Same.
20414 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
20415 (merge_and_complain): Same.
20416 (compile_offload_image): Same.
20417 (compile_images_for_offload_targets): Same.
20418 (debug_objcopy): Same.
20421 * opts.c (print_specific_help): Same.
20422 (parse_no_sanitize_attribute): Same.
20423 (print_help): Same.
20424 (handle_param): Same.
20425 * plugin.c (add_new_plugin): Same.
20426 (parse_plugin_arg_opt): Same.
20427 (try_init_one_plugin): Same.
20428 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
20429 operators, and types in diagnostics. Correct quoting and spelling
20431 * read-rtl-function.c (parse_edge_flag_token): Same.
20432 (function_reader::parse_enum_value): Same.
20433 * reg-stack.c (check_asm_stack_operands): Same.
20434 * regcprop.c (validate_value_data): Same.
20435 * sched-rgn.c (make_pass_sched_fusion): Same.
20436 * stmt.c (check_unique_operand_names): Same.
20437 * targhooks.c (default_target_option_pragma_parse): Same.
20438 * tlink.c (recompile_files): Same.
20439 * toplev.c (process_options): Same.
20440 (do_compile): Same.
20441 * trans-mem.c (diagnose_tm_1): Same.
20442 (ipa_tm_scan_irr_block): Same.
20443 (ipa_tm_diagnose_transaction): Same.
20444 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
20445 format a tree code name in a diagnostic.
20446 (verify_types_in_gimple_min_lval): Same.
20447 (verify_types_in_gimple_reference): Same.
20448 (verify_gimple_call): Same.
20449 (verify_gimple_assign_unary): Same.
20450 (verify_gimple_assign_binary): Same.
20451 (verify_gimple_assign_ternary): Same.
20452 (verify_gimple_assign_single): Same.
20453 (verify_gimple_switch): Same.
20454 (verify_gimple_label): Same.
20455 (verify_gimple_phi): Same.
20456 (verify_gimple_in_seq): Same.
20457 (verify_eh_throw_stmt_node): Same.
20458 (collect_subblocks): Same.
20459 (gimple_verify_flow_info): Same.
20460 (do_warn_unused_result): Same.
20461 * tree-inline.c (expand_call_inline): Same.
20462 * tree-into-ssa.c (update_ssa): Same.
20463 * tree.c (tree_int_cst_elt_check_failed): Same.
20464 (tree_vec_elt_check_failed): Same.
20465 (omp_clause_operand_check_failed): Same.
20466 (verify_type_variant): Same.
20467 (verify_type): Same.
20468 * value-prof.c (verify_histograms): Same.
20469 * varasm.c (assemble_start_function): Same.
20471 2019-05-16 Martin Sebor <msebor@redhat.com>
20473 * config/i386/i386-expand.c (get_element_number): Quote keywords
20474 and other internal names in diagnostics. Adjust other diagnostic
20475 formatting issues noted by -Wformat-diag.
20476 * config/i386/i386-features.c
20477 (ix86_mangle_function_version_assembler_name): Same.
20478 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
20479 * config/i386/i386.c (ix86_function_type_abi): Same.
20480 (ix86_function_ms_hook_prologue): Same.
20481 (classify_argument): Same.
20482 (ix86_expand_prologue): Same.
20483 (ix86_md_asm_adjust): Same.
20484 (ix86_memmodel_check): Same.
20486 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20488 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
20489 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
20492 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
20495 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
20496 intrinsics without SSE/SSE2/SSSE3.
20497 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
20499 (*mmx_uavgv8qi3): Likewise.
20501 2019-05-17 Richard Biener <rguenther@suse.de>
20503 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
20504 VEC_PERM_EXPR as __VEC_PERM with -gimple.
20506 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
20508 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
20509 vec_sldw insn pattern.
20511 2019-05-17 Richard Biener <rguenther@suse.de>
20513 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
20515 2019-05-17 Martin Liska <mliska@suse.cz>
20518 * toplev.c (output_stack_usage): With LTO and sanitizer it
20519 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
20520 has no file location.
20522 2019-05-16 Jakub Jelinek <jakub@redhat.com>
20525 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
20526 sz0 is equal to sz1, instead return false in that case.
20528 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
20529 has non-constant expression, force sctx.lane and use two
20530 argument IFN_GOMP_SIMD_LANE instead of single argument.
20531 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
20532 two argument IFN_GOMP_SIMD_LANE without lhs.
20533 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
20535 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
20537 (LOOP_REQUIRES_VERSIONING): Or in
20538 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
20539 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20541 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
20542 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
20543 from simd if clause if needed.
20545 2019-05-16 Richard Biener <rguenther@suse.de>
20547 * tree-affine.c (expr_to_aff_combination): New function split
20549 (tree_to_aff_combination): ... here.
20550 (aff_combination_expand): Avoid building a GENERIC tree.
20552 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
20554 * cgraphunit.c (cgraph_node::expand_thunk): Remove
20555 assemble_start_function and assemble_end_function calls.
20556 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
20557 assemble_start_function and assemble_end_function.
20558 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
20559 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
20560 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
20561 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
20562 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
20563 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
20564 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
20565 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
20566 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
20567 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
20568 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
20569 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
20571 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
20572 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
20573 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
20574 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
20575 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
20576 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
20577 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
20578 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
20579 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
20580 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20581 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
20582 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
20583 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
20584 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
20586 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
20587 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
20588 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
20590 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
20592 * tree-ssa-alias.c (alias_stats): Add
20593 aliasing_component_refs_p_may_alias and
20594 aliasing_component_refs_p_no_alias.
20595 (dump_alias_stats): Print aliasing_component_refs_p stats.
20596 (aliasing_component_refs_p): Update stats.
20598 2019-05-16 Martin Liska <mliska@suse.cz>
20601 * multiple_target.c (expand_target_clones): Do not allow
20602 target_clones being used with a symbol that is an alias.
20604 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
20606 PR tree-optimization/90394
20607 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
20608 positives rather than ICE for cases where (code2 == NE_EXPR
20609 && code1 == BIT_AND_EXPR).
20611 2019-05-16 Jakub Jelinek <jakub@redhat.com>
20614 * tree-core.h (struct tree_decl_common): Document
20615 decl_nonshareable_flag for PARM_DECLs.
20616 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
20617 * calls.c (expand_call): Don't try tail call if caller
20618 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
20619 passed on the stack and callee needs to pass any arguments on the
20621 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
20622 else if instead of series of mutually exclusive ifs. Handle
20623 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
20624 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
20626 * lto-streamer.h (LTO_major_version): Bump to 9.
20628 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
20630 PR tree-optimization/90106
20631 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
20632 new parameter as new internal function call, also move it to new
20634 (use_internal_fn): Pass internal function call to
20635 shrink_wrap_one_built_in_call_with_conds.
20637 2019-05-15 Jakub Jelinek <jakub@redhat.com>
20639 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
20641 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
20642 safelen_int and set loop->dont_vectorize.
20644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20647 * config/i386/i386-builtin.def: Enable MMX intrinsics with
20649 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
20651 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
20652 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
20653 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
20656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20659 * config/i386/mmx.md (*vec_dupv2sf): Changed to
20660 define_insn_and_split to support SSE emulation.
20661 (*vec_extractv2sf_0): Likewise.
20662 (*vec_extractv2sf_1): Likewise.
20663 (*vec_extractv2si_0): Likewise.
20664 (*vec_extractv2si_1): Likewise.
20665 (*vec_extractv2si_zext_mem): Likewise.
20666 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
20667 (vec_extractv2sf_1 splitter): Likewise.
20668 (vec_extractv2sfsf): Likewise.
20669 (vec_setv2si): Likewise.
20670 (vec_extractv2si_1 splitter): Likewise.
20671 (vec_extractv2sisi): Likewise.
20672 (vec_setv4hi): Likewise.
20673 (vec_extractv4hihi): Likewise.
20674 (vec_setv8qi): Likewise.
20675 (vec_extractv8qiqi): Likewise.
20676 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
20677 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
20678 (vec_extractv2sisi): Likewise.
20679 (vec_extractv4hihi): Likewise.
20680 (vec_extractv8qiqi): Likewise.
20681 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
20682 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
20683 (vec_initv2sisi): Likewise.
20684 (vec_initv4hihi): Likewise.
20685 (vec_initv8qiqi): Likewise.
20686 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
20687 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
20688 (vec_setv4hi): Likewise.
20689 (vec_setv8qi): Likewise.
20691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20694 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
20695 TARGET_MMX_WITH_SSE.
20696 (MMXMODE:*mov<mode>_internal): Likewise.
20697 (MMXMODE:movmisalign<mode>): Likewise.
20699 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
20702 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
20703 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
20704 (sse2_cvtpd2pi): Ditto.
20705 (sse2_cvttpd2pi): Ditto.
20706 (*vec_concatv2sf_sse4_1): Ditto.
20707 (*vec_concatv2sf_sse): Ditto.
20708 (*vec_concatv2si_sse4_1): Ditto.
20709 (*vec_concatv2si): Ditto.
20710 (*vec_concatv4si_0): Ditto.
20711 (*vec_concatv2di_0): Ditto.
20713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20716 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
20718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20721 * config/i386/sse.md (ssse3_palignrdi): Changed to
20722 define_insn_and_split to support SSE emulation.
20724 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20727 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
20729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20732 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
20733 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
20736 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20739 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
20740 or TARGET_MMX_WITH_SSE.
20741 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
20743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20746 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
20748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20751 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
20752 Changed to define_insn_and_split to support SSE emulation.
20754 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20757 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
20758 Changed to define_insn_and_split to support SSE emulation.
20760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20763 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
20764 (*mmx_<emms>): This.
20765 (mmx_<emms>): New expander.
20767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20770 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
20772 (*sse2_umulv1siv1di3): Add SSE2 emulation.
20774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20777 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
20779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20782 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
20784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20787 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
20788 TARGET_MMX_WITH_SSE.
20789 (*mmx_uavgv4hi3): Add SSE emulation.
20791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20794 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
20795 and TARGET_MMX_WITH_SSE.
20796 (*mmx_uavgv8qi3): Add SSE emulation.
20798 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20801 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
20802 maskmovdqu for __MMX_WITH_SSE__.
20804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20807 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
20808 TARGET_MMX and TARGET_MMX_WITH_SSE.
20809 (*mmx_umulv4hi3_highpart): Add SSE emulation.
20811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20814 * config/i386/mmx.md (mmx_pmovmskb): Changed to
20815 define_insn_and_split to support SSE emulation.
20817 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20820 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
20821 and TARGET_MMX_WITH_SSE.
20822 (mmx_<code>v8qi3): Likewise.
20823 (smaxmin:<code>v4hi3): New.
20824 (umaxmin:<code>v8qi3): Likewise.
20825 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
20826 (umaxmin:*mmx_<code>v8qi3): Likewise.
20828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20831 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
20832 TARGET_MMX_WITH_SSE.
20833 (*mmx_pinsrw): Add SSE emulation.
20835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20838 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
20840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20843 * config/i386/sse.md (sse_cvtpi2ps): Changed to
20844 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
20847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20850 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
20851 (sse_cvttps2pi): Likewise.
20853 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20856 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
20857 TARGET_MMX_WITH_SSE.
20858 (mmx_pshufw_1): Add SSE emulation.
20859 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
20860 TARGET_MMX_WITH_SSE to support SSE emulation.
20862 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20865 * config/i386/constraints.md (Yw): New constraint.
20866 * config/i386/mmx.md (*vec_dupv2si): Changed to
20867 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
20868 support SSE emulation.
20870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20873 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
20874 TARGET_MMX_WITH_SSE.
20875 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
20877 (mmx_gt<mode>3): Likewise.
20879 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20882 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
20883 TARGET_MMX_WITH_SSE. Add SSE support.
20885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20888 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
20889 TARGET_MMX_WITH_SSE.
20890 (any_logic:<code><mode>3): New.
20891 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
20894 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20897 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
20898 TARGET_MMX_WITH_SSE. Add SSE emulation.
20899 (mmx_<shift_insn><mode>3): Likewise.
20900 (ashr<mode>3): New.
20901 (<shift_insn><mode>3): Likewise.
20903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20906 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
20907 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
20909 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20912 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
20913 TARGET_MMX_WITH_SSE.
20914 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
20917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20920 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
20921 TARGET_MMX_WITH_SSE.
20923 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
20926 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20929 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
20930 (plusminus:mmx_<plusminus_insn><mode>3): Check
20931 TARGET_MMX_WITH_SSE.
20932 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
20933 (<plusminus_insn><mode>3): New.
20934 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
20935 (*mmx_<plusminus_insn><mode>3): Likewise.
20937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20940 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
20941 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
20943 * config/i386/mmx.m (mmx_punpckhbw): Changed to
20944 define_insn_and_split to support SSE emulation.
20945 (mmx_punpcklbw): Likewise.
20946 (mmx_punpckhwd): Likewise.
20947 (mmx_punpcklwd): Likewise.
20948 (mmx_punpckhdq): Likewise.
20949 (mmx_punpckldq): Likewise.
20951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20952 Uros Bizjak <ubizjak@gmail.com>
20955 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
20957 (ix86_split_mmx_pack): Likewise.
20958 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
20960 (ix86_split_mmx_pack): Likewise.
20961 * config/i386/i386.md (mmx_isa): New.
20962 (enabled): Also check mmx_isa.
20963 * config/i386/mmx.md (any_s_truncate): New code iterator.
20964 (s_trunsuffix): New code attr.
20965 (mmx_packsswb): Removed.
20966 (mmx_packssdw): Likewise.
20967 (mmx_packuswb): Likewise.
20968 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
20969 MMX packsswb/packuswb with SSE2.
20970 (mmx_packssdw): Likewise.
20971 * config/i386/predicates.md (register_mmxmem_operand): New.
20973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
20976 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20977 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
20978 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
20979 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
20980 (ix86_vector_mode_supported_p): Likewise.
20981 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
20983 2019-05-15 Martin Liska <mliska@suse.cz>
20985 PR middle-end/90478
20986 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
20987 Check for overflow.
20989 2019-05-15 Richard Biener <rguenther@suse.de>
20991 * tree-into-ssa.c (pass_build_ssa::execute): Run
20992 update_address_taken before going into SSA.
20994 2019-05-15 Richard Biener <rguenther@suse.de>
20996 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
20997 as __BIT_FIELD_REF with type with -gimple.
20999 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
21001 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
21002 semantically equivalent branches (left over after prior refactorings).
21004 2019-05-15 Richard Biener <rguenther@suse.de>
21006 PR tree-optimization/88828
21007 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
21010 2019-05-14 Richard Biener <rguenther@suse.de>
21012 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
21013 as __VIEW_CONVERT with -gimple.
21015 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
21018 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
21021 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
21023 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
21024 define_split to become a define_insn_and_split.
21026 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
21028 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
21030 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
21031 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
21032 (sibcall_epilogue): Adjust.
21033 (epilogue): Adjust.
21035 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21037 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
21038 to unsupported ones.
21039 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
21040 * config.host: Likewise.
21041 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
21042 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
21043 __svr4__]: Remove "brand" fallback.
21044 [!KSTAT_DATA_STRING]: Remove.
21045 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
21047 (comdat_group): Likewise.
21048 (set_have_as_tls): Likewise.
21049 (gcc_cv_target_dl_iterate_phdr): Likewise.
21050 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
21051 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
21052 * configure: Regenerate.
21053 * doc/install.texi: Simplify Solaris target triplets.
21054 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
21055 (Specific, *-*-solaris2*): Document Solaris 10 removal.
21056 Remove Solaris 10 references.
21057 Remove obsolete Solaris bug reference.
21058 (Specific, sparc-sun-solaris2.10): Remove.
21060 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
21062 * config/i386/i386.md (any_div): New code iterator.
21063 (paired_mod): New code attribute.
21064 (sgnprefix): Handle DIV and UDIV RTXes.
21066 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
21067 and udivmod<mode>4 patterns using any_div code iterator.
21068 (divmod splitters): Macroize splitters using any_div code iterator.
21069 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
21070 (*udivmodsi4_pow2_zext_2): Ditto.
21071 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
21072 and *udivmod<mode>4_noext patterns using any_div code iterator.
21073 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
21074 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
21075 patterns using any_div code iterator.
21076 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
21077 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
21078 patterns using any_div code iterator.
21079 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
21080 udivmodhiqi3 patterns using any_extend code iterator.
21082 2019-05-14 Richard Biener <rguenther@suse.de>
21083 H.J. Lu <hongjiu.lu@intel.com>
21085 PR tree-optimization/88828
21086 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
21087 permuting in a single non-constant element not extracted
21090 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21092 * internal-fn.def (SIGNBIT): New.
21093 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
21095 (signbitv4sf2): Likewise.
21097 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
21100 * config/mips/mips.c (mips_split_move): Skip forward SRC into
21101 next insn when the SRC reg is dead.
21103 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
21105 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
21106 (alloc_cand_and_find_basis): Ditto.
21107 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
21108 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
21109 (create_add_imm_cand, slsr_process_cast): Ditto.
21110 (slsr_process_copy, replace_mult_candidate): Ditto.
21111 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
21112 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
21113 (pass_strength_reduction::execute): Init the first NULL element.
21115 2019-05-13 Nathan Sidwell <nathan@acm.org>
21117 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
21118 (run_attempt): Reformat line break.
21120 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
21123 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
21124 data registers in sibcall epilogues.
21125 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
21127 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
21130 * configure.ac (--enable-frame-pointer):
21131 Disable by default for cygwin and mingw.
21132 * configure: Regenerate.
21134 2019-05-13 Nathan Sidwell <nathan@acm.org>
21136 * dwarf2out.c (breakout_comdat_types): Move comment to correct
21138 (const_ok_for_output_1): Balance parens around #if/#else/#endif
21139 (gen_member_die): Move abstract origin check earlier. Only VARs
21140 can be static_inline_p. Simplify splicing control flow.
21142 2019-05-13 Richard Biener <rguenther@suse.de>
21144 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
21146 (vect_build_slp_tree_1): Likewise.
21148 2019-05-13 Richard Biener <rguenther@suse.de>
21150 PR tree-optimization/90402
21151 * tree-if-conv.c (tree_if_conversion): Value number only
21152 the loop body by making the latch an exit of the region
21154 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
21156 (do_rpo_vn): Deal with multiple edges into the entry block
21157 that are not backedges inside the region by skipping PHIs
21158 of the entry block.
21160 2019-05-13 Richard Biener <rguenther@suse.de>
21162 PR tree-optimization/90316
21163 * tree-ssa-pre.c (insert_aux): Fold into ...
21164 (insert): ... this function. Use a RPO walk to reduce the
21165 number of required iterations.
21167 2019-05-13 Martin Liska <mliska@suse.cz>
21169 PR tree-optimization/90416
21170 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
21171 string instead of passing the second part as va_arg argument.
21173 2019-05-13 Martin Liska <mliska@suse.cz>
21175 PR gcov-profile/90380
21176 * gcov.c (handle_cycle): Do not support zero cycle count,
21177 it should not be possible.
21178 (path_contains_zero_cycle_arc): New function.
21179 (circuit): Ignore zero cycle arc counts.
21181 2019-05-13 Martin Liska <mliska@suse.cz>
21183 PR gcov-profile/90380
21184 * gcov.c (enum loop_type): Remove the enum and
21186 (handle_cycle): Assert that we should not reach
21188 (circuit): Use loop_found instead of a tri-state loop_type.
21189 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
21192 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
21195 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
21196 (ix86_output_indirect_branch_via_reg): Use output mechanism
21197 accounting for __USER_LABEL_PREFIX__.
21198 (ix86_output_indirect_branch_via_push): Likewise.
21199 (ix86_output_function_return): Likewise.
21200 (ix86_output_indirect_function_return): Likewise.
21202 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
21204 * doc/md.texi: Document use of code attributes in rtx patterns.
21205 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
21206 * read-rtl.c (find_code): Split out search loops into...
21207 (maybe_find_code): ...this new function.
21208 (check_code_iterator): Make the error message more informative.
21209 (check_code_attribute): New function.
21210 (rtx_reader::rtx_alloc_for_name): Likewise.
21211 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
21212 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
21213 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
21214 <max_opp> directly as an rtx code instead of via a match_operator.
21215 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
21216 (<su>abd<mode>_3): Update accordingly.
21218 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
21220 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
21221 is given, print the state of the EH "save world" computation for
21224 2019-05-11 Jakub Jelinek <jakub@redhat.com>
21227 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
21228 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
21230 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
21232 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
21233 Use pinsrd for TARGET_SSE4_1.
21234 * config/i386/sse.md (movdi_to_sse): Ditto.
21236 2019-05-10 Richard Biener <rguenther@suse.de>
21238 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
21239 (do_rpo_vn): Initialize next_value_id.
21241 2019-05-10 Martin Liska <mliska@suse.cz>
21243 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
21246 2019-05-10 Jakub Jelinek <jakub@redhat.com>
21248 PR tree-optimization/90385
21249 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
21250 arguments of the exit phis.
21253 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
21254 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
21256 (copy_tree_body_r): Likewise.
21257 (copy_fn): Set id.do_not_fold to true.
21259 2019-05-10 Martin Liska <mliska@suse.cz>
21261 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
21262 Reapply changes from r269790.
21264 2019-05-10 Martin Liska <mliska@suse.cz>
21266 PR middle-end/90340
21267 * doc/invoke.texi: New params.
21268 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
21269 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
21270 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
21272 * tree-switch-conversion.h (struct jump_table_cluster):
21275 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
21277 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
21279 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
21281 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
21283 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
21285 PR rtl-optimization/88879
21286 * sel-sched.c (sel_target_adjust_priority): Remove assert.
21288 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
21291 * config/arm/arm.c (callee_saved_reg_p): Move before
21292 thumb_find_work_register.
21293 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
21294 thumb_find_work_register. Only call df_get_live_out once.
21295 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
21296 (thumb_find_work_register): Use
21297 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
21298 algorithms to locate a spare call clobbered reg.
21300 2019-05-09 Martin Liska <mliska@suse.cz>
21302 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
21303 and MAX_EXPR in GIMPLE FE format.
21305 2019-05-09 Martin Liska <mliska@suse.cz>
21307 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
21308 * gimple-pretty-print.c (dump_gimple_bb_header):
21310 (pp_cfg_jump): Dump edge probability.
21311 * profile-count.c (profile_quality_as_string): Simplify
21312 with a static array.
21313 (parse_profile_quality): New function.
21314 (profile_count::dump): Simplify with a static array.
21315 (profile_count::from_gcov_type): Add new argument.
21316 * profile-count.h (parse_profile_quality): Likewise.
21317 * predict.h (set_hot_bb_threshold): New.
21318 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
21320 * predict.c (get_hot_bb_threshold): Set from the new param.
21321 (set_hot_bb_threshold): New.
21323 2019-05-09 Richard Biener <rguenther@suse.de>
21325 PR tree-optimization/90395
21326 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
21327 rewrite vector stores that throw internally.
21329 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
21331 * cif-code.def (CHKP): Remove.
21334 * configure.ac (--enable-frame-pointer): Disable by default for
21336 * configure: Regenerate.
21338 2019-05-09 Alan Modra <amodra@gmail.com>
21341 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
21342 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
21343 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
21344 cost for general <-> vsx when direct moves are available.
21345 Cost union classes at minimal cost for any reg in the class.
21346 Correct calculation for moves between vsx, float, and altivec.
21347 Don't return a low cost for moves between special regs. Don't
21348 use hard coded register numbers.
21349 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
21350 (rs6000_ira_change_pseudo_allocno_class): New function.
21351 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
21352 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
21354 (movsi_internal1): Don't disparage vector alternatives.
21355 (mov<mode>_internal): Likewise, excepting alternative that
21357 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
21358 we <- b alternative.
21360 2019-05-08 Jakub Jelinek <jakub@redhat.com>
21363 PR tree-optimization/89060
21364 * tree-ssa-live.h (live_vars_map): New typedef.
21365 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
21366 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
21367 (struct compute_live_vars_data): New type.
21368 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
21369 live_vars_at_stmt, destroy_live_vars): New functions.
21370 * tree-tailcall.c: Include tree-ssa-live.h.
21371 (live_vars, live_vars_vec): New global variables.
21372 (find_tail_calls): Perform variable life analysis before punting.
21373 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
21374 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
21376 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
21377 Perform variable life analysis to select variables that really need
21379 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
21380 instead set id->eh_landing_pad_dest and assert it is the same.
21381 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
21383 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
21384 Richard Earnshaw <rearnsha@arm.com>
21387 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
21389 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
21390 (thumb1_compute_save_core_reg_mask): Don't force a spare work
21391 register if both the epilogue and prologue can use call-clobbered
21393 (thumb1_unexpanded_epilogue): Use
21394 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
21395 picking temporaries for restoring high regs to match that of the
21396 prologue where possible.
21397 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
21398 the list of work registers. Detect if the return address is still live
21399 at the end of the prologue and avoid using it for a work register if so.
21400 If the return address is not live, add LR to the list of pushable regs
21401 after the first pass.
21403 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
21405 PR tree-optimization/90078
21406 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
21407 (INFTY): Increase the value for infinite cost.
21408 (struct comp_cost): Promote type of members to int64_t.
21409 (infinite_cost): Don't set complexity in initialization.
21410 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
21411 overflows to infinite_cost.
21412 (adjust_setup_cost): Promote type of parameter and cost computation
21414 (struct ainc_cost_data, struct iv_ca): Promote type of member to
21416 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
21417 cost computation to int64_t.
21418 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
21419 int64_t's format specifier in dump.
21421 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
21423 PR tree-optimization/90240
21424 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
21425 with respect to scaling factor pre-computed for each basic block.
21426 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
21427 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
21428 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
21429 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
21430 live range for array of loop's basic blocks. Cleanup aux field of
21431 loop's basic blocks.
21433 2019-05-08 Jakub Jelinek <jakub@redhat.com>
21435 PR tree-optimization/90356
21436 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
21438 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
21440 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
21441 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
21442 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
21443 (ix86_handle_option): Handle -mavx512bf16.
21444 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
21446 * config/i386/avx512bf16vlintrin.h: New.
21447 * config/i386/avx512bf16intrin.h: New.
21448 * config/i386/cpuid.h (bit_AVX512BF16): New.
21449 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
21450 * config/i386/i386-builtin-types.def: Add new types.
21451 * config/i386/i386-builtin.def: Add new builtins.
21452 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21454 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
21455 (ix86_option_override_internal): Handle BF16.
21456 (ix86_valid_target_attribute_inner_p): Ditto.
21457 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
21458 * config/i386/i386-builtin.c (enum processor_features): Add
21460 (static const _isa_names_table isa_names_table): Ditto.
21461 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
21462 (PTA_AVX512BF16): Ditto.
21463 * config/i386/i386.opt: Add -mavx512bf16.
21464 * config/i386/immintrin.h: Include avx512bf16intrin.h
21465 and avx512bf16vlintrin.h.
21466 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
21467 avx512f_cvtneps2bf16_<mode><mask_name>,
21468 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
21469 * config/i386/subst.md (mask_half): Add new subst.
21470 * doc/invoke.texi: Document -mavx512bf16.
21472 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21474 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
21475 Delete declaration.
21476 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
21477 (rs6000_debug_legitimize_reload_address): Delete.
21478 (rs6000_legitimize_reload_address_ptr): Delete.
21479 (rs6000_option_override_internal): Adjust.
21480 (mem_operand_gpr): Adjust comment.
21481 (legitimate_lo_sum_address_p): Ditto.
21482 (rs6000_legitimize_reload_address): Delete.
21483 (rs6000_debug_legitimize_reload_address): Delete.
21484 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
21486 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
21489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21490 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
21491 to compute vector element selector for both constant and variable
21494 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
21496 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
21497 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
21498 ashrdi3_cvt using SWI48 mode iterator.
21500 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21502 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
21503 (aarch64_<su>abd<mode>_3): Likewise.
21504 (*aarch64_<su>abd<mode>_3): New define_insn.
21505 (<sur>sad<vsi2qi>): New define_expand.
21506 * config/aarch64/iterators.md: Added MAX_OPP attribute.
21507 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
21508 (build_vect_cond_expr): Likewise.
21510 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
21512 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
21513 clobbers outside of accessible_reg_set.
21514 * config/i386/i386.c (ix86_conditional_register_usage):
21515 Disable register sets by clearing corresponding bits in
21516 accessible_reg_set. Do not set corresponding bits in fixed_regs,
21517 call_used_regs and don't clear corresponding reg_names array members.
21519 2019-05-07 Richard Biener <rguenther@suse.de>
21521 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
21522 not specified still compute a comp_vectype for invariant
21525 2019-05-07 Richard Biener <rguenther@suse.de>
21527 PR tree-optimization/90316
21528 * tree-ssa-pre.c (translate_vuse_through_block): When
21529 same_valid is NULL do not bother to search for a virtual
21531 (phi_translate_1): When operands changed we cannot keep
21532 the same value-number so do not bother to ask whether
21533 that's possible from translate_vuse_through_block.
21535 2019-05-07 Martin Liska <mliska@suse.cz>
21537 * bitmap.c (bitmap_register): Come up with
21538 alloc_descriptor_max_uid and assign it for
21540 (register_overhead): Use get_descriptor as
21542 (release_overhead): New.
21543 (bitmap_elem_to_freelist): Call it.
21544 (bitmap_elt_clear_from): Likewise.
21545 (bitmap_obstack_free): Likewise.
21546 (bitmap_move): Sensitively release memory.
21547 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
21548 (bitmap_initialize): Initialize alloc_descriptor to zero.
21549 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
21551 2019-05-07 Richard Biener <rguenther@suse.de>
21553 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
21554 we build a SLP node. Remove max_size and limiting.
21555 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
21557 2019-05-07 Richard Biener <rguenther@suse.de>
21559 PR tree-optimization/90316
21560 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
21561 limit by reference.
21562 (walk_non_aliased_vuses): Take walking limit argument.
21563 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
21564 walking if it is reached instead of just counting.
21565 (get_continuation_for_phi): Likewise.
21566 (walk_non_aliased_vuses): Likewise, instead of leaving counter
21567 limiting to the callback.
21568 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
21569 (vn_reference_lookup_3): Likewise.
21570 (vn_reference_lookup_pieces): Likewise.
21571 (vn_reference_lookup): Likewise.
21572 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
21573 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
21574 (avail_exprs_stack::lookup_avail_expr): Likewise.
21576 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
21578 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
21579 for comparaible types in the second direction even if first one
21580 hits incomparable type.
21582 2019-05-07 Richard Biener <rguenther@suse.de>
21585 * lto-wrapper.c (debug_objcopy): Use the original filename
21586 including archive offset for the filename used for -save-temps.
21588 2019-05-07 Li Jia He <helijia@linux.ibm.com>
21590 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
21593 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
21594 Hongtao Liu <hongtao.liu@intel.com>
21598 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
21599 Modified, original implementation isn't correct.
21601 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21603 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
21604 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
21605 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
21606 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
21607 (FRAME_POINTER_REGNUM): Change numbering.
21608 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
21609 (alt_reg_names): Adjust.
21610 (rs6000_conditional_register_usage): Don't mark hard register 64 as
21612 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
21613 (DWARF_FRAME_REGISTERS): Delete.
21614 (DWARF2_FRAME_REG_OUT): Fix whitespace.
21615 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
21617 (REG_ALLOC_ORDER): Adjust.
21618 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
21619 (REG_CLASS_CONTENTS): Adjust.
21620 (RETURN_ADDR_RTX): Change comment.
21621 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
21623 (REGISTER_NAMES): Adjust.
21624 (ADDITIONAL_REGISTER_NAMES): Adjust.
21625 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
21627 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21629 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
21631 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
21632 (DWARF_FRAME_REGISTERS): Adjust.
21633 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
21635 (REG_ALLOC_ORDER): Adjust.
21636 (enum reg_class): Delete SPR_REGS.
21637 (REG_CLASS_NAMES): Delete SPR_REGS.
21638 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
21639 (REGISTER_NAMES): Adjust.
21640 (ADDITIONAL_REGISTER_NAMES): Adjust.
21641 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
21642 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
21643 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
21644 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
21645 (htm_spr_regno): Delete.
21646 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
21648 (rs6000_dbx_register_number): Adjust.
21650 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21652 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
21654 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21656 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
21657 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
21659 2019-05-06 Jakub Jelinek <jakub@redhat.com>
21661 PR tree-optimization/88709
21662 PR tree-optimization/90271
21663 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
21664 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
21665 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
21667 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
21668 of the store merging group is larger than
21669 PARAM_STORE_MERGING_MAX_SIZE parameter.
21670 (split_group): Add bzero_first argument. If set, always emit first
21671 the first store which must be = {} of the whole area and then for the
21672 rest of the stores consider all zero bytes as paddings.
21673 (imm_store_chain_info::output_merged_store): Check if first store
21674 is = {} of the whole area and if yes, determine which setting of
21675 bzero_first for split_group gives smaller number of stores. Adjust
21676 split_group callers.
21677 (lhs_valid_for_store_merging_p): Allow decls.
21678 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
21680 (pass_store_merging::process_store): Likewise.
21682 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
21685 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
21686 handling of V1TImode.
21688 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
21691 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
21692 and enable_frame_pointer ...
21693 * configure.ac: ... here. Update help strings for
21694 --enable-frame-pointer.
21695 * configure: Regenerate.
21696 * config/i386/i386-options.c (ix86_option_override_internal): Remove
21697 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
21698 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
21699 (USE_X86_64_FRAME_POINTER): Ditto.
21701 2019-05-06 Martin Liska <mliska@suse.cz>
21703 * config.gcc: Append to target_gtfiles and fix indentation.
21705 2019-05-06 Richard Biener <rguenther@suse.de>
21707 PR tree-optimization/90358
21708 * tree-vect-stmts.c (get_group_load_store_type): Properly
21709 detect unused upper half of load.
21710 (vectorizable_load): Likewise.
21712 2019-05-06 Richard Biener <rguenther@suse.de>
21714 PR tree-optimization/88828
21715 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
21716 (simplify_vector_constructor): ...here. Handle constants in
21719 2019-05-06 Richard Biener <rguenther@suse.de>
21721 PR tree-optimization/90328
21722 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
21723 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
21724 is valid in the loop nest before using it.
21725 (initialize_data_dependence_relation): Adjust.
21726 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
21727 loop as loop-nest to dr_may_alias_p.
21729 2019-05-06 Richard Biener <rguenther@suse.de>
21731 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
21733 2019-05-06 Richard Biener <rguenther@suse.de>
21735 PR tree-optimization/90316
21736 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
21737 compute target on demand.
21738 (get_continuation_for_phi): Remove code walking stmts to
21739 get to a target virtual operand which could end up being
21742 2019-05-06 Martin Liska <mliska@suse.cz>
21745 * config/i386/i386-options.c (ix86_option_override_internal): Error only
21746 when -mabi is selected to a non-default version.
21748 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
21749 Martin Liska <mliska@suse.cz>
21751 * Makefile.in: Add lto-dump.texi.
21752 * cgraph.h: Add new functions get_visibility_string and
21753 get_symtab_type_string.
21754 * doc/gcc.texi: Include lto-dump section.
21755 * doc/lto-dump.texi: New file.
21756 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
21757 (parse_dump_option): Factor out this function.
21758 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
21759 (parse_dump_option): Export the function.
21760 * symtab.c (symtab_node::get_visibility_string): New function.
21761 (symtab_node::get_symtab_type_string): Likewise.
21763 2019-05-06 Martin Liska <mliska@suse.cz>
21765 * config/i386/i386-builtins.c: New file.
21766 * config/i386/i386-builtins.h: New file.
21767 * config/i386/i386-expand.c: New file.
21768 * config/i386/i386-expand.h: New file.
21769 * config/i386/i386-features.c: New file.
21770 * config/i386/i386-features.h: New file.
21771 * config/i386/i386-options.c: New file.
21772 * config/i386/i386-options.h: New file.
21773 * config.gcc: Add new files into extra_objs and
21775 * config/i386/i386.c: Split content of the file
21776 into newly introduced files.
21777 * config/i386/i386.h: Declare common variables
21779 * config/i386/t-i386: Define dependencies for new files.
21781 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
21784 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
21785 Restrict 'all' variant to 32-bit configurations.
21786 (unaligned_loadhiu): Likewise.
21787 (unaligned_storehi): Likewise.
21788 (unaligned_storesi): Likewise.
21789 (unaligned_loadhis): Disable when compiling for thumb1.
21791 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
21793 PR tree-optimization/90269
21794 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
21797 2019-05-03 Martin Liska <mliska@suse.cz>
21799 * hash-map.h: Add is_empty function.
21800 * hash-set.h: Likewise.
21801 * hash-table.h: Likewise.
21802 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
21803 elements () == 0 (and similar usages).
21804 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
21805 * gimplify.c (gimplify_bind_expr): Likewise.
21806 (gimplify_switch_expr): Likewise.
21807 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
21808 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
21809 * postreload-gcse.c (dump_hash_table): Likewise.
21810 (gcse_after_reload_main): Likewise.
21811 * predict.c (combine_predictions_for_bb): Likewise.
21812 * tree-parloops.c (reduction_phi): Likewise.
21813 (separate_decls_in_region): Likewise.
21814 (transform_to_exit_first_loop): Likewise.
21815 (gen_parallel_loop): Likewise.
21816 (gather_scalar_reductions): Likewise.
21817 (try_create_reduction_list): Likewise.
21818 * var-tracking.c (dump_vars): Likewise.
21819 (emit_notes_for_changes): Likewise.
21820 (vt_emit_notes): Likewise.
21822 2019-05-03 Richard Biener <rguenther@suse.de>
21824 PR tree-optimization/90316
21825 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
21828 2019-05-03 Richard Biener <rguenther@suse.de>
21830 * tree-vect-stmts.c (get_group_load_store_type): Avoid
21831 peeling for gaps by loading only lower halves of vectors
21833 (vectorizable_load): Likewise.
21835 2019-05-03 Richard Biener <rguenther@suse.de>
21837 PR middle-end/89518
21838 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
21840 2019-05-03 Richard Biener <rguenther@suse.de>
21842 PR middle-end/87314
21843 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
21844 Handle STRING_CST vs DECL or STRING_CST.
21846 2019-05-03 Richard Biener <rguenther@suse.de>
21848 PR tree-optimization/88963
21849 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
21850 vector loads feeding only BIT_FIELD_REFs to component
21851 loads. Rewrite stores fed by CONSTRUCTORs to component
21854 2019-05-03 Jakub Jelinek <jakub@redhat.com>
21856 * opts.h (finish_options): Remove lang_mask argument.
21857 (print_help, help_option_argument): Declare.
21858 * opts.c (print_help): Remove forward declaration, no longer static.
21859 (finish_options): Remove lang_mask argument, don't call print_help
21861 * opts-global.c (decode_options): Adjust finish_option caller, call
21864 PR tree-optimization/90303
21865 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
21866 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
21868 2019-05-03 Richard Biener <rguenther@suse.de>
21870 PR tree-optimization/89698
21871 * gimple-fold.c (canonicalize_constructor_val): Early out
21872 for constants, handle unfolded INTEGER_CSTs as they appear in
21873 C++ virtual table ctors.
21875 2019-05-03 Richard Biener <rguenther@suse.de>
21877 * passes.c (execute_function_todo): Remove dead code.
21879 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
21881 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
21882 the internal register number, for any "real" register.
21884 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
21886 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
21887 correct numbers for TFHAR, TFIAR, TEXASR.
21889 2019-05-02 Richard Biener <rguenther@suse.de>
21891 PR tree-optimization/89653
21892 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
21893 update-address-taken before the pass.
21894 * passes.def (pass_tree_loop_init): Put comment before it.
21896 2019-05-02 Richard Biener <rguenther@suse.de>
21898 PR tree-optimization/89509
21899 * tree-ssa-structalias.c (compute_dependence_clique): Look
21900 at the first subvar when determining whether it is restrict.
21902 2019-05-02 Richard Biener <rguenther@suse.de>
21904 PR tree-optimization/90273
21905 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
21906 useless debug stmts.
21908 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21910 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
21912 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
21914 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
21915 VEC_COND_EXPR be inserted to emulate a conditional internal function.
21916 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
21917 (vectorizable_reduction): Use the functions above to vectorize in a
21918 fully masked loop codes that don't have a conditional internal
21921 2019-05-02 Martin Liska <mliska@suse.cz>
21923 * cgraphclones.c: Call valid_attribute_p with 1 for
21925 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
21926 it's for target attribute.
21927 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
21928 Add new boolean argument.
21929 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
21931 (ix86_valid_target_attribute_tree): Pass target_clone_attr
21932 to ix86_valid_target_attribute_inner_p.
21933 (ix86_valid_target_attribute_p): Pass flags argument to
21934 ix86_valid_target_attribute_inner_p.
21935 (get_builtin_code_for_version): Use 0 as it's target attribute.
21937 2019-05-02 Martin Liska <mliska@suse.cz>
21939 * gcc.c (process_command): Add dummy file only
21941 * opts-global.c (decode_options): Pass lang_mask.
21942 * opts.c (print_help): New function.
21943 (finish_options): Print --help if help_option_argument
21945 (common_handle_option): Factor out content of OPT__help_
21947 * opts.h (finish_options): Add new argument.
21949 2019-05-02 Martin Liska <mliska@suse.cz>
21952 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
21953 With -minline-all-stringops use inline expansion using 4B loop.
21954 * doc/invoke.texi: Document the change of
21955 -minline-all-stringops.
21957 2019-05-01 Jeff Law <law@redhat.com>
21959 PR tree-optimization/88797
21960 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
21961 PHI feeds a conditional on the RHS of an assignment.
21963 2019-04-30 Andrew Waterman <andrew@sifive.com>
21964 Jim Wilson <jimw@sifive.com>
21966 * config/riscv/constraints.md (L): New.
21967 * config/riscv/predicates.md (lui_operand): New.
21968 (sfb_alu_operand): New.
21969 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
21970 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
21971 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
21972 * config/riscv/risc.md (type): Add sfb_alu.
21973 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
21974 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
21975 (branch_zero<mode>): Delete.
21976 (mov<mode>cc): New.
21977 (mov<GPR:mode><X:mode>cc): Likewise.
21978 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
21980 2019-04-30 Nathan Sidwell <nathan@acm.org>
21982 * tree.h (MARK_TS_EXP): New.
21984 2019-04-30 Martin Liska <mliska@suse.cz>
21986 * opts.c (enable_warning_as_error): Provide hints
21987 for unknown options.
21989 2019-04-30 Martin Liska <mliska@suse.cz>
21992 * doc/invoke.texi: Add missing dash for gas-locview-support
21993 and gno-as-locview-support.
21995 2019-04-30 Jakub Jelinek <jakub@redhat.com>
21998 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
21999 whitespace at the start of target attribute string.
22001 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22004 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
22005 Define __ARM_FEATURE_ATOMICS.
22007 2019-04-30 Martin Liska <mliska@suse.cz>
22009 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
22010 into built_in_function enum. Remove code for endp == 2 and
22011 use BUILT_IN_* constants.
22012 (gimple_fold_builtin): Call the function with fcode.
22014 2019-04-30 Martin Liska <mliska@suse.cz>
22016 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
22017 DECL_FUNCTION_CODE into ix86_builtins enum before
22018 the switch statement.
22020 2019-04-30 Jakub Jelinek <jakub@redhat.com>
22022 PR tree-optimization/89475
22023 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
22026 2019-04-30 Martin Liska <mliska@suse.cz>
22028 PR translation/90274
22029 * opts.c (print_filtered_help): Wrap string in _(...).
22031 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
22033 PR tree-optimization/90240
22035 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
22037 PR tree-optimization/90078
22038 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
22039 checks for infinite_cost overflow.
22041 2019-04-29 Jeff Law <law@redhat.com>
22043 * passes.def: Move -Wrestrict pass after copy propagation.
22045 2019-04-29 Maya Rashish <coypu@sdf.org>
22047 * config.gcc (default_gnu_indirect_function): Default to yes
22048 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
22049 sparc*-*-netbsd*, x86_64-*-netbsd*.
22051 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
22053 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
22054 where cond2 is NE_EXPR.
22055 (is_value_included_in): Update comment.
22057 2019-04-29 Richard Biener <rguenther@suse.de>
22059 PR tree-optimization/90278
22060 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
22061 EH on comparison simplification.
22063 2019-04-29 Jason Merrill <jason@redhat.com>
22065 PR c++/82081 - tail call optimization breaks noexcept
22066 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
22067 nothrow function to a might-throw function into a tail call.
22069 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
22071 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
22072 (DDR_INNER_LOOP): Likewise.
22073 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
22074 (initialize_data_dependence_relation): Likewise.
22075 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
22077 2019-04-29 Jakub Jelinek <jakub@redhat.com>
22079 PR rtl-optimization/90257
22080 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
22084 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
22088 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
22091 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
22094 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
22096 * lra-spills.c (lra_final_code_change): Remove useless move insns.
22098 2019-04-29 Richard Biener <rguenther@suse.de>
22100 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
22103 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
22105 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
22106 varasm.h, and netbsd-protos.h.
22108 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
22111 * config/i386/i386-protos.h (ix86_data_alignment): Change
22112 the second argument type to unsigned int.
22113 * config/i386/i386.c (ix86_data_alignment): Change "align"
22114 argument type to unsigned int.
22116 2019-04-27 Martin Liska <mliska@suse.cz>
22118 PR middle-end/90258
22119 * opt-suggestions.c (option_proposer::build_option_suggestions):
22120 When get_valid_option_values returns empty values, add the
22121 misspelling candidate.
22123 2019-04-26 Jim Wilson <jimw@sifive.com>
22125 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
22127 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
22128 Pass orig_mode to riscv_build_integer.
22129 (riscv_split_integer): Pass mode to riscv_move_integer.
22130 (riscv_legitimize_const_move): Likewise.
22131 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
22132 promoted_mode. Replace force_reg call with code to load constant into
22133 promoted reg and then subreg it for the store.
22134 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
22135 riscv_move_integer.
22137 2018-04-26 Eugene Sharygin <eush@ispras.ru>
22139 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
22142 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
22144 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
22145 commentary about the encoding of precision.
22147 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
22149 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
22150 * config/i386/t-freebsd64: New file.
22151 * config.gcc: Add the t-freebsd64 for multilib support.
22153 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
22155 * doc/extend.texi (vector_size): Add missing comma after @xref.
22157 2019-04-25 Jakub Jelinek <jakub@redhat.com>
22159 * BASE-VER: Set to 10.0.0.
22161 2019-04-25 Richard Biener <rguenther@suse.de>
22163 PR middle-end/89765
22164 * gimplify.c (gimplify_expr): Avoid turning a lvalue
22165 VIEW_CONVERT_EXPR into one operating on an rvalue.
22167 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
22170 * config/i386/i386.c (feature_priority): Moved to file scope.
22171 (processor_features): Likewise.
22172 (processor_model): Likewise.
22173 (_arch_names_table): Likewise.
22174 (arch_names_table): Likewise.
22175 (_feature_list): Removed.
22176 (feature_list): Likewise.
22177 (_isa_names_table): Moved to file scope. Add priority.
22178 (isa_names_table): Likewise.
22179 (get_builtin_code_for_version): Replace feature_list with
22180 isa_names_table. Update error message for P_ZERO priority.
22182 2019-04-25 Richard Biener <rguenther@suse.de>
22184 * tree-pass.h (make_pass_phi_only_cprop): Remove.
22185 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
22187 2019-04-24 Jeff Law <law@redhat.com>
22189 PR tree-optimization/90037
22190 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
22191 * passes.def: Replace all instance of phi-only cprop with the
22192 lattice propagator. Move propagation pass from after erroneous
22193 path isolation to before erroneous path isolation.
22194 * tree-ssa-phionlycprop.c: Remove.
22196 2019-04-24 Richard Biener <rguenther@suse.de>
22198 PR middle-end/90213
22199 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
22200 by size and BITS_PER_UNIT on poly-wide-ints.
22202 2019-04-25 Richard Biener <rguenther@suse.de>
22204 PR middle-end/90194
22205 * match.pd: Add pattern to simplify view-conversion of an
22208 2019-04-24 Clement Chigot <clement.chigot@atos.net>
22210 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
22211 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
22212 for Go on 32 bit AIX.
22213 * config/rs6000/aix72.h: Likewise.
22215 2019-04-24 Jakub Jelinek <jakub@redhat.com>
22218 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
22219 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
22221 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
22224 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
22225 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
22226 for restored hard frame pointer.
22227 (s390_sched_dependencies_evaluation): Implement new target hook.
22228 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
22230 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
22232 * config/arc/arc-options.def: Fix typos and spelling mistakes.
22233 * config/arc/arc.c (arc_init): Cleanup warning message.
22234 (arc_override_options): Likewise.
22236 2019-04-24 Jakub Jelinek <jakub@redhat.com>
22239 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
22240 a register if both if_true and if_false are MEMs.
22242 PR tree-optimization/90208
22243 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
22244 after labels of new_bb, not before them.
22246 PR tree-optimization/90211
22247 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
22248 which are not SSA_NAMEs.
22250 2018-04-23 Sudakshina Das <sudi.das@arm.com>
22252 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
22254 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
22256 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
22258 PR rtl-optimization/87979
22259 * modulo-sched.c (sms_schedule): Start ii value "mii" should
22262 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
22264 PR rtl-optimization/84032
22265 * modulo-sched.c (ps_insn_find_column): Change condition so that
22266 branch will always be the last insn in a row inside partial
22269 2019-04-23 Richard Biener <rguenther@suse.de>
22272 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
22273 dest_single_pred_p argument.
22274 (remove_forwarder_block): Adjust.
22275 (remove_forwarder_block_with_phi): Likewise.
22277 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22278 Bernd Edlinger <bernd.edlinger@hotmail.de>
22279 Jakub Jelinek <jakub@redhat.com>
22282 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
22283 if used with general-regs-only.
22284 (arm_conditional_register_usage): Don't add non-general regs if
22286 (arm_valid_target_attribute_rec): Handle general-regs-only.
22287 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
22289 (TARGET_HARD_FLOAT_SUB): Define.
22290 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
22291 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
22292 (TARGET_REALLY_IWMMXT2): Likewise.
22293 * config/arm/arm.opt: Add -mgeneral-regs-only.
22294 * doc/extend.texi: Document ARM general-regs-only target.
22295 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
22297 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
22299 PR tree-optimization/90078
22300 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
22301 checks for infinite_cost overflow.
22303 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
22305 PR tree-optimization/90021
22306 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
22307 and check univariate against it.
22308 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
22309 * tree-data-ref.c (add_other_self_distances): Pass new argument.
22311 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
22315 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
22318 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
22321 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
22323 * lra-spills.c (lra_final_code_change): Remove useless move insns.
22325 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
22327 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
22328 names using operand format, rather than hard-wired.
22329 (speculation_barrier): Likewise.
22331 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
22333 PR tree-optimization/88055
22334 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
22335 (gen_one_condition): Use it if !HONOR_NANS.
22337 2019-04-19 Jakub Jelinek <jakub@redhat.com>
22339 PR middle-end/90139
22340 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
22341 assign_temp instead of gen_reg_rtx.
22343 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
22345 PR translation/90118
22346 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22347 Add missing space before %<.
22349 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
22351 PR rtl-optimization/87871
22352 * ira-lives.c (make_object_dead): Don't add conflicts to
22353 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
22355 2019-04-18 Martin Sebor <msebor@redhat.com>
22357 PR middle-end/89797
22358 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
22359 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
22360 assuming type size fits in SHWI.
22362 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
22365 * ipa-inline.c (flatten_function): New parameter UPDATE.
22366 (ipa_inline, early_inliner): Use it.
22368 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
22370 * fold-const.c (int_const_binop): Return early on failure.
22372 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
22374 PR middle-end/85164
22375 * combine.c (force_int_to_mode): Cast the argument rather than
22376 the result of known_alignment.
22377 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
22379 2019-04-18 Richard Biener <rguenther@suse.de>
22382 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
22384 (remove_forwarder_block): ... here.
22385 (remove_forwarder_block_with_phi): Also move debug stmts here.
22387 2019-04-18 Jakub Jelinek <jakub@redhat.com>
22389 PR translation/79183
22390 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
22391 inform where appropriate.
22393 2019-04-18 Richard Biener <rguenther@suse.de>
22395 * tree.c (get_qualified_type): Put found type variants at the
22396 head of the variant list.
22398 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
22400 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
22402 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
22405 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
22406 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
22407 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
22408 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
22409 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
22411 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
22413 * ira-conflicts.c (print_allocno_conflicts): Always print something,
22414 even for allocno's with no conflicts.
22415 (print_conflicts): Print an extra newline.
22417 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
22419 * auto-inc-dec.c (attempt_change): Set the alignment of the
22420 temporary memory to that of the original.
22422 2019-04-17 Joao Moreira <jmoreira@suse.de>
22424 * targhooks.c (default_print_patchable_function_entry): Emit
22425 __patchable_function_entries section with writable flags to allow
22426 relocation resolution.
22428 2019-04-17 Jonny Grant <jg@jguk.org>
22430 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
22432 2019-04-17 Jakub Jelinek <jakub@redhat.com>
22434 PR middle-end/90095
22435 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
22436 on lowpart SUBREGs.
22438 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
22440 * config/arc/arc.c (arc_init): Format diagnostic string.
22441 (arc_override_options): Likewise.
22442 (check_if_valid_regno_const): Likewise.
22443 (arc_reorg): Likewise.
22445 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
22448 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
22450 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
22452 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
22453 (*movdi_update1): Use Pmode.
22454 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
22455 (movdi_<mode>_update_stack): Rename to ...
22456 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
22458 (*movsi_update1): Use Pmode.
22459 (*movsi_update2): Use Pmode.
22460 (movsi_update): Rename to ...
22461 (movsi_<mode>_update): ... this. Use Pmode.
22462 (movsi_update_stack): Fix condition.
22463 (*movhi_update1): Use Pmode. Fix argument to
22464 avoiding_indexed_address_p.
22465 (*movhi_update2): Ditto.
22466 (*movhi_update3): Ditto.
22467 (*movhi_update4): Ditto.
22468 (*movqi_update1): Ditto.
22469 (*movqi_update2): Ditto.
22470 (*movqi_update3): Ditto.
22471 (*movsf_update1, *movdf_update1): Merge, rename to...
22472 (*mov<mode>_update1): This. Use Pmode. Fix argument to
22473 avoiding_indexed_address_p. Add "size" attribute.
22474 (*movsf_update2, *movdf_update2): Merge, rename to...
22475 (*mov<mode>_update2): This. Ditto.
22476 (*movsf_update3): Use Pmode. Fix argument to
22477 avoiding_indexed_address_p.
22478 (*movsf_update4): Ditto.
22479 (allocate_stack): Simplify condition. Adjust pattern names.
22481 2019-04-17 Jakub Jelinek <jakub@redhat.com>
22484 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
22485 whitespace at the start of target attribute string.
22487 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
22490 * config/rs6000/power9.md: Add store forwarding bypass.
22492 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
22495 * valtrack.c (dead_debug_insert_temp): Reset debug references
22496 to the return value of a call being removed.
22498 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
22500 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
22501 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
22502 implement target hook.
22503 (arc_memory_move_cost): New function.
22504 (TARGET_REGISTER_MOVE_COST): Define.
22505 (TARGET_MEMORY_MOVE_COST): Likewise.
22506 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
22507 (MEMORY_MOVE_COST): Likewise.
22509 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
22511 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
22512 (sibcall_value_insn): Likewise.
22513 * config/arc/constraints.md (Rs5): Remove.
22515 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
22517 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
22518 for last two fake registers.
22519 (arc_conditional_register_usage): Make sure fake frame and arg
22520 pointer regs are in general regs class.
22521 (FRAME_POINTER_MASK): Remove.
22522 (RETURN_ADDR_MASK): Remove.
22523 (arc_must_save_register): Use hard frame regnum.
22524 (frame_restore_reg): Use hard_frame_pointer_rtx.
22525 (arc_save_callee_saves): Likewise.
22526 (arc_restore_callee_saves): Likewise.
22527 (arc_save_callee_enter): Likewise.
22528 (arc_restore_callee_leave): Likewise.
22529 (arc_save_callee_milli): Likewise.
22530 (arc_eh_return_address_location): Likewise.
22531 (arc_check_multi): Use hard frame regnum.
22532 (arc_can_eliminate): Likewise.
22533 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
22534 for register allocator.
22535 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
22536 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
22537 (FRAME_POINTER_REGNUM): Change it to a fake register.
22538 (HARD_FRAME_POINTER_REGNUM): Defined.
22539 (ARG_POINTER_REGNUM): Change it to a new fake register.
22540 (ELIMINABLE_REGS): Update.
22541 (REGISTER_NAMES): Update names.
22542 * config/arc/arc.md (LP_START): Remove.
22543 (LP_END): Likewise.
22544 (shift_si3_loop): Update pattern.
22546 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
22548 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
22549 to avoid delay slot scheduling.
22550 (arc_must_save_register): Don't save SP.
22551 * config/arc/arc.md (stack_tie): Remove.
22552 (UNSPEC_ARC_STKTIE): Likewise.
22554 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
22555 Shiva Chen <shiva0217@gmail.com>
22557 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
22558 code gen with large shift amount.
22560 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
22562 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
22565 2019-04-16 Jakub Jelinek <jakub@redhat.com>
22568 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
22569 print -m64/-mx32/-m32 if it is true.
22570 (ix86_debug_options, ix86_function_specific_print): Pass true as
22571 ADD_ABI_P to ix86_target_string.
22572 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
22573 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
22574 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
22576 PR rtl-optimization/90082
22577 * dce.c (can_delete_call): New function.
22578 (deletable_insn_p, mark_insn): Use it.
22580 PR tree-optimization/90090
22581 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
22583 (is_division_by_square): Likewise. Formatting fix.
22585 2019-04-16 Richard Biener <rguenther@suse.de>
22587 PR tree-optimization/56049
22588 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
22589 equality check if alias-set zero will prevail.
22591 2019-04-15 Jeff Law <law@redhat.com>
22593 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
22594 size and alignment as unsigned.
22596 2019-04-15 Richard Biener <rguenther@suse.de>
22599 * tree-loop-distribution.c (destroy_loop): Preserve correct
22602 2019-04-15 Richard Biener <rguenther@suse.de>
22604 PR tree-optimization/90071
22605 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
22606 abnormal operands from def stmts.
22608 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
22610 PR rtl-optimization/89794
22611 * combine.c (count_auto_inc): New function.
22612 (try_combine): Count how many auto_inc expressions there were in the
22613 original instructions. Ensure we have the same number in the new
22614 instructions. Remove the code that tried to ensure auto_inc side
22615 effects on i1 and i0 are not lost.
22617 2019-04-15 Richard Biener <rguenther@suse.de>
22620 * tree.h (auto_var_p): Declare.
22621 * tree.c (auto_var_p): New function, split out from ...
22622 (auto_var_in_fn_p): ... here.
22623 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
22625 (new_var_info): Initialize it.
22626 (set_uids_in_ptset): Also set the shadow variable uid if required.
22627 (ipa_pta_execute): Postprocess points-to solutions assigning
22628 shadow variable uids for locals that may reach their containing
22629 function recursively.
22630 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
22631 assert but instead check whether the points-to solution is
22634 2019-04-15 Martin Jambor <mjambor@suse.cz>
22637 * cgraph.c (clone_of_p): Loop over clone chain for each step in
22640 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
22642 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
22644 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
22645 Kito Cheng <kito.cheng@gmail.com>
22646 Shiva Chen <shiva0217@gmail.com>
22648 * config/nds32/nds32-md-auxiliary.c
22649 (nds32_legitimize_pic_address): Use new PIC pattern.
22650 (nds32_legitimize_tls_address): Use new TLS pattern.
22651 (nds32_output_symrel): New.
22652 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
22653 (nds32_alloc_relax_group_id): Ditto.
22654 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
22655 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
22657 (nds32_group_tls_insn): Ditto.
22658 (nds32_group_float_insns): Ditto.
22659 * config/nds32/nds32.md (tls_le): New.
22662 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
22664 * configure: Add nds32 target for dwarf2 debug_line checking.
22665 * configure.ac: Regenerated.
22667 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
22670 * ipa-devirt.c (skip_in_fields_list_p): New.
22671 (odr_types_equivalent_p): Use it.
22673 2019-04-13 Jakub Jelinek <jakub@redhat.com>
22676 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
22677 instead of strncmp when checking for thumb and arm. Formatting fixes.
22679 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
22681 * doc/install.texi: Document --with-target-system-zlib.
22683 2019-04-12 Martin Sebor <msebor@redhat.com>
22689 * targhooks.c (default_vector_alignment): Avoid assuming
22690 argument fits in SHWI.
22691 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
22692 a shift expression.
22693 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
22695 2019-04-12 Jakub Jelinek <jakub@redhat.com>
22697 PR rtl-optimization/89965
22698 * dce.c: Include rtl-iter.h.
22699 (struct check_argument_load_data): New type.
22700 (check_argument_load): New function.
22701 (find_call_stack_args): Check for loads from stack slots still tracked
22702 in sp_bytes and punt if any is found.
22704 * config/mips/loongson-mmiintrin.h: Fix up #error message.
22706 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
22708 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
22709 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
22711 2019-04-12 Martin Liska <mliska@suse.cz>
22713 PR middle-end/89970
22714 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
22716 (separate_attrs): Handle multiple 'default's.
22717 (expand_target_clones): Rework error handling code.
22719 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
22722 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
22723 mode of vector rather than mode of destination for move instruction.
22724 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
22725 Use QI inner mode with V16QI vector mode.
22727 2019-04-12 Jakub Jelinek <jakub@redhat.com>
22730 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
22731 "invalid %%t operand" in output_operand_lossage message.
22733 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
22735 * config/s390/predicates.md (permute_pattern_operand): New
22737 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
22738 operand for the permute pattern.
22739 ("*vec_perm<mode>"): New insn definition.
22740 ("bswap<mode>"): Generate the permute pattern operand in the
22741 expander and perform the operand reloads for pre arch13 level
22743 ("*bswap<mode>_emu"): Rename to ...
22744 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
22745 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
22746 Add the USE operand for the permute pattern.
22747 ("*vec_set_bswap_vec<mode>"): Likewise.
22749 2019-04-12 Jakub Jelinek <jakub@redhat.com>
22752 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
22753 and gcc_unreachable if it fails, just call tree_to_uhwi which
22754 verifies that too. Test TREE_CHAIN instead of list_length > 1.
22755 Start warning message with a lower-case letter. Formatting fixes.
22757 PR rtl-optimization/90026
22758 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
22759 successors, look for BARRIERs inside of the whole BB_FOOTER chain
22760 rather than just at the start of it. If e->src BB_FOOTER is not NULL
22761 in cfglayout mode, use emit_barrier_after_bb.
22763 2018-04-11 Steve Ellcey <sellcey@marvell.com>
22765 PR rtl-optimization/87763
22766 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
22769 2019-04-11 Tom de Vries <tdevries@suse.de>
22771 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
22772 max macro using statement expression.
22774 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
22776 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
22777 * xcoffout.c (xcoff_private_rodata_section_name): Define.
22778 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
22779 read_only_private_data_section using xcoff_private_rodata_section_name.
22780 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
22782 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
22785 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
22787 2019-04-11 Jakub Jelinek <jakub@redhat.com>
22789 PR rtl-optimization/89965
22790 * dce.c (sp_based_mem_offset): New function.
22791 (find_call_stack_args): Use sp_based_mem_offset.
22793 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
22795 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
22797 2019-04-11 Richard Biener <rguenther@suse.de>
22799 PR tree-optimization/90020
22800 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
22801 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
22802 * tree-ssa-pre.c (compute_avail): Use it to not put
22803 possibly trapping references after a call that might not
22804 return into EXP_GEN.
22805 * gcse.c (compute_hash_table_work): Do not elide
22806 marking a block containing a call if the call might not
22809 2019-04-11 Richard Biener <rguenther@suse.de>
22811 PR tree-optimization/90018
22812 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
22813 Test both SLP and interleaving variants.
22815 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
22817 * config/s390/8561.md: New file.
22818 * config/s390/driver-native.c (s390_host_detect_local_cpu):
22819 Add arch13 cpu model.
22820 * config/s390/s390-opts.h (enum processor_type): Likewise.
22821 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
22822 (s390_get_unit_mask): Likewise.
22823 (s390_is_fpd): Likewise.
22824 (s390_is_fxd): Likewise.
22825 * config/s390/s390.h (s390_tune_attr): Likewise.
22826 * config/s390/s390.md: Include arch13 pipeline description.
22827 * config/s390/s390.opt: Add arch13.
22829 2018-04-10 Steve Ellcey <sellcey@marvell.com>
22831 PR rtl-optimization/87763
22832 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
22834 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
22836 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
22838 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
22839 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
22840 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
22841 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
22843 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
22845 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
22846 "Although" in -fipa-icf documentation.
22848 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
22849 of using multiple -g options.
22851 2019-04-10 Martin Liska <mliska@suse.cz>
22853 PR gcov-profile/89959
22854 * doc/gcov.texi: Make documentation of -x option
22857 2019-04-10 Richard Biener <rguenther@suse.de>
22859 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
22861 (DR_GROUP_SAME_DR_STMT): Remove.
22862 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
22863 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
22864 replace with assert.
22865 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
22866 (vect_record_grouped_load_vectors): Remove unreachable code.
22868 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
22871 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
22872 obsolete reference to N.
22874 2019-04-10 Jakub Jelinek <jakub@redhat.com>
22876 PR middle-end/90025
22877 * expr.c (store_expr): Set properly size on the MEM passed to
22881 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
22882 with strlen in between hostsz-3 and hostsz-1 inclusive when no
22883 translation is needed, and when translation is needed, only append
22884 ... if the string length is hostsz or more bytes long. Avoid using
22887 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
22890 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
22891 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
22893 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
22894 differences directly.
22895 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
22897 2019-04-09 Jakub Jelinek <jakub@redhat.com>
22899 PR translation/90011
22900 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22902 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
22904 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
22905 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
22906 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
22907 trailing space from -gsplit-dwarf diagnostics.
22909 PR tree-optimization/89998
22910 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
22911 instead of integer_type_node if possible, don't add ranges if return
22912 type is not compatible with int.
22913 * gimple-fold.c (gimple_fold_builtin_sprintf,
22914 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
22917 2019-04-09 Martin Liska <mliska@suse.cz>
22919 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
22920 * doc/install.texi: Document the new config.
22922 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
22924 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
22925 use gimple_expr_type for load and store calls. Skip over the
22926 condition argument in a conditional internal function.
22927 Protect use of TREE_INT_CST_LOW.
22929 2019-04-09 Jakub Jelinek <jakub@redhat.com>
22932 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
22933 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
22934 trailing period from it too.
22936 2019-04-08 wu yuan <wuyuan5@huawei.com>
22938 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
22939 * config/aarch64/aarch64.md : Add "tsv110.md"
22940 * config/aarch64/tsv110.md: New file.
22942 2019-04-08 Richard Biener <rguenther@suse.de>
22944 PR tree-optimization/90006
22945 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
22948 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
22951 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
22953 (fma_root_node): Likewise.
22954 (func_fma_steering): Likewise.
22956 2019-04-08 Jakub Jelinek <jakub@redhat.com>
22958 PR rtl-optimization/89865
22959 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
22961 PR rtl-optimization/89865
22962 * config/i386/i386.md
22963 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
22964 numbers not to clash with the additional operands[4].
22965 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
22966 with extra register copy in the middle.
22968 2019-04-08 Martin Liska <mliska@suse.cz>
22970 PR gcov-profile/89961
22971 * doc/gcov.texi: Document data_file.
22972 * gcov.c (generate_results): Add data_info into JSON output.
22974 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
22976 PR tree-optimization/89725
22977 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
22978 loop's chrec as invariant symbol.
22979 * tree-chrec.h (chrec_contains_symbols): New parameter.
22980 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
22981 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
22982 function of loops not in DDR's loop_nest.
22983 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
22985 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
22988 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
22991 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
22994 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
22995 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
22997 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
22999 * sched-deps.c (sched_macro_fuse_insns): Check return value of
23000 targetm.fixed_condition_code_regs.
23002 2019-04-05 Richard Biener <rguenther@suse.de>
23006 * tree-cfgcleanup.c (remove_forwarder_block): Always move
23007 debug bind stmts but reset them if they are not valid at the
23010 2019-04-05 Martin Liska <mliska@suse.cz>
23012 PR translation/89936
23013 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
23014 order to wrap keywords or arguments.
23015 * collect2.c (main): Likewise.
23016 (scan_prog_file): Likewise.
23017 (scan_libraries): Likewise.
23018 * common/config/riscv/riscv-common.c
23019 (riscv_subset_list::parsing_subset_version): Likewise.
23020 (riscv_subset_list::parse_std_ext): Likewise.
23021 * config/aarch64/aarch64.c (aarch64_override_options_internal):
23023 * config/arm/arm.c (arm_option_override): Likewise.
23024 * config/cris/cris.c (cris_print_operand): Likewise.
23025 * config/darwin-c.c (darwin_pragma_options): Likewise.
23026 (darwin_pragma_unused): Likewise.
23027 (darwin_pragma_ms_struct): Likewise.
23028 * config/ft32/ft32.c (ft32_print_operand): Likewise.
23029 * config/i386/i386.c (print_reg): Likewise.
23030 (ix86_print_operand): Likewise.
23031 * config/i386/xm-djgpp.h: Likewise.
23032 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
23033 * config/m32c/m32c.c (m32c_option_override): Likewise.
23034 * config/msp430/msp430.c (msp430_option_override): Likewise.
23035 * config/nds32/nds32.c (nds32_option_override): Likewise.
23036 * config/nvptx/mkoffload.c (main): Likewise.
23037 * config/rx/rx.c (rx_print_operand): Likewise.
23038 (valid_psw_flag): Likewise.
23039 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
23040 (vms_pragma_nomember_alignment): Likewise.
23041 (vms_pragma_extern_model): Likewise.
23042 * lto-wrapper.c (compile_offload_image): Likewise.
23043 * omp-offload.c (oacc_parse_default_dims): Likewise.
23044 * symtab.c (symtab_node::verify_base): Likewise.
23045 * tlink.c (recompile_files): Likewise.
23046 (start_tweaking): Likewise.
23047 * tree-profile.c (parse_profile_filter): Likewise.
23049 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
23051 PR tree-optimization/89956
23052 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
23053 multiple negates of the same value.
23055 2019-04-04 Martin Sebor <msebor@redhat.com>
23057 PR middle-end/89957
23058 PR middle-end/89911
23059 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
23060 have the same precision since the function crashes otherwise.
23061 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
23062 has non-zero arguments.
23064 2019-04-04 Martin Sebor <msebor@redhat.com>
23066 PR middle-end/89934
23067 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
23068 out if the number of arguments is less than expected.
23070 2019-04-04 Jeff Law <law@redhat.com>
23072 PR rtl-optimization/89399
23073 * ree.c (combine_set_extension): Use single_set rather than
23074 digging into PATTERN for items on the candidate list.
23075 (combine_reaching_defs): Likewise.
23077 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
23079 PR rtl-optimization/46590
23080 * loop-invariant.c (find_defs): Move df_remove_problem and
23081 df_process_deferred_rescans to move_invariants.
23082 Move df_live_add_problem and df_live_set_all_dirty calls
23083 to move_invariants.
23084 (move_invariants): Likewise.
23085 (move_loop_invariants): Likewise, making the df_live calls
23086 conditional on -O. Remove the problem again if we added it
23089 2019-04-03 qing zhao <qing.zhao@oracle.com>
23091 PR tree-optimization/89730
23092 * ipa-inline.c (can_inline_edge_p): Delete the checking for
23093 -flive-patching=inline-only-static.
23094 (can_inline_edge_by_limits_p): Add the checking for
23095 -flive-patching=inline-only-static and grant always_inline
23096 even when -flive-patching=inline-only-static is specified.
23098 2019-04-03 Jeff Law <law@redhat.com>
23100 PR rtl-optimization/81025
23101 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
23103 2019-04-03 Richard Biener <rguenther@suse.de>
23105 PR tree-optimization/84101
23106 * tree-vect-stmts.c: Include explow.h for hard_function_value,
23107 regs.h for hard_regno_nregs.
23108 (cfun_returns): New helper.
23109 (vect_model_store_cost): When vectorizing a store to a decl
23110 we return and the function ABI returns in a multi-reg location
23111 account for the possible spilling that will happen.
23113 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
23115 * config/s390/s390.c (s390_legitimate_address_p): Reject long
23116 displacement addresses for vector mode operands.
23118 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
23120 * config/arc/arc.c (GMASK_LEN): Define.
23121 (arc_restore_callee_saves): Restore first blink when
23124 2019-04-03 Sudakshina Das <sudi.das@arm.com>
23126 * doc/extend.texi: Add deprecated comment on sign-return-address
23127 function attribute and add mbranch-protection.
23128 * doc/invoke.texi: Add bti to the options for mbranch-protection.
23130 2019-04-03 Richard Biener <rguenther@suse.de>
23133 * lto-wrapper.c (run_gcc): Avoid implicit rules making
23134 the all target phony.
23136 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
23140 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
23141 Return false for variable DImode shifts.
23142 (dimode_scalar_chain::compute_convert_gain): Do not handle
23143 register count operand in variable DImode shifts.
23144 (dimode_scalar_chain::make_vector_copies): Remove support to copy
23145 count argument of a variable shift instruction to a vector register.
23146 (dimode_scalar_chain::convert_reg): Remove support to convert
23147 count argument of a variable shift instruction.
23149 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
23151 PR rtl-optimization/84206
23152 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
23153 iterating over loop headers.
23155 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
23157 PR rtl-optimization/85876
23158 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
23159 beyond the original fence.
23161 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
23163 * config.gcc: Mark spu* targets as deprecated/obsolete.
23165 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23167 * config/s390/s390-builtin-types.def: New builtin function type
23168 definitions. Remove unused types.
23169 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
23170 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
23171 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
23172 overloaded builtins.
23173 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
23174 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
23175 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
23176 (vec_double, vec_signed, vec_unsigned): Define to use the new
23177 overloaded builtins.
23178 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
23181 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23183 * config/s390/s390-builtin-types.def: New builtin function type
23185 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
23186 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
23187 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
23188 (s390_vstrszh, s390_vstrszf): New low-level builtins.
23189 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
23190 constant definitions.
23191 * config/s390/vecintrin.h (vec_search_string_cc)
23192 (vec_search_string_until_zero_cc): New builtin name definitions.
23193 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
23195 ("vec_vstrs<mode>"): New insn definition.
23197 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23199 * config/s390/s390-builtin-types.def: Add new builtin function
23201 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
23202 New overloaded builtins.
23203 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
23205 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
23206 (UNSPEC_VEC_SLDBYTE): ... this.
23207 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
23208 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
23210 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
23211 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
23212 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
23214 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23216 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
23217 New insn definition.
23218 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
23219 * config/s390/vector.md (V_HW_HSD): ... here.
23221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23223 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
23224 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
23225 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
23226 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
23227 New insn definitions.
23229 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23231 * config/s390/s390-builtin-types.def: Add new builtin function type.
23232 * config/s390/s390-builtins.def: Add overloaded builtin
23233 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
23234 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
23235 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
23236 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
23237 ("eltswap<mode>"): New expander.
23238 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
23241 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23243 * config/s390/s390-builtin-types.def: Add new builtin function types.
23244 * config/s390/s390-builtins.def: Add overloaded builtin
23245 s390_vec_revb. Add low-level builtins for vlbr and vstbr
23247 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
23248 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
23249 ("bswap<mode>"): New expander.
23250 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
23252 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23254 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
23255 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
23256 vector builtin version number in __VEC__.
23258 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23260 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
23262 (SFSI): New mode attribute.
23263 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
23264 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
23266 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
23267 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
23268 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
23269 ("floatsi<mode>2"): Add wcefb instruction.
23271 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23273 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
23274 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
23276 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
23277 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
23278 support 32 bit fp-int conversions. Rename to ...
23279 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
23280 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
23281 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
23282 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
23285 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23287 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
23288 if-then-else constructs if we can use the select instruction.
23289 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
23291 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23293 * config/s390/s390.md ("*popcountdi_arch13_cc")
23294 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
23296 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
23297 Append _z196 to make it ...
23298 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
23299 ("popcounthi2_z196"): ... this.
23300 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
23301 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
23303 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23305 * config/s390/s390.c (s390_canonicalize_comparison): Convert
23306 certain compares for arch13 in order to make use of the condition
23307 code result produced by the new instructions.
23308 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
23309 nxrk, and nxgrk instruction patterns.
23310 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
23311 (inv_no): Add new code iterator together with some attributes.
23312 ("*andc_split_<mode>"): Disable splitter for arch13.
23313 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
23314 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
23315 ("*<ANDOR:bitops_name>c<GPR:mode>")
23316 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
23317 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
23318 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
23319 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
23321 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
23323 * common/config/s390/s390-common.c (processor_flags_table): New
23325 * config.gcc: Support arch13 with the --with-arch= configure flag.
23326 * config/s390/driver-native.c (s390_host_detect_local_cpu):
23327 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
23328 * config/s390/s390.c (s390_get_sched_attrmask)
23329 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
23330 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
23331 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
23332 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
23333 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
23335 * config/s390/s390.opt: Support arch13 as processor type in
23336 command line options.
23338 2019-04-02 Martin Liska <mliska@suse.cz>
23340 PR translation/89912
23341 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
23342 Fix param description of graphite-max-arrays-per-scop.
23344 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
23346 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
23347 (ASAN_CC1_SPEC): Use it in 64-bit mode.
23348 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
23350 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
23352 PR rtl-optimization/85412
23353 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
23354 sel_sched_region_1, not after.
23356 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
23358 PR rtl-optimization/86928
23359 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
23360 compute_live if necessary.
23361 (sel_redirect_edge_and_branch): Likewise.
23363 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
23365 PR rtl-optimization/89865
23366 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
23367 register if it is a part of small class.
23369 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
23371 PR rtl-optimization/87273
23372 * sel-sched-ir.c (merge_fences): Remove assert.
23374 2019-04-01 Richard Biener <rguenther@suse.de>
23376 PR tree-optimization/46590
23377 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
23378 (dom_walker::m_reachability): Add in place of...
23379 (dom_walker::m_skip_unreachable_blocks): ...this.
23380 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
23381 Move complex initialization ...
23382 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
23383 lazily and initialize edge flags on each invocation.
23384 (dom_walker::bb_reachable): Use m_reachability.
23386 2019-04-01 Martin Liska <mliska@suse.cz>
23389 * opt-suggestions.c (option_proposer::build_option_suggestions):
23390 Add variant without any argument in order to provide better
23393 2019-04-01 Richard Biener <rguenther@suse.de>
23396 * gimple.c: Include langhooks.h.
23397 (gimple_get_alias_set): Treat enumeral types as the underlying
23400 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23401 Eric Botcazou <ebotcazou@adacore.com>
23403 PR rtl-optimization/89862
23404 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
23405 that operates on the full registers for WORD_REGISTER_OPERATIONS
23408 2019-03-29 Jim Wilson <jimw@sifive.com>
23410 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
23411 Clear MASK_RVC and then set if C subset supported.
23413 2019-03-29 Jakub Jelinek <jakub@redhat.com>
23416 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
23417 non-addressable complit into its initializer if it is volatile.
23419 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
23421 * opts-common.c (integral_argument): Set errno properly in one case.
23423 2019-03-29 Martin Liska <mliska@suse.cz>
23425 * doc/invoke.texi: Remove -Wchkp from documentation.
23427 2019-03-29 Martin Liska <mliska@suse.cz>
23429 * dbgcnt.c (print_limit_reach): New function.
23432 2019-03-29 Martin Liska <mliska@suse.cz>
23434 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
23435 (dbg_cnt_process_opt): Parse first tokens aas
23436 dbg_cnt_process_single_pair is also using strtok.
23438 2019-03-29 Jakub Jelinek <jakub@redhat.com>
23440 PR rtl-optimization/87485
23441 * function.c (expand_function_end): Move stack_protect_epilogue
23442 before loading of return value into hard register(s).
23444 2019-03-28 Jakub Jelinek <jakub@redhat.com>
23446 PR middle-end/89621
23447 * tree-inline.h (struct copy_body_data): Add
23448 dont_remap_vla_if_no_change flag.
23449 * tree-inline.c (remap_type_3, remap_type_2): New functions.
23450 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
23451 and remap_type_2 returns false.
23452 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
23453 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
23454 only from where it is copied to nested contexts.
23456 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
23459 * config/i386/i386.md (RMW operation with LEA peephole):
23460 Use LEAMODE mode attribute instead of SWI mode iterator for
23463 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
23466 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
23467 Also process XEXP (src, 0) of a shift insn.
23469 2019-03-28 David Malcolm <dmalcolm@redhat.com>
23471 PR middle-end/89725
23472 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
23473 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
23475 2019-03-28 Jakub Jelinek <jakub@redhat.com>
23477 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
23479 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
23480 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
23481 immediately after first one with df_analyze in between, but rather
23482 process all bbs, queueing ones that need second pass in a worklist,
23483 df_analyze, process queued debug insn changes and if second pass is
23484 needed, process bbs from worklist, df_analyze, process queued debug
23487 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
23488 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
23489 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
23491 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
23494 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
23497 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
23500 * config/i386/i386.c (ix86_function_value_1): Call the newly added
23501 function for 32-bit MS_ABI.
23502 (function_value_ms_32): New function.
23504 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
23506 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
23507 (movdi): Call gen_movdi_symbol_save_scc.
23508 (gen_movdi_symbol_save_scc): New insn and split.
23510 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
23512 PR rtl-optimization/89313
23513 * function.c (matching_constraint_num): New static function.
23514 (match_asm_constraints_1): Use it. Fixup white space and comment.
23515 Don't replace inputs with non-matching constraints which conflict
23516 with early clobber outputs.
23518 2019-03-27 Jeff Law <law@redhat.com>
23520 PR rtl-optimization/87761
23521 PR rtl-optimization/89826
23522 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
23524 (pass_cprop_hardreg::execute): Call df_analyze after adding the
23525 note problem to get REG_DEAD/REG_UNUSED notes updated.
23527 2019-03-27 Richard Biener <rguenther@suse.de>
23529 PR tree-optimization/89463
23530 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
23531 queue edges to remove.
23532 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
23533 dead stmts. Delay edge removal until PHIs are removed to
23534 make debug-stmt creation not confused by seemingly degenerate
23537 2019-03-27 Alan Modra <amodra@gmail.com>
23539 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
23541 * config/rs6000/darwin.h: Likewise.
23542 * config/rs6000/rs6000.c: Likewise.
23544 2019-03-27 Alan Modra <amodra@gmail.com>
23546 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
23547 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
23549 2019-03-26 Andrew Waterman <andrew@sifive.com>
23550 Jim Wilson <jimw@sifive.com>
23552 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
23553 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
23554 (generic_idivdi, generic_fmul_single, generic_fmul_double)
23555 (generic_fdiv, generic_fsqrt): Add check for generic tune.
23556 (generic_alu): Add auipc to type list.
23557 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
23558 (riscv_microarchitecture): Declare.
23559 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
23560 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
23562 (riscv_microarchitecture): New.
23563 (sifive_7_tune_info): New.
23564 (riscv_cpu_info_table): Add microarchitecture value for rocket and
23565 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
23567 (riscv_store_data_bypass_p): New.
23568 (riscv_option_override): Set riscv_microarchitecture from
23569 cpu->microarchitecture.
23570 * config/riscv/riscv.md: Include sifive-7.md.
23573 (auipc<mode>): Change type to auipc.
23574 (restore_stack_nonlocal): New.
23575 * config/riscv/sifive-7.md: New.
23576 * doc/invoke.texi (RISC-V Options): Update mtune docs.
23578 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
23581 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
23582 Also process XEXP (src, 0) of a shift insn.
23584 2019-03-26 Richard Biener <rguenther@suse.de>
23586 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
23587 (copy_debug_stmt): Likewise.
23588 (expand_call_inline): Likewise.
23589 (copy_bb): Avoid redundant lookup & set of gimple_block.
23590 * gimple-low.c (lower_gimple_return): Likewise.
23591 (lower_builtin_setjmp): Likewise.
23593 2019-03-26 Jakub Jelinek <jakub@redhat.com>
23595 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
23596 is constant 0, turn into static const data member initialized to false.
23597 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
23598 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
23600 2019-03-26 Jason Merrill <jason@redhat.com>
23601 Jakub Jelinek <jakub@redhat.com>
23603 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
23605 (mem_alloc_description::release_object_overhead): Fix comment typos.
23606 * hash-table.h (hash_table::~hash_table): Call
23607 release_instance_overhead only if m_entries is non-NULL, otherwise
23608 call unregister_descriptor.
23610 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
23612 PR tree-optimization/81740
23613 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23614 In case of outer loop vectorization, check for backward dependence
23615 at the inner loop if outer loop dependence is reversed.
23617 2019-03-26 Alan Modra <amodra@gmail.com>
23619 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
23620 rs6000_vector_mem init. Correct wI and wJ comment.
23622 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
23624 PR rtl-optimization/88347
23625 PR rtl-optimization/88423
23626 * sched-deps.c (sched_analyze_insn): Take into account that for
23627 tablejumps the barrier appears after a label and a jump_table_data.
23629 2019-03-25 Martin Sebor <msebor@redhat.com>
23632 * c-common.c (check_user_alignment): Rename local. Correct maximum
23633 alignment in diagnostic. Avoid assuming argument fits in SHWI,
23634 convert it to UHWI when it fits.
23636 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
23639 * dwarf2out.c (premark_used_variables): New function.
23640 (prune_unused_types_walk): Do not mark not premarked external
23642 (prune_unused_types): Call premark_used_variables.
23644 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
23646 PR rtl-optimization/89676
23647 * lra-constraints.c (curr_insn_transform): Do match reload for
23648 early clobbers when the match was successful only for different
23651 2019-03-25 Martin Sebor <msebor@redhat.com>
23653 * doc/extend.texi (Common Type Attributes): Document vector_size.
23654 (Common Variable Attributes): Mention size constraint. Correct
23656 (Vector Extensions): Use @dfn when defining bas type. Clarify
23657 base type and size constraints.
23659 2019-03-25 Richard Biener <rguenther@suse.de>
23661 PR tree-optimization/89789
23662 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
23663 changes from non-undefined back to undefined.
23665 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
23667 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
23668 heap string and a gc string, but since this variable is unknown to
23669 ggc the gc string might get reused and corrupted. Fixed by always
23670 using a heap string.
23672 2019-03-25 Richard Biener <rguenther@suse.de>
23674 PR tree-optimization/89779
23675 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
23676 to remove IV defs, delay actual removal.
23677 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
23678 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
23679 very end, properly also reset loop control IV information.
23681 2019-03-25 Richard Biener <rguenther@suse.de>
23683 PR tree-optimization/89802
23684 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
23685 move EH data to folded stmt.
23687 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
23689 * config/s390/s390-builtin-types.def: Remove few unused types and
23690 fix sort order for others.
23692 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
23694 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
23695 expected and found types with -mdebug during builtin matching.
23697 2019-03-25 Richard Biener <rguenther@suse.de>
23699 PR middle-end/89790
23700 * fold-const.c (operand_equal_p): Revert last change with
23703 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
23705 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
23706 notes for the result of the __tls_get_addr calls.
23707 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
23709 2019-03-24 Jeff Law <law@redhat.com>
23711 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
23713 PR rtl-optimization/87761
23714 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
23715 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
23717 (pass_cprop_hardreg::execute): Add df note problem and defer insn
23718 rescans. Reprocess blocks as needed, calling df_analyze before
23719 reprocessing. Always call df_analyze before fixing up debug bind
23722 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
23724 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
23727 2019-03-22 Andrew Pinski <apinski@marvell.com>
23729 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
23730 attrribute for uxtw.
23732 2019-03-26 Jeff Law <law@redhat.com>
23734 PR rtl-optimization/87761
23735 * config/mips/mips-protos.h (mips_split_move): Add new argument.
23736 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
23737 (mips_split_move): Accept new INSN argument. Try to forward SRC
23738 into the next instruction.
23739 (mips_split_move_insn): Pass INSN through to mips_split_move.
23741 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
23743 PR rtl-optimization/89676
23744 * lra-constraints.c (curr_insn_transform): Do match reload for
23745 early clobbers even if the match was successful.
23747 2019-03-22 Jakub Jelinek <jakub@redhat.com>
23750 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
23752 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
23754 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
23756 2019-03-22 Jakub Jelinek <jakub@redhat.com>
23758 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
23759 <avx512>_fmsub_<mode>_mask3<round_name>,
23760 <avx512>_fnmadd_<mode>_mask3<round_name>,
23761 <avx512>_fnmsub_<mode>_mask3<round_name>,
23762 avx512f_vmfmadd_<mode>_mask3<round_name>,
23763 avx512f_vmfmsub_<mode>_mask3<round_name>,
23764 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
23765 instead of register_operand and %v instead of v for match_operand 1.
23766 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
23767 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
23768 <round_nimm_predicate> instead of register_operand and %v instead of v
23769 for match_operand 1.
23771 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
23772 <avx512>_fmadd_<mode>_mask3<round_name>,
23773 <avx512>_fmsub_<mode>_mask<round_name>,
23774 <avx512>_fmsub_<mode>_mask3<round_name>,
23775 <avx512>_fnmadd_<mode>_mask<round_name>,
23776 <avx512>_fnmadd_<mode>_mask3<round_name>,
23777 <avx512>_fnmsub_<mode>_mask<round_name>,
23778 <avx512>_fnmsub_<mode>_mask3<round_name>,
23779 <avx512>_fmaddsub_<mode>_mask<round_name>,
23780 <avx512>_fmaddsub_<mode>_mask3<round_name>,
23781 <avx512>_fmsubadd_<mode>_mask<round_name>,
23782 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
23783 <round_nimm_predicate> instead of nonimmediate_operand.
23784 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
23785 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
23786 Use register_operand instead of <round_nimm_predicate> for the
23787 operand that needs to match output.
23788 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
23789 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
23790 Likewise. Formatting fixes.
23793 * config/i386/i386.c (enum ix86_builtins): Remove
23794 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
23795 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
23796 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
23797 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
23798 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
23799 __builtin_ia32_vfmsubss3_mask3): New builtins.
23800 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
23801 avx512f_vmfmadd_<mode>_mask3<round_name>,
23802 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
23803 *avx512f_vmfmsub_<mode>_mask<round_name>,
23804 avx512f_vmfmsub_<mode>_mask3<round_name>,
23805 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
23806 *avx512f_vmfnmadd_<mode>_mask<round_name>,
23807 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
23808 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
23809 *avx512f_vmfnmsub_<mode>_mask<round_name>,
23810 avx512f_vmfnmsub_<mode>_mask3<round_name>,
23811 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
23812 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
23813 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
23814 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
23815 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
23816 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
23817 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
23818 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
23819 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
23820 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
23821 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
23822 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
23823 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
23824 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
23825 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
23826 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
23827 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
23828 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
23829 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
23830 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
23831 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
23832 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
23834 2019-03-21 Martin Sebor <msebor@redhat.com>
23836 PR tree-optimization/89350
23837 * builtins.c (compute_objsize): Also ignore offsets whose upper
23839 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
23840 (builtin_memref::builtin_memref): Initialize new member.
23841 Allow EXPR to be null.
23842 (builtin_memref::extend_offset_range): Replace local with a member.
23843 Avoid assuming pointer offsets are unsigned.
23844 (builtin_memref::set_base_and_offset): Determine base object
23845 before computing offset range.
23846 (builtin_access::builtin_access): Handle memset.
23847 (builtin_access::generic_overlap): Replace local with a member.
23848 (builtin_access::strcat_overlap): Same.
23849 (builtin_access::overlap): Same.
23850 (maybe_diag_overlap): Same.
23851 (maybe_diag_access_bounds): Same.
23852 (wrestrict_dom_walker::check_call): Handle memset.
23853 (check_bounds_or_overlap): Same.
23855 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
23856 Jakub Jelinek <jakub@redhat.com>
23859 * tree.c (fld_type_variant, fld_incomplete_type_of,
23860 fld_process_array_type): Call fld->pset.add and don't call
23861 add_tree_to_fld_list if it returns true.
23862 (free_lang_data_in_type): Similarly with self-recursive call. Purge
23863 non-marked types from TYPE_NEXT_VARIANT list.
23864 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
23866 2019-03-21 Jakub Jelinek <jakub@redhat.com>
23868 * hash-table.h (hash_table): Add Lazy template parameter defaulted
23869 to false, if true, don't alloc_entries during construction, but defer
23870 it to the first method that needs m_entries allocated.
23871 (hash_table::hash_table, hash_table::~hash_table,
23872 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
23873 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
23874 hash_table::clear_slot, hash_table::traverse_noresize,
23875 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
23876 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
23878 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
23879 NO_INSERT instead of find_with_hash.
23880 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
23881 hash_set::m_table): Add Lazy to template params of hash_table.
23882 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
23883 * attribs.c (test_attribute_exclusions): Likewise.
23884 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
23885 hash_set. Add tests for hash_set with Lazy = true.
23887 2019-03-21 Richard Biener <rguenther@suse.de>
23889 PR tree-optimization/89779
23890 * tree.c (tree_nop_conversion): Consolidate and fix defensive
23891 checks with respect to released SSA names now having error_mark_node
23893 * fold-const.c (operand_equal_p): Likewise.
23895 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
23898 * config/s390/s390.c (global_not_special_regno_p): Move to make it
23900 (s390_optimize_register_info): Use global_not_special_regno_p to
23901 check for global regs.
23903 2019-03-20 Jakub Jelinek <jakub@redhat.com>
23906 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
23907 update this_alternative nor this_alternative_set.
23909 2019-03-19 Jim Wilson <jimw@sifive.com>
23912 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
23913 align, size, offset. Use them to handle a BLKmode reference. Update
23915 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
23917 2019-03-19 Jakub Jelinek <jakub@redhat.com>
23919 PR rtl-optimization/89768
23920 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
23921 instead of GEN_INT.
23922 (unroll_loop_runtime_iterations): Likewise.
23924 2019-03-19 Martin Sebor <msebor@redhat.com>
23926 PR tree-optimization/89644
23927 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
23928 rather than endptr as an indicator of nul-termination.
23930 PR tree-optimization/89644
23931 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
23932 arrays in determining sequence sizes in strncpy and stpncpy.
23934 2019-03-19 Martin Liska <mliska@suse.cz>
23936 PR middle-end/89737
23937 * predict.c (combine_predictions_for_bb): Empty likely_edges and
23938 unlikely_edges if there's an edge that belongs to both these sets.
23940 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
23943 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
23944 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
23945 go via a stack temporary.
23947 2019-03-19 Jakub Jelinek <jakub@redhat.com>
23950 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
23951 instead of gen_rtx_SUBREG.
23952 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
23954 2019-03-19 Richard Biener <rguenther@suse.de>
23957 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
23959 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
23963 * tree.c (free_lang_data_in_decl): Do not free context of C++
23966 2019-03-19 Jakub Jelinek <jakub@redhat.com>
23969 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
23970 subs for the first alternative except when operands[3] is 1.
23973 * gimplify.c (gimplify_asm_expr): For output argument with
23974 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
23977 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
23979 PR rtl-optimization/89753
23980 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
23981 explicit unrolling factor even more robust.
23983 2019-03-19 Jakub Jelinek <jakub@redhat.com>
23986 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
23987 compensation use x2 += 1 instead of x2 -= -1 and when honoring
23988 signed zeros, do another copysign after the compensation.
23990 2019-03-18 Martin Sebor <msebor@redhat.com>
23992 PR tree-optimization/89720
23993 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
23994 more conservatively, the same as anti-range.
23996 2019-03-18 Richard Biener <rguenther@suse.de>
23998 PR middle-end/88945
23999 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
24000 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
24001 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
24002 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
24004 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
24006 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
24007 Extend queue to 1024 entries.
24008 Add "consumed" field.
24009 (gomp_print_output): Remove print_index parameter.
24010 Add final parameter.
24011 Change limit to unsigned.
24012 Use consumed field to implement circular buffer.
24013 Detect interrupted print in final pass.
24014 Flush output at the end.
24015 (run): Update gomp_print_output usage.
24016 (main): Initialize kernargs->output_data.consumed.
24018 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
24020 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
24021 calculation of the minimum number of scalar iterations for
24022 fully-predicated loops.
24024 2019-03-18 Martin Jambor <mjambor@suse.cz>
24026 PR tree-optimization/89546
24027 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
24028 any propagation to its children took place.
24030 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
24033 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
24034 parameter, and make use of it.
24035 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
24037 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
24039 * config/arc/arc.opt (mcode-density-frame): Get the inital value
24040 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
24041 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
24042 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
24043 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
24044 match what the ops is doing.
24045 (push_multi_fp_blink): Likewise.
24046 * config/arc/arc.c (arc_override_options): Enable enter/leave when
24047 compiling for size and elf target.
24048 (arc_save_callee_enter): Adjust note to match what enter/leave
24051 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
24053 * config/arc/arc.md (tst_movb): Fix constraint.
24055 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
24057 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
24059 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
24061 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
24062 * config/arc/arc.c (arc_conditional_register_usage): Remove all
24063 reg_alloc_order references.
24064 (size_alloc_order): Define.
24065 (arc_adjust_reg_alloc_order): New function.
24066 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
24068 (ADJUST_REG_ALLOC_ORDER): Define.
24069 (HONOR_REG_ALLOC_ORDER): Likewise.
24071 2019-03-18 Richard Biener <rguenther@suse.de>
24074 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
24075 loads and stores a bit more.
24077 2019-03-18 Richard Biener <rguenther@suse.de>
24080 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
24081 load pessimization to stores as well.
24083 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
24085 PR middle-end/86979
24086 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
24087 successor, use NULL as its av set.
24089 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
24091 PR rtl-optimization/89721
24092 * lra-constraints (invariant_p): Return false if side_effects_p holds.
24094 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
24097 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24098 When handling vec_extract, use modular arithmetic to allow
24099 constant selectors greater than vector length.
24100 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
24101 V1TImode vectors to have constant selector values greater than 0.
24102 Use modular arithmetic to compute vector index.
24103 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
24104 index for in-memory vectors. Correct code generation for
24105 in-register vectors.
24106 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
24109 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
24113 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
24116 2019-03-15 Jakub Jelinek <jakub@redhat.com>
24119 * tree.c (inchash::add_expr): Strip any location wrappers.
24120 * fold-const.c (operand_equal_p): Move stripping of location wrapper
24121 after hash verification.
24124 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
24125 SIGN_EXTEND and ZERO_EXTEND.
24127 2019-03-14 Jason Merrill <jason@redhat.com>
24128 Jakub Jelinek <jakub@redhat.com>
24130 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
24131 than if is_empty (*slot).
24132 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
24133 existing elt and for elt removal.
24134 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
24135 of already removed elt.
24137 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
24140 * config/i386/i386.c (remove_partial_avx_dependency): Handle
24141 REG_EH_REGION note.
24143 2019-03-14 Martin Liska <mliska@suse.cz>
24146 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
24148 2019-03-14 Richard Biener <rguenther@suse.de>
24151 * config/i386/i386.c (make_resolver_func): Properly set
24152 DECL_CONTEXT on the RESULT_DECL.
24153 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
24155 2019-03-14 Richard Biener <rguenther@suse.de>
24157 * gimple-pretty-print.c: Include cfgloop.h.
24158 (dump_gimple_phi): Adjust.
24159 (dump_gimple_bb_header): Dump loop header for GIMPLE.
24160 (pp_cfg_jump): Adjust.
24161 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
24162 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
24163 (lower_phi_internal_fn): Remove.
24164 (verify_gimple_call): Remove IFN_PHI special-casing.
24165 (dump_function_to_file): Dump IL state.
24166 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
24167 done to deal with PHI nodes being present in non-SSA state.
24169 2019-03-14 Jakub Jelinek <jakub@redhat.com>
24172 * multiple_target.c (create_dispatcher_calls): Change
24173 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
24174 In the node->iterate_referring loop, push *ref rather than ref, call
24175 ref->remove_reference () and always pass 0 to iterate_referring.
24177 PR rtl-optimization/89679
24178 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
24179 would contain a paradoxical SUBREG.
24181 2019-03-14 Richard Biener <rguenther@suse.de>
24183 PR tree-optimization/89710
24184 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
24187 2019-03-14 Martin Liska <mliska@suse.cz>
24189 * coverage.c (coverage_begin_function): Stream also
24191 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
24192 documentation about function declaration location.
24193 * gcov-dump.c (tag_function): Print whole range
24194 of function declaration.
24195 * gcov.c (struct function_info): Add end_column field.
24196 (function_info::function_info): Initialize it.
24197 (output_json_intermediate_file): Output {start,end}_column
24199 (read_graph_file): Read end_column.
24201 2019-03-14 Richard Biener <rguenther@suse.de>
24203 PR middle-end/89698
24204 * fold-const.c (operand_equal_p): For INDIRECT_REF check
24205 that the access types are similar.
24207 2019-03-14 Jakub Jelinek <jakub@redhat.com>
24209 PR tree-optimization/89703
24210 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
24211 aren't compatible also with builtin_decl_explicit. Check pure
24212 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
24213 and BUILT_IN_STPNCPY{,_CHK}.
24215 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
24218 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
24219 addr32 prefix to VSIB address for X32.
24220 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
24222 (*avx512pf_gatherpf<mode>df_mask): Likewise.
24223 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
24224 (*avx512pf_scatterpf<mode>df_mask): Likewise.
24225 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
24226 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
24227 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
24228 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
24229 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
24230 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
24231 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
24232 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
24233 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
24234 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
24235 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
24236 (*avx512f_scatterdi<mode>): Likewise.
24238 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
24241 * lra-constraints.c (inherit_in_ebb): Update
24242 potential_reload_hard_regs along with live_hard_regs.
24244 2019-03-13 Jakub Jelinek <jakub@redhat.com>
24247 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
24249 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
24251 2019-03-13 Martin Sebor <msebor@redhat.com>
24253 PR tree-optimization/89662
24254 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
24257 2019-03-13 Richard Biener <rguenther@suse.de>
24259 PR middle-end/89677
24260 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
24261 throw FP expressions at tree-affine.
24263 2019-03-14 Richard Biener <rguenther@suse.de>
24265 * tree-pretty-print.c (dump_generic_node): For -gimple properly
24266 dump negative integer constants using _Literal (type) -num.
24268 2019-03-13 Jakub Jelinek <jakub@redhat.com>
24270 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
24271 nonlocal_value member.
24273 PR middle-end/88588
24274 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
24275 (ipa_simd_modify_function_body): Handle PHIs.
24277 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
24279 * config/s390/s390.c (s390_option_override_internal): Use more
24280 aggressive inlining parameters.
24282 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
24284 * config/s390/3906.md: New file.
24285 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
24286 (LONGRUNNING_THRESHOLD): Remove.
24287 (MAX_SCHED_MIX_SCORE): Decrease.
24288 (MAX_SCHED_MIX_DISTANCE): Decrease.
24289 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
24290 (struct s390_sched_state): New struct to hold scheduling state.
24291 (S390_SCHED_STATE_NORMAL): Remove.
24292 (S390_SCHED_STATE_CRACKED): Remove.
24293 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
24294 (s390_get_sched_attrmask): Use new attribute.
24295 (s390_get_unit_mask): Use new units.
24296 (s390_is_fpd): New function.
24297 (s390_is_fxd): New function.
24298 (s390_is_longrunning): New function.
24299 (s390_sched_score): Use new functions.
24300 (s390_sched_reorder): Likewise.
24301 (s390_sched_variable_issue): Rework and use new functions.
24302 (s390_sched_init): Use new functions.
24303 * config/s390/s390.h (s390_tune_attr): Add z14.
24304 * config/s390/s390.md: Add z14.
24306 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
24308 * config/s390/2964.md: Update pipeline description.
24309 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
24310 (LONGRUNNING_THRESHOLD): Remove.
24311 (LATENCY_FACTOR): Remove.
24312 (s390_get_unit_mask): Add unit.
24313 (s390_sched_score): Use fxd/fpd.
24314 (s390_sched_variable_issue): Use fxd/fpd.
24316 2019-03-12 Martin Liska <mliska@suse.cz>
24318 * config/i386/i386.c: Reword an error message.
24320 2019-03-12 Martin Jambor <mjambor@suse.cz>
24322 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
24323 terminate with newline.
24325 2019-03-12 Jakub Jelinek <jakub@redhat.com>
24328 * config/s390/s390.md (tabort): Use %wd instead of
24329 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
24330 letters and periods.
24331 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
24332 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
24335 PR middle-end/89663
24336 * builtins.c (expand_builtin_int_roundingfn,
24337 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
24338 gcc_unreachable if validate_arglist fails.
24340 2019-03-12 Richard Biener <rguenther@suse.de>
24342 PR tree-optimization/89664
24343 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
24344 free the occurance tree after the early out.
24346 2019-03-11 Jakub Jelinek <jakub@redhat.com>
24348 PR middle-end/89655
24350 * vr-values.c (vr_values::update_value_range): If
24351 old_vr->varying_p (), don't update it, make new_vr also VARYING
24354 2019-03-11 Martin Liska <mliska@suse.cz>
24356 * config/aarch64/aarch64.c (aarch64_override_options_internal):
24357 Fix double string quoting.
24359 2019-03-11 Martin Liska <mliska@suse.cz>
24361 * collect-utils.c (collect_wait): Wrap apostrophes
24362 in gcc internal format with %'.
24363 * collect2.c (main): Likewise.
24364 (scan_prog_file): Likewise.
24365 (scan_libraries): Likewise.
24366 * config/i386/i386.c (ix86_expand_call): Likewise.
24367 (ix86_handle_interrupt_attribute): Likewise.
24368 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
24369 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
24370 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
24371 * lto-wrapper.c (find_crtoffloadtable): Likewise.
24372 * symtab.c (symtab_node::verify_base): Likewise.
24373 * tree-cfg.c (verify_gimple_label): Likewise.
24374 * tree.c (verify_type_variant): Likewise.
24376 2019-03-11 Martin Liska <mliska@suse.cz>
24378 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
24379 in a string format message and fix GNU coding style.
24380 (expand_builtin_set_thread_pointer): Likewise.
24381 * common/config/aarch64/aarch64-common.c
24382 (aarch64_rewrite_selected_cpu): Likewise.
24383 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
24384 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
24385 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
24386 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
24387 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
24388 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
24389 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
24390 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
24391 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
24392 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
24394 * common/config/riscv/riscv-common.c
24395 (riscv_subset_list::parsing_subset_version): Likewise.
24396 (riscv_subset_list::parse_std_ext): Likewise.
24397 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
24398 (riscv_subset_list::parse): Likewise.
24399 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
24400 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
24401 (aarch64_override_options_internal): Likewise.
24402 (aarch64_validate_mcpu): Likewise.
24403 (aarch64_validate_march): Likewise.
24404 (aarch64_validate_mtune): Likewise.
24405 (aarch64_override_options): Likewise.
24406 * config/alpha/alpha.c (alpha_option_override): Likewise.
24407 * config/arc/arc.c (arc_init): Likewise.
24408 (parse_mrgf_banked_regs_option): Likewise.
24409 (arc_override_options): Likewise.
24410 (arc_expand_builtin_aligned): Likewise.
24411 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
24412 (arm_expand_builtin): Likewise.
24413 * config/arm/arm.c (arm_option_check_internal): Likewise.
24414 (arm_configure_build_target): Likewise.
24415 (arm_option_override): Likewise.
24416 (arm_options_perform_arch_sanity_checks): Likewise.
24417 (arm_handle_cmse_nonsecure_entry): Likewise.
24418 (arm_handle_cmse_nonsecure_call): Likewise.
24419 (arm_tls_referenced_p): Likewise.
24420 (thumb1_expand_prologue): Likewise.
24421 * config/avr/avr.c (avr_option_override): Likewise.
24422 * config/bfin/bfin.c (bfin_option_override): Likewise.
24423 * config/c6x/c6x.c (c6x_option_override): Likewise.
24424 * config/cr16/cr16.c (cr16_override_options): Likewise.
24425 * config/cris/cris.c (cris_option_override): Likewise.
24426 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
24427 * config/darwin-c.c (macosx_version_as_macro): Likewise.
24428 * config/darwin.c (darwin_override_options): Likewise.
24429 * config/frv/frv.c (frv_expand_builtin): Likewise.
24430 * config/h8300/h8300.c (h8300_option_override): Likewise.
24431 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
24432 (ix86_option_override_internal): Likewise.
24433 (warn_once_call_ms2sysv_xlogues): Likewise.
24434 (ix86_expand_prologue): Likewise.
24435 (split_stack_prologue_scratch_regno): Likewise.
24436 (ix86_warn_parameter_passing_abi): Likewise.
24437 * config/ia64/ia64.c (fix_range): Likewise.
24438 * config/m68k/m68k.c (m68k_option_override): Likewise.
24439 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
24440 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
24441 (mips_set_compression_mode): Likewise.
24442 * config/mmix/mmix.c (mmix_option_override): Likewise.
24443 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
24444 * config/msp430/msp430.c (msp430_option_override): Likewise.
24445 * config/nds32/nds32.c (nds32_option_override): Likewise.
24446 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
24447 (nios2_option_override): Likewise.
24448 (nios2_expand_custom_builtin): Likewise.
24449 * config/nvptx/mkoffload.c (main): Likewise.
24450 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
24451 * config/pa/pa.c (fix_range): Likewise.
24452 (pa_option_override): Likewise.
24453 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
24454 (riscv_option_override): Likewise.
24455 * config/rl78/rl78.c (rl78_option_override): Likewise.
24456 * config/rs6000/aix61.h: Likewise.
24457 * config/rs6000/aix71.h: Likewise.
24458 * config/rs6000/aix72.h: Likewise.
24459 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
24460 * config/rs6000/freebsd64.h: Likewise.
24461 * config/rs6000/linux64.h: Likewise.
24462 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
24463 (rs6000_expand_zeroop_builtin): Likewise.
24464 (rs6000_expand_mtfsb_builtin): Likewise.
24465 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
24466 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
24467 (rs6000_invalid_builtin): Likewise.
24468 (rs6000_expand_split_stack_prologue): Likewise.
24469 * config/rs6000/rtems.h: Likewise.
24470 * config/rx/rx.c (valid_psw_flag): Likewise.
24471 (rx_expand_builtin): Likewise.
24472 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
24473 * config/s390/s390.c (s390_expand_builtin): Likewise.
24474 (s390_function_profiler): Likewise.
24475 (s390_option_override_internal): Likewise.
24476 (s390_option_override): Likewise.
24477 * config/sh/sh.c (sh_option_override): Likewise.
24478 (sh_builtin_saveregs): Likewise.
24479 (sh_fix_range): Likewise.
24480 * config/sh/vxworks.h: Likewise.
24481 * config/sparc/sparc.c (sparc_option_override): Likewise.
24482 * config/spu/spu.c (spu_option_override): Likewise.
24483 (fix_range): Likewise.
24484 * config/visium/visium.c (visium_option_override): Likewise.
24485 (visium_handle_interrupt_attr): Likewise.
24486 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
24487 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
24488 (dbg_cnt_process_opt): Likewise.
24489 * dwarf2out.c (output_dwarf_version): Likewise.
24490 * except.c (expand_eh_return): Likewise.
24491 * gcc.c (defined): Likewise.
24492 (driver_handle_option): Likewise.
24493 (process_command): Likewise.
24494 (compare_files): Likewise.
24495 (driver::prepare_infiles): Likewise.
24496 (driver::do_spec_on_infiles): Likewise.
24497 (driver::maybe_run_linker): Likewise.
24498 * omp-offload.c (oacc_parse_default_dims): Likewise.
24499 * opts-global.c (handle_common_deferred_options): Likewise.
24500 * opts.c (parse_sanitizer_options): Likewise.
24501 (common_handle_option): Likewise.
24502 (enable_warning_as_error): Likewise.
24503 * passes.c (enable_disable_pass): Likewise.
24504 * plugin.c (parse_plugin_arg_opt): Likewise.
24505 (default_plugin_dir_name): Likewise.
24506 * targhooks.c (default_expand_builtin_saveregs): Likewise.
24507 (default_pch_valid_p): Likewise.
24508 * toplev.c (init_asm_output): Likewise.
24509 (process_options): Likewise.
24510 (toplev::run_self_tests): Likewise.
24511 * tree-cfg.c (verify_gimple_call): Likewise.
24512 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
24513 (tree_inlinable_function_p): Likewise.
24514 * var-tracking.c (vt_find_locations): Likewise.
24516 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
24518 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
24519 only on the else branch.
24521 2019-03-11 Martin Liska <mliska@suse.cz>
24523 * gcov.c (output_intermediate_json_line): Print function
24525 (output_json_intermediate_file): Add new argument.
24526 * doc/gcov.texi: Document the change.
24528 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
24530 PR rtl-optimization/89588
24531 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
24532 explicit unrolling factor more robust.
24534 2019-03-11 Richard Biener <rguenther@suse.de>
24536 PR tree-optimization/89649
24537 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
24538 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
24539 on the prolog and epilog loops.
24540 (vect_loop_versioning): Return copy of loop.
24541 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
24542 on the non-vectorized version of the loop.
24544 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
24547 * config/i386/sse.md (*vec_extractv2di_0_sse):
24548 Add (=r,x) alternative and corresponding splitter.
24550 2019-03-10 Martin Jambor <mjambor@suse.cz>
24552 PR tree-optimization/85762
24553 PR tree-optimization/87008
24554 PR tree-optimization/85459
24555 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
24556 it points to if there is a type changing MEM_REF. Adjust all callers.
24557 (build_accesses_from_assign): Disable total scalarization if
24558 contains_vce_or_bfcref_p returns true through the new parameter, for
24561 2019-03-09 Jakub Jelinek <jakub@redhat.com>
24564 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
24565 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
24568 * common.opt (fdiagnostics-show-labels,
24569 fdiagnostics-show-line-numbers, fdiagnostics-format=,
24570 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
24571 gas-locview-support, ginline-points, ginternal-reset-location-views):
24572 Terminate description text with a dot.
24573 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
24574 * config/mcore/mcore.opt (m210, m340): Likewise.
24575 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
24576 mnops=): Start description text with a capital letter.
24577 * config/arc/arc.opt (msize-level=): Likewise.
24578 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
24579 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
24580 mnewlib): Likewise.
24581 * config/ft32/ft32.opt (msim): Likewise.
24582 (mft32b, mcompress): Likewise. Terminate description text with a dot.
24583 (mnodiv, mnopm): Terminate description text with a dot.
24584 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
24586 * config/i386/i386.opt (prefer_vector_width, instrument_return):
24588 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
24591 PR rtl-optimization/89634
24592 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
24593 are modified in BB_END (e->src) instruction.
24595 2019-03-08 David Malcolm <dmalcolm@redhat.com>
24598 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
24599 messages more amenable to translation, and improve wording.
24601 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
24603 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
24604 ud- and du-chains between phases.
24606 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
24609 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
24610 instead of POLY_INT_CST.
24612 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
24614 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
24617 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
24622 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
24623 (_mm_storeu_si64): Ditto.
24625 2019-03-08 Martin Liska <mliska@suse.cz>
24628 * config/i386/i386.c (ix86_option_override_internal): Disable
24629 jump tables when retpolines are used.
24631 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
24634 * ipa-split.c (execute_split_functions): Do not split
24635 'noinline' or 'section' function.
24637 2019-03-08 Jakub Jelinek <jakub@redhat.com>
24640 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
24641 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
24642 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
24645 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
24646 from diagnostics. Formatting fixes.
24649 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
24650 warn_odr diagnostics.
24653 * lra-constraints.c (process_alt_operands): Avoid one space before
24654 " at the end of line and another after " on another line in a string
24656 * attribs.c (handle_dll_attribute): Likewise.
24657 * config/avr/avr-devices.c (avr_texinfo): Likewise.
24659 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
24660 warning_at or inform messages in G_() if there is no ?:.
24662 PR tree-optimization/89550
24663 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
24664 returned true. Formatting fixes.
24665 (expand_builtin_strnlen): Formatting fixes.
24666 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
24667 if warning_at returned true.
24668 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
24670 2019-03-08 Richard Biener <rguenther@suse.de>
24672 PR middle-end/89578
24673 * cfgloop.h (struct loop): Add owned_clique field.
24674 * cfgloopmanip.c (copy_loop_info): Copy it.
24675 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
24677 * tree-inline.c (copy_loops): Remap owned_clique.
24678 * lto-streamer-in.c (input_cfg): Stream owned_clique.
24679 * lto-streamer-out.c (output_cfg): Likewise.
24681 2019-03-08 Jakub Jelinek <jakub@redhat.com>
24684 * config/darwin.c: Include intl.h.
24685 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
24686 composing the message out of two separate parts.
24688 2019-03-07 Jakub Jelinek <jakub@redhat.com>
24691 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
24692 doesn't start with a capital letter and doesn't end with a dot.
24693 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
24694 with a capital letter.
24695 (ix86_mangle_function_version_assembler_name): Likewise.
24696 (ix86_generate_version_dispatcher_body): Likewise.
24697 (fold_builtin_cpu): Likewise.
24698 (get_builtin_code_for_version): Likewise. Remove extraneous space.
24699 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
24700 translators, wrap full type name in %qs.
24702 PR translation/79999
24703 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
24704 depend clause with source (or sink) modifier.
24705 * omp-expand.c (expand_omp_ordered_sink): Likewise.
24708 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
24709 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
24710 (avx512f_load<mode>_mask): New define_expand.
24711 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
24712 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
24713 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
24714 __builtin_ia32_movess_mask): New builtins.
24715 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
24716 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
24717 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
24718 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
24720 2019-03-07 Martin Jambor <mjambor@suse.cz>
24723 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
24724 for extern inline functions.
24726 2019-03-07 Martin Jambor <mjambor@suse.cz>
24729 * cgraph.h (cgraph_node): New inline method former_thunk_p.
24730 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
24731 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
24732 have multiple callees. At the end check if declarations match as
24733 opposed to cgraph_nodes.
24735 2019-03-07 Martin Liska <mliska@suse.cz>
24737 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
24738 which is equivalent to searching for this in clones chain.
24739 * symtab.c (symtab_node::verify_base): Similarly compare ASM
24740 names with a neighbour and special case first node in a chain.
24742 2019-01-25 Jason Merrill <jason@redhat.com>
24744 PR c++/80916 - spurious "static but not defined" warning.
24745 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
24746 for an internal symbol with DECL_EXTERNAL.
24748 2019-04-07 Richard Biener <rguenther@suse.de>
24750 PR middle-end/89618
24751 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
24752 * tree-inline.c (copy_loops): Simplify.
24754 2019-03-07 Martin Liska <mliska@suse.cz>
24756 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
24758 2019-03-07 Richard Biener <rguenther@suse.de>
24760 PR tree-optimization/89595
24761 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
24762 stmt iterator as reference, take boolean output parameter to
24763 indicate whether the stmt was removed and thus the iterator
24765 (dom_opt_dom_walker::before_dom_children): Re-iterate over
24766 stmts created by folding.
24768 2019-03-07 Jakub Jelinek <jakub@redhat.com>
24771 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
24774 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
24776 PR rtl-optimization/88845
24777 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
24779 * lra.c (remove_scratches_1): New function.
24780 (remove_scratches): Use it.
24781 (lra_emit_move): Likewise.
24783 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
24785 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
24786 unaligned_access variable.
24787 * config/arc/arc.c (arc_override_options): Set unaligned access
24788 default on for HS CPUs.
24789 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
24791 2019-03-06 Martin Liska <mliska@suse.cz>
24793 PR gcov-profile/89577
24794 * doc/gcov.texi: Prefer to use --coverage.
24795 * doc/sourcebuild.texi: Likewise.
24797 2019-03-02 Jason Merrill <jason@redhat.com>
24799 PR c++/86485 - -Wmaybe-unused with empty class ?:
24800 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
24802 2019-03-05 Jakub Jelinek <jakub@redhat.com>
24805 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
24808 PR middle-end/89590
24809 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
24810 exactly one argument.
24812 2019-03-05 Jakub Jelinek <jakub@redhat.com>
24813 Richard Sandiford <richard.sandiford@arm.com>
24815 PR tree-optimization/89570
24816 * match.pd (vec_cond into cond_op simplification): Don't use
24817 get_conditional_internal_fn, use as_internal_fn (cond_op).
24819 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
24822 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
24823 to decide when to split off a non-zero offset from a symbol.
24824 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
24825 in function symbols.
24827 2019-03-05 Richard Biener <rguenther@suse.de>
24829 PR tree-optimization/89594
24830 * tree-if-conv.c (pass_if_conversion::execute): Handle
24831 case where .LOOP_VECTORIZED_FUNCTION was removed.
24833 2019-03-05 Jakub Jelinek <jakub@redhat.com>
24836 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
24837 instead alloca it only when needed with the needed size.
24839 PR tree-optimization/89570
24840 * match.pd (vec_cond into cond_op simplification): Guard with
24841 vectorized_internal_fn_supported_p test and #if GIMPLE.
24843 PR tree-optimization/89566
24844 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
24845 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
24846 Punt if get_user_idx_format succeeds, but idx_format argument is
24847 not provided or doesn't have pointer type, or if idx_args is above
24848 number of provided arguments.
24850 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
24852 PR tree-optimization/89437
24853 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
24855 2019-03-04 Richard Biener <rguenther@suse.de>
24857 PR middle-end/89572
24858 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
24861 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
24863 PR tree-optimization/89487
24864 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
24865 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
24866 (distribute_loop): Don't do runtime alias check if there is non-
24867 addressable data reference.
24868 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
24869 is a register variable.
24871 2019-03-02 Jakub Jelinek <jakub@redhat.com>
24874 * config/arm/arm.md (cmpsi2_addneg): Use
24875 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
24876 If operands[2] is 0 or INT_MIN, force use of subs.
24877 (*compare_scc splitter): Use gen_int_mode.
24878 (*negscc): Likewise.
24879 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
24881 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
24882 Monk Chiang <sh.chiang04@gmail.com>
24884 * common/config/riscv/riscv-common.c: Include sstream.
24885 (riscv_subset_list::to_string): New.
24886 (riscv_arch_str): Likewise.
24887 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
24888 * config.in: Regen.
24889 * config/riscv/riscv-protos.h (riscv_arch_str): New.
24890 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
24891 (riscv_emit_attribute): New.
24892 (riscv_file_start): Emit attribute if needed.
24893 (riscv_option_override): Init riscv_emit_attribute_p.
24894 * config/riscv/riscv.opt (mriscv-attribute): New option.
24895 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
24896 * configure: Regen.
24897 * doc/install.texi: Document --with-riscv-attribute.
24898 * doc/invoke.texi: Document -mriscv-attribute.
24900 * common/config/riscv/riscv-common.c:
24901 Include config/riscv/riscv-protos.h.
24902 (INCLUDE_STRING): Defined.
24903 (RISCV_DONT_CARE_VERSION): Defined.
24904 (riscv_subset_t): Declare.
24905 (riscv_subset_t::riscv_subset_t): New.
24906 (riscv_subset_list): Declare.
24907 (riscv_subset_list::riscv_subset_list): New.
24908 (riscv_subset_list::~riscv_subset_list): Likewise.
24909 (riscv_subset_list::parsing_subset_version): Likewise.
24910 (riscv_subset_list::parse_std_ext): Likewise.
24911 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
24912 (riscv_subset_list::add): Likewise.
24913 (riscv_subset_list::lookup): Likewise.
24914 (riscv_subset_list::xlen): Likewise.
24915 (riscv_subset_list::parse): Likewise.
24916 (riscv_supported_std_ext): Likewise.
24917 (current_subset_list): Likewise.
24918 (riscv_parse_arch_string): Using riscv_subset_list::parse to
24921 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
24923 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24924 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
24925 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
24927 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
24929 PR rtl-optimization/85899
24930 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
24931 fallthru edges leading to the exit block.
24933 2019-03-01 Tamar Christina <tamar.christina@arm.com>
24936 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
24937 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
24939 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
24941 PR tree-optimization/89535
24942 * tree-vect-stmts.c (vectorizable_call): Record the vector types
24943 for each operand. Calculate the fallback choice for mask operands
24944 and pass it to vect_get_vec_def_for_operand.
24946 2019-03-01 Richard Biener <rguenther@suse.de>
24948 PR middle-end/89541
24949 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
24950 get virtual operands.
24951 (get_expr_operands): Handle CONST_DECL like other decls.
24953 2019-03-01 Jakub Jelinek <jakub@redhat.com>
24955 PR middle-end/89503
24956 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
24957 on DECL_P and EXPR_P.
24959 2019-03-01 Richard Biener <rguenther@suse.de>
24961 PR middle-end/89497
24962 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
24963 argument, defaulted to zero.
24964 * passes.c (execute_function_todo): Pass down SSA update flags
24965 to cleanup_tree_cfg.
24966 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
24967 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
24969 (cleanup_tree_cfg): Get and pass down SSA update flags.
24971 2019-03-01 Jakub Jelinek <jakub@redhat.com>
24974 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
24975 early_lto_debug argument.
24977 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
24979 PR tree-optimization/89536
24980 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
24981 only whether bit #0 of the value is 0 instead of the entire value.
24983 2019-02-28 Marek Polacek <polacek@redhat.com>
24985 PR c++/87068 - missing diagnostic with fallthrough statement.
24986 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
24987 at the end of a seq, save its location to walk_stmt_info.
24988 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
24991 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
24994 * tree.c (find_atomic_core_type): Move ahead in file.
24995 (check_base_type): Correctly compare alignments of atomic types.
24997 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
25000 * config/i386/i386.c (get_builtin_code_for_version): Identify
25001 Westmere from PCLMUL, instead of AES.
25003 2019-02-28 Jakub Jelinek <jakub@redhat.com>
25006 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
25007 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
25010 2019-02-28 Tamar Christina <tamar.christina@arm.com>
25013 * config/aarch64/aarch64-option-extensions.def: Document it.
25014 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
25017 2019-02-28 Jakub Jelinek <jakub@redhat.com>
25020 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
25021 builtins if they don't have a single scalar floating point argument.
25024 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
25026 PR rtl-optimization/89490
25027 * varasm.c (get_block_for_section): Bail out for mergeable sections.
25028 (default_use_anchors_for_symbol_p, output_object_block): Assert the
25029 block section is not mergeable.
25031 2019-02-27 Jakub Jelinek <jakub@redhat.com>
25034 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
25035 old define_insn to ...
25036 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
25037 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
25038 Rename old define_insn to ...
25039 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
25040 (thumb2_casesi_internal_pic): New define_expand. Rename old
25042 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
25043 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
25044 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
25046 2019-02-27 Richard Biener <rguenther@suse.de>
25049 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
25051 2019-02-27 Richard Biener <rguenther@suse.de>
25053 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
25056 2019-02-27 Richard Biener <rguenther@suse.de>
25059 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
25060 parameter, prefix section name with .gnu.debuglto_ if true.
25061 (dwarf2out_finish): Pass false to output_comdat_type_unit.
25062 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
25064 2019-02-27 Richard Biener <rguenther@suse.de>
25067 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
25068 rather than on use_debug_types, doing what output_die does.
25069 (value_format): Likewise.
25071 2019-02-27 Martin Jambor <mjambor@suse.cz>
25072 Martin Sebor <msebor@redhat.com>
25074 * doc/invoke.texi (Warning Options): Reword description of
25075 -Wno-absolute-value.
25077 2019-02-27 Jakub Jelinek <jakub@redhat.com>
25079 PR tree-optimization/89280
25080 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
25081 builtin_setjmp_setup_bb): New functions.
25082 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
25083 When visiting __builtin_setjmp_setup block, queue in special
25084 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
25085 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
25086 from visited after the loop if they don't have any visited successor
25089 2018-02-26 Steve Ellcey <sellcey@marvell.com>
25091 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
25093 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
25095 2019-02-26 Jakub Jelinek <jakub@redhat.com>
25098 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
25099 with types other than sizetype/ssizetype.
25101 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
25103 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
25104 (enum sparc_processor_type): ...this.
25105 (enum sparc_code_model_type): New enumeration type.
25106 (enum sparc_memory_model_type): Tweak comments.
25107 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
25109 (mcmodel): Use sparc_code_model enumeration and variable.
25110 (sparc_code_model): New enumeration.
25111 (mdebug): Add Undocumented marker.
25112 * config/sparc/sparc.h (enum cmodel): Delete.
25113 (sparc_cmodel): Likewise.
25114 (TARGET_CM_MEDLOW): Adjust to above renaming.
25115 (TARGET_CM_MEDMID): Likewise.
25116 (TARGET_CM_MEDANY): Likewise.
25117 (TARGET_CM_EMBMEDANY): Likewise.
25118 * config/sparc/sparc.c (sparc_cmodel): Delete.
25119 (sparc_option_override): Remove string/value mapping support for the
25120 code model. Move code and memory model support to after the handling
25121 of target flags. Do private machine setup last.
25122 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
25123 (sparc_legitimize_reload_address): Likewise.
25124 (sparc_output_mi_thunk): Likewise.
25125 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
25127 2019-02-26 Jakub Jelinek <jakub@redhat.com>
25129 PR tree-optimization/89500
25130 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
25131 (handle_builtin_strlen): Remove noncst_bound variable. Always
25132 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
25133 cst if the first cst bytes starting at x are known to be non-zero,
25134 even if the string is not zero terminated. Don't try to modify
25135 *si for strnlen. Update strlen_to_stridx only for strlen or if
25136 we can prove strnlen returns the same value as strlen would.
25138 2019-02-26 Martin Liska <mliska@suse.cz>
25140 * alloc-pool.h (struct pool_usage): Remove extra
25142 * bitmap.h (struct bitmap_usage): Likewise.
25143 * ggc-common.c (struct ggc_usage): Likewise.
25144 * mem-stats.h (struct mem_usage): Likewise.
25145 (mem_alloc_description::dump): Print dash lines
25146 here and repeat header at the end of a table report.
25147 It's then more readable.
25148 * tree-phinodes.c (phinodes_print_statistics): Make
25149 horizontal alignment.
25150 * tree-ssanames.c (ssanames_print_statistics): Likewise.
25151 * vec.c (struct vec_usage): Remove extra print_dash_line.
25152 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
25154 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
25156 * doc/extend.texi (__builtin_object_size):
25157 Use @pxref instead of @xref inside parenthesis.
25158 (__builtin_has_attribute): Add missing comma after @xref.
25159 (__builtin_object_size): Ditto.
25160 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
25162 2019-02-26 Jeff Law <law@redhat.com>
25164 PR rtl-optimization/87761
25165 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
25166 detect obviously dead insns and delete them.
25168 2019-02-26 Richard Biener <rguenther@suse.de>
25170 PR tree-optimization/89505
25171 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
25172 to handle restrict pointed-to vars with multiple subvars
25175 2019-02-26 Richard Biener <rguenther@suse.de>
25177 PR tree-optimization/89489
25178 * tree-parloops.c (create_loop_fn): Copy over last_clique.
25180 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
25182 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
25183 and move around comment.
25184 <BIT_AND_EXPR>: Likewise.
25185 <BIT_NOT_EXPR>: Add specific handling for boolean types.
25187 2019-02-26 Jakub Jelinek <jakub@redhat.com>
25190 * config/i386/i386.c (remove_partial_avx_dependency): Call
25191 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
25192 after changing possibly many instructions to use that pseudo. Fix up
25193 insertion of v4sf_const0 setter at the start of bb.
25195 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
25198 * doc/extend.texi (Variadic Pointer Args): New section.
25200 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
25201 Martin Sebor <msebor@gmail.com>
25203 * common.opt (Wattribute-alias): Likewise.
25204 * doc/invoke.texi (Option Summary): List general form of
25205 -Wattribute-alias=. List positive form of -Wmissing-attributes.
25206 (-Wmissing-attributes): Invert entry, rewrite and correct default.
25207 Add cross-references.
25208 (-Wattribute-alias): Rewrite and correct default. Mention
25209 considered attributes (same as for -Wmissing-attributes).
25211 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
25213 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
25214 (_mm_cvtpd_ps): Likewise.
25215 (_mm_cvttpd_epi32): Likewise.
25218 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
25219 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
25222 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
25224 2019-02-25 Tamar Christina <tamar.christina@arm.com>
25227 * common/config/aarch64/aarch64-common.c
25228 (struct aarch64_option_extension): Add is_synthetic.
25229 (all_extensions): Use it.
25230 (TARGET_OPTION_INIT_STRUCT): Define hook.
25231 (struct gcc_targetm_common): Moved to end.
25232 (all_extensions_by_on): New.
25233 (opt_ext_cmp, typedef opt_ext): New.
25234 (aarch64_option_init_struct): New.
25235 (aarch64_contains_opt): New.
25236 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
25237 * config/aarch64/aarch64-option-extensions.def
25238 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
25239 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
25240 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
25241 Set is_synthetic to false.
25242 (crypto): Set is_synthetic to true.
25243 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
25246 2019-02-25 Tamar Christina <tamar.christina@arm.com>
25248 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
25249 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
25250 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
25251 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
25252 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
25253 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
25254 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
25255 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
25257 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
25258 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
25259 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
25260 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
25261 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
25262 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
25263 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
25264 vfmlsl_laneq_high_f16): ... To this.
25265 * config/arm/neon.md: Update comments.
25267 2019-02-25 Tamar Christina <tamar.christina@arm.com>
25269 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
25270 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
25271 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
25272 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
25273 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
25274 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
25275 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
25276 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
25278 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
25279 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
25280 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
25281 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
25282 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
25283 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
25284 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
25285 vfmlslq_laneq_high_f16): ... To this.
25287 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
25289 PR rtl-optimization/86096
25290 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
25291 comparing mw_order values.
25293 2019-02-25 Jakub Jelinek <jakub@redhat.com>
25296 * config/arm/arm.md (*subsi3_carryin_const): Use
25297 arm_neg_immediate_operand predicate instead of
25298 arm_not_immediate_operand, "L" constraint instead of "K" and
25299 print it using %n2 instead of %B2.
25300 (*subsi3_carryin_const0): New define_insn.
25301 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
25302 instead of arm_not_operand and "I" constraint instead of "K" and
25303 print it using %n3 instead of %B2. Instead of using match_dup 2 add
25304 another match_operand and in the condition check that it is negation
25306 (*subsi3_carryin_compare_const0): New define_ins.
25307 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
25308 *subsi3_carryin_const.
25309 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
25310 split into *subsi3_carryin_compare_const0 if the highpart is zero.
25313 * config/arm.vfp.md (*negdf2_vfp): Use
25314 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
25315 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
25317 2019-02-24 Jakub Jelinek <jakub@redhat.com>
25319 PR rtl-optimization/89445
25320 * simplify-rtx.c (simplify_ternary_operation): Don't use
25321 simplify_merge_mask on operands that may trap.
25322 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
25323 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
25324 second operand is CONST_VECTOR, check if any element could be zero.
25325 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
25326 their operands can trap.
25328 2019-02-23 Martin Sebor <msebor@redhat.com>
25330 * gimple-ssa-sprintf.c (target_strtol): Rename...
25331 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
25332 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
25333 check for range error.
25335 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
25338 * opts-common.c (prune_options): Also prune joined switches
25339 with Negative and RejectNegative.
25340 * config/i386/i386.opt (march=): Add Negative(march=).
25341 (mtune=): Add Negative(mtune=).
25342 * doc/options.texi: Document Negative used together with Joined
25343 and RejectNegative.
25345 2019-02-22 Martin Sebor <msebor@redhat.com>
25347 * doc/extend.texi (Other Builtins): Add
25348 __builtin_is_constant_evaluated.
25350 2019-02-22 Richard Biener <rguenther@suse.de>
25352 PR tree-optimization/87609
25353 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
25355 2019-02-22 Jeff Law <law@redhat.com>
25357 PR rtl-optimization/87761
25358 * config/mips/mips.md: Add new combiner pattern to recognize
25359 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
25361 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
25364 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
25365 destination register in peepholes generating patterns for ADDS/SUBS.
25366 (add<mode>3_compare0,
25367 *addsi3_compare0_uxtw, add<mode>3_compareC,
25368 add<mode>3_compareV_imm, add<mode>3_compareV,
25369 *adds_<optab><ALLX:mode>_<GPI:mode>,
25370 *subs_<optab><ALLX:mode>_<GPI:mode>,
25371 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
25372 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
25373 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
25374 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
25375 sub<mode>3_compare1): Allow stack pointer for source register.
25376 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
25378 2019-02-22 Martin Sebor <msebor@redhat.com>
25380 PR tree-optimization/88993
25381 PR tree-optimization/88853
25382 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
25384 (sprintf_dom_walker::call_info::is_string_func): New helper.
25385 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
25386 for formatted string functions.
25387 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
25389 2019-02-22 Martin Sebor <msebor@redhat.com>
25392 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
25393 unreachable subexpressions.
25395 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
25396 Hongtao Liu <hongtao.liu@intel.com>
25397 Sunil K Pandey <sunil.k.pandey@intel.com>
25400 * config/i386/i386-passes.def: Add
25401 pass_remove_partial_avx_dependency.
25402 * config/i386/i386-protos.h
25403 (make_pass_remove_partial_avx_dependency): New.
25404 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
25406 (pass_data_remove_partial_avx_dependency): New.
25407 (pass_remove_partial_avx_dependency): Likewise.
25408 (make_pass_remove_partial_avx_dependency): Likewise.
25409 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
25410 (*extendsfdf2): Add avx_partial_xmm_update.
25411 (truncdfsf2): Likewise.
25412 (*float<SWI48:mode><MODEF:mode>2): Likewise.
25413 (SF/DF conversion splitters): Disabled for TARGET_AVX.
25415 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
25417 PR middle-end/85598
25418 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
25421 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
25424 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
25425 (PTA_SKYLAKE): Add PTA_AES.
25426 (PTA_GOLDMONT): Likewise.
25428 2019-02-22 Sudakshina Das <sudi.das@arm.com>
25430 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
25431 instruction if enabled.
25432 (aarch64_override_options): Remove reference to return address key.
25434 2019-02-22 Richard Biener <rguenther@suse.de>
25436 PR tree-optimization/89440
25437 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
25438 not necessary assert.
25440 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
25443 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
25444 (oacc_replace_fn_attrib_attr): ... this new function.
25445 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
25446 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
25448 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25450 * config/arm/arm-cpus.in (ares): Rename to...
25451 (neoverse-n1): ... This. Add ares as alias.
25452 * config/arm/arm-tables.opt: Regenerate.
25453 * config/arm/arm-tune.md: Likewise.
25454 * doc/invoke.txt (ARM Options): Document neoverse-n1.
25456 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25458 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
25459 * config/aarch64/aarch64-tune.md: Regenerate.
25460 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
25462 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25464 * config/aarch64/aarch64.c (ares_tunings): Rename to...
25465 (neoversen1_tunings): ... This.
25466 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
25467 (neoverse-n1): New CPU.
25468 * config/aarch64/aarch64-tune.md: Regenerate.
25469 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
25471 2019-02-22 Richard Biener <rguenther@suse.de>
25473 PR middle-end/87609
25474 * cfghooks.h (dependence_hash): New typedef.
25475 (struct copy_bb_data): New type.
25476 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
25477 (duplicate_block): Likewise.
25478 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
25479 (copy_bbs): Create and pass down copy_bb_data.
25480 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
25481 (rtl_duplicate_bb): Likewise.
25482 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
25483 remap dependence info.
25485 2019-02-22 Richard Biener <rguenther@suse.de>
25487 PR tree-optimization/87609
25488 * tree-core.h (tree_base): Document special clique values.
25489 * tree-inline.c (remap_dependence_clique): Do not use the
25490 special clique value of one.
25491 (maybe_set_dependence_info): Use clique one.
25492 (clear_dependence_clique): New callback.
25493 (compute_dependence_clique): Clear clique one from all refs
25494 before assigning it (again).
25496 2019-02-21 Martin Sebor <msebor@redhat.com>
25498 * doc/extend.texi (__clear_cache): Correct signature.
25500 2019-02-21 Ian Lance Taylor <iant@golang.org>
25503 * varasm.c (decode_addr_const): Call lookup_constant_def rather
25504 than output_constant_def.
25505 (add_constant_to_table): New static function.
25506 (output_constant_def): Call add_constant_to_table.
25507 (tree_output_constant_def): Likewise.
25509 2019-02-21 Jakub Jelinek <jakub@redhat.com>
25512 * builtins.c (fold_builtin_arith_overflow): If first two args are
25513 INTEGER_CSTs, set intres and ovfres to constants rather than calls
25516 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
25519 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
25520 error for -mindirect-branch/-mfunction-return with incompatible
25523 2019-02-21 Jakub Jelinek <jakub@redhat.com>
25526 * constraints.md (q): Remove.
25527 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
25530 2019-02-21 Martin Jambor <mjambor@suse.cz>
25533 * omp-general.c (omp_extract_for_data): Removed a duplicate call
25534 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
25535 (omp_adjust_for_condition): ...here. Added necessary parameters.
25536 * omp-general.h (omp_adjust_for_condition): Updated declaration.
25537 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
25538 proper values to new parameters of omp_adjust_for_condition.
25540 2019-02-20 Jakub Jelinek <jakub@redhat.com>
25542 PR middle-end/89412
25543 * expr.c (expand_assignment): If result is a MEM, use change_address
25544 instead of simplify_gen_subreg.
25546 2019-02-20 Jakub Jelinek <jakub@redhat.com>
25547 David Malcolm <dmalcolm@redhat.com>
25549 PR middle-end/89091
25550 * fold-const.c (decode_field_reference): Return NULL_TREE if
25551 lang_hooks.types.type_for_size returns NULL. Check it before
25552 overwriting *exp_. Use return NULL_TREE instead of return 0.
25554 2019-02-20 Jakub Jelinek <jakub@redhat.com>
25556 PR middle-end/88074
25557 PR middle-end/89415
25558 * toplev.c (do_compile): Double the emin/emax exponents to workaround
25561 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
25564 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
25565 TARGET_SSE in addition to TARGET_SSE_MATH.
25567 (ix86_excess_precision): Ditto.
25568 (ix86_float_exceptions_rounding_supported_p): Ditto.
25569 (use_rsqrt_p): Ditto.
25570 * config/i386/sse.md (rsqrt<mode>2): Ditto.
25572 2019-02-20 David Malcolm <dmalcolm@redhat.com>
25575 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
25576 linenum_arith_t when determining if two adjacent line spans are
25577 close enough to merge.
25578 (diagnostic_show_locus): Use linenum_arith_t when iterating over
25579 lines within each line_span.
25581 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
25584 * lra-constraints.c(uses_hard_regs_p): Fix handling of
25585 paradoxical SUBREGS.
25587 2019-02-20 Li Jia He <helijia@linux.ibm.com>
25590 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
25591 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
25592 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
25595 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
25597 * config/gcn/gcn.c (print_operand): Fix typo.
25599 2019-02-19 Richard Biener <rguenther@suse.de>
25601 PR middle-end/88074
25602 * toplev.c (do_compile): Initialize mpfr's exponent range
25603 based on available float modes.
25605 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
25607 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
25608 as long as the epilogue isn't completed.
25610 2019-02-18 Martin Sebor <msebor@redhat.com>
25612 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
25613 __has_cpp_attribute, and __has_include.
25615 2019-02-18 Martin Sebor <msebor@redhat.com>
25617 * doc/invoke.texi (-Wreturn-type): Correct and expand.
25619 2019-02-18 Martin Sebor <msebor@redhat.com>
25621 PR middle-end/89294
25622 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
25624 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
25626 2019-02-18 Richard Biener <rguenther@suse.de>
25628 PR tree-optimization/89296
25629 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
25630 of no-warning flag to cases that might emit the bogus warning.
25632 2019-02-18 Jakub Jelinek <jakub@redhat.com>
25635 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
25637 * config/arm/vfp.md (*movdi_vfp): Likewise.
25638 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
25639 "q" constraint for operands[0].
25642 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
25643 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
25644 pattern in a temporary buffer.
25645 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
25646 than 64-operands[2].
25649 * config/s390/s390.c (s390_indirect_branch_attrvalue,
25650 s390_indirect_branch_settings): Define unconditionally.
25651 (s390_set_current_function): Likewise, but guard the whole body except
25652 the s390_indirect_branch_settings call with
25653 #if S390_USE_TARGET_ATTRIBUTE.
25654 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
25656 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
25657 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
25658 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
25659 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
25660 HOST_WIDE_INT_1U instead of 1ULL.
25661 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
25662 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
25663 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
25664 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
25666 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
25669 2019-02-18 Martin Jambor <mjambor@suse.cz>
25671 PR tree-optimization/89209
25672 * tree-sra.c (create_access_replacement): New optional parameter
25673 reg_tree. Use it as a type if non-NULL and access type is not of
25675 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
25676 to create_access_replacement.
25677 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
25678 Check lacc is non-NULL before attempting to re-create it on the RHS.
25680 2019-02-18 Martin Liska <mliska@suse.cz>
25683 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
25685 (symbol_table::free_edge): Recycle m_summary_id.
25686 * cgraph.h (get_summary_id): New.
25687 (symbol_table::release_symbol): Set m_summary_id to -1
25689 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
25690 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
25691 function_summary to fast_function_summary.
25692 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
25693 * ipa-pure-const.c (class funct_state_summary_t):
25694 Switch from function_summary to fast_function_summary.
25695 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
25696 (class ipa_ref_opt_summary_t): Switch from function_summary
25697 to fast_function_summary.
25698 * symbol-summary.h (class function_summary_base): New class
25699 that is created from base of former function_summary.
25700 (function_summary_base::unregister_hooks): New.
25701 (class function_summary): Inherit from function_summary_base.
25702 (class call_summary_base): New class
25703 that is created from base of former call_summary.
25704 (class call_summary): Inherit from call_summary_base.
25705 (struct is_same): New.
25706 (class fast_function_summary): New summary class.
25707 (class fast_call_summary): New summary class.
25708 * vec.h (vec_safe_grow_cleared): New function.
25710 2019-02-18 Martin Liska <mliska@suse.cz>
25712 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
25713 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
25714 * doc/tm.texi: Document new target hook.
25715 * doc/tm.texi.in: Likewise.
25716 * target.def: Add new target macro.
25717 * gcc.c (find_fortran_preinclude_file): Do not search multilib
25720 2019-02-17 Alan Modra <amodra@gmail.com>
25723 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
25724 output reg on add insn.
25725 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
25727 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
25730 * config/i386/sse.md (ssedoublemode): Remove V4HI.
25731 (PMULHRSW): Likewise.
25732 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
25734 (ssse3_pmulhrswv4hi3): New expander.
25736 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
25738 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
25739 MMX. Add isa attribute.
25741 2019-02-16 Jakub Jelinek <jakub@redhat.com>
25743 PR rtl-optimization/66152
25744 * builtins.h (c_readstr): Declare.
25745 * builtins.c (c_readstr): Remove forward declaration. Add
25746 null_terminated_p argument, if false, read all bytes from the
25747 string instead of stopping after '\0'.
25748 * expr.c (string_cst_read_str): New function.
25749 (store_expr): Use string_cst_read_str instead of
25750 builtin_strncpy_read_str. Try to store by pieces the whole
25751 exp_len first, and only if that fails, split it up into
25752 store by pieces followed by clear_storage. Formatting fix.
25754 * config/i386/i386.md (*movqi_internal): Remove static from
25755 buf variable. Use output_asm_insn (buf, operands); return "";
25756 instead of return buf;.
25757 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
25758 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
25759 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
25761 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
25763 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
25764 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
25765 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
25766 (CC1_SPEC): Likewise.
25767 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
25769 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
25771 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
25772 the base address on 64-bit strict-alignment platforms.
25774 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
25776 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
25778 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
25780 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
25782 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
25784 PR rtl-optimization/88308
25785 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
25786 on copied instruction.
25788 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
25790 * final.c (insn_current_reference_address): Replace test on JUMP_P
25791 with test on jump_to_label_p.
25792 * config/visium/visium-passes.def: New file.
25793 * config/visium/t-visium (PASSES_EXTRA): Define.
25794 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
25795 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
25796 (TRAMPOLINE_ALIGNMENT): Define.
25797 * config/visium/visium.c (visium_option_override): Do not register
25798 the machine-specific reorg pass here.
25799 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
25801 (output_branch): Adjust threshold for long branch instruction.
25802 * config/visium/visium.md (cpu): Move around.
25803 (length): Adjust for the GR6.
25805 2019-02-15 Richard Biener <rguenther@suse.de>
25806 Jakub Jelinek <jakub@redhat.com>
25808 PR tree-optimization/89278
25809 * tree-loop-distribution.c: Include tree-eh.h.
25810 (generate_memset_builtin, generate_memcpy_builtin): Call
25811 rewrite_to_non_trapping_overflow on builtin->size before passing it
25812 to force_gimple_operand_gsi.
25814 2019-02-15 Jakub Jelinek <jakub@redhat.com>
25817 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
25819 * opth-gen.awk: Likewise.
25821 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
25823 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
25824 Enable MMX, SSE and SSE2 by default.
25825 * config/i386/i386.c (ix86_option_override_internal): Do not
25826 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
25828 2019-02-14 Jakub Jelinek <jakub@redhat.com>
25830 PR rtl-optimization/89354
25831 * combine.c (make_extraction): Punt if extraction_mode is narrower
25834 2019-02-14 Maya Rashish <coypu@sdf.org>
25836 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
25837 * config/netbsd-d.c: New file.
25838 * config/t-netbsd: Add netbsd-d.o
25840 2018-02-14 Steve Ellcey <sellcey@marvell.com>
25842 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
25843 affects_type_identity to true for aarch64_vector_pcs.
25844 (aarch64_comp_type_attributes): New function.
25845 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
25847 2019-02-14 Tamar Christina <tamar.christina@arm.com>
25850 * config/arm/iterators.md (ANY64): Add V4HF.
25852 2019-02-14 Martin Liska <mliska@suse.cz>
25854 PR rtl-optimization/89242
25855 * dce.c (delete_unmarked_insns): Call free_dominance_info we
25856 process a transformation.
25858 2019-02-14 Jakub Jelinek <jakub@redhat.com>
25860 PR tree-optimization/89314
25861 * fold-const.c (fold_binary_loc): Cast strlen argument to
25862 const char * before dereferencing it. Formatting fixes.
25864 PR middle-end/89284
25865 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
25867 2019-02-13 Ian Lance Taylor <iant@golang.org>
25869 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
25870 and set current index for other optimizations.
25872 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
25874 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
25875 nonimmediate_operand as operand 2 predicate.
25876 (vec_set<VF2_512_256:mode>_0): Ditto.
25877 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
25878 (*vec_concatv2si): Remove alternative 2.
25879 (*vec_concatv4si_0): Use vm constraint for alternative 0.
25880 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
25881 (vec_concatv2di): Split alternatives 4,5,6 to ...
25882 (*vec_concatv2di_0) ... new pattern.
25884 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
25887 * config/arm/arm.c (ldm_stm_operation_p) Set
25888 addr_reg_in_reglist correctly for first register.
25889 (load_multiple_sequence): Remove dead base check.
25890 (gen_ldm_seq): Correctly set write_back for Thumb-1.
25892 2019-02-13 Tamar Christina <tamar.christina@arm.com>
25895 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
25896 Expose as @aarch64_pred_mov.
25897 * config/aarch64/aarch64.c (aarch64_classify_address):
25898 Use expand_insn which legitimizes operands.
25900 2019-02-13 Martin Liska <mliska@suse.cz>
25902 * builtins.h (expand_builtin_with_bounds): Remove declaration.
25903 * calls.c (struct arg_data): Remove special_slot, pointer_arg
25904 and pointer_offset fields.
25905 (initialize_argument_information): Remove usage of dead
25907 * cgraph.h (struct cgraph_thunk_info): Remove
25908 add_pointer_bounds_args.
25909 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
25911 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
25913 * config/i386/i386.c (ix86_function_arg_advance): Remove
25915 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
25916 (def_builtin): Remove usage of dead fields.
25917 (ix86_add_new_builtins): Likewise.
25918 * ipa-fnsummary.c (compute_fn_summary): Likewise.
25919 * ipa-icf.c (sem_function::equals_wpa): Likewise.
25920 (sem_function::init): Likewise.
25921 (sem_variable::merge): Likewise.
25922 * ipa-visibility.c (function_and_variable_visibility): Likewise.
25923 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
25924 * lto-cgraph.c (lto_output_node): Likewise.
25925 (lto_output_varpool_node): Likewise.
25926 (input_node): Likewise.
25927 (input_varpool_node): Likewise.
25928 * lto-streamer-out.c (lto_output): Likewise.
25929 * tree-inline.c (expand_call_inline): Remove usage of
25931 * tree-inline.h (struct copy_body_data): Likewise.
25932 * varpool.c (varpool_node::dump): Likewise.
25934 2019-02-13 Jakub Jelinek <jakub@redhat.com>
25936 PR middle-end/89303
25937 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
25938 into pt->vars_contains_escaped_heap instead of setting
25939 pt->vars_contains_escaped_heap to it.
25941 PR middle-end/89281
25942 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
25943 INTVAL (size), compare it to GET_MODE_MASK instead of
25944 1 << GET_MODE_BITSIZE.
25947 * config/i386/predicates.md (x86_64_immediate_operand): Allow
25948 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
25951 2019-02-13 Martin Liska <mliska@suse.cz>
25954 * cfgrtl.c (remove_barriers_from_footer): New function.
25955 (try_redirect_by_replacing_jump): Use it.
25956 (cfg_layout_redirect_edge_and_branch): Likewise.
25958 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25960 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
25961 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
25962 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
25963 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
25964 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
25965 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
25967 * config/rs6000/rs6000.c (builtin_function_type)
25968 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
25969 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
25970 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
25971 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
25972 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
25974 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
25976 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
25977 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
25979 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
25982 * config/i386/i386.md (*movoi_internal_avx): Revert revision
25983 268678 and revision 268657.
25984 (*movti_internal): Likewise.
25986 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
25989 * config/s390/s390.c (s390_decompose_address): Update comment.
25990 (s390_check_qrst_address): Reject invalid address forms after
25993 2019-02-12 Martin Liska <mliska@suse.cz>
25996 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
25997 we need default values of funct_state for a function that
26000 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
26002 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
26003 the object to pick the size of stores on strict-alignment platforms.
26005 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
26006 (*movdi_insn_sp32): Likewise.
26007 (*movdi_insn_sp64): Likewise.
26009 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
26012 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
26013 types that needs constructiong.
26014 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
26016 2019-02-12 Richard Biener <rguenther@suse.de>
26018 PR tree-optimization/89253
26019 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
26020 duplicate the loop.
26022 2019-02-11 David Malcolm <dmalcolm@redhat.com>
26025 * input.c (selftest::test_line_offset_overflow): New selftest.
26026 (selftest::input_c_tests): Call it.
26028 2019-02-11 Martin Sebor <msebor@redhat.com>
26030 PR tree-optimization/88771
26031 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
26032 when -Wstringop-overflow is set.
26033 (builtin_memref::builtin_memref): Adjust excessive upper bound
26034 only when lower bound is not excessive.
26035 (maybe_diag_overlap): Detect and diagnose excessive bounds via
26036 -Wstringop-ovefflow.
26037 (maybe_diag_offset_bounds): Rename...
26038 (maybe_diag_access_bounds): ...to this.
26039 (check_bounds_or_overlap): Adjust for name change above.
26041 2019-02-11 Martin Sebor <msebor@redhat.com>
26044 * builtins.c (max_object_size): Move from here...
26045 * builtins.h (max_object_size): ...and here...
26046 * tree.c (max_object_size): ...to here...
26047 * tree.h (max_object_size): ...and here.
26049 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
26051 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
26052 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
26053 for correct semantics.
26055 2019-02-11 Alan Modra <amodra@gmail.com>
26057 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
26058 -mlongcall and -mpltseq.
26059 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
26060 (RS/6000 and PowerPC Options <-mpltseq>): Document.
26061 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
26062 * config/rs6000/sysv4.opt (mpltseq): New option.
26063 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
26064 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
26065 support is lacking. Don't allow -mpltseq with -mbss-plt.
26066 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
26067 -mpltseq given for ELFv1.
26068 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
26069 Only use UNSPEC_PLTSEQ for inline PLT calls.
26070 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
26071 use UNSPEC_PLTSEQ for inline PLT calls.
26072 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
26073 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
26074 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
26075 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
26076 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
26077 (pltseq_mtctr_<mode>): Likewise.
26079 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26081 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
26083 * configure: Regenerate.
26085 2019-02-11 Jakub Jelinek <jakub@redhat.com>
26088 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
26091 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
26093 * function.c (assign_parm_setup_block): Use the stored
26094 size, not the passed size, when allocating stack-space,
26095 also for a parameter with alignment larger than
26096 MAX_SUPPORTED_STACK_ALIGNMENT.
26098 2019-02-11 Martin Liska <mliska@suse.cz>
26101 * ipa-cp.c (build_toporder_info): Remove usage of a param.
26102 * ipa-inline.c (inline_small_functions): Likewise.
26103 * ipa-pure-const.c (propagate_pure_const): Likewise.
26104 (propagate_nothrow): Likewise.
26105 * ipa-reference.c (propagate): Likewise.
26106 * ipa-utils.c (struct searchc_env): Remove unused field.
26107 (searchc): Always search across AVAIL_INTERPOSABLE.
26108 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
26109 the only called IPA pure const can properly not propagate
26110 across interposable boundary.
26111 * ipa-utils.h (ipa_reduced_postorder): Remove param.
26113 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
26115 * config/nds32/nds32.md (call_internal, call_value_internal,
26116 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
26118 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
26120 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
26123 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
26125 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
26128 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
26130 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
26132 2019-02-10 Jakub Jelinek <jakub@redhat.com>
26134 PR tree-optimization/89268
26135 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
26136 if preds is non-NULL.
26138 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
26141 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
26144 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
26146 * config/nds32/nds32.md (trap): New pattern.
26148 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
26150 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
26153 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
26155 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
26158 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
26160 * ipa-visibility.c (localize_node): Also do not localize
26161 LDPR_PREVAILING_DEF_IRONLY_EXP.
26163 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
26166 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
26167 instead of type_with_linkage.
26169 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
26172 * params.def (uninlined-function-insns, uninlined-function-time,
26173 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
26174 bound so we don't get overflows.
26176 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
26178 * config/rs6000/rs6000-string.c (expand_compare_loop,
26179 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
26182 2019-02-09 Jakub Jelinek <jakub@redhat.com>
26184 PR middle-end/89246
26185 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26186 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
26187 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
26189 2019-02-09 Alan Modra <amodra@gmail.com>
26192 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
26193 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
26196 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
26198 PR middle-end/88560
26199 * lra-constraints.c (process_alt_operands): Don't increase reject
26200 for memory when offset memory is required.
26202 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
26204 * config/s390/vector.md: Implement vector copysign.
26206 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
26208 * expr.c (expand_constructor): Correct indentations.
26210 2019-02-08 Richard Biener <rguenther@suse.de>
26212 PR tree-optimization/89247
26213 * tree-if-conv.c: Include tree-cfgcleanup.h.
26214 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
26215 (tree_if_conversion): Pass through predicate vector.
26216 (pass_if_conversion::execute): Do CFG cleanup and SSA update
26217 inline, see if any if-converted loops we refrece in
26218 LOOP_VECTORIZED calls vanished and fixup.
26219 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
26221 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
26223 * config/s390/constraints.md (jdd): New constraint.
26225 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
26228 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
26229 upper 16 vector registers without TARGET_AVX512VL.
26230 (*movti_internal): Likewise.
26232 2019-02-08 Jakub Jelinek <jakub@redhat.com>
26234 PR rtl-optimization/89234
26235 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
26236 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
26237 (copy_reg_eh_region_note_backward): Likewise.
26239 2019-02-08 Richard Biener <rguenther@suse.de>
26241 PR middle-end/89223
26242 * tree-data-ref.c (initialize_matrix_A): Fail if constant
26243 doesn't fit in HWI.
26244 (analyze_subscript_affine_affine): Handle failure from
26245 initialize_matrix_A.
26247 2019-02-08 Jakub Jelinek <jakub@redhat.com>
26249 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
26252 2019-02-07 David Malcolm <dmalcolm@redhat.com>
26254 PR tree-optimization/86637
26255 PR tree-optimization/89235
26256 * tree-vect-loop.c (optimize_mask_stores): Add an
26257 auto_purge_vect_location sentinel to ensure that vect_location is
26259 * tree-vectorizer.c
26260 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
26261 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
26262 to ensure that vect_location is purged on exit.
26263 (pass_slp_vectorize::execute): Likewise, replacing the manual
26265 * tree-vectorizer.h (class auto_purge_vect_location): New class.
26267 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26269 * config/aarch64/iterators.md (max_opp): New code_attr.
26270 (USMAX): New code iterator.
26271 * config/aarch64/predicates.md (aarch64_smin): New predicate.
26272 (aarch64_smax): Likewise.
26273 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
26274 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
26277 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
26280 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
26281 for TARGET_AVX512VL.
26282 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
26284 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
26286 * config/s390/s390-builtin-types.def: Add new types.
26287 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
26288 (s390_vec_xlw4): Make the memory operand into a const pointer.
26289 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
26291 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
26292 a new vector type with the alignment of the scalar memory operand.
26294 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
26295 Jakub Jelinek <jakub@redhat.com>
26298 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
26299 arm_count_ldrdstrd_insns): New declarations.
26300 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
26302 (valid_operands_ldrd_strd): New function.
26303 (arm_count_ldrdstrd_insns): New function.
26304 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
26305 sets instead of single DImode set and define new insns to match this.
26307 2019-02-07 Tamar Christina <tamar.christina@arm.com>
26309 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
26310 Make it a C initializer.
26312 2019-02-07 Tamar Christina <tamar.christina@arm.com>
26315 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
26317 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26319 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
26320 Use neon_dot<q> for type.
26321 (neon_<sup>dot_lane<vsi2qi>): Likewise.
26323 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26325 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
26326 Use neon_dot<q> for type.
26327 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
26328 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
26330 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
26332 PR rtl-optimization/89225
26333 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
26336 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
26338 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
26339 after restoring registers saved to allocate the frame on Windows.
26341 2019-02-06 Richard Biener <rguenther@suse.de>
26343 PR tree-optimization/89182
26344 * graphite.h (cached_scalar_evolution_in_region): Declare.
26345 * graphite.c (struct seir_cache_key): New.
26346 (struct sese_scev_hash): Likewise.
26347 (seir_cache): New global.
26348 (cached_scalar_evolution_in_region): New function.
26349 (graphite_transform_loops): Allocate and release seir_cache.
26350 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
26351 cached_scalar_evolution_in_region.
26352 * graphite-scop-detection.c (scop_detection::can_represent_loop):
26354 (scop_detection::graphite_can_represent_expr: Use
26355 cached_scalar_evolution_in_region.
26356 (scop_detection::stmt_simple_for_scop_p): Likewise.
26357 (find_params_in_bb): Likewise.
26358 (gather_bbs::before_dom_children): Likewise.
26359 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
26360 (add_loop_constraints): Likewise.
26362 2019-02-06 Jakub Jelinek <jakub@redhat.com>
26364 PR middle-end/89210
26365 * fold-const-call.c (fold_const_vec_convert): Pass true as last
26366 operand to new_unary_operation only if both element types are integral
26367 and it isn't a widening conversion. Return NULL_TREE if
26368 new_unary_operation failed.
26370 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
26373 * config/s390/s390.md: Remove load and test FP splitter.
26375 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
26378 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
26379 expand_compare_loop, expand_block_compare_gpr,
26380 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
26381 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
26382 #include "profile-count.h" and "predict.h" for types and functions
26383 needed to work with REG_BR_PROB notes.
26385 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
26388 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
26389 for the long branch case.
26391 2019-02-05 Jakub Jelinek <jakub@redhat.com>
26394 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
26395 can throw, non-call exceptions are enabled and we can't delete
26396 dead exceptions or alter cfg. Set must_clean if
26397 delete_insn_and_edges returns true, don't set it blindly for calls.
26398 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
26400 PR rtl-optimization/89195
26401 * combine.c (make_extraction): For MEMs, don't extract bytes outside
26402 of the original MEM.
26404 2019-02-05 Martin Liska <mliska@suse.cz>
26406 PR gcov-profile/89000
26407 * gcov.c (function_summary): Remove argument.
26408 (file_summary): New function.
26409 (print_usage): Replace tabs with spaces.
26410 (generate_results): Use new function file_summary.
26412 2019-02-05 Jakub Jelinek <jakub@redhat.com>
26415 * optabs.c (prepare_cmp_insn): Pass x and y to
26416 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
26418 2019-02-05 Richard Biener <rguenther@suse.de>
26420 PR middle-end/89150
26421 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
26422 (struct bitmap_element): Drop chain_prev so we properly recurse on
26423 the prev member, supporting tree views.
26424 (struct bitmap_head): GTY skip the obstack member.
26426 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
26429 * doc/extend.texi (Vector Extensions): Add an example of using vector
26430 types together with x86 intrinsics.
26432 2019-02-04 Alan Modra <amodra@gmail.com>
26434 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
26435 str[] size to 160, and comment.
26437 2019-02-04 Alan Modra <amodra@gmail.com>
26439 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
26440 (rs6000_pltseq_template): Guard output of TLS markers with
26441 TARGET_TLS_MARKERS.
26442 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
26443 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
26444 to use inline PLT sequences.
26445 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
26446 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
26447 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
26449 2019-02-04 Martin Liska <mliska@suse.cz>
26452 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
26453 out when ipa_fn_summaries does not contain entry for callee.
26455 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
26457 * config/sparc/sparc.h: Remove superfluous blank lines.
26458 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
26459 (got_register_rtx): ...this.
26460 (sparc_got): Adjust to above renaming.
26461 (sparc_tls_got): Likewise.
26462 (sparc_delegitimize_address): Likewise.
26463 (sparc_output_mi_thunk): Likewise.
26464 (sparc_init_pic_reg): Likewise.
26465 (save_local_or_in_reg_p): Fix test on the GOT register.
26466 (USE_HIDDEN_LINKONCE): Move around.
26467 (get_pc_thunk_name): Likewise.
26468 (gen_load_pcrel_sym): Likewise.
26469 (load_got_register): Likewise.
26471 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
26473 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
26474 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
26476 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
26478 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
26479 into consideration.
26481 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
26483 * config.gcc (with_nds32_lib, glibc):
26484 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
26485 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
26486 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
26488 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
26491 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
26492 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
26493 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
26494 (*rcpsf2_sse): Ditto.
26495 (*rsqrtsf2_sse): Ditto.
26496 (sse4_1_round<mode<2): Ditto.
26498 2019-02-03 Richard Biener <rguenther@suse.de>
26501 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
26504 2019-02-02 Jakub Jelinek <jakub@redhat.com>
26506 PR middle-end/87887
26507 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26508 Punt with warning on aggregate return or argument types. Ignore
26509 type/mode checking for uniform arguments.
26511 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
26513 * combine.c (try_combine): Do not print "Can't combine" messages unless
26514 printing failed combination attempts.
26516 2019-02-01 Martin Jambor <mjambor@suse.cz>
26519 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
26520 segment and global segment variables before making them static.
26522 2019-02-01 Martin Jambor <mjambor@suse.cz>
26524 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
26525 missed optimization dump with dump_enabled_p.
26527 2019-02-01 Richard Biener <rguenther@suse.de>
26529 PR middle-end/88597
26530 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
26531 the instantiate cache.
26532 (instantiate_scev_binary): Elide second operand procesing
26533 if equal to the first.
26534 * tree-chrec.c (chrec_contains_symbols): Add visited set.
26535 (chrec_contains_undetermined): Likewise.
26536 (tree_contains_chrecs): Likewise.
26538 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
26540 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
26542 2019-02-01 Jakub Jelinek <jakub@redhat.com>
26544 PR tree-optimization/89143
26545 * wide-int-range.h (wide_int_range_absu): Declare.
26546 * wide-int-range.cc (wide_int_range_absu): New function.
26547 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
26549 PR tree-optimization/88107
26550 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
26551 instead of assertion that eh_region_outermost is non-NULL, if it
26552 is NULL, set *ALL to true and return NULL.
26553 (move_sese_region_to_fn): Adjust caller, if all is set, call
26554 duplicate_eh_regions with NULL region.
26556 2019-02-01 Richard Biener <rguenth@suse.de>
26558 PR rtl-optimization/88593
26559 * mode-switching.c (optimize_mode_switching): Free dominators before
26560 calling cleanup_cfg.
26562 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26564 PR tree-optimization/88932
26565 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
26567 2019-01-31 Jakub Jelinek <jakub@redhat.com>
26569 PR middle-end/89137
26570 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
26571 bogus clang warning.
26573 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
26576 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
26577 alternative to avoid partial SSE register stall for TARGET_AVX.
26578 (truncdfsf2): Ditto.
26579 (sse4_1_round<mode>2): Ditto.
26581 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
26583 PR tree-optimization/89008
26584 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
26585 process anything of the form X * 0.
26587 2019-01-31 Richard Biener <rguenther@suse.de>
26589 PR tree-optimization/89135
26590 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
26591 with abnormal preds.
26593 2019-01-31 Jakub Jelinek <jakub@redhat.com>
26596 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
26597 always_inline callees into no_sanitize_address callers.
26599 2019-01-31 Richard Biener <rguenther@suse.de>
26601 PR rtl-optimization/89115
26602 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
26604 2019-01-30 Martin Sebor <msebor@redhat.com>
26607 * doc/extend.texi (cast to a union): Correct and expand.
26609 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
26611 PR rtl-optimization/87246
26612 * lra-constraints.c (simplify_operand_subreg): Reload memory
26613 in subreg if the address became invalid.
26615 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
26618 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
26619 Disable for little-endian.
26621 2019-01-30 Richard Biener <rguenther@suse.de>
26623 PR rtl-optimization/89115
26624 * opts.c (default_options_optimization): Reduce
26625 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
26626 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
26629 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
26631 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
26632 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
26633 type of vector element when vec_extract is implemented by direct
26636 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
26638 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
26640 2019-01-30 Richard Biener <rguenther@suse.de>
26642 PR tree-optimization/89111
26643 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
26644 canonicalization to appropriately sized access types.
26646 2019-01-30 Jakub Jelinek <jakub@redhat.com>
26649 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
26650 for arguments to functions that are TU-local and shouldn't be
26651 referenced by assembly.
26653 2019-01-30 Ulrich Drepper <drepper@redhat.com>
26655 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
26658 2019-01-29 Martin Sebor <msebor@redhat.com>
26661 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
26663 2019-01-29 Jakub Jelinek <jakub@redhat.com>
26667 * omp-simd-clone.c (simd_clone_clauses_extract)
26668 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
26669 OMP_CLAUSE_ALIGNED_ALIGNMENT.
26671 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
26673 * config.gcc: Force .init_array for ARC.
26675 2019-01-29 Richard Biener <rguenther@suse.de>
26678 * dwarf2out.c (collect_skeleton_dies): New helper.
26679 (copy_decls_for_unworthy_types): Call it.
26680 (build_abbrev_table): Assert we do not try to replace
26681 DW_AT_signature refs with local refs.
26683 2019-01-28 Jakub Jelinek <jakub@redhat.com>
26685 PR middle-end/89002
26686 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
26687 for lastprivate/linear IV, push gimplify context around gimplify_assign
26688 and, if it needed any temporaries, pop it into a gimple bind around the
26691 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
26693 * common.opt (-Wattribute-alias): Remove "no-" from name.
26694 Make -Wattribute-alias command line option and
26695 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
26697 2019-01-28 Jakub Jelinek <jakub@redhat.com>
26700 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
26701 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
26703 (bmi2): Add missing @opindex.
26704 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
26705 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
26706 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
26707 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
26708 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
26709 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
26710 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
26711 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
26712 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
26713 xsavec, xsaveopt and xsaves options.
26715 2019-01-28 Richard Biener <rguenther@suse.de>
26718 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
26721 2019-01-28 Richard Biener <rguenther@suse.de>
26723 PR tree-optimization/88739
26724 * tree-cfg.c (verify_types_in_gimple_reference): Verify
26725 BIT_FIELD_REFs only are applied to mode-precision operands
26726 when they are integral.
26727 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
26728 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
26729 BIT_FIELD_REFs of non-mode-precision integral operands.
26731 2019-01-27 Jakub Jelinek <jakub@redhat.com>
26734 * config/i386/sse.md
26735 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
26736 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
26737 first constants in pairs are multiples of 2. Formatting fixes.
26738 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
26739 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
26740 first constants in each quadruple are multiples of 4. Formatting fixes.
26742 2019-01-26 Martin Jambor <mjambor@suse.cz>
26745 * tree-inline.c: Include tree-cfgcleanup.h.
26746 (delete_unreachable_blocks_update_callgraph): Move...
26747 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
26748 ...here, make externally visible, make second argument bool, adjust
26750 * tree-cfgcleanup.c: Include cgraph.h.
26751 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
26753 * ipa-prop.c: Include tree-cfgcleanup.h.
26754 (ipcp_transform_function): Call
26755 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
26757 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
26759 PR rtl-optimization/88846
26760 * ira.c (process_set_for_memref_referenced_p): New.
26761 (memref_referenced_p): Add new param. Use
26762 process_set_for_memref_referenced_p. Add new switch cases.
26763 (memref_used_between_p): Pass new arg to memref_referenced_p.
26765 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
26768 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
26769 argument ABI_BREAK. Set to true if the calculated alignment has
26770 changed in gcc-9. Check bit-fields for their base type alignment.
26771 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
26772 (aarch64_function_arg_boundary): Likewise.
26773 (aarch64_gimplify_va_arg_expr): Likewise.
26775 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
26777 PR middle-end/89037
26778 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
26779 instead of accessing TREE_INT_CST_ELT directly.
26781 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
26783 * doc/sourcebuild.texi (Environment attributes): Add fenv and
26784 fenv_exceptions description.
26786 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
26788 PR rtl-optimization/87763
26789 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
26790 Allow SUBREG when matching CC_NZmode compare.
26792 2019-01-25 Richard Biener <rguenther@suse.de>
26794 PR tree-optimization/89049
26795 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
26796 Look at the pattern stmt to determine if the stmt is vectorized.
26798 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
26800 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
26801 (pred_mov<mode>): Handle all-register forms using both a new
26802 alternative and a split.
26804 2019-01-25 Richard Biener <rguenther@suse.de>
26806 PR tree-optimization/86865
26807 * graphite-scop-detection.c (scop_detection::can_represent_loop):
26808 Reject non-do-while loops.
26810 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
26812 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
26813 * config/rs6000/constraints.md (Q constraint): Use REG_P.
26814 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
26815 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
26816 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
26817 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
26818 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
26819 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
26820 vlogical_operand, gpc_reg_operand, int_reg_operand,
26821 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
26822 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
26823 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
26824 (save_world_operation, restore_world_operation, lmw_operation,
26825 stmw_operation): Use MEM_P and REG_P.
26826 (tie_operand): Use MEM_P.
26827 (vrsave_operation, crsave_operation): Use REG_P.
26828 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
26829 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
26830 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
26831 (call_operand): Use HARD_REGISTER_P.
26832 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
26834 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
26835 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
26836 quad_aligned_load_p, replace_swapped_aligned_store,
26837 recombine_lvx_pattern, replace_swapped_aligned_load,
26838 recombine_stvx_pattern): Use MEM_P.
26839 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
26840 Use MEM_P and SYMBOL_REF_P.
26841 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
26842 (insn_is_swappable_p): Use REG_P and MEM_P.
26843 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
26844 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
26846 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
26847 Use CONST_DOUBLE_P.
26848 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
26850 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
26851 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
26852 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
26853 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
26855 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
26856 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
26857 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
26858 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
26859 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
26860 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
26861 rs6000_split_logical_di): Use CONST_INT_P.
26862 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
26863 REG_P and SYMBOL_REF_P.
26864 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
26865 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
26866 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
26867 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
26868 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
26869 (small_data_operand, print_operand_address): Use CONST_INT_P and
26871 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
26872 (rs6000_init_hard_regno_mode_ok, direct_move_p):
26873 Use HARD_REGISTER_NUM_P.
26874 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
26875 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
26876 SUBREG_P and SYMBOL_REF_P.
26877 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
26878 and HARD_REGISTER_NUM_P.
26879 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
26881 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
26882 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
26884 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
26885 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
26886 find_addr_reg): Use REG_P.
26887 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
26888 (rs6000_emit_le_vsx_move): Use SUBREG_P.
26889 (offsettable_ok_by_alignment, constant_pool_expr_p,
26890 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
26891 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
26892 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
26893 rs6000_assemble_integer, create_TOC_reference,
26894 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
26895 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
26896 (rs6000_split_vec_extract_var): Use reg_or_subregno.
26897 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
26898 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
26899 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
26900 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
26901 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
26902 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
26903 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
26904 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
26905 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
26906 and cbranch<mode>4): Use CONST_INT_P.
26907 (multiple define_splits): Use REG_P and SUBREG_P.
26908 (define_expands call, call_value): Use MEM_P.
26909 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
26910 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
26911 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
26912 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
26913 and HARD_REGISTER_NUM_P.
26914 (multiple define_splits): Use HARD_REGISTER_NUM_P.
26916 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
26918 PR rtl-optimization/88948
26919 * rtl.h (prepare_copy_insn): New prototype.
26920 * gcse.c (prepare_copy_insn): New function, split out from
26921 process_insert_insn.
26922 (process_insert_insn): Use prepare_copy_insn.
26923 * store-motion.c (replace_store_insn): Use prepare_copy_insn
26924 instead of gen_move_insn.
26926 2019-01-24 Jakub Jelinek <jakub@redhat.com>
26929 * config/i386/i386.c (ix86_pic_register_p): Return true for
26930 UNSPEC_SET_GOT too.
26932 PR tree-optimization/88964
26933 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
26934 punt if HONOR_SNANS (chrec).
26936 PR middle-end/89015
26937 * tree-nested.c (convert_nonlocal_reference_stmt,
26938 convert_local_reference_stmt, convert_tramp_reference_stmt,
26939 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
26940 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
26941 or GIMPLE_OMP_TASK.
26943 PR tree-optimization/89027
26944 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
26945 for "omp simd array" variables.
26947 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
26950 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
26951 force the alignment of m_val.
26953 2019-01-24 Richard Biener <rguenther@suse.de>
26956 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
26957 When in "legacy" debug mode make sure to reset self-origins.
26959 2019-01-24 Martin Liska <mliska@suse.cz>
26961 PR gcov-profile/88994
26962 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
26963 result will be always smaller or equal to the original.
26964 * gcov.c (mangle_name): Fix else branch where we should
26965 also copy to PTR and shift the pointer.
26967 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
26969 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
26970 * vr-values.c (find_case_label_ranges): Fix a comment typo.
26972 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
26974 * common/config/i386/i386-common.c
26975 (OPTION_MASK_ISA_ENQCMD_SET,
26976 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
26977 (ix86_handle_option): Handle -menqcmd.
26978 * config.gcc (enqcmdintrin.h): New header file.
26979 * config/i386/cpuid.h (bit_ENQCMD): New bit.
26980 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
26982 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
26984 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
26985 __builtin_ia32_enqcmds): New builtins.
26986 * config/i386/i386-c.c (__ENQCMD__): New macro.
26987 * config/i386/i386-option.c (ix86_target_string): Add
26989 (ix86_valid_target_attribute_inner_p): Likewise.
26990 * config/i386/i386-expand.c
26991 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
26992 IX86_BUILTIN_ENQCMDS.
26993 * config/i386/i386.h (TARGET_ENQCMD): New.
26994 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
26995 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
26996 (movdir64b_<mode>): Parameterize to enable share expansion code
26997 with ENQCMD in function ix86_expand_builtin.
26998 * config/i386/i386.opt: Add -menqcmd.
26999 * config/i386/immintrin.h: Include enqcmdintrin.h.
27000 * config/i386/enqcmdintrin.h: New intrinsic file.
27001 * doc/invoke.texi: Add -menqcmd.
27003 2019-01-23 Bin Cheng <bin.cheng@arm.com>
27004 Steve Ellcey <sellcey@marvell.com>
27007 * recog.c (address_operand): Return false on wrong mode for address.
27008 (constrain_operands): Check for mode with 'p' constraint.
27010 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
27013 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
27014 Disparage MMX alternative.
27015 (sse2_cvtpd2pi): Ditto.
27016 (sse2_cvttpd2pi): Ditto.
27018 2019-01-23 David Malcolm <dmalcolm@redhat.com>
27021 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
27022 use-after-free of the result of
27023 aarch64_get_extension_string_for_isa_flags.
27025 2019-01-23 Jakub Jelinek <jakub@redhat.com>
27028 * doc/extend.texi: Document break and continue behavior in
27029 statement expressions.
27031 2019-01-23 Richard Biener <rguenther@suse.de>
27033 PR tree-optimization/89008
27034 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
27035 not leave another stray operand.
27037 2019-01-23 Jakub Jelinek <jakub@redhat.com>
27039 * BASE-VER: Bump to 9.0.1.
27041 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
27043 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
27044 thunk that returns by reference, use the type of the return object
27045 of the thunk instead of that of the alias to build the dereference.
27047 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
27049 * config/arc/atomic.md: Add operand to DMB instruction.
27051 2019-01-23 Jakub Jelinek <jakub@redhat.com>
27053 PR tree-optimization/88964
27054 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
27055 build_zero_cst instead of build_int_cst. Return false for loop
27056 invariants which honor signed zeros.
27058 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
27060 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
27062 2019-01-22 Jakub Jelinek <jakub@redhat.com>
27065 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
27066 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
27067 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
27069 PR middle-end/88968
27070 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
27071 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
27074 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
27075 Disable for little endian.
27077 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
27080 * config/arm/arm.c (arm_needs_double_word_align): Check
27081 DECL_BIT_FIELD_TYPE.
27083 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
27084 H.J. Lu <hongjiu.lu@intel.com>
27087 * config/i386/i386-builtin.def: Add mask2 to all builtin
27088 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
27090 * config/i386/i386.c (BDESC): Add mask2 to the definition.
27091 (BDESC_FIRST): Likewise.
27092 (define_builtin): Add an argument for mask2. Updated to handle
27093 both ix86_isa_flags and ix86_isa_flags2.
27094 (define_builtin_const): Likewise.
27095 (define_builtin_pure): Likewise.
27096 (define_builtin2): Deleted.
27097 (define_builtin_const2): Likewise.
27098 (builtin_description): Add a member, mask2.
27099 (bdesc_*): Add mask2 to builtin initializations.
27100 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
27101 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
27103 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
27105 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
27108 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
27111 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
27114 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
27115 alignment is dominated by a bitfield with 64-bit aligned base type.
27116 (arm_function_arg): Emit a warning if the alignment has changed since
27117 earlier GCC releases.
27118 (arm_function_arg_boundary): Likewise.
27119 (arm_setup_incoming_varargs): Likewise.
27121 2019-01-22 Richard Biener <rguenther@suse.de>
27123 PR tree-optimization/88862
27124 * graphite-scop-detection.c
27125 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
27127 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
27129 * doc/extend.tex (AMD GCN Function Attributes): New section.
27130 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
27131 * doc/invoke.texi (AMD GCN Options): New section.
27132 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
27134 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
27136 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
27137 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
27139 2019-01-22 Jakub Jelinek <jakub@redhat.com>
27141 PR tree-optimization/88044
27142 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
27143 is false in the first iteration, but !every_iteration, return false
27144 instead of true with niter->niter zero.
27146 PR rtl-optimization/88904
27147 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
27148 any nonequal registers before processing BB_END (b).
27151 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
27153 (expand_binop_directly, expand_doubleword_clz,
27154 expand_doubleword_popcount, expand_ctz, expand_ffs,
27155 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
27157 PR rtl-optimization/49429
27159 PR rtl-optimization/86334
27161 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
27162 addressable from here...
27163 (emit_block_op_via_libcall): ... to here.
27165 2019-01-22 Richard Biener <rguenther@suse.de>
27167 * tree-vect-loop.c (vect_analyze_loop_operations): Use
27168 auto_vec for cost vector to fix memleak.
27169 (vectorize_fold_left_reduction): Properly gather SLP defs.
27170 (vectorizable_comparison): Do not swap operands to properly
27173 2019-01-22 Alan Modra <amodra@gmail.com>
27176 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
27177 stays a reg. Allow a const_int.
27178 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
27179 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
27180 (IS_NOMARK_TLSGETADDR): Define.
27181 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
27182 (rs6000_output_tlsargs): New function.
27183 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
27184 __tls_get_addr call takes an arg.
27185 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
27186 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
27188 (call_value_nonlocal_sysv): ..or here, delete split.
27189 (tls_gdld_nomark): Delete.
27190 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
27191 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
27192 (call_value_nonlocal_sysv): Likewise.
27193 (call_value_nonlocal_sysv_secure): Likewise.
27194 (call_value_nonlocal_aix): Likewise.
27195 (call_value_indirect_aix): Likewise.
27196 (call_value_indirect_elfv2): Likewise.
27197 (call_value_local32, call_value_local64): Disable for no-mark tls.
27198 (call_value_local_aix): Likewise.
27200 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
27203 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
27204 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
27206 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
27208 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
27209 string contents as hash_map keys.
27211 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27214 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
27215 for rvalue context. Handle rvalues correctly. Use min_align_of_type
27216 instead of TYPE_ALIGN.
27217 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
27218 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
27219 pointer from TYPE_STUB_DECL.
27221 2019-01-21 Richard Biener <rguenther@suse.de>
27223 PR tree-optimization/88934
27224 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
27225 at the possibly non-constant operand.
27226 (vect_get_constant_vectors): Adjust.
27228 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
27231 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
27232 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
27233 instead of _X86INTRIN_H_INCLUDED.
27234 * onfig/i386/clwbintrin.h: Likewise.
27235 * config/i386/pkuintrin.h: Likewise.
27236 * config/i386/prfchwintrin.h: Likewise.
27237 * config/i386/rdseedintrin.h: Likewise.
27238 * config/i386/wbnoinvdintrin.h: Likewise.
27239 * config/i386/xsavecintrin.h: Likewise.
27240 * config/i386/xsavesintrin.h: Likewise.
27241 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
27242 * config/i386/xsaveintrin.h: Likewise.
27243 * config/i386/xsaveoptintrin.h: Likewise.
27244 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
27245 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
27246 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
27247 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
27248 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
27249 * config/i386/immintrin.h: Here.
27251 2019-01-20 Martin Jambor <mjambor@suse.cz>
27254 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
27255 with aa_walk_budget.
27256 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
27257 aa_walk_budget_p parameter.
27258 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
27259 walk. Updated all callers.
27260 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
27261 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
27263 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
27264 parameter info. Extract info from fbi. Pass fbi to recursive calls
27265 and to unmodified_parm.
27266 (phi_result_unknown_predicate): New parameter fbi, removed parameter
27267 info, updated call to will_be_nonconstant_expr_predicate.
27268 (param_change_prob): New parameter fbi, limit AA walking.
27269 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
27270 calls to various above functions.
27271 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
27272 parameter. Use it to limit AA walking.
27273 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
27274 fbi, limit AA walk.
27275 (detect_type_change): New parameter fbi, pass it on to
27276 detect_type_change_from_memory_writes.
27277 (detect_type_change_ssa): Likewise.
27278 (aa_overwalked): Removed.
27279 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
27280 accordingly, adjust to the neew AA limiting scheme.
27281 (parm_ref_data_preserved_p): Likewise.
27282 (ipa_compute_jump_functions_for_edge): Adjust call to
27284 (ipa_analyze_call_uses): Likewise.
27285 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
27286 (ipa_analyze_node): Initialize aa_walk_budget.
27287 (ipcp_transform_function): Likewise.
27288 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
27289 to get_dynamic_type.
27291 2019-01-19 Jakub Jelinek <jakub@redhat.com>
27293 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
27294 outside of #if CHECKING_P code.
27296 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
27298 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
27299 New function, split out from...
27300 (loop_versioning::analyze_stride): ...here.
27301 (loop_versioning::find_per_loop_multiplication): Use gassign.
27302 (loop_versioning::analyze_term_using_scevs): Return a success code.
27303 (loop_versioning::analyze_arbitrary_term): New function.
27304 (loop_versioning::analyze_address_fragment): Use
27305 analyze_arbitrary_term if all else fails.
27307 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
27310 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
27313 2019-01-18 Richard Biener <rguenther@suse.de>
27315 PR tree-optimization/88903
27316 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
27317 scalar stmts a SLP shift amount is composed of when detecting
27320 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
27323 * config/arm/arm-cpus.in (mp): New feature.
27324 (sec): New feature.
27325 (fgroup ARMv7ve): Add mp and sec features.
27326 (arch armv7-a): Add options to allow mp and sec extensions.
27327 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
27328 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
27329 extenstions to the base architecture.
27330 (cpu cortex-a8): Add sec extension to the base architecture.
27331 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
27332 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
27333 variants down to the base v7-a varaint.
27334 * config/arm/t-multilib (v7_a_arch_variants): New variable.
27335 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
27336 of permitted extensions for -march=armv7-a and for
27337 -mcpu=generic-armv7-a.
27339 2019-01-18 Martin Liska <mliska@suse.cz>
27341 * params.def: Fix comment.
27342 * tree-profile.c (gimple_init_gcov_profiler): Bump function
27344 (gimple_gen_ic_func_profiler): Likewise.
27346 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27348 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
27349 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
27350 and put in error checks for stack protector guard options.
27351 (aarch64_stack_protect_guard): New.
27352 (TARGET_STACK_PROTECT_GUARD): Define.
27353 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
27354 (reg_stack_protect_address<mode>): New.
27355 (stack_protect_set): Adjust for SSP_GLOBAL.
27356 (stack_protect_test): Likewise.
27357 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
27358 (-mstack-protector-guard): Likewise.
27359 (-mstack-protector-guard-offset): Likewise.
27361 2019-01-18 Jakub Jelinek <jakub@redhat.com>
27363 PR tree-optimization/86214
27364 * tree-inline.h (struct copy_body_data): Add
27365 add_clobbers_to_eh_landing_pads member.
27366 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
27367 (copy_edges_for_bb): Call it if EH edge destination is <
27368 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
27369 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
27370 if flag_stack_reuse != SR_NONE and clear it afterwards.
27372 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
27375 * doc/install.texi (with-multilib-list): Document for aarch64.
27377 2019-01-18 Jakub Jelinek <jakub@redhat.com>
27380 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
27381 (("..."))) with ("...").
27383 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
27385 * doc/extend.texi (Built-in Functions for Memory Model Aware
27386 Atomic Operations): Document atomic fetch and nand.
27388 2019-01-18 Martin Liska <mliska@suse.cz>
27389 Richard Biener <rguenther@suse.de>
27391 PR middle-end/88587
27392 * cgraph.h (create_version_clone_with_body): Add new argument
27394 * cgraphclones.c (cgraph_node::create_version_clone): Add
27395 DECL_ATTRIBUTES to a newly created decl. And call
27396 valid_attribute_p so that proper cl_target_optimization_node
27397 is set for the newly created declaration.
27398 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
27400 (expand_target_clones): Do not call valid_attribute_p, it must
27402 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
27405 2019-01-17 Jakub Jelinek <jakub@redhat.com>
27408 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
27409 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
27410 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
27412 2019-01-17 Martin Sebor <msebor@redhat.com>
27414 PR middle-end/88273
27415 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
27416 Handle anti-ranges the same as no range at all.
27418 2018-01-17 Steve Ellcey <sellcey@cavium.com>
27420 * config/aarch64/aarch64.c (cgraph.h): New include.
27421 (intl.h): New include.
27422 (supported_simd_type): New function.
27423 (currently_supported_simd_type): Ditto.
27424 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
27425 (aarch64_simd_clone_adjust): Ditto.
27426 (aarch64_simd_clone_usable): Ditto.
27427 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
27428 (TARGET_SIMD_CLONE_ADJUST): Ditto.
27429 (TARGET_SIMD_CLONE_USABLE): Ditto.
27430 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
27431 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
27434 2019-01-17 Martin Sebor <msebor@redhat.com>
27436 PR tree-optimization/88800
27437 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
27438 NO_WARNING bit here. Avoid folding out-of-bounds calls.
27439 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
27440 redundant argument. Add new argument and issue diagnostics under
27441 its control. Detect out-of-bounds access even with warnings
27443 (check_bounds_or_overlap): Change return type. Add argument.
27444 (wrestrict_dom_walker::check_call): Adjust.
27445 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
27446 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
27447 check_bounds_or_overlap's return value.
27448 (handle_builtin_stxncpy): Same.
27449 (handle_builtin_strcat): Same.
27451 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27452 Kwok Cheung Yeung <kcy@codesourcery.com>
27453 Julian Brown <julian@codesourcery.com>
27454 Tom de Vries <tom@codesourcery.com>
27456 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
27458 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27460 * doc/sourcebuild.texi: Document dg-require-effective-target
27461 llvm_binutils and offload_gcn.
27463 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27464 Kwok Cheung Yeung <kcy@codesourcery.com>
27465 Julian Brown <julian@codesourcery.com>
27466 Tom de Vries <tom@codesourcery.com>
27468 * doc/sourcebuild.texi: Document dg-required-effective-target
27471 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27472 Kwok Cheung Yeung <kcy@codesourcery.com>
27473 Julian Brown <julian@codesourcery.com>
27474 Tom de Vries <tom@codesourcery.com>
27475 Jan Hubicka <hubicka@ucw.cz>
27476 Martin Jambor <mjambor@suse.cz>
27478 * config.gcc: Add amdgcn*-*-amdhsa configuration.
27479 * configure.ac: Check for dlopen.
27480 * configure: Regenerate.
27482 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27483 Kwok Cheung Yeung <kcy@codesourcery.com>
27484 Julian Brown <julian@codesourcery.com>
27485 Tom de Vries <tom@codesourcery.com>
27486 Jan Hubicka <hubicka@ucw.cz>
27487 Martin Jambor <mjambor@suse.cz>
27489 * common/config/gcn/gcn-common.c: New file.
27490 * config/gcn/driver-gcn.c: New file.
27491 * config/gcn/gcn-builtins.def: New file.
27492 * config/gcn/gcn-hsa.h: New file.
27493 * config/gcn/gcn-modes.def: New file.
27494 * config/gcn/gcn-opts.h: New file.
27495 * config/gcn/gcn-passes.def: New file.
27496 * config/gcn/gcn-protos.h: New file.
27497 * config/gcn/gcn-run.c: New file.
27498 * config/gcn/gcn-tree.c: New file.
27499 * config/gcn/gcn.c: New file.
27500 * config/gcn/gcn.h: New file.
27501 * config/gcn/gcn.opt: New file.
27502 * config/gcn/t-gcn-hsa: New file.
27504 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
27505 Kwok Cheung Yeung <kcy@codesourcery.com>
27506 Julian Brown <julian@codesourcery.com>
27507 Tom de Vries <tom@codesourcery.com>
27508 Jan Hubicka <hubicka@ucw.cz>
27509 Martin Jambor <mjambor@suse.cz>
27511 * config/gcn/constraints.md: New file.
27512 * config/gcn/gcn-valu.md: New file.
27513 * config/gcn/gcn.md: New file.
27514 * config/gcn/predicates.md: New file.
27516 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
27518 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
27519 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
27520 (stmt_uses_0_or_null_in_undefined_way): Likewise.
27521 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
27523 2019-01-17 Tamar Christina <tamar.christina@arm.com>
27526 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
27527 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
27528 it and document registers.
27530 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27532 * config/aarch64/aarch64.c (ares_tunings): Define.
27533 * config/aarch64/aarch64-cores.def (ares): Use the above.
27535 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
27539 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
27541 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
27542 (_mm512_fixupimm_round_pd): Update parameters and builtin.
27543 (_mm512_maskz_fixupimm_round_pd): Ditto.
27544 (_mm512_fixupimm_round_ps): Ditto.
27545 (_mm512_maskz_fixupimm_round_ps): Ditto.
27546 (_mm_fixupimm_round_sd): Ditto.
27547 (_mm_maskz_fixupimm_round_sd): Ditto.
27548 (_mm_fixupimm_round_ss): Ditto.
27549 (_mm_maskz_fixupimm_round_ss): Ditto.
27550 (_mm512_fixupimm_pd): Ditto.
27551 (_mm512_maskz_fixupimm_pd): Ditto.
27552 (_mm512_fixupimm_ps): Ditto.
27553 (_mm512_maskz_fixupimm_ps): Ditto.
27554 (_mm_fixupimm_sd): Ditto.
27555 (_mm_maskz_fixupimm_sd): Ditto.
27556 (_mm_fixupimm_ss): Ditto.
27557 (_mm_maskz_fixupimm_ss): Ditto.
27558 (_mm512_mask_fixupimm_round_pd): Update builtin.
27559 (_mm512_mask_fixupimm_round_ps): Ditto.
27560 (_mm_mask_fixupimm_round_sd): Ditto.
27561 (_mm_mask_fixupimm_round_ss): Ditto.
27562 (_mm512_mask_fixupimm_pd): Ditto.
27563 (_mm512_mask_fixupimm_ps): Ditto.
27564 (_mm_mask_fixupimm_sd): Ditto.
27565 (_mm_mask_fixupimm_ss): Ditto.
27566 * config/i386/avx512vlintrin.h:
27567 (_mm256_fixupimm_pd): Update parameters and builtin.
27568 (_mm256_maskz_fixupimm_pd): Ditto.
27569 (_mm256_fixupimm_ps): Ditto.
27570 (_mm256_maskz_fixupimm_ps): Ditto.
27571 (_mm_fixupimm_pd): Ditto.
27572 (_mm_maskz_fixupimm_pd): Ditto.
27573 (_mm_fixupimm_ps): Ditto.
27574 (_mm_maskz_fixupimm_ps): Ditto.
27575 (_mm256_mask_fixupimm_pd): Update builtin.
27576 (_mm256_mask_fixupimm_ps): Ditto.
27577 (_mm_mask_fixupimm_pd): Ditto.
27578 (_mm_mask_fixupimm_ps): Ditto.
27579 * config/i386/i386-builtin-types.def: Add new types and remove
27581 * config/i386/i386-builtin.def: Update builtin definitions.
27582 * config/i386/i386.c: Handle new builtin types and remove useless ones.
27583 * config/i386/sse.md: Update VFIXUPIMM* patterns.
27584 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
27585 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
27586 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
27587 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
27588 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
27589 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
27590 * config/i386/subst.md:
27591 (round_saeonly_sd_mask_operand4): Add new subst_attr.
27592 (round_saeonly_sd_mask_op4): Ditto.
27593 (round_saeonly_expand_operand5): Ditto.
27594 (round_saeonly_expand): Update.
27596 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
27600 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
27602 * config/i386/sse.md: Combine VFIXUPIMM* patterns
27603 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
27604 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
27605 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
27606 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
27607 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
27608 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
27610 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
27614 2018-12-15 Jakub Jelinek <jakub@redhat.com>
27617 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
27618 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
27619 instead of UNSPEC_FIXUPIMM.
27621 2019-01-17 Richard Biener <rguenther@suse.de>
27624 * dwarf2out.c (want_pubnames): Never generate pubnames sections
27625 and friends for the LTO part of debug info.
27627 2019-01-17 Jakub Jelinek <jakub@redhat.com>
27629 PR tree-optimization/86214
27630 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
27633 PR rtl-optimization/88870
27634 * dce.c (deletable_insn_p): Never delete const/pure calls that can
27635 throw if we can't alter the cfg or delete dead exceptions.
27636 (mark_insn): Don't call find_call_stack_args for such calls.
27638 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
27640 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
27641 prototypes for vec_st.
27642 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
27643 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
27644 mainly on signed/unsigned long long and double.
27646 2019-01-16 David Malcolm <dmalcolm@redhat.com>
27649 * combine.c (delete_noop_moves): Convert to "bool" return,
27650 returning true if any edges are eliminated.
27651 (combine_instructions): Also return true if delete_noop_moves
27654 2019-01-16 Tamar Christina <tamar.christina@arm.com>
27656 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
27657 correct max nunits for endian swap.
27658 (aarch64_expand_fcmla_builtin): Correct subreg code.
27659 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
27660 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
27663 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
27665 * config/alpha/alpha.c (alpha_gimplify_va_arg):
27666 Handle split indirect COMPLEX_TYPE arguments.
27668 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
27671 * config/aarch64/aarch64-modes.def: Add comment about how the carry
27672 bit is set by add and compare.
27673 (CC_ADC): New CC_MODE.
27674 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
27675 to cache the code and mode of X. Adjust the shape of a CC_Cmode
27676 comparison. Add detection for CC_ADCmode.
27677 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
27679 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
27680 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
27681 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
27682 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
27683 to eliminate the need for zero-extending the operands.
27684 (add<mode>3_compareC_imm): Delete. Merge into ...
27685 (add<mode>3_compareC): ... this. Restructure the comparison to
27686 eliminate the need for zero-extending the operands.
27687 (add<mode>3_carryin): Use LTU for the overflow detection.
27688 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
27689 Reexpress comparison for overflow.
27690 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
27691 (add<mode>3_carryinC): Likewise.
27692 (add<mode>3_carryinV): Use LTU for carry between partials.
27693 * config/aarch64/predicates.md (aarch64_carry_operation): Update
27694 handling of CC_Cmode and add CC_ADCmode.
27695 (aarch64_borrow_operation): Likewise.
27697 2019-01-16 Tamar Christina <tamar.christina@arm.com>
27699 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
27700 Remove patternmode.
27701 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
27702 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
27703 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
27704 Remove endianness conversion.
27706 2019-01-16 Martin Liska <mliska@suse.cz>
27708 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
27710 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
27712 * gcc.c (add_sysrooted_hdrs_prefix): New function.
27713 (path_prefix_reset): Move up in the source file.
27714 (find_fortran_preinclude_file): Make complex search for the
27715 fortran header files.
27717 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
27719 * godump.c (go_output_typedef): When outputting a typedef, refer
27720 to the underlying type by its name and not its structure.
27722 2019-01-15 David Malcolm <dmalcolm@redhat.com>
27725 * tree.c (build_function_type): Assert that arg_types is not
27728 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
27730 PR inline-asm/52813
27731 * doc/extend.texi: Document that listing the stack pointer in the
27732 clobber list of an asm is a deprecated feature.
27733 * common.opt (Wdeprecated): Moved from c-family/c.opt.
27734 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
27735 warning instead of an error for clobbers of the stack pointer.
27736 Add a note explaining why.
27738 2019-01-15 Richard Biener <rguenther@suse.de>
27741 * dwarf2out.c (gen_member_die): Do not generate inheritance
27744 2019-01-15 Richard Biener <rguenther@suse.de>
27746 PR tree-optimization/88855
27747 * tree-if-conv.c (combine_blocks): Collect
27748 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
27750 2019-01-15 Tom de Vries <tdevries@suse.de>
27753 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
27754 lhs == NULL_TREE for gang-level reduction.
27756 2019-01-15 Richard Biener <rguenther@suse.de>
27757 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27760 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
27761 return true if SSA_NAME is already marked in visited bitmap.
27762 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
27764 2019-01-15 Jakub Jelinek <jakub@redhat.com>
27766 PR tree-optimization/88775
27767 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
27768 equal == 0 equality pointer comparisons some more if compared in
27769 integral types and either one points to an automatic var and the
27770 other to a global, or we can prove at least one points to the middle
27771 or both point to start or both point to end.
27773 2019-01-14 Andi Kleen <ak@linux.intel.com>
27775 * Makefile.in: Lower autofdo sampling rate by 10x.
27776 * Makefile.tpl: Dito.
27778 2019-01-14 Tom Honermann <tom@honermann.net>
27780 * defaults.h: Define CHAR8_TYPE.
27782 2019-01-14 Martin Sebor <msebor@redhat.com>
27785 * doc/extend.texi (Darwin Format Checks): Clarify.
27787 2019-01-14 Richard Biener <rguenther@suse.de>
27789 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
27790 whether we are in (simplify ...) or (match ...) context.
27792 2019-01-14 Jakub Jelinek <jakub@redhat.com>
27794 PR rtl-optimization/88796
27795 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
27796 * cfgexpand.c (stack_protect_prologue): Initialize
27797 crtl->stack_protect_guard_decl.
27798 * function.c (stack_protect_epilogue): Use it instead of calling
27799 targetm.stack_protect_guard again.
27800 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
27801 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
27802 crtl->stack_protect_guard_decl.
27803 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
27804 on the returned MEM_EXPR.
27806 2019-01-12 Tom de Vries <tdevries@suse.de>
27808 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
27809 vector length using -fopenacc-dim.
27811 2019-01-12 Tom de Vries <tdevries@suse.de>
27813 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
27814 lengths into account.
27816 2019-01-12 Svante Signell <svante.signell@gmail.com>
27818 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
27819 (TARGET_CAN_SPLIT_STACK): Define.
27820 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
27822 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27824 * params.def (inline-unit-growth): Set to 40.
27826 2019-01-12 Jakub Jelinek <jakub@redhat.com>
27828 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
27830 2019-01-12 Tom de Vries <tdevries@suse.de>
27832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
27833 region calling vector-partitionable routine, set default_vector_length
27836 2019-01-12 Tom de Vries <tdevries@suse.de>
27838 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
27839 variable default_vector_length.
27841 2019-01-12 Tom de Vries <tdevries@suse.de>
27843 PR middle-end/88703
27844 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
27845 from oacc_default_dims, as oacc_validate_dims would do it, and apply
27848 2019-01-12 Tom de Vries <tdevries@suse.de>
27850 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
27851 (nvptx_goacc_validate_dims): Add used parameter.
27852 * doc/tm.texi: Regenerate.
27853 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
27854 argument to call to targetm.goacc.validate_dims.
27855 (default_goacc_validate_dims): Add used
27857 * target.def (validate_dims): Add used parameter in DEFHOOK.
27858 * targhooks.h (default_goacc_validate_dims): Add used parameter.
27860 2019-01-11 Jakub Jelinek <jakub@redhat.com>
27862 PR middle-end/85956
27864 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
27866 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
27867 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
27868 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
27869 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
27871 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
27873 PR rtl-optimization/87305
27875 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
27876 for little endian pseudos used as paradoxical subreg.
27878 2019-01-11 Jakub Jelinek <jakub@redhat.com>
27880 PR tree-optimization/88693
27881 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
27882 for STRING_CSTs that don't contain any NUL characters in the first
27883 TREE_STRING_LENGTH bytes.
27885 2019-01-11 Alan Modra <amodra@gmail.com>
27889 * genattrtab.c (min_fn): Don't translate values.
27890 (min_attr_value): Return INT_MAX when the value can't be calculated.
27891 Return minimum among any values that can be calculated.
27892 (max_attr_value): Adjust.
27894 2019-01-11 Jakub Jelinek <jakub@redhat.com>
27896 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
27898 2019-01-11 Steve Ellcey <sellcey@marvell.com>
27900 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
27901 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
27902 (aarch64_return_call_with_max_clobbers): New function.
27903 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
27904 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
27906 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
27907 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
27908 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
27909 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
27910 * cselib.c (cselib_process_insn): Add argument to
27911 targetm.hard_regno_call_part_clobbered call.
27912 * ira-conflicts.c (ira_build_conflicts): Ditto.
27913 * ira-costs.c (ira_tune_allocno_costs): Ditto.
27914 * lra-constraints.c (inherit_reload_reg): Ditto.
27915 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
27916 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
27917 argument. Call targetm.return_call_with_max_clobbers.
27918 Add argument to targetm.hard_regno_call_part_clobbered call.
27919 (calls_have_same_clobbers_p): New function.
27920 (process_bb_lives): Add call_insn and last_call_insn variables.
27921 Pass call_insn to check_pseudos_live_through_calls.
27922 Modify if stmt to check targetm.return_call_with_max_clobbers.
27923 Update setting of flush variable.
27924 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
27926 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
27927 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
27928 targetm.hard_regno_call_part_clobbered call.
27929 * reginfo.c (choose_hard_reg_mode): Ditto.
27930 * regrename.c (check_new_reg_p): Ditto.
27931 * reload.c (find_equiv_reg): Ditto.
27932 * reload1.c (emit_reload_insns): Ditto.
27933 * sched-deps.c (deps_analyze_insn): Ditto.
27934 * sel-sched.c (init_regs_for_mode): Ditto.
27935 (mark_unavailable_hard_regs): Ditto.
27936 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
27937 * target.def (hard_regno_call_part_clobbered): Add insn argument.
27938 (return_call_with_max_clobbers): New target function.
27939 * doc/tm.texi: Regenerate.
27940 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
27941 * hooks.c (hook_bool_uint_mode_false): Change to
27942 hook_bool_insn_uint_mode_false.
27943 * hooks.h (hook_bool_uint_mode_false): Ditto.
27945 2019-01-11 Steve Ellcey <sellcey@marvell.com>
27947 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
27948 (aarch64_remove_extra_call_preserved_regs): New function.
27949 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
27950 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
27951 * doc/tm.texi: Regenerate.
27952 * final.c (get_call_reg_set_usage): Call new hook.
27953 * target.def (remove_extra_call_preserved_regs): New hook.
27954 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
27955 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
27957 2019-01-11 Jakub Jelinek <jakub@redhat.com>
27960 * passes.c (finish_optimization_passes): Call print_combine_total_stats
27961 inside of pass_combine_1 dump rather than pass_profile_1.
27963 2019-01-11 Tom de Vries <tdevries@suse.de>
27965 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
27966 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
27967 (PTX_NUM_PER_WORKER_BARRIERS): Define.
27968 (nvptx_apply_dim_limits): Prevent vector_length 64 and
27971 2019-01-11 Tom de Vries <tdevries@suse.de>
27973 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
27975 2019-01-11 Jan Beulich <jbeulich@suse.com>
27977 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
27978 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
27979 sse2_cvtsi2sd): Add {l}.
27980 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
27983 2019-01-10 Jakub Jelinek <jakub@redhat.com>
27986 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
27988 (*float<floatunssuffix>v2div2sf2): New define_insn.
27989 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
27990 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
27991 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
27992 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
27993 match_operands with "const0_operand" "C".
27995 2019-01-10 Tamar Christina <tamar.christina@arm.com>
27997 * config/aarch64/aarch64-builtins.c
27998 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
27999 (aarch64_init_simd_builtins): ...Here
28001 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
28003 PR rtl-optimization/87305
28005 (setup_live_pseudos_and_spill_after_risky_transforms): Check
28006 allocation for big endian pseudos used as paradoxical subregs and
28007 spill them if it is wrong.
28008 * lra-constraints.c (lra_constraints): Add a comment.
28010 2019-01-10 Richard Biener <rguenther@suse.de>
28012 PR tree-optimization/88792
28013 * tree-ssa-pre.c (get_representative_for): Do not return a
28016 2019-01-10 Jakub Jelinek <jakub@redhat.com>
28018 PR middle-end/84877
28020 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
28021 (assign_parm_setup_block): Do the argument slot realignment here
28024 2019-01-10 Stefan Agner <stefan@agner.ch>
28027 * config/arm/arm.c (arm_option_override_internal): Force
28028 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
28030 2019-01-10 Jakub Jelinek <jakub@redhat.com>
28033 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
28036 2019-01-10 Tamar Christina <tamar.christina@arm.com>
28038 * config/arm/arm-builtins.c
28039 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
28040 (MAC_LANE_PAIR_QUALIFIERS): New.
28041 (arm_expand_builtin_args): Use it.
28042 (arm_expand_builtin_1): Likewise.
28043 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
28044 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
28045 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
28046 * config/arm/arm_neon.h:
28047 (vcadd_rot90_f16): New.
28048 (vcaddq_rot90_f16): New.
28049 (vcadd_rot270_f16): New.
28050 (vcaddq_rot270_f16): New.
28053 (vcmla_lane_f16): New.
28054 (vcmla_laneq_f16): New.
28055 (vcmlaq_lane_f16): New.
28056 (vcmlaq_laneq_f16): New.
28057 (vcmla_rot90_f16): New.
28058 (vcmlaq_rot90_f16): New.
28059 (vcmla_rot90_lane_f16): New.
28060 (vcmla_rot90_laneq_f16): New.
28061 (vcmlaq_rot90_lane_f16): New.
28062 (vcmlaq_rot90_laneq_f16): New.
28063 (vcmla_rot180_f16): New.
28064 (vcmlaq_rot180_f16): New.
28065 (vcmla_rot180_lane_f16): New.
28066 (vcmla_rot180_laneq_f16): New.
28067 (vcmlaq_rot180_lane_f16): New.
28068 (vcmlaq_rot180_laneq_f16): New.
28069 (vcmla_rot270_f16): New.
28070 (vcmlaq_rot270_f16): New.
28071 (vcmla_rot270_lane_f16): New.
28072 (vcmla_rot270_laneq_f16): New.
28073 (vcmlaq_rot270_lane_f16): New.
28074 (vcmlaq_rot270_laneq_f16): New.
28075 (vcadd_rot90_f32): New.
28076 (vcaddq_rot90_f32): New.
28077 (vcadd_rot270_f32): New.
28078 (vcaddq_rot270_f32): New.
28081 (vcmla_lane_f32): New.
28082 (vcmla_laneq_f32): New.
28083 (vcmlaq_lane_f32): New.
28084 (vcmlaq_laneq_f32): New.
28085 (vcmla_rot90_f32): New.
28086 (vcmlaq_rot90_f32): New.
28087 (vcmla_rot90_lane_f32): New.
28088 (vcmla_rot90_laneq_f32): New.
28089 (vcmlaq_rot90_lane_f32): New.
28090 (vcmlaq_rot90_laneq_f32): New.
28091 (vcmla_rot180_f32): New.
28092 (vcmlaq_rot180_f32): New.
28093 (vcmla_rot180_lane_f32): New.
28094 (vcmla_rot180_laneq_f32): New.
28095 (vcmlaq_rot180_lane_f32): New.
28096 (vcmlaq_rot180_laneq_f32): New.
28097 (vcmla_rot270_f32): New.
28098 (vcmlaq_rot270_f32): New.
28099 (vcmla_rot270_lane_f32): New.
28100 (vcmla_rot270_laneq_f32): New.
28101 (vcmlaq_rot270_lane_f32): New.
28102 (vcmlaq_rot270_laneq_f32): New.
28103 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
28104 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
28105 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
28106 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
28107 vcmlaq_lane270): New.
28108 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
28109 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
28110 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
28111 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
28112 (arm_option_reconfigure_globals): Use them.
28113 * config/arm/iterators.md (VDF, VQ_HSF): New.
28114 (VCADD, VCMLA): New.
28115 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
28116 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
28118 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
28119 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
28121 2019-01-10 Tamar Christina <tamar.christina@arm.com>
28123 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
28124 Add qualifier_lane_pair_index.
28125 (emit-rtl.h): Include.
28126 (TYPES_QUADOP_LANE_PAIR): New.
28127 (aarch64_simd_expand_args): Use it.
28128 (aarch64_simd_expand_builtin): Likewise.
28129 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
28131 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
28132 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
28133 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
28134 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
28135 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
28136 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
28137 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
28138 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
28139 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
28140 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
28141 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
28142 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
28143 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
28144 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28145 Add __ARM_FEATURE_COMPLEX.
28146 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
28147 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
28148 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
28149 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
28150 fcmlaq_lane270): New.
28151 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
28152 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
28153 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
28154 * config/aarch64/arm_neon.h:
28155 (vcadd_rot90_f16): New.
28156 (vcaddq_rot90_f16): New.
28157 (vcadd_rot270_f16): New.
28158 (vcaddq_rot270_f16): New.
28161 (vcmla_lane_f16): New.
28162 (vcmla_laneq_f16): New.
28163 (vcmlaq_lane_f16): New.
28164 (vcmlaq_rot90_lane_f16): New.
28165 (vcmla_rot90_laneq_f16): New.
28166 (vcmla_rot90_lane_f16): New.
28167 (vcmlaq_rot90_f16): New.
28168 (vcmla_rot90_f16): New.
28169 (vcmlaq_laneq_f16): New.
28170 (vcmla_rot180_laneq_f16): New.
28171 (vcmla_rot180_lane_f16): New.
28172 (vcmlaq_rot180_f16): New.
28173 (vcmla_rot180_f16): New.
28174 (vcmlaq_rot90_laneq_f16): New.
28175 (vcmlaq_rot270_laneq_f16): New.
28176 (vcmlaq_rot270_lane_f16): New.
28177 (vcmla_rot270_laneq_f16): New.
28178 (vcmlaq_rot270_f16): New.
28179 (vcmla_rot270_f16): New.
28180 (vcmlaq_rot180_laneq_f16): New.
28181 (vcmlaq_rot180_lane_f16): New.
28182 (vcmla_rot270_lane_f16): New.
28183 (vcadd_rot90_f32): New.
28184 (vcaddq_rot90_f32): New.
28185 (vcaddq_rot90_f64): New.
28186 (vcadd_rot270_f32): New.
28187 (vcaddq_rot270_f32): New.
28188 (vcaddq_rot270_f64): New.
28192 (vcmla_lane_f32): New.
28193 (vcmla_laneq_f32): New.
28194 (vcmlaq_lane_f32): New.
28195 (vcmlaq_laneq_f32): New.
28196 (vcmla_rot90_f32): New.
28197 (vcmlaq_rot90_f32): New.
28198 (vcmlaq_rot90_f64): New.
28199 (vcmla_rot90_lane_f32): New.
28200 (vcmla_rot90_laneq_f32): New.
28201 (vcmlaq_rot90_lane_f32): New.
28202 (vcmlaq_rot90_laneq_f32): New.
28203 (vcmla_rot180_f32): New.
28204 (vcmlaq_rot180_f32): New.
28205 (vcmlaq_rot180_f64): New.
28206 (vcmla_rot180_lane_f32): New.
28207 (vcmla_rot180_laneq_f32): New.
28208 (vcmlaq_rot180_lane_f32): New.
28209 (vcmlaq_rot180_laneq_f32): New.
28210 (vcmla_rot270_f32): New.
28211 (vcmlaq_rot270_f32): New.
28212 (vcmlaq_rot270_f64): New.
28213 (vcmla_rot270_lane_f32): New.
28214 (vcmla_rot270_laneq_f32): New.
28215 (vcmlaq_rot270_lane_f32): New.
28216 (vcmlaq_rot270_laneq_f32): New.
28217 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
28218 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
28219 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
28220 (FCADD, FCMLA): New.
28222 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
28224 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
28228 * config/pa/pa.c: Change "can not" to "cannot".
28229 * gimple-ssa-evrp-analyze.c: Likewise.
28230 * ipa-icf.c: Likewise.
28231 * ipa-polymorphic-call.c: Likewise.
28232 * ipa-pure-const.c: Likewise.
28233 * lra-constraints.c: Likewise.
28234 * lra-remat.c: Likewise.
28235 * reload1.c: Likewise.
28236 * reorg.c: Likewise.
28237 * tree-ssa-uninit.c: Likewise.
28239 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
28243 * Makefile.in: Mechanically replace "can not" with "cannot".
28244 * alias.c: Likewise.
28245 * builtins.c: Likewise.
28246 * calls.c: Likewise.
28247 * cgraph.c: Likewise.
28248 * cgraph.h: Likewise.
28249 * cgraphclones.c: Likewise.
28250 * cgraphunit.c: Likewise.
28251 * combine-stack-adj.c: Likewise.
28252 * combine.c: Likewise.
28253 * common/config/i386/i386-common.c: Likewise.
28254 * config/aarch64/aarch64.c: Likewise.
28255 * config/alpha/sync.md: Likewise.
28256 * config/arc/arc.c: Likewise.
28257 * config/arc/predicates.md: Likewise.
28258 * config/arm/arm-c.c: Likewise.
28259 * config/arm/arm.c: Likewise.
28260 * config/arm/arm.h: Likewise.
28261 * config/arm/arm.md: Likewise.
28262 * config/arm/cortex-r4f.md: Likewise.
28263 * config/csky/csky.c: Likewise.
28264 * config/csky/csky.h: Likewise.
28265 * config/darwin-f.c: Likewise.
28266 * config/epiphany/epiphany.md: Likewise.
28267 * config/i386/i386.c: Likewise.
28268 * config/i386/sol2.h: Likewise.
28269 * config/m68k/m68k.c: Likewise.
28270 * config/mcore/mcore.h: Likewise.
28271 * config/microblaze/microblaze.md: Likewise.
28272 * config/mips/20kc.md: Likewise.
28273 * config/mips/sb1.md: Likewise.
28274 * config/nds32/nds32.c: Likewise.
28275 * config/nds32/predicates.md: Likewise.
28276 * config/pa/pa.c: Likewise.
28277 * config/rs6000/e300c2c3.md: Likewise.
28278 * config/rs6000/rs6000.c: Likewise.
28279 * config/s390/s390.h: Likewise.
28280 * config/sh/sh.c: Likewise.
28281 * config/sh/sh.md: Likewise.
28282 * config/spu/vmx2spu.h: Likewise.
28283 * cprop.c: Likewise.
28284 * dbxout.c: Likewise.
28285 * df-scan.c: Likewise.
28286 * doc/cfg.texi: Likewise.
28287 * doc/extend.texi: Likewise.
28288 * doc/fragments.texi: Likewise.
28289 * doc/gty.texi: Likewise.
28290 * doc/invoke.texi: Likewise.
28291 * doc/lto.texi: Likewise.
28292 * doc/md.texi: Likewise.
28293 * doc/objc.texi: Likewise.
28294 * doc/rtl.texi: Likewise.
28295 * doc/tm.texi: Likewise.
28297 * emit-rtl.c: Likewise.
28298 * emit-rtl.h: Likewise.
28299 * except.c: Likewise.
28300 * expmed.c: Likewise.
28301 * expr.c: Likewise.
28302 * fold-const.c: Likewise.
28303 * genautomata.c: Likewise.
28304 * gimple-fold.c: Likewise.
28305 * hard-reg-set.h: Likewise.
28306 * ifcvt.c: Likewise.
28307 * ipa-comdats.c: Likewise.
28308 * ipa-cp.c: Likewise.
28309 * ipa-devirt.c: Likewise.
28310 * ipa-fnsummary.c: Likewise.
28311 * ipa-icf.c: Likewise.
28312 * ipa-inline-transform.c: Likewise.
28313 * ipa-inline.c: Likewise.
28314 * ipa-polymorphic-call.c: Likewise.
28315 * ipa-profile.c: Likewise.
28316 * ipa-prop.c: Likewise.
28317 * ipa-pure-const.c: Likewise.
28318 * ipa-reference.c: Likewise.
28319 * ipa-split.c: Likewise.
28320 * ipa-visibility.c: Likewise.
28322 * ira-build.c: Likewise.
28323 * ira-color.c: Likewise.
28324 * ira-conflicts.c: Likewise.
28325 * ira-costs.c: Likewise.
28326 * ira-int.h: Likewise.
28327 * ira-lives.c: Likewise.
28330 * loop-invariant.c: Likewise.
28331 * loop-unroll.c: Likewise.
28332 * lower-subreg.c: Likewise.
28333 * lra-assigns.c: Likewise.
28334 * lra-constraints.c: Likewise.
28335 * lra-eliminations.c: Likewise.
28336 * lra-lives.c: Likewise.
28337 * lra-remat.c: Likewise.
28338 * lra-spills.c: Likewise.
28340 * lto-cgraph.c: Likewise.
28341 * lto-streamer-out.c: Likewise.
28342 * postreload-gcse.c: Likewise.
28343 * predict.c: Likewise.
28344 * profile-count.h: Likewise.
28345 * profile.c: Likewise.
28346 * recog.c: Likewise.
28348 * reload.c: Likewise.
28349 * reload1.c: Likewise.
28350 * reorg.c: Likewise.
28351 * resource.c: Likewise.
28352 * rtl.def: Likewise.
28354 * rtlanal.c: Likewise.
28355 * sched-deps.c: Likewise.
28356 * sched-ebb.c: Likewise.
28357 * sched-rgn.c: Likewise.
28358 * sel-sched-ir.c: Likewise.
28359 * sel-sched.c: Likewise.
28360 * shrink-wrap.c: Likewise.
28361 * simplify-rtx.c: Likewise.
28362 * symtab.c: Likewise.
28363 * target.def: Likewise.
28364 * toplev.c: Likewise.
28365 * tree-call-cdce.c: Likewise.
28366 * tree-cfg.c: Likewise.
28367 * tree-complex.c: Likewise.
28368 * tree-core.h: Likewise.
28369 * tree-eh.c: Likewise.
28370 * tree-inline.c: Likewise.
28371 * tree-loop-distribution.c: Likewise.
28372 * tree-nrv.c: Likewise.
28373 * tree-profile.c: Likewise.
28374 * tree-sra.c: Likewise.
28375 * tree-ssa-alias.c: Likewise.
28376 * tree-ssa-dce.c: Likewise.
28377 * tree-ssa-dom.c: Likewise.
28378 * tree-ssa-forwprop.c: Likewise.
28379 * tree-ssa-loop-im.c: Likewise.
28380 * tree-ssa-loop-ivcanon.c: Likewise.
28381 * tree-ssa-loop-ivopts.c: Likewise.
28382 * tree-ssa-loop-niter.c: Likewise.
28383 * tree-ssa-phionlycprop.c: Likewise.
28384 * tree-ssa-phiopt.c: Likewise.
28385 * tree-ssa-propagate.c: Likewise.
28386 * tree-ssa-threadedge.c: Likewise.
28387 * tree-ssa-threadupdate.c: Likewise.
28388 * tree-ssa-uninit.c: Likewise.
28389 * tree-ssanames.c: Likewise.
28390 * tree-streamer-out.c: Likewise.
28391 * tree.c: Likewise.
28392 * tree.h: Likewise.
28393 * vr-values.c: Likewise.
28395 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
28397 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
28398 (ix86_split_xorsign): Ditto.
28399 * config/i386/i386.c (ix86_expand_xorsign): New function.
28400 (ix86_split_xorsign): Ditto.
28401 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
28402 (xorsign<mode>3): New expander.
28403 (xorsign<mode>3_1): New insn_and_split pattern.
28404 * config/i386/sse.md (xorsign<mode>3): New expander.
28406 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
28408 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
28409 (*tablejump_sp64): Likewise.
28410 (*tablejump<P:mode>): ...this.
28411 (*call_address_sp32): Merge into...
28412 (*call_address_sp64): Likewise.
28413 (*call_address<P:mode>): ...this.
28414 (*call_symbolic_sp32): Merge into...
28415 (*call_symbolic_sp64): Likewise.
28416 (*call_symbolic<P:mode>): ...this.
28417 (call_value): Remove constraint and add predicate.
28418 (*call_value_address_sp32): Merge into...
28419 (*call_value_address_sp64): Likewise.
28420 (*call_value_address<P:mode>): ...this.
28421 (*call_value_symbolic_sp32): Merge into...
28422 (*call_value_symbolic_sp64): Likewise.
28423 (*call_value_symbolic<P:mode>): ...this.
28424 (*sibcall_symbolic_sp32): Merge into...
28425 (*sibcall_symbolic_sp64): Likewise.
28426 (*sibcall_symbolic<P:mode>): ...this.
28427 (sibcall_value): Remove constraint and add predicate.
28428 (*sibcall_value_symbolic_sp32): Merge into...
28429 (*sibcall_value_symbolic_sp64): Likewise.
28430 (*sibcall_value_symbolic<P:mode>): ...this.
28431 (window_save): Minor tweak.
28432 (*branch_sp32): Merge into...
28433 (*branch_sp64): Likewise.
28434 (*branch<P:mode>): ...this.
28436 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
28437 James Clarke <jrtc27@jrtc27.com>
28440 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
28441 consistently in TLS address generation and adjust code to the renaming
28442 of patterns. Mark calls to __tls_get_addr as const.
28443 * config/sparc/sparc.md (tgd_hi22): Turn into...
28444 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
28445 (tgd_lo10): Turn into...
28446 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
28447 (tgd_add32): Merge into...
28448 (tgd_add64): Likewise.
28449 (tgd_add<P:mode>): ...this and use Pmode throughout.
28450 (tldm_hi22): Turn into...
28451 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
28452 (tldm_lo10): Turn into...
28453 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
28454 (tldm_add32): Merge into...
28455 (tldm_add64): Likewise.
28456 (tldm_add<P:mode>): ...this and use Pmode throughout.
28457 (tldm_call32): Merge into...
28458 (tldm_call64): Likewise.
28459 (tldm_call<P:mode>): ...this and use Pmode throughout.
28460 (tldo_hix22): Turn into...
28461 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
28462 (tldo_lox10): Turn into...
28463 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
28464 (tldo_add32): Merge into...
28465 (tldo_add64): Likewise.
28466 (tldo_add<P:mode>): ...this and use Pmode throughout.
28467 (tie_hi22): Turn into...
28468 (tie_hi22<P:mode>): ...this and use Pmode throughout.
28469 (tie_lo10): Turn into...
28470 (tie_lo10<P:mode>): ...this and use Pmode throughout.
28471 (tie_ld64): Use DImode throughout.
28472 (tie_add32): Merge into...
28473 (tie_add64): Likewise.
28474 (tie_add<P:mode>): ...this and use Pmode throughout.
28475 (tle_hix22_sp32): Merge into...
28476 (tle_hix22_sp64): Likewise.
28477 (tle_hix22<P:mode>): ...this and use Pmode throughout.
28478 (tle_lox22_sp32): Merge into...
28479 (tle_lox22_sp64): Likewise.
28480 (tle_lox22<P:mode>): ...this and use Pmode throughout.
28481 (*tldo_ldub_sp32): Merge into...
28482 (*tldo_ldub_sp64): Likewise.
28483 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
28484 (*tldo_ldub1_sp32): Merge into...
28485 (*tldo_ldub1_sp64): Likewise.
28486 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
28487 (*tldo_ldub2_sp32): Merge into...
28488 (*tldo_ldub2_sp64): Likewise.
28489 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
28490 (*tldo_ldsb1_sp32): Merge into...
28491 (*tldo_ldsb1_sp64): Likewise.
28492 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
28493 (*tldo_ldsb2_sp32): Merge into...
28494 (*tldo_ldsb2_sp64): Likewise.
28495 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
28496 (*tldo_ldub3_sp64): Use DImode throughout.
28497 (*tldo_ldsb3_sp64): Likewise.
28498 (*tldo_lduh_sp32): Merge into...
28499 (*tldo_lduh_sp64): Likewise.
28500 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
28501 (*tldo_lduh1_sp32): Merge into...
28502 (*tldo_lduh1_sp64): Likewise.
28503 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
28504 (*tldo_ldsh1_sp32): Merge into...
28505 (*tldo_ldsh1_sp64): Likewise.
28506 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
28507 (*tldo_lduh2_sp64): Use DImode throughout.
28508 (*tldo_ldsh2_sp64): Likewise.
28509 (*tldo_lduw_sp32): Merge into...
28510 (*tldo_lduw_sp64): Likewise.
28511 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
28512 (*tldo_lduw1_sp64): Use DImode throughout.
28513 (*tldo_ldsw1_sp64): Likewise.
28514 (*tldo_ldx_sp64): Likewise.
28515 (*tldo_stb_sp32): Merge into...
28516 (*tldo_stb_sp64): Likewise.
28517 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
28518 (*tldo_sth_sp32): Merge into...
28519 (*tldo_sth_sp64): Likewise.
28520 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
28521 (*tldo_stw_sp32): Merge into...
28522 (*tldo_stw_sp64): Likewise.
28523 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
28524 (*tldo_stx_sp64): Use DImode throughout.
28526 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28528 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
28529 check configure option to set BTI and Return Address Signing.
28530 * configure.ac: Add --enable-standard-branch-protection and
28531 --disable-standard-branch-protection.
28532 * configure: Regenerated.
28533 * doc/install.texi: Document the same.
28535 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28536 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28538 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
28539 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
28540 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
28542 * config/aarch64/aarch64-bti-insert.c: New file.
28543 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
28545 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
28547 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
28548 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
28549 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
28550 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
28552 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28554 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
28555 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
28556 Disable bti for -mbranch-protection=none.
28557 (aarch64_handle_standard_branch_protection): Enable bti for
28558 -mbranch-protection=standard.
28559 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
28560 -mbranch-protection.
28561 (aarch64_bti_enabled): Check if bti is enabled.
28562 * config/aarch64/aarch64.opt: Declare target variable.
28563 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
28565 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28567 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
28568 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
28569 (aarch64_expand_epilogue): Likewise.
28570 (aarch64_output_mi_thunk): Likewise.
28571 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
28572 TAILCALL_ADDR_REGS to x16 and x17.
28573 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
28575 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28577 * config/aarch64/aarch64-option-extensions.def: Define
28578 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
28579 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
28580 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
28581 (AARCH64_FL_PREDRES): New.
28582 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
28583 AARCH64_FL_PREDRES by default.
28584 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
28586 2018-01-09 Sudakshina Das <sudi.das@arm.com>
28588 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
28590 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
28591 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
28592 * doc/invoke.texi: Document ARMv8.5-A.
28594 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28596 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
28597 (xorsign<mode>3): Likewise.
28599 2019-01-09 Jelinek <jakub@redhat.com>
28601 PR middle-end/88758
28602 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
28603 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
28605 PR rtl-optimization/88331
28606 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
28607 not currently_expanding_to_rtl.
28609 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
28611 * doc/invoke.texi (-Os): Remove trailing spaces.
28612 (-finline-functions): Remove reference to -O2.
28614 2019-01-08 Jakub Jelinek <jakub@redhat.com>
28616 PR rtl-optimization/79593
28617 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
28619 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
28620 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
28622 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
28625 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
28629 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
28630 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
28632 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
28635 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
28636 ix86_avx_u128_mode_entry.
28638 2019-01-08 Martin Liska <mliska@suse.cz>
28640 PR tree-optimization/88753
28641 * tree-switch-conversion.c (switch_conversion::build_one_array):
28642 Come up with local variable constructor. Convert first to
28643 type of constructor values.
28645 2019-01-08 Richard Biener <rguenther@suse.de>
28647 PR tree-optimization/86554
28648 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
28649 rpo_avail): Move earlier.
28650 (visit_nary_op): When value-numbering to expressions
28651 with different overflow behavior make sure there's an
28652 available expression on the path.
28654 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
28656 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
28657 aarch64_parse_branch_protection,
28658 struct aarch64_branch_protect_type,
28659 aarch64_handle_no_branch_protection,
28660 aarch64_handle_standard_branch_protection,
28661 aarch64_validate_mbranch_protection,
28662 aarch64_handle_pac_ret_protection,
28663 aarch64_handle_attr_branch_protection,
28664 accepted_branch_protection_string,
28665 aarch64_pac_ret_subtypes,
28666 aarch64_branch_protect_types,
28667 aarch64_handle_pac_ret_leaf): Define.
28668 (aarch64_override_options_after_change_1, aarch64_override_options):
28669 Add check for accepted_branch_protection_string.
28670 (aarch64_option_save): Save accepted_branch_protection_string.
28671 (aarch64_option_restore): Save accepted_branch_protection_string.
28672 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
28673 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
28674 msign-return-address.
28675 * doc/invoke.texi: Add mbranch-protection.
28677 2019-01-08 Alan Modra <amodra@gmail.com>
28680 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
28681 Delete "unknownp" parameter. Adjust callers. Handle
28682 CONST_INT, PLUS, MINUS, and MULT.
28683 (attr_value_aligned): Renamed from or_attr_value.
28684 (min_attr_value): Return INT_MIN for unhandled rtl case..
28685 (min_fn): ..and translate to INT_MAX here.
28686 (write_length_unit_log): Modify to cope without "unknown".
28687 (write_attr_value): Handle IF_THEN_ELSE.
28689 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
28691 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
28692 optimization for masked stores.
28694 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
28696 PR middle-end/88567
28697 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
28698 output vector directly to duplicate_and_interleave instead of
28699 going through a temporary. Postpone insertion of ctor_seq to
28700 the end of the loop.
28702 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
28705 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
28706 unsigned_p. Handle signed and unsigned overflow correction as
28708 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
28710 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
28712 (add<mode>3_compareV_imm): Make this callable for expanding.
28713 (subv<GPI:mode>4): Use register_operand for operand 1. Use
28714 aarch64_plus_operand for operand 2.
28715 (subv<GPI:mode>_insn): New insn pattern.
28716 (subv<GPI:mode>_imm): Likewise.
28717 (negv<GPI:mode>3): New expand pattern.
28718 (negv<GPI:mode>_insn): New insn pattern.
28719 (negv<GPI:mode>_cmp_only): Likewise.
28720 (cmpv<GPI:mode>_insn): Likewise.
28721 (subvti4): Use register_operand for operand 1. Update call to
28722 aarch64_expand_subvti.
28723 (usubvti4): Likewise.
28724 (negvti3): New expand pattern.
28725 (negdi_carryout): New insn pattern.
28726 (negvdi_carryinV): New insn pattern.
28727 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
28728 version the named version.
28729 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
28731 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
28733 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
28735 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
28736 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
28737 (sub<mode>3_carryinCV): Delete.
28738 (sub<GPI:mode>3_carryinV): New expand pattern.
28739 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
28741 2019-01-07 Richard Biener <rguenther@suse.de>
28743 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
28744 of tree_operand_hash.
28746 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
28748 PR tree-optimization/88598
28749 * tree.h (single_nonzero_element): Declare.
28750 * tree.c (single_nonzero_element): New function.
28751 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
28752 if I is the only nonzero element of CST.
28754 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
28756 PR tree-optimization/88598
28757 * tree.h (initializer_each_zero_or_onep): Declare.
28758 * tree.c (initializer_each_zero_or_onep): New function.
28759 (signed_or_unsigned_type_for): Handle float types too.
28760 (unsigned_type_for, signed_type_for): Update comments accordingly.
28761 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
28762 x & { 0 or -1, 0 or -1, ... }.
28764 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
28766 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
28767 with x86_64-pc-linux-gnu.
28769 2019-01-07 Tom de Vries <tdevries@suse.de>
28772 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
28774 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
28777 2019-01-07 Jakub Jelinek <jakub@redhat.com>
28779 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
28780 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
28781 TARGET_AVX512F as condition.
28784 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
28785 const_not_ok_for_debug_p target hook.
28786 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
28787 on UNSPEC and subexpressions thereof if all subexpressions of the
28788 UNSPEC are CONSTANT_P.
28790 PR tree-optimization/88676
28791 * tree-ssa-phiopt.c (two_value_replacement): New function.
28792 (tree_ssa_phiopt_worker): Call it.
28795 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
28796 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
28799 * tree-vect-generic.c: Include insn-config.h and recog.h.
28800 (expand_vector_piecewise): Add defaulted ret_type argument,
28801 if non-NULL, use that in preference to type for the result type.
28802 (expand_vector_parallel): Formatting fix.
28803 (do_vec_conversion, do_vec_narrowing_conversion,
28804 expand_vector_conversion): New functions.
28805 (expand_vector_operations_1): Call expand_vector_conversion
28806 for VEC_CONVERT ifn calls.
28807 * internal-fn.def (VEC_CONVERT): New internal function.
28808 * internal-fn.c (expand_VEC_CONVERT): New function.
28809 * fold-const-call.c (fold_const_vec_convert): New function.
28810 (fold_const_call): Use it for CFN_VEC_CONVERT.
28811 * doc/extend.texi (__builtin_convertvector): Document.
28813 2019-01-07 Tom de Vries <tdevries@suse.de>
28815 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
28816 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
28817 vector_red_partition, vector_red_sym): New global variables.
28818 (nvptx_option_override): Initialize vector_red_sym.
28819 (nvptx_declare_function_name): Restore red_partition register.
28820 (nvptx_file_end): Emit code to declare the vector reduction variables.
28821 (nvptx_output_red_partition): New function.
28822 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
28823 large vector reductions.
28824 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
28825 (nvptx_init_builtins): Add VECTOR_ADDR.
28826 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
28827 Handle nvptx_expand_shared_addr.
28828 (nvptx_get_shared_red_addr): Add vector argument and handle large
28830 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
28832 (nvptx_goacc_reduction_init): Likewise.
28833 (nvptx_goacc_reduction_fini): Likewise.
28834 (nvptx_goacc_reduction_teardown): Likewise.
28835 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
28836 init,fini,teardown}.
28837 (nvptx_init_axis_predicate): Initialize vector_red_partition.
28838 (nvptx_set_current_function): Init vector_red_partition.
28839 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
28840 (nvptx_red_partition): New insn.
28841 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
28843 2019-01-07 Tom de Vries <tdevries@suse.de>
28846 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
28849 2019-01-07 Tom de Vries <tdevries@suse.de>
28851 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
28852 (nvptx_option_override): Init oacc_bcast_partition.
28853 (nvptx_init_oacc_workers): New function.
28854 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
28855 (nvptx_needs_shared_bcast): New function.
28856 (nvptx_find_par): Generalize to enable vectors to use shared-memory
28857 to propagate state.
28858 (nvptx_shared_propagate): Initialize vector bcast partition and
28859 synchronization state.
28860 (nvptx_single): Generalize to enable vectors to use shared-memory
28861 to propagate state.
28862 (nvptx_process_pars): Likewise.
28863 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
28864 * config/nvptx/nvptx.h (struct machine_function): Add
28865 bcast_partition and sync_bar members.
28867 2019-01-07 Tom de Vries <tdevries@suse.de>
28869 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
28870 (nvptx_apply_dim_limits): New function.
28871 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
28874 2019-01-07 Tom de Vries <tdevries@suse.de>
28876 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
28877 as late as possible.
28879 2019-01-07 Tom de Vries <tdevries@suse.de>
28881 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
28882 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
28883 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
28884 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
28885 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
28887 2019-01-07 Tom de Vries <tdevries@suse.de>
28889 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
28891 2019-01-07 Tom de Vries <tdevries@suse.de>
28893 * omp-offload.c (oacc_get_min_dim): New function.
28894 * omp-offload.h (oacc_get_min_dim): Declare.
28896 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
28899 * config/i386/i386.c (function_value_ms_64): Return small sturct in
28900 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
28902 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
28906 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
28908 * ipa-inline.c (edge_badness): Use inlined_time instead of
28909 inline_summaries->get.
28911 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
28913 * opts.c (enable_fdo_optimizations): Enable
28914 version-loops-for-strides, loop-interchange, unrol-and-jam
28915 and tree-loop-distribution.
28916 * invoke.texi: Document newly enabled options.
28918 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
28920 * doc/invoke.texi (max-inline-insns-small): New parameters.
28921 * ipa-inline.c (want_early_inline_function_p): simplify.
28922 (want_inline_small_function_p): Fix pasto from previous patch;
28923 use max-inline-insns-small bound.
28924 * params.def (max-inline-insns-small): New param.
28925 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
28926 variables correctly.
28928 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
28930 * doc/invoke.texi: Document max-inline-insns-size,
28931 uninlined-function-insns, uninlined-function-time,
28932 uninlined-thunk-insns and uninlined-thunk-time.
28933 * params.def: Add max-inline-insns-size,
28934 uninlined-function-insns, uninlined-function-time,
28935 uninlined-thunk-insns and uninlined-thunk-time.
28936 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
28938 * ipa-inline.c (can_inline_edge_by_limits_p,
28939 want_inline_small_function_p): Use new parameters.
28941 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
28943 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
28945 2019-01-05 Jakub Jelinek <jakub@redhat.com>
28947 PR middle-end/82564
28949 * expr.c (expand_assignment): For calls returning VLA structures
28950 if to_rtx is not a MEM, force it into a stack temporary.
28953 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
28954 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
28955 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
28956 subexpressions of both operands.
28957 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
28958 subrtxes are CONSTANT_P.
28959 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
28960 2018-11-09 changes.
28962 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
28964 * params.def (hot-bb-count-ws-permille): Set to 990.
28966 2019-01-04 Martin Sebor <msebor@redhat.com>
28969 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
28972 2019-01-04 Martin Sebor <msebor@redhat.com>
28975 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
28977 2019-01-04 Jakub Jelinek <jakub@redhat.com>
28979 * gdbinit.in: Turn off pagination for the skip commands, restore
28980 it to previous state afterwards.
28982 2019-01-04 Jakub Jelinek <jakub@redhat.com>
28985 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
28986 of GET_MODE (opN) as modes of the libcall arguments.
28988 2019-01-04 Jan Beulich <jbeulich@suse.com>
28990 * config/i386/sse.md
28991 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
28992 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
28993 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
28994 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
28995 avx512f_vmcmp<mode>3<round_saeonly_name>,
28996 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
28997 avx512f_maskcmp<mode>3,
28998 <avx512>_cvt<ssemodesuffix>2mask<mode>,
28999 <avx512>_cvt<ssemodesuffix>2mask<mode>,
29000 *<avx512>_cvtmask2<ssemodesuffix><mode>,
29001 *<avx512>_cvtmask2<ssemodesuffix><mode>,
29002 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
29003 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
29004 <avx512>_gt<mode>3<mask_scalar_merge_name>,
29005 <avx512>_gt<mode>3<mask_scalar_merge_name>,
29006 <avx512>_testm<mode>3<mask_scalar_merge_name>,
29007 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
29008 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
29009 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
29010 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
29011 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
29012 avx512cd_maskb_vec_dup<mode>,
29013 avx512cd_maskw_vec_dup<mode>,
29014 avx512dq_fpclass<mode><mask_scalar_merge_name>,
29015 avx512dq_vmfpclass<mode>,
29016 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
29019 2019-01-03 Martin Sebor <msebor@redhat.com>
29021 PR tree-optimization/88659
29022 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
29024 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
29026 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
29027 unaligned vsx and avoid lxvd2x/stxvd2x.
29028 (gen_lvx_v4si_move): New function.
29030 2019-01-03 Tom de Vries <tdevries@suse.de>
29032 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
29033 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
29035 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
29037 2019-01-03 Tom de Vries <tdevries@suse.de>
29039 * config/nvptx/nvptx.c (struct offload_attrs): New.
29040 (populate_offload_attrs): New function. Factor mask extraction out of
29041 nvptx_reorg. Add extraction of dimensions.
29042 (nvptx_reorg): Use populate_offload_attrs.
29044 2019-01-03 Tom de Vries <tdevries@suse.de>
29046 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
29047 cases for oacc_min_dims_p and routine_p. Add asserts for
29048 oacc_default_dims_p and offload_region_p.
29050 2019-01-03 Tom de Vries <tdevries@suse.de>
29052 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
29053 factored out of ...
29054 (nvptx_goacc_validate_dims): ... here.
29056 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
29058 PR tree-optimization/85574
29059 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
29061 (struct ssa_equip_hash_traits): Declare.
29062 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
29064 2019-01-03 Jakub Jelinek <jakub@redhat.com>
29067 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
29068 change it to qualified_type.
29070 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
29072 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
29073 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
29075 2019-01-02 Martin Sebor <msebor@redhat.com>
29076 Jeff Law <law@redhat.com>
29078 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
29079 (get_range_strlen_tree): Update appropriately.
29081 * gimple-fold.h (get_range_strlen): Drop unused last argument.
29083 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
29084 rather than set_range_info.
29085 * tree-ssa-strlen.c (set_strlen_range): Extracted from
29086 maybe_set_strlen_range. Handle potentially boundary crossing
29087 cases more conservatively.
29088 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
29089 Call set_strlen_range.
29090 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
29092 PR middle-end/88663
29093 * gimple-fold.c (get_range_strlen): Update prototype to no longer
29094 need the flexp argument.
29095 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
29096 from calls to get_range_strlen. Update comments. Just update
29097 VAL for an unterminated const char array and let the reset of the
29098 code handle it normally. No longer try to set *flexp. Adjust
29100 (get_range_strlen): Update for the new get_range_strlen API.
29101 (get_maxval_strlen): Similarly.
29102 (gimple_fold_builtin_strlen): Handle update meaning of return value
29103 from get_range_strlen.
29104 * gimple-ssa-sprintf.c (get_string_length): Update for the new
29105 get_range_strlen API.
29107 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
29110 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
29111 false at WPA time when body was removed.
29113 2019-01-02 Martin Liska <mliska@suse.cz>
29115 PR tree-optimization/88650
29116 * predict.c (set_even_probabilities): Calculate probability
29117 remainer only when really used.
29119 2019-01-02 Richard Biener <rguenther@suse.de>
29121 PR middle-end/88651
29122 * tree-data-ref.c (analyze_subscript_affine_affine): Use
29123 widest_ints when mangling max_stmt_execution results.
29125 2019-01-02 Richard Biener <rguenther@suse.de>
29127 PR tree-optimization/88621
29128 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
29129 bitfields when canoncalizing.
29131 2019-01-02 Richard Biener <rguenther@suse.de>
29134 * config/i386/x86-tune-costs.h (intel_cost): Adjust
29135 cost of cheap SSE instruction.
29137 2019-01-02 Richard Biener <rguenther@suse.de>
29140 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
29141 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
29143 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
29144 set after UIDs before splitting them.
29146 2019-01-01 Martin Sebor <msebor@redhat.com>
29147 Jeff Law <law@redhat.com>
29149 * gimple-fold.c (get_range_strlen_tree): Record if the computed
29150 length is optimistic. If it is, then arrange to compute the
29151 conservative length as well.
29153 * gimple-fold.h (get_range_strlen): Update prototype.
29154 * builtins.c (check_access): Update call to get_range_strlen to use
29155 c_strlen_data pointer. Change various variable accesses to instead
29156 pull data from the c_strlen_data structure.
29157 (check_strncat_sizes, expand_builtin_strncat): Likewise.
29158 * calls.c (maybe_warn_nonstring_arg): Likewise.
29159 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
29160 minimum length if maximum lengh is unknown.
29161 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
29162 that used c_strlen, it's no longer needed. Restructure slightly.
29163 (format_string): Set unlikely range appropriately.
29164 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
29166 (get_range_strlen): Accept c_strlen_data pointer for external
29167 call sites as well. Pass through to call to internal get_range_strlen.
29168 Adjust minlen, maxlen and maxbound as needed.
29169 (get_maxval_strlen): Update comments.
29170 (gimple_fold_builtin_strlen): Update call to get_range_strlen
29171 to use c_strlen_data pointer. Change variable accesses to instead
29172 use c_strlen_data data members.
29174 * gimple-fold.c (get_range_strlen): Update prototype.
29175 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
29176 local variables. Use pdata to return information to caller.
29177 Update calls to get_range_strlen. Update pdata->maxbound.
29178 (get_range_strlen -- static version): Similarly.
29179 (get_range_strlen -- extern version): Update for internal
29180 get_range_strlen API change. Convert to external data format.
29181 (get_maxval_strlen): Similarly.
29183 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
29185 * coverage.c (get_coverage_counts): Use current_function_decl.
29186 * profile.c (read_thunk_profile): New function.
29187 (branch_prob): Add THUNK parameter.
29188 * tree-profile.c (tree_profiling): Handle thunks.
29189 * value-prof.c (init_node_map): Handle thunks.
29190 * value-prof.h (branch_prob): Upate prototype.
29191 (read_thunk_profile): Declare.
29193 2019-01-01 Jakub Jelinek <jakub@redhat.com>
29195 Update copyright years.
29197 * gcc.c (process_command): Update copyright notice dates.
29198 * gcov-dump.c (print_version): Ditto.
29199 * gcov.c (print_version): Ditto.
29200 * gcov-tool.c (print_version): Ditto.
29201 * gengtype.c (create_file): Ditto.
29202 * doc/cpp.texi: Bump @copying's copyright year.
29203 * doc/cppinternals.texi: Ditto.
29204 * doc/gcc.texi: Ditto.
29205 * doc/gccint.texi: Ditto.
29206 * doc/gcov.texi: Ditto.
29207 * doc/install.texi: Ditto.
29208 * doc/invoke.texi: Ditto.
29210 Copyright (C) 2019 Free Software Foundation, Inc.
29212 Copying and distribution of this file, with or without modification,
29213 are permitted in any medium without royalty provided the copyright
29214 notice and this notice are preserved.