Home
last modified time | relevance | path

Searched refs:stmt2 (Results 1 – 25 of 29) sorted by relevance

12

/dragonfly/contrib/gcc-4.7/gcc/
HDtree-profile.c217 gimple stmt1, stmt2, stmt3; in gimple_gen_edge_profiler() local
228 stmt2 = gimple_build_assign_with_ops (PLUS_EXPR, gcov_type_tmp_var, in gimple_gen_edge_profiler()
230 gimple_assign_set_lhs (stmt2, make_ssa_name (gcov_type_tmp_var, stmt2)); in gimple_gen_edge_profiler()
231 stmt3 = gimple_build_assign (unshare_expr (ref), gimple_assign_lhs (stmt2)); in gimple_gen_edge_profiler()
233 gsi_insert_on_edge (e, stmt2); in gimple_gen_edge_profiler()
331 gimple stmt1, stmt2, stmt3; in gimple_gen_ic_profiler() local
348 stmt2 = gimple_build_assign (tmp1, unshare_expr (value->hvalue.value)); in gimple_gen_ic_profiler()
349 gimple_assign_set_lhs (stmt2, make_ssa_name (tmp1, stmt2)); in gimple_gen_ic_profiler()
350 find_referenced_vars_in (stmt2); in gimple_gen_ic_profiler()
351 stmt3 = gimple_build_assign (ic_void_ptr_var, gimple_assign_lhs (stmt2)); in gimple_gen_ic_profiler()
[all …]
HDtree-vectorizer.h651 get_earlier_stmt (gimple stmt1, gimple stmt2) in get_earlier_stmt() argument
656 return stmt2; in get_earlier_stmt()
658 if (stmt2 == NULL) in get_earlier_stmt()
662 uid2 = gimple_uid (stmt2); in get_earlier_stmt()
673 return stmt2; in get_earlier_stmt()
679 get_later_stmt (gimple stmt1, gimple stmt2) in get_later_stmt() argument
684 return stmt2; in get_later_stmt()
686 if (stmt2 == NULL) in get_later_stmt()
690 uid2 = gimple_uid (stmt2); in get_later_stmt()
701 return stmt2; in get_later_stmt()
HDtree-call-cdce.c332 gimple stmt1, stmt2, stmt3; in gen_one_condition() local
344 stmt2 = gimple_build_assign (tempc, in gen_one_condition()
348 tempcn = make_ssa_name (tempc, stmt2); in gen_one_condition()
349 gimple_assign_set_lhs (stmt2, tempcn); in gen_one_condition()
353 VEC_quick_push (gimple, conds, stmt2); in gen_one_condition()
456 gimple stmt1, stmt2; in gen_conditions_for_pow_int_base() local
513 stmt2 = gimple_build_cond (LE_EXPR, tempn, cst0, NULL_TREE, NULL_TREE); in gen_conditions_for_pow_int_base()
516 VEC_quick_push (gimple, conds, stmt2); in gen_conditions_for_pow_int_base()
HDvalue-prof.c562 gimple stmt1, stmt2, stmt3; in gimple_divmod_fixed_value() local
586 stmt2 = gimple_build_assign (tmp1, op2); in gimple_divmod_fixed_value()
587 SSA_NAME_DEF_STMT (tmp1) = stmt2; in gimple_divmod_fixed_value()
590 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_divmod_fixed_value()
719 gimple stmt1, stmt2, stmt3, stmt4; in gimple_mod_pow2() local
742 stmt2 = gimple_build_assign_with_ops (PLUS_EXPR, tmp2, op2, in gimple_mod_pow2()
744 SSA_NAME_DEF_STMT (tmp2) = stmt2; in gimple_mod_pow2()
749 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_mod_pow2()
875 gimple stmt1, stmt2, stmt3; in gimple_mod_subtract() local
897 stmt2 = gimple_build_assign (tmp1, op2); in gimple_mod_subtract()
[all …]
HDtree-ssa-forwprop.c1427 gimple stmt1, stmt2 = gsi_stmt (*gsi_p); in simplify_builtin_call() local
1428 tree vuse = gimple_vuse (stmt2); in simplify_builtin_call()
1436 if (gimple_call_num_args (stmt2) != 3 in simplify_builtin_call()
1437 || gimple_call_lhs (stmt2) in simplify_builtin_call()
1445 tree ptr2 = gimple_call_arg (stmt2, 0); in simplify_builtin_call()
1446 tree val2 = gimple_call_arg (stmt2, 1); in simplify_builtin_call()
1447 tree len2 = gimple_call_arg (stmt2, 2); in simplify_builtin_call()
1540 || use_stmt != stmt2)) in simplify_builtin_call()
1548 || use_stmt != stmt2)) in simplify_builtin_call()
1567 rtl_profile_for_bb (gimple_bb (stmt2)); in simplify_builtin_call()
[all …]
HDtree-predcom.c2077 gimple stmt1, stmt2; in find_common_use_stmt() local
2083 stmt2 = find_use_stmt (name2); in find_common_use_stmt()
2084 if (!stmt2) in find_common_use_stmt()
2087 if (stmt1 == stmt2) in find_common_use_stmt()
2093 stmt2 = find_associative_operation_root (stmt2, NULL); in find_common_use_stmt()
2094 if (!stmt2) in find_common_use_stmt()
2097 return (stmt1 == stmt2 ? stmt1 : NULL); in find_common_use_stmt()
2176 gimple stmt1, stmt2, root1, root2, s1, s2; in reassociate_to_the_same_stmt() local
2185 stmt2 = find_use_stmt (&name2); in reassociate_to_the_same_stmt()
2187 root2 = find_associative_operation_root (stmt2, &dist2); in reassociate_to_the_same_stmt()
[all …]
HDtree-ssa-loop-im.c940 gimple stmt, stmt1, stmt2; in rewrite_reciprocal() local
960 stmt2 = gimple_build_assign_with_ops (MULT_EXPR, lhs, name, in rewrite_reciprocal()
968 gsi_replace (&gsi, stmt2, true); in rewrite_reciprocal()
980 gimple stmt, use_stmt, stmt1, stmt2; in rewrite_bittest() local
1040 stmt2 = gimple_build_assign (var, t); in rewrite_bittest()
1041 name = make_ssa_name (var, stmt2); in rewrite_bittest()
1042 gimple_assign_set_lhs (stmt2, name); in rewrite_bittest()
1055 gsi_insert_before (&rsi, stmt2, GSI_SAME_STMT); in rewrite_bittest()
HDtree-ssa-math-opts.c592 gimple stmt2 = USE_STMT (use_p); in execute_cse_reciprocals() local
593 if (is_gimple_debug (stmt2)) in execute_cse_reciprocals()
595 if (!is_gimple_assign (stmt2) in execute_cse_reciprocals()
596 || gimple_assign_rhs_code (stmt2) != RDIV_EXPR in execute_cse_reciprocals()
597 || gimple_assign_rhs1 (stmt2) == arg1 in execute_cse_reciprocals()
598 || gimple_assign_rhs2 (stmt2) != arg1) in execute_cse_reciprocals()
HDtree-ssa-reassoc.c2196 gimple stmt1 = stmt, stmt2; in rewrite_expr_tree() local
2203 stmt2 = SSA_NAME_DEF_STMT (gimple_assign_rhs1 (stmt1)); in rewrite_expr_tree()
2204 gsirhs1 = gsi_for_stmt (stmt2); in rewrite_expr_tree()
2207 stmt1 = stmt2; in rewrite_expr_tree()
HDtree-ssa-dom.c2493 gimple stmt2 = ((const struct expr_hash_elt *)p2)->stmt; in avail_expr_eq() local
2518 == (stmt2 ? gimple_vuse (stmt2) : NULL_TREE)); in avail_expr_eq()
/dragonfly/contrib/gcc-8.0/gcc/
HDvtable-verify.c579 gimple *stmt2 = USE_STMT (use_p); in var_is_used_for_virtual_call_p() local
581 if (is_gimple_call (stmt2)) in var_is_used_for_virtual_call_p()
583 tree fncall = gimple_call_fn (stmt2); in var_is_used_for_virtual_call_p()
589 else if (gimple_code (stmt2) == GIMPLE_PHI) in var_is_used_for_virtual_call_p()
592 (gimple_phi_result (stmt2), in var_is_used_for_virtual_call_p()
596 else if (is_gimple_assign (stmt2)) in var_is_used_for_virtual_call_p()
598 tree rhs = gimple_assign_rhs1 (stmt2); in var_is_used_for_virtual_call_p()
615 (gimple_assign_lhs (stmt2), in var_is_used_for_virtual_call_p()
HDgimple-ssa-split-paths.c171 gimple *stmt2 = last_and_only_stmt (pred2); in is_feasible_trace() local
173 if (stmt1 && stmt2 in is_feasible_trace()
175 && gimple_code (stmt2) == GIMPLE_ASSIGN) in is_feasible_trace()
178 enum tree_code code2 = gimple_assign_rhs_code (stmt2); in is_feasible_trace()
184 tree lhs2 = gimple_assign_lhs (stmt2); in is_feasible_trace()
HDtree-call-cdce.c384 gassign *stmt2; in gen_one_condition() local
397 stmt2 = gimple_build_assign (tempc, in gen_one_condition()
401 tempcn = make_ssa_name (tempc, stmt2); in gen_one_condition()
402 gimple_assign_set_lhs (stmt2, tempcn); in gen_one_condition()
406 conds.quick_push (stmt2); in gen_one_condition()
509 gimple *stmt1, *stmt2; in gen_conditions_for_pow_int_base() local
565 stmt2 = gimple_build_cond (GT_EXPR, tempn, cst0, NULL_TREE, NULL_TREE); in gen_conditions_for_pow_int_base()
568 conds.quick_push (stmt2); in gen_conditions_for_pow_int_base()
HDtree-profile.c274 gassign *stmt2 = gimple_build_assign (gcov_type_tmp_var, PLUS_EXPR, in gimple_gen_edge_profiler() local
277 gimple_assign_lhs (stmt2)); in gimple_gen_edge_profiler()
279 gsi_insert_on_edge (e, stmt2); in gimple_gen_edge_profiler()
375 gassign *stmt1, *stmt2, *stmt3; in gimple_gen_ic_profiler() local
405 stmt2 = gimple_build_assign (tmp1, unshare_expr (value->hvalue.value)); in gimple_gen_ic_profiler()
406 stmt3 = gimple_build_assign (ic_void_ptr_var, gimple_assign_lhs (stmt2)); in gimple_gen_ic_profiler()
409 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_gen_ic_profiler()
HDtree-ssa-forwprop.c1242 gimple *stmt1, *stmt2 = gsi_stmt (*gsi_p); in simplify_builtin_call() local
1243 tree vuse = gimple_vuse (stmt2); in simplify_builtin_call()
1251 if (gimple_call_num_args (stmt2) != 3 in simplify_builtin_call()
1252 || gimple_call_lhs (stmt2) in simplify_builtin_call()
1260 tree ptr2 = gimple_call_arg (stmt2, 0); in simplify_builtin_call()
1261 tree val2 = gimple_call_arg (stmt2, 1); in simplify_builtin_call()
1262 tree len2 = gimple_call_arg (stmt2, 2); in simplify_builtin_call()
1357 || use_stmt != stmt2)) in simplify_builtin_call()
1365 || use_stmt != stmt2)) in simplify_builtin_call()
1384 rtl_profile_for_bb (gimple_bb (stmt2)); in simplify_builtin_call()
[all …]
HDtree-ssa-math-opts.c810 gimple *stmt2 = USE_STMT (use_p); in execute() local
811 if (is_gimple_debug (stmt2)) in execute()
813 if (!is_gimple_assign (stmt2) in execute()
814 || gimple_assign_rhs_code (stmt2) != RDIV_EXPR in execute()
815 || gimple_assign_rhs1 (stmt2) == arg1 in execute()
816 || gimple_assign_rhs2 (stmt2) != arg1) in execute()
832 gcall *stmt2; in execute() local
834 stmt2 = gimple_build_call_vec (fndecl, args); in execute()
836 stmt2 = gimple_build_call_internal_vec (ifn, args); in execute()
837 gimple_call_set_lhs (stmt2, arg1); in execute()
[all …]
HDtree-predcom.c2511 gimple *stmt1, *stmt2; in find_common_use_stmt() local
2517 stmt2 = find_use_stmt (name2); in find_common_use_stmt()
2518 if (!stmt2) in find_common_use_stmt()
2521 if (stmt1 == stmt2) in find_common_use_stmt()
2527 stmt2 = find_associative_operation_root (stmt2, NULL); in find_common_use_stmt()
2528 if (!stmt2) in find_common_use_stmt()
2531 return (stmt1 == stmt2 ? stmt1 : NULL); in find_common_use_stmt()
2610 gimple *stmt1, *stmt2, *root1, *root2, *s1, *s2; in reassociate_to_the_same_stmt() local
2619 stmt2 = find_use_stmt (&name2); in reassociate_to_the_same_stmt()
2621 root2 = find_associative_operation_root (stmt2, &dist2); in reassociate_to_the_same_stmt()
[all …]
HDfunction-tests.c484 gimple *stmt2 = stmt1->next; in test_gimplification() local
485 ASSERT_TRUE (stmt2 != NULL); in test_gimplification()
486 ASSERT_EQ (stmt1, stmt2->prev); in test_gimplification()
487 ASSERT_EQ (GIMPLE_RETURN, gimple_code (stmt2)); in test_gimplification()
HDvalue-prof.c689 gassign *stmt1, *stmt2; in gimple_divmod_fixed_value() local
712 stmt2 = gimple_build_assign (tmp1, op2); in gimple_divmod_fixed_value()
715 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_divmod_fixed_value()
846 gassign *stmt1, *stmt2, *stmt3; in gimple_mod_pow2() local
869 stmt2 = gimple_build_assign (tmp2, PLUS_EXPR, op2, in gimple_mod_pow2()
874 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_mod_pow2()
999 gimple *stmt2; in gimple_mod_subtract() local
1022 stmt2 = gimple_build_assign (tmp1, op2); in gimple_mod_subtract()
1025 gsi_insert_before (&gsi, stmt2, GSI_SAME_STMT); in gimple_mod_subtract()
1032 stmt2 = gimple_build_cond (LT_EXPR, result, tmp1, NULL_TREE, NULL_TREE); in gimple_mod_subtract()
[all …]
HDtree-ssa-tail-merge.c1244 merge_stmts_p (gimple *stmt1, gimple *stmt2) in merge_stmts_p() argument
1253 if (lookup_stmt_eh_lp_fn (cfun, stmt1) != lookup_stmt_eh_lp_fn (cfun, stmt2)) in merge_stmts_p()
1273 return gimple_location (stmt1) == gimple_location (stmt2); in merge_stmts_p()
1298 gimple *stmt2 = gsi_stmt (gsi2); in find_duplicate() local
1301 && gimple_code (stmt2) == GIMPLE_LABEL) in find_duplicate()
1304 if (!gimple_equal_p (same_succ, stmt1, stmt2)) in find_duplicate()
1307 if (!merge_stmts_p (stmt1, stmt2)) in find_duplicate()
HDtree-vectorizer.h1071 get_later_stmt (gimple *stmt1, gimple *stmt2) in get_later_stmt() argument
1076 return stmt2; in get_later_stmt()
1078 if (stmt2 == NULL) in get_later_stmt()
1082 stmt_vec_info stmt_info2 = vinfo_for_stmt (stmt2); in get_later_stmt()
1086 ? STMT_VINFO_RELATED_STMT (stmt_info2) : stmt2); in get_later_stmt()
1097 return stmt2; in get_later_stmt()
HDtree-ssa-strlen.c2660 gimple *stmt2 = gsi_stmt (*gsi); in handle_builtin_memset() local
2661 if (!integer_zerop (gimple_call_arg (stmt2, 1))) in handle_builtin_memset()
2663 tree ptr = gimple_call_arg (stmt2, 0); in handle_builtin_memset()
2677 tree size = gimple_call_arg (stmt2, 2); in handle_builtin_memset()
2692 tree lhs = gimple_call_lhs (stmt2); in handle_builtin_memset()
2693 unlink_stmt_vdef (stmt2); in handle_builtin_memset()
2702 release_defs (stmt2); in handle_builtin_memset()
2715 gcall *stmt2 = as_a <gcall *> (gsi_stmt (*gsi)); in handle_builtin_memcmp() local
2716 tree res = gimple_call_lhs (stmt2); in handle_builtin_memcmp()
2717 tree arg1 = gimple_call_arg (stmt2, 0); in handle_builtin_memcmp()
[all …]
HDtree-ssa-reassoc.c1343 gimple *stmt2 = SSA_NAME_DEF_STMT (gimple_assign_rhs2 (stmt)); in zero_one_operation() local
1344 if (stmt_is_power_of_op (stmt2, op)) in zero_one_operation()
1346 if (decrement_power (stmt2) == 1) in zero_one_operation()
1347 propagate_op_to_single_use (op, stmt2, def); in zero_one_operation()
1349 stmts_to_fix.safe_push (stmt2); in zero_one_operation()
1352 else if (is_gimple_assign (stmt2) in zero_one_operation()
1353 && gimple_assign_rhs_code (stmt2) == NEGATE_EXPR) in zero_one_operation()
1355 if (gimple_assign_rhs1 (stmt2) == op) in zero_one_operation()
1358 propagate_op_to_single_use (cst, stmt2, def); in zero_one_operation()
1364 stmts_to_fix.safe_push (stmt2); in zero_one_operation()
[all …]
HDtree-ssa-loop-im.c805 gassign *stmt, *stmt1, *stmt2; in rewrite_reciprocal() local
819 stmt2 = gimple_build_assign (lhs, MULT_EXPR, name, in rewrite_reciprocal()
827 gsi_replace (&gsi, stmt2, true); in rewrite_reciprocal()
841 gassign *stmt2; in rewrite_bittest() local
903 stmt2 = gimple_build_assign (name, t); in rewrite_bittest()
918 gsi_insert_before (&rsi, stmt2, GSI_SAME_STMT); in rewrite_bittest()
HDtree-vect-data-refs.c2904 can_group_stmts_p (gimple *stmt1, gimple *stmt2) in can_group_stmts_p() argument
2907 return gimple_assign_single_p (stmt2); in can_group_stmts_p()
2912 if (!is_gimple_call (stmt2) || !gimple_call_internal_p (stmt2)) in can_group_stmts_p()
2917 if (ifn != gimple_call_internal_fn (stmt2)) in can_group_stmts_p()
2923 tree mask2 = gimple_call_arg (stmt2, 2); in can_group_stmts_p()

12