diff options
author | Richard Biener <rguenther@suse.de> | 2023-05-05 08:54:28 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-05-05 14:19:04 +0200 |
commit | 37b5f031292fbdb854ee791de3883362cf2afcff (patch) | |
tree | c72d6a3fe5a9ca1fc8bf1148772f3e0d7a4599e0 /libcpp | |
parent | 919642fa4b2bc4c32910336dd200d53766801c80 (diff) | |
download | gcc-37b5f031292fbdb854ee791de3883362cf2afcff.zip gcc-37b5f031292fbdb854ee791de3883362cf2afcff.tar.gz gcc-37b5f031292fbdb854ee791de3883362cf2afcff.tar.bz2 |
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions