/* Function vectorizable_call.
Check if STMT_INFO performs a function call that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
Check if STMT_INFO performs a function call that can be vectorized
by calling a simd clone of the function.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
/* Check if STMT_INFO performs a conversion operation that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
/* Function vectorizable_assignment.
Check if STMT_INFO performs an assignment (copy) that can be vectorized.
- If VEC_STMT is also passed, vectorize the STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
/* Function vectorizable_shift.
Check if STMT_INFO performs a shift operation that can be vectorized.
- If VEC_STMT is also passed, vectorize the STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
Check if STMT_INFO performs a binary, unary or ternary operation that can
be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
Check if STMT_INFO defines a non scalar data-ref (array/pointer/structure)
that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
Check if STMT_INFO reads a non scalar data-ref (array/pointer/structure)
that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt to replace it, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt to replace
+ it, and insert it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
static bool
/* vectorizable_condition.
Check if STMT_INFO is conditional modify expression that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- stmt using VEC_COND_EXPR to replace it, put it in VEC_STMT, and insert it
- at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized stmt using
+ VEC_COND_EXPR to replace it, and insert it at GSI.
When STMT_INFO is vectorized as a nested cycle, for_reduction is true.
/* Helper of vectorizable_comparison.
Check if STMT_INFO is comparison expression CODE that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- comparison, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized comparison, and insert
+ it at GSI.
Return true if STMT_INFO is vectorizable in this way. */
/* vectorizable_comparison.
Check if STMT_INFO is comparison expression that can be vectorized.
- If VEC_STMT is also passed, vectorize STMT_INFO: create a vectorized
- comparison, put it in VEC_STMT, and insert it at GSI.
+ If COST_VEC is passed, calculate costs but don't change anything,
+ otherwise, vectorize STMT_INFO: create a vectorized comparison, and insert
+ it at GSI.
Return true if STMT_INFO is vectorizable in this way. */