]> git.ipfire.org Git - thirdparty/gcc.git/commit
cleanup: Change condition order
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Fri, 21 Jul 2023 02:23:43 +0000 (10:23 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Fri, 21 Jul 2023 08:34:50 +0000 (16:34 +0800)
commit3e76bdd5fd289ac38326060bba91b0e264c50ccf
treeda4d19c8d3b37d8a1204966b149101f2b0f7e8c8
parent363bb3dca429e885ce3d134fc50f8ab05aacda0f
cleanup: Change condition order

Hi, Richard and Richi.

I have double check the recent codes for len && mask support again.

Some places code structure:

if (len_mask_fn)
...
else if (mask_fn)
...

some places code structure:

if (mask_len_fn)
...
else if (mask)

Base on previous review comment from Richi:
https://gcc.gnu.org/pipermail/gcc-patches/2023-July/625067.html

len mask stuff should be checked before mask.

So I reorder all condition order to check LEN MASK stuff before MASK.

This is the last clean up patch.

Boostrap and Regression is on the way.

gcc/ChangeLog:

* tree-vect-stmts.cc (check_load_store_for_partial_vectors): Change condition order.
(vectorizable_operation): Ditto.
gcc/tree-vect-stmts.cc