]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/109735 - conversion for vectorized pointer-diff
authorRichard Biener <rguenther@suse.de>
Fri, 5 May 2023 06:54:28 +0000 (08:54 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 5 May 2023 12:19:04 +0000 (14:19 +0200)
commit37b5f031292fbdb854ee791de3883362cf2afcff
treec72d6a3fe5a9ca1fc8bf1148772f3e0d7a4599e0
parent919642fa4b2bc4c32910336dd200d53766801c80
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.
gcc/tree-vect-stmts.cc
This page took 0.060343 seconds and 5 git commands to generate.