]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
authorBin Cheng <bin.cheng@linux.alibaba.com>
Tue, 14 May 2019 01:18:53 +0000 (01:18 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 14 May 2019 01:18:53 +0000 (01:18 +0000)
commit98aaa1a633cf3a79fa281a383c12fc45b313e824
tree86f2df0811fde35ba8b048e92db3574db9808f01
parent5900c71041337f4495f6490f433175980244c3ad
gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.

* gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
(alloc_cand_and_find_basis): Ditto.
(backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
(create_mul_imm_cand, create_add_ssa_cand): Ditto.
(create_add_imm_cand, slsr_process_cast): Ditto.
(slsr_process_copy, replace_mult_candidate): Ditto.
(replace_rhs_if_not_dup, replace_one_candidate): Ditto.
(dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
(pass_strength_reduction::execute): Init the first NULL element.

From-SVN: r271145
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c