https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81148
--- Comment #15 from Marek Polacek <mpolacek at gcc dot gnu.org> --- My other idea was to pass bool ok to split_tree and if it sees that it cannot negate_expr something, set it to false, so that we don't change the expression after split_tree has been called. But if it worked I think I would've posted the patch already.