[PATCH] tree: Improve skip_simple_arithmetic [PR119183]

2025-03-11 Thread Jakub Jelinek
Hi! The following testcase takes very long time to compile, because skip_simple_arithmetic decides to first call tree_invariant_p on the second argument (and indirectly recurse there). I think before canonicalization of operands for commutative binary expressions (and for non-commutative ones alw

Re: [PATCH] tree: Improve skip_simple_arithmetic [PR119183]

2025-03-11 Thread Richard Biener
On Tue, 11 Mar 2025, Jakub Jelinek wrote: > Hi! > > The following testcase takes very long time to compile, because > skip_simple_arithmetic decides to first call tree_invariant_p on > the second argument (and indirectly recurse there). I think before > canonicalization of operands for commutati