]> git.ipfire.org Git - thirdparty/gcc.git/commit
CODE STRUCTURE: Refine codes in Vectorizer
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Thu, 20 Jul 2023 08:06:29 +0000 (16:06 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 20 Jul 2023 13:53:49 +0000 (21:53 +0800)
commitb6b72562d116bd0a589dce39437f9d2b3c34491f
tree301629a76ac6601b11e3c6f10c7ee1b0c04d88f0
parentef28aadad6e5cff3d7494f3c97d435a6579a2e2d
CODE STRUCTURE: Refine codes in Vectorizer

Hi, Richard and Richi.

I plan to refine the codes that I recently support for RVV auto-vectorization.
This patch is inspired last review comments from Richard:
https://patchwork.sourceware.org/project/gcc/patch/20230712042124.111818-1-juzhe.zhong@rivai.ai/

Richard said he prefer the the code structure as follows:

Please instead switch the if condition so that the structure is:

   if (...)
     vect_record_loop_mask (...)
   else if (...)
     vect_record_loop_len (...)
   else
     can't use partial vectors

This is his last comments.

So, I come back to refine this piece of codes.

Does it look reasonable ?

This next refine patch is change all names of "LEN_MASK" into "MASK_LEN" but should come after this
patch.

gcc/ChangeLog:

* tree-vect-stmts.cc (check_load_store_for_partial_vectors):
Refine code structure.
gcc/tree-vect-stmts.cc