]> git.ipfire.org Git - thirdparty/gcc.git/commit
SCCVN: Fix repeating variable name "len"
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Mon, 26 Jun 2023 02:32:04 +0000 (10:32 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 26 Jun 2023 09:35:27 +0000 (17:35 +0800)
commit78da7a4278a1417f1060fd8f664291026e5856fb
tree6ff1b2ad0179f511b4718a97753275208f1273b4
parent83269719640689415c0d5026ebfe05a0cf2bab72
SCCVN: Fix repeating variable name "len"

Line 3292: has variable name "len": tree mask = NULL_TREE, len = NULL_TREE, bias = NULL_TREE;
Line 3349: has variable name "len": HOST_WIDE_INT start = 0, len = 0;

Since they are never used simultaneously, such issue is not recognized for now.
However, I want to add LEN_MASK_{LOAD,STORE} which will need these 2 variables, so fix naming in this path.

Change HOST_WIDE_INT start = 0, len = 0; into HOST_WIDE_INT start = 0, length = 0;

gcc/ChangeLog:

* tree-ssa-sccvn.cc (vn_reference_lookup_3): Change name "len" into
"length".
gcc/tree-ssa-sccvn.cc