Home | History | Annotate | Download | only in gcc

Lines Matching refs:last_stmt

1000   gassign *last_stmt = dyn_cast <gassign *> (stmt_vinfo->stmt);
1005 if (!last_stmt)
1008 lhs = gimple_assign_lhs (last_stmt);
1015 vect_pattern_detected ("vect_recog_cond_expr_convert_pattern", last_stmt);
1091 gimple *last_stmt = stmt_vinfo->stmt;
1118 /* Starting from LAST_STMT, follow the defs of its uses in search
1125 type = TREE_TYPE (gimple_get_lhs (last_stmt));
1130 /* So far so good. Since last_stmt was detected as a (summation) reduction,
1158 vect_pattern_detected ("vect_recog_dot_prod_pattern", last_stmt);
1219 gimple *last_stmt = stmt_vinfo->stmt;
1246 /* Starting from LAST_STMT, follow the defs of its uses in search
1254 tree sum_type = TREE_TYPE (gimple_get_lhs (last_stmt));
1265 /* So far so good. Since last_stmt was detected as a (summation) reduction,
1316 vect_pattern_detected ("vect_recog_sad_pattern", last_stmt);
1366 gimple *last_stmt = last_stmt_info->stmt;
1375 vect_pattern_detected (name, last_stmt);
1377 tree type = TREE_TYPE (gimple_get_lhs (last_stmt));
1508 gassign *last_stmt = dyn_cast <gassign *> (stmt_vinfo->stmt);
1514 if (!last_stmt)
1516 tree_code code = gimple_assign_rhs_code (last_stmt);
1520 lhs_oprnd = gimple_assign_lhs (last_stmt);
1525 rhs_oprnd = gimple_assign_rhs1 (last_stmt);
1575 gimple_set_location (pattern_stmt, gimple_location (last_stmt));
1612 gimple *last_stmt = stmt_vinfo->stmt;
1617 if (!is_gimple_call (last_stmt) || gimple_call_lhs (last_stmt) == NULL)
1620 switch (gimple_call_combined_fn (last_stmt))
1630 base = gimple_call_arg (last_stmt, 0);
1631 exp = gimple_call_arg (last_stmt, 1);
1637 && gimple_call_builtin_p (last_stmt, BUILT_IN_NORMAL))
1641 switch (DECL_FUNCTION_CODE (gimple_call_fndecl (last_stmt)))
1776 gimple *last_stmt = stmt_vinfo->stmt;
1789 /* Starting from LAST_STMT, follow the defs of its uses in search
1798 type = TREE_TYPE (gimple_get_lhs (last_stmt));
1800 /* So far so good. Since last_stmt was detected as a (summation) reduction,
1811 vect_pattern_detected ("vect_recog_widen_sum_pattern", last_stmt);
1866 gassign *last_stmt = dyn_cast <gassign *> (last_stmt_info->stmt);
1867 if (!last_stmt)
1876 tree lhs = gimple_assign_lhs (last_stmt);
1878 tree_code code = gimple_assign_rhs_code (last_stmt);
1889 unsigned int nops = gimple_num_ops (last_stmt) - first_op;
1896 tree op = gimple_op (last_stmt, first_op + i);
2010 vect_pattern_detected ("vect_recog_over_widening_pattern", last_stmt);
2045 ops[i - 1] = gimple_op (last_stmt, i);
2053 gimple_set_location (pattern_stmt, gimple_location (last_stmt));
2096 gassign *last_stmt = dyn_cast <gassign *> (last_stmt_info->stmt);
2097 if (!last_stmt
2098 || gimple_assign_rhs_code (last_stmt) != RSHIFT_EXPR)
2103 tree lhs_type = TREE_TYPE (gimple_assign_lhs (last_stmt));
2113 (vinfo, gimple_assign_rhs1 (last_stmt), &unprom_rshift_input);
2137 if (!integer_onep (gimple_assign_rhs2 (last_stmt)))
2185 scale_term = gimple_assign_rhs2 (last_stmt);
2235 vect_pattern_detected ("vect_recog_mulhs_pattern", last_stmt);
2258 gimple_set_location (mulhrs_stmt, gimple_location (last_stmt));
2295 gassign *last_stmt = dyn_cast <gassign *> (last_stmt_info->stmt);
2296 if (!last_stmt
2297 || gimple_assign_rhs_code (last_stmt) != RSHIFT_EXPR
2298 || !integer_onep (gimple_assign_rhs2 (last_stmt)))
2303 tree lhs = gimple_assign_lhs (last_stmt);
2311 tree rshift_rhs = gimple_assign_rhs1 (last_stmt);
2353 vect_pattern_detected ("vect_recog_average_pattern", last_stmt);
2464 gimple_set_location (average_stmt, gimple_location (last_stmt));
2498 gassign *last_stmt = dyn_cast <gassign *> (last_stmt_info->stmt);
2499 if (!last_stmt)
2501 tree_code code = gimple_assign_rhs_code (last_stmt);
2506 tree lhs = gimple_assign_lhs (last_stmt);
2516 tree rhs = gimple_assign_rhs1 (last_stmt);
2537 vect_pattern_detected ("vect_recog_cast_forwprop_pattern", last_stmt);
2545 gimple_set_location (pattern_stmt, gimple_location (last_stmt));
2593 gimple *last_stmt = stmt_vinfo->stmt;
2602 if (is_gimple_assign (last_stmt))
2604 rhs_code = gimple_assign_rhs_code (last_stmt);
2614 lhs = gimple_assign_lhs (last_stmt);
2615 oprnd0 = gimple_assign_rhs1 (last_stmt);
2617 oprnd1 = gimple_assign_rhs2 (last_stmt);
2619 else if (gimple_call_builtin_p (last_stmt, BUILT_IN_BSWAP16))
2624 lhs = gimple_call_lhs (last_stmt);
2625 oprnd0 = gimple_call_arg (last_stmt, 0);
2679 vect_pattern_detected ("vect_recog_rotate_pattern", last_stmt);
2686 pattern_stmt = gimple_build_call (gimple_call_fndecl (last_stmt),
2690 gimple_call_fntype (last_stmt));
2739 vect_pattern_detected ("vect_recog_rotate_pattern", last_stmt);
2868 vect_pattern_detected ("vect_recog_rotate_pattern", last_stmt);
2920 gimple *last_stmt = stmt_vinfo->stmt;
2925 if (!is_gimple_assign (last_stmt))
2928 rhs_code = gimple_assign_rhs_code (last_stmt);
2940 lhs = gimple_assign_lhs (last_stmt);
2941 oprnd0 = gimple_assign_rhs1 (last_stmt);
2942 oprnd1 = gimple_assign_rhs2 (last_stmt);
2993 vect_pattern_detected ("vect_recog_vector_vector_shift_pattern", last_stmt);
3322 gimple *last_stmt = stmt_vinfo->stmt;
3326 if (!is_gimple_assign (last_stmt))
3329 if (gimple_assign_rhs_code (last_stmt) != MULT_EXPR)
3332 oprnd0 = gimple_assign_rhs1 (last_stmt);
3333 oprnd1 = gimple_assign_rhs2 (last_stmt);
3363 vect_pattern_detected ("vect_recog_mult_pattern", last_stmt);
3412 gimple *last_stmt = stmt_vinfo->stmt;
3420 if (!is_gimple_assign (last_stmt))
3423 rhs_code = gimple_assign_rhs_code (last_stmt);
3434 oprnd0 = gimple_assign_rhs1 (last_stmt);
3435 oprnd1 = gimple_assign_rhs2 (last_stmt);
3448 if (optimize_bb_for_size_p (gimple_bb (last_stmt)))
3470 vect_pattern_detected ("vect_recog_divmod_pattern", last_stmt);
3498 gimple_set_location (pattern_stmt, gimple_location (last_stmt));
3824 vect_pattern_detected ("vect_recog_divmod_pattern", last_stmt);
3862 gimple *last_stmt = stmt_vinfo->stmt;
3871 if (!is_gimple_assign (last_stmt)
3872 || gimple_assign_rhs_code (last_stmt) != COND_EXPR
3876 cond_expr = gimple_assign_rhs1 (last_stmt);
3877 then_clause = gimple_assign_rhs2 (last_stmt);
3878 else_clause = gimple_assign_rhs3 (last_stmt);
3888 type = TREE_TYPE (gimple_assign_lhs (last_stmt));
3973 vect_pattern_detected ("vect_recog_mixed_size_cond_pattern", last_stmt);
4377 gimple *last_stmt = stmt_vinfo->stmt;
4382 if (!is_gimple_assign (last_stmt))
4385 var = gimple_assign_rhs1 (last_stmt);
4386 lhs = gimple_assign_lhs (last_stmt);
4387 rhs_code = gimple_assign_rhs_code (last_stmt);
4449 vect_pattern_detected ("vect_recog_bool_pattern", last_stmt);
4483 gimple_assign_rhs2 (last_stmt),
4484 gimple_assign_rhs3 (last_stmt));
4486 vect_pattern_detected ("vect_recog_bool_pattern", last_stmt);
4535 vect_pattern_detected ("vect_recog_bool_pattern", last_stmt);
4597 gimple *last_stmt = stmt_vinfo->stmt;
4606 if (is_gimple_call (last_stmt)
4607 && gimple_call_internal_p (last_stmt))
4611 internal_fn ifn = gimple_call_internal_fn (last_stmt);
4620 tree rhs = gimple_call_arg (last_stmt, rhs_index);
4625 lhs = gimple_call_lhs (last_stmt);
4631 tree mask_arg = gimple_call_arg (last_stmt, mask_argno);
4645 unsigned int nargs = gimple_call_num_args (last_stmt);
4650 : gimple_call_arg (last_stmt, i));
4665 vect_pattern_detected ("vect_recog_mask_conversion_pattern", last_stmt);
4670 if (!is_gimple_assign (last_stmt))
4674 lhs = gimple_assign_lhs (last_stmt);
4675 rhs1 = gimple_assign_rhs1 (last_stmt);
4676 rhs_code = gimple_assign_rhs_code (last_stmt);
4809 gimple_assign_rhs2 (last_stmt),
4810 gimple_assign_rhs3 (last_stmt));
4813 vect_pattern_detected ("vect_recog_mask_conversion_pattern", last_stmt);
4829 rhs2 = gimple_assign_rhs2 (last_stmt);
4857 vect_pattern_detected ("vect_recog_mask_conversion_pattern", last_stmt);