vect: Init inside_cost in vect_model_reduction_cost
authorKewen Lin <linkw@linux.ibm.com>
Thu, 25 Mar 2021 12:53:06 +0000 (07:53 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 25 Mar 2021 12:58:24 +0000 (07:58 -0500)
commit068d02e896d3df17b59b013a82ca0bf9faf058f3
tree849a081253cae7baf7d833aeeb572eef9be4fe4d
parent660eb7e9dee46ef1c986d5a4fa5cbd182b435518
vect: Init inside_cost in vect_model_reduction_cost

This patch is to initialize the inside_cost as zero, can avoid
to use its uninitialized value when some path doesn't assign it.

gcc/ChangeLog:

* tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
gcc/tree-vect-loop.c