https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Oct 15 11:47:27 2019 New Revision: 276993 URL: https://gcc.gnu.org/viewcvs?rev=276993&root=gcc&view=rev Log: 2019-10-15 Richard Biener <rguent...@suse.de> PR tree-optimization/91929 * tree-ssa-pre.c (pre_expr_d::loc): New member. (get_or_alloc_expr_for_name): Initialize it. (get_or_alloc_expr_for_constant): Likewise. (phi_translate_1): Copy it. (create_expression_by_pieces): Use the original location of the expression for the inserted stmt. (compute_avail): Record the location of the stmt for the expressions created. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-pre.c