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

--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 4 Oct 2017, amonakov at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397
> 
> --- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> Is it possible to simply invoke data_ref_compare_tree always, without checking
> operand_equal_p beforehand? It's possible to canonicalize commutative chains 
> in
> data_ref_compare_tree, or - even better - while generating trees in the first
> place; I don't understand why the operand_equal_p checks are there, they seem
> more costly than what data_ref_compare_tree does.

I believe we exactly left them there because they catches more 
equalities and data_ref_compare_tree was supposed to only order
non-equal ones.

Reply via email to