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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:37b5f031292fbdb854ee791de3883362cf2afcff

commit r14-494-g37b5f031292fbdb854ee791de3883362cf2afcff
Author: Richard Biener <rguent...@suse.de>
Date:   Fri May 5 08:54:28 2023 +0200

    tree-optimization/109735 - conversion for vectorized pointer-diff

    There's handling in vectorizable_operation for POINTER_DIFF_EXPR
    requiring conversion of the result of the unsigned operation to
    a signed type.  But that's conditional on the "default" kind of
    vectorization.  In this PR it's shown the emulated vector path
    needs it and I think the masked operation case will, too (though
    we might eventually never mask an integral MINUS_EXPR).  So the
    following makes that handling unconditional.

            PR tree-optimization/109735
            * tree-vect-stmts.cc (vectorizable_operation): Perform
            conversion for POINTER_DIFF_EXPR unconditionally.

Reply via email to