https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118902

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> I wonder why GIMPLE tree_swap_operands_p doesn't swap?  Isn't an invariant
> ADDR_EXPR TREE_CONSTANT according to recompute_tree_invariant_for_addr_expr?
> That might mishandle MEM_REF[&decl] though.

Oh, so we only consider staticp as TREE_CONSTANT which does not include
any automatic vars.

Reply via email to