Re: [PATCH 1/2] forwprop: Add a quick out for new_src_based_on_copy when both are decls

2025-09-16 Thread Richard Biener
On Wed, Sep 17, 2025 at 12:33 AM Andrew Pinski wrote: > > If both operands that are being compared are decls, operand_equal_p will > already > handle that case so an early out can be done here. > > Bootstrapped and tested on x86_64-linux-gnu. OK. > gcc/ChangeLog: > > * tree-ssa-forwprop

[PATCH 1/2] forwprop: Add a quick out for new_src_based_on_copy when both are decls

2025-09-16 Thread Andrew Pinski
If both operands that are being compared are decls, operand_equal_p will already handle that case so an early out can be done here. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-forwprop.cc (new_src_based_on_copy): An early out if both are decls. Signed-