Home
last modified time | relevance | path

Searched refs:rhs1 (Results 1 – 25 of 55) sorted by relevance

123

/netbsd/src/external/gpl3/gcc/dist/gcc/
Dtree-stdarg.cc138 tree rhs1; in va_list_counter_bump() local
158 rhs1 = gimple_assign_rhs1 (stmt); in va_list_counter_bump()
161 && TREE_CODE (rhs1) == SSA_NAME) in va_list_counter_bump()
163 lhs = rhs1; in va_list_counter_bump()
169 && TREE_CODE (rhs1) == SSA_NAME in va_list_counter_bump()
173 lhs = rhs1; in va_list_counter_bump()
178 && TREE_CODE (TREE_OPERAND (rhs1, 0)) == MEM_REF in va_list_counter_bump()
179 && TREE_CODE (TREE_OPERAND (TREE_OPERAND (rhs1, 0), 0)) == SSA_NAME in va_list_counter_bump()
180 && tree_fits_uhwi_p (TREE_OPERAND (TREE_OPERAND (rhs1, 0), 1))) in va_list_counter_bump()
182 ret += tree_to_uhwi (TREE_OPERAND (TREE_OPERAND (rhs1, 0), 1)); in va_list_counter_bump()
[all …]
Dtree-scalar-evolution.cc886 tree type, tree rhs0, enum tree_code code, tree rhs1, in follow_ssa_edge_binary() argument
899 if (TREE_CODE (rhs1) == SSA_NAME) in follow_ssa_edge_binary()
913 code, rhs1, at_stmt); in follow_ssa_edge_binary()
925 (loop, at_stmt, rhs1, halting_phi, in follow_ssa_edge_binary()
934 else if (TREE_CODE (rhs1) == SSA_NAME) in follow_ssa_edge_binary()
943 (loop, at_stmt, rhs1, halting_phi, in follow_ssa_edge_binary()
1128 tree type, rhs0, rhs1 = NULL_TREE; in follow_ssa_edge_expr() local
1201 rhs1 = gimple_assign_rhs2 (def); in follow_ssa_edge_expr()
1226 rhs1 = TREE_OPERAND (expr, 1); in follow_ssa_edge_expr()
1255 rhs1 = TREE_OPERAND (mem, 1); in follow_ssa_edge_expr()
[all …]
Dgimple-ssa-strength-reduction.cc726 tree lhs, rhs1, rhs2; in stmt_cost() local
731 rhs1 = gimple_assign_rhs1 (gs); in stmt_cost()
742 gcc_assert (TREE_CODE (rhs1) != INTEGER_CST); in stmt_cost()
754 return convert_cost (lhs_mode, TYPE_MODE (TREE_TYPE (rhs1)), speed); in stmt_cost()
1236 slsr_process_mul (gimple *gs, tree rhs1, tree rhs2, bool speed) in slsr_process_mul() argument
1244 if (rhs1 == rhs2) in slsr_process_mul()
1251 c = create_mul_ssa_cand (gs, rhs1, rhs2, speed); in slsr_process_mul()
1258 c2 = create_mul_ssa_cand (gs, rhs2, rhs1, speed); in slsr_process_mul()
1265 c = create_mul_imm_cand (gs, rhs1, rhs2, speed); in slsr_process_mul()
1455 slsr_process_add (gimple *gs, tree rhs1, tree rhs2, bool speed) in slsr_process_add() argument
[all …]
Dccmp.cc135 tree *rhs1, tree *rhs2) in get_compare_parts() argument
144 *rhs1 = gimple_assign_rhs1 (g); in get_compare_parts()
152 *rhs1 = t; in get_compare_parts()
169 tree rhs1, rhs2; in expand_ccmp_next() local
171 get_compare_parts(op, &unsignedp, &rcode, &rhs1, &rhs2); in expand_ccmp_next()
173 rhs1, rhs2, get_rtx_code (code, 0)); in expand_ccmp_next()
Dtree-ssa-dom.cc180 tree rhs1 = gimple_assign_rhs1 (def_stmt); in derive_equivalences() local
183 value = build_zero_cst (TREE_TYPE (rhs1)); in derive_equivalences()
184 derive_equivalences (rhs1, value, recursion_limit - 1); in derive_equivalences()
194 tree rhs1 = gimple_assign_rhs1 (def_stmt); in derive_equivalences() local
201 if (TREE_CODE (rhs1) == SSA_NAME) in derive_equivalences()
203 if (ssa_name_has_boolean_range (rhs1)) in derive_equivalences()
205 value = build_one_cst (TREE_TYPE (rhs1)); in derive_equivalences()
206 derive_equivalences (rhs1, value, recursion_limit - 1); in derive_equivalences()
244 tree rhs1 = gimple_assign_rhs1 (def_stmt); in derive_equivalences() local
249 if (TREE_CODE (rhs1) == INTEGER_CST in derive_equivalences()
[all …]
Dtree-ssa-math-opts.cc2477 tree type1, rhs1; in is_widening_mult_rhs_p() local
2485 rhs1 = rhs; in is_widening_mult_rhs_p()
2488 rhs1 = gimple_assign_rhs1 (stmt); in is_widening_mult_rhs_p()
2490 if (TREE_CODE (rhs1) == INTEGER_CST) in is_widening_mult_rhs_p()
2492 *new_rhs_out = rhs1; in is_widening_mult_rhs_p()
2499 rhs1 = rhs; in is_widening_mult_rhs_p()
2501 type1 = TREE_TYPE (rhs1); in is_widening_mult_rhs_p()
2507 *new_rhs_out = rhs1; in is_widening_mult_rhs_p()
2668 tree lhs, rhs1, rhs2, type, type1, type2; in convert_mult_to_widen() local
2681 if (!is_widening_mult_p (stmt, &type1, &rhs1, &type2, &rhs2)) in convert_mult_to_widen()
[all …]
Dtree-vect-patterns.cc2800 tree rhs1 = gimple_assign_rhs1 (def_stmt); in vect_recog_rotate_pattern() local
2801 if (TYPE_MODE (TREE_TYPE (rhs1)) == mode in vect_recog_rotate_pattern()
2802 && TYPE_PRECISION (TREE_TYPE (rhs1)) in vect_recog_rotate_pattern()
2804 def = rhs1; in vect_recog_rotate_pattern()
2963 tree rhs1 = gimple_assign_rhs1 (def_stmt); in vect_recog_vector_vector_shift_pattern() local
2964 if (TYPE_MODE (TREE_TYPE (rhs1)) == TYPE_MODE (TREE_TYPE (oprnd0)) in vect_recog_vector_vector_shift_pattern()
2965 && TYPE_PRECISION (TREE_TYPE (rhs1)) in vect_recog_vector_vector_shift_pattern()
2969 >= TYPE_PRECISION (TREE_TYPE (rhs1))) in vect_recog_vector_vector_shift_pattern()
2970 def = rhs1; in vect_recog_vector_vector_shift_pattern()
2974 = build_low_bits_mask (TREE_TYPE (rhs1), in vect_recog_vector_vector_shift_pattern()
[all …]
Dgimple-match-head.cc951 tree rhs1 = gimple_assign_rhs1 (stmt); in gimple_extract() local
952 tree op0 = valueize_op (TREE_OPERAND (rhs1, 0)); in gimple_extract()
954 TREE_OPERAND (rhs1, 1), in gimple_extract()
955 TREE_OPERAND (rhs1, 2), in gimple_extract()
956 REF_REVERSE_STORAGE_ORDER (rhs1)); in gimple_extract()
968 tree rhs1 = gimple_assign_rhs1 (stmt); in gimple_extract() local
969 res_op->set_op (code, type, valueize_op (rhs1)); in gimple_extract()
974 tree rhs1 = valueize_op (gimple_assign_rhs1 (stmt)); in gimple_extract() local
976 res_op->set_op (code, type, rhs1, rhs2); in gimple_extract()
981 tree rhs1 = gimple_assign_rhs1 (stmt); in gimple_extract() local
[all …]
Dtree-ssa-phiopt.cc1085 tree rhs1 = gimple_assign_rhs1 (stmt); in jump_function_from_stmt() local
1087 tree tem = get_addr_base_and_unit_offset (TREE_OPERAND (rhs1, 0), in jump_function_from_stmt()
1604 tree rhs1 = gimple_assign_rhs1 (g); in value_replacement() local
1608 || TREE_CODE (rhs1) != SSA_NAME in value_replacement()
1610 || !INTEGRAL_TYPE_P (TREE_TYPE (rhs1)) in value_replacement()
1675 tree lhs, rhs1, rhs2; in value_replacement() local
1680 rhs1 = gimple_assign_rhs1 (assign); in value_replacement()
1688 rhs1 = NULL_TREE; in value_replacement()
1699 && arg1 == rhs1 in value_replacement()
1704 && operand_equal_for_phi_arg_p (rhs1, cond_lhs) in value_replacement()
[all …]
Dtree-ssa-reassoc.cc690 tree rhs1 = gimple_assign_rhs1 (stmt); in is_reassociable_op() local
692 if (!can_reassociate_op_p (rhs1) in is_reassociable_op()
3784 tree rhs1, rhs2; in optimize_range_tests_var_bound() local
3793 rhs1 = gimple_assign_rhs1 (stmt); in optimize_range_tests_var_bound()
3803 rhs1 = gimple_cond_lhs (stmt); in optimize_range_tests_var_bound()
3807 if (TREE_CODE (rhs1) != SSA_NAME in optimize_range_tests_var_bound()
3828 std::swap (rhs1, rhs2); in optimize_range_tests_var_bound()
3838 int *idx = map->get (rhs1); in optimize_range_tests_var_bound()
3918 tree utype = unsigned_type_for (TREE_TYPE (rhs1)); in optimize_range_tests_var_bound()
3938 print_generic_expr (dump_file, rhs1); in optimize_range_tests_var_bound()
[all …]
Dgimple-ssa-store-merging.cc451 tree rhs1 = gimple_assign_rhs1 (source_stmt1); in perform_symbolic_merge() local
452 if (TREE_CODE (rhs1) == BIT_FIELD_REF in perform_symbolic_merge()
453 && TREE_CODE (TREE_OPERAND (rhs1, 0)) == SSA_NAME) in perform_symbolic_merge()
454 rhs1 = TREE_OPERAND (rhs1, 0); in perform_symbolic_merge()
462 if (rhs1 != rhs2) in perform_symbolic_merge()
609 tree rhs1, rhs2 = NULL; in find_bswap_or_nop_1() local
616 rhs1 = gimple_assign_rhs1 (stmt); in find_bswap_or_nop_1()
618 if (find_bswap_or_nop_load (stmt, rhs1, n)) in find_bswap_or_nop_1()
622 if (TREE_CODE (rhs1) == BIT_FIELD_REF in find_bswap_or_nop_1()
623 && TREE_CODE (TREE_OPERAND (rhs1, 0)) == SSA_NAME) in find_bswap_or_nop_1()
[all …]
Dvr-values.cc4028 tree rhs1 = gimple_assign_rhs1 (stmt); in simplify_float_conversion_using_ranges() local
4029 const value_range *vr = query->get_value_range (rhs1, stmt); in simplify_float_conversion_using_ranges()
4041 scalar_int_mode rhs_mode = SCALAR_INT_TYPE_MODE (TREE_TYPE (rhs1)); in simplify_float_conversion_using_ranges()
4042 if (TYPE_UNSIGNED (TREE_TYPE (rhs1)) in simplify_float_conversion_using_ranges()
4044 && range_fits_type_p (vr, TYPE_PRECISION (TREE_TYPE (rhs1)), SIGNED)) in simplify_float_conversion_using_ranges()
4048 TYPE_UNSIGNED (TREE_TYPE (rhs1))) != CODE_FOR_nothing) in simplify_float_conversion_using_ranges()
4067 || GET_MODE_PRECISION (mode) > TYPE_PRECISION (TREE_TYPE (rhs1))) in simplify_float_conversion_using_ranges()
4076 conv = gimple_build_assign (tem, NOP_EXPR, rhs1); in simplify_float_conversion_using_ranges()
4238 tree rhs1 = gimple_assign_rhs1 (stmt); in simplify() local
4258 && INTEGRAL_TYPE_P (TREE_TYPE (rhs1)) in simplify()
[all …]
Dtree-ssa-coalesce.cc908 tree rhs1 = gimple_assign_rhs1 (stmt); in build_ssa_conflict_graph() local
911 && TREE_CODE (rhs1) == SSA_NAME) in build_ssa_conflict_graph()
912 live_track_clear_var (live, rhs1); in build_ssa_conflict_graph()
1103 tree rhs1 = gimple_assign_rhs1 (stmt); in create_coalesce_list_for_region() local
1105 && gimple_can_coalesce_p (lhs, rhs1)) in create_coalesce_list_for_region()
1108 v2 = SSA_NAME_VERSION (rhs1); in create_coalesce_list_for_region()
1123 tree rhs1 = gimple_return_retval (as_a <greturn *> (stmt)); in create_coalesce_list_for_region() local
1124 if (!rhs1) in create_coalesce_list_for_region()
1128 if (TREE_CODE (rhs1) == SSA_NAME in create_coalesce_list_for_region()
1129 && gimple_can_coalesce_p (lhs, rhs1)) in create_coalesce_list_for_region()
[all …]
Dtree-ssa-forwprop.cc423 tree rhs0 = NULL_TREE, rhs1 = NULL_TREE; in forward_propagate_into_comparison_1() local
459 rhs1 = rhs_to_tree (TREE_TYPE (op0), def_stmt); in forward_propagate_into_comparison_1()
461 op0, rhs1, !single_use1_p); in forward_propagate_into_comparison_1()
469 && rhs1 != NULL_TREE) in forward_propagate_into_comparison_1()
471 rhs0, rhs1, in forward_propagate_into_comparison_1()
489 tree rhs1 = gimple_assign_rhs1 (stmt); in forward_propagate_into_comparison() local
495 type, rhs1, rhs2); in forward_propagate_into_comparison()
502 if (TREE_CODE (rhs1) == SSA_NAME) in forward_propagate_into_comparison()
503 cfg_changed |= remove_prop_source_from_use (rhs1); in forward_propagate_into_comparison()
525 tree rhs1 = gimple_cond_lhs (stmt); in forward_propagate_into_gimple_cond() local
[all …]
Dtree-cfg.cc3599 tree rhs1 = gimple_assign_rhs1 (stmt); in verify_gimple_assign_unary() local
3600 tree rhs1_type = TREE_TYPE (rhs1); in verify_gimple_assign_unary()
3608 if (!is_gimple_val (rhs1)) in verify_gimple_assign_unary()
3843 tree rhs1 = gimple_assign_rhs1 (stmt); in verify_gimple_assign_binary() local
3844 tree rhs1_type = TREE_TYPE (rhs1); in verify_gimple_assign_binary()
3854 if (!is_gimple_val (rhs1) in verify_gimple_assign_binary()
4044 return verify_gimple_comparison (lhs_type, rhs1, rhs2, rhs_code); in verify_gimple_assign_binary()
4230 tree rhs1 = gimple_assign_rhs1 (stmt); in verify_gimple_assign_ternary() local
4231 tree rhs1_type = TREE_TYPE (rhs1); in verify_gimple_assign_ternary()
4244 ? !is_gimple_condexpr (rhs1) : !is_gimple_val (rhs1)) in verify_gimple_assign_ternary()
[all …]
Dgimple-ssa-split-paths.cc235 tree rhs1 = gimple_assign_rhs1 (stmt1); in is_feasible_trace() local
242 && gimple_phi_arg_def (phi, 1) == rhs1) in is_feasible_trace()
244 && gimple_phi_arg_def (phi, 0) == rhs1)) in is_feasible_trace()
Dgimple-ssa-backprop.cc788 backprop::replace_assign_rhs (gassign *assign, tree lhs, tree rhs1, in replace_assign_rhs() argument
791 if (!rhs1 && !rhs2 && !rhs3) in replace_assign_rhs()
795 if (rhs1) in replace_assign_rhs()
796 gimple_assign_set_rhs1 (assign, rhs1); in replace_assign_rhs()
Dtree-ssa-loop-ch.cc521 tree rhs1 = gimple_assign_rhs1 (stmt); in copy_headers() local
525 && INTEGRAL_TYPE_P (TREE_TYPE (rhs1)) in copy_headers()
526 && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (rhs1))) in copy_headers()
Dtree-if-conv.cc462 tree rhs1, lhs1, cond_expr; in fold_build_cond_expr() local
487 rhs1 = TREE_OPERAND (cond_expr, 1); in fold_build_cond_expr()
488 STRIP_USELESS_TYPE_CONVERSION (rhs1); in fold_build_cond_expr()
489 if (is_gimple_val (rhs1)) in fold_build_cond_expr()
490 return build1 (ABS_EXPR, type, rhs1); in fold_build_cond_expr()
498 rhs1 = TREE_OPERAND (cond_expr, 1); in fold_build_cond_expr()
499 STRIP_USELESS_TYPE_CONVERSION (rhs1); in fold_build_cond_expr()
500 if (is_gimple_val (rhs1) && is_gimple_val (lhs1)) in fold_build_cond_expr()
501 return build2 (TREE_CODE (cond_expr), type, lhs1, rhs1); in fold_build_cond_expr()
1825 tree rhs1 = gimple_assign_rhs1 (reduc); in convert_scalar_cond_reduction() local
[all …]
Dtree-vrp.cc1703 tree rhs1 = gimple_assign_rhs1 (def_stmt); in register_edge_assert_for_2() local
1704 if (INTEGRAL_TYPE_P (TREE_TYPE (rhs1)) in register_edge_assert_for_2()
1705 && TREE_CODE (rhs1) == SSA_NAME in register_edge_assert_for_2()
1711 == TYPE_SIGN (TREE_TYPE (rhs1))) in register_edge_assert_for_2()
1714 && !TYPE_UNSIGNED (TREE_TYPE (rhs1))) in register_edge_assert_for_2()
1717 && TYPE_UNSIGNED (TREE_TYPE (rhs1)))) in register_edge_assert_for_2()
1721 && int_fits_type_p (val, TREE_TYPE (rhs1)) in register_edge_assert_for_2()
1723 > TYPE_PRECISION (TREE_TYPE (rhs1))) in register_edge_assert_for_2()
1724 || ((get_range_query (cfun)->range_of_expr (vr, rhs1) in register_edge_assert_for_2()
1728 TYPE_SIGN (TREE_TYPE (rhs1))), in register_edge_assert_for_2()
[all …]
Dtree-ssa-ccp.cc2008 bit_value_binop (enum tree_code code, tree type, tree rhs1, tree rhs2) in bit_value_binop() argument
2010 ccp_prop_value_t r1val = get_value_for_expr (rhs1, true); in bit_value_binop()
2027 TYPE_PRECISION (TREE_TYPE (rhs1))) == -1); in bit_value_binop()
2033 TYPE_SIGN (TREE_TYPE (rhs1)), TYPE_PRECISION (TREE_TYPE (rhs1)), in bit_value_binop()
2039 if (code == MULT_EXPR && rhs1 == rhs2 && TYPE_PRECISION (type) > 1) in bit_value_binop()
2293 tree rhs1 = gimple_assign_rhs1 (stmt); in evaluate_stmt() local
2297 && (INTEGRAL_TYPE_P (TREE_TYPE (rhs1)) in evaluate_stmt()
2298 || POINTER_TYPE_P (TREE_TYPE (rhs1)))) in evaluate_stmt()
2302 val = get_value_for_expr (rhs1, true); in evaluate_stmt()
2306 val = bit_value_unop (subcode, TREE_TYPE (lhs), rhs1); in evaluate_stmt()
[all …]
Dtree-ssa-sccvn.cc595 tree rhs1 = gimple_assign_rhs1 (stmt); in vn_get_stmt_kind() local
611 && (TREE_CODE (TREE_OPERAND (rhs1, 0)) == SSA_NAME in vn_get_stmt_kind()
612 || is_gimple_min_invariant (TREE_OPERAND (rhs1, 0)))) in vn_get_stmt_kind()
624 return (is_gimple_min_invariant (rhs1) in vn_get_stmt_kind()
3303 tree rhs1 = gimple_assign_rhs1 (def_stmt); in vn_reference_lookup_3() local
3304 copy_reference_ops_from_ref (rhs1, &rhs); in vn_reference_lookup_3()
3375 ao_ref_init (&rhs1_ref, rhs1); in vn_reference_lookup_3()
4419 cond_stmts_equal_p (gcond *cond1, tree lhs1, tree rhs1, in cond_stmts_equal_p() argument
4442 && expressions_equal_p (rhs1, rhs2)) in cond_stmts_equal_p()
4445 && expressions_equal_p (rhs1, lhs2))); in cond_stmts_equal_p()
[all …]
Dipa-prop.cc1775 tree rhs1 = gimple_assign_rhs1 (stmt); in analyze_agg_content_value() local
1794 if (TREE_CODE (rhs1) != SSA_NAME || SSA_NAME_IS_DEFAULT_DEF (rhs1)) in analyze_agg_content_value()
1797 stmt = SSA_NAME_DEF_STMT (rhs1); in analyze_agg_content_value()
1801 rhs1 = gimple_assign_rhs1 (stmt); in analyze_agg_content_value()
1829 rhs1 = arg0; in analyze_agg_content_value()
1834 rhs1 = arg1; in analyze_agg_content_value()
1839 rhs1 = get_ssa_def_if_simple_copy (rhs1, &stmt); in analyze_agg_content_value()
1852 if (is_gimple_ip_invariant (rhs1)) in analyze_agg_content_value()
1854 agg_value->pass_through.operand = rhs1; in analyze_agg_content_value()
1872 rhs1 = get_ssa_def_if_simple_copy (rhs1, &stmt); in analyze_agg_content_value()
[all …]
Dtree-vect-generic.cc1253 tree rhs1 = gimple_assign_rhs1 (assign); in expand_vector_operation() local
1256 return expand_vector_comparison (gsi, type, rhs1, rhs2, code, in expand_vector_operation()
1263 tree rhs1 = gimple_assign_rhs1 (assign); in expand_vector_operation() local
1273 ret = expand_vector_divmod (gsi, type, rhs1, rhs2, code); in expand_vector_operation()
2123 tree lhs, rhs1, rhs2 = NULL, type, compute_type = NULL_TREE; in expand_vector_operations_1() local
2175 rhs1 = gimple_assign_rhs1 (stmt); in expand_vector_operations_1()
2181 || !VECTOR_TYPE_P (TREE_TYPE (rhs1))) in expand_vector_operations_1()
2189 || (VECTOR_BOOLEAN_TYPE_P (TREE_TYPE (rhs1)) in expand_vector_operations_1()
2190 && !VECTOR_MODE_P (TYPE_MODE (TREE_TYPE (rhs1))) in expand_vector_operations_1()
2191 && TYPE_MODE (TREE_TYPE (rhs1)) != BLKmode))) in expand_vector_operations_1()
[all …]
Dtree-ssa-threadedge.cc514 const tree rhs1 = gimple_assign_rhs1 (def_stmt); in simplify_control_stmt_condition_1() local
520 rhs1, NE_EXPR, op1, in simplify_control_stmt_condition_1()
601 tree rhs1 = gimple_assign_rhs1 (def_stmt); in simplify_control_stmt_condition_1() local
610 rhs1, new_cond, rhs2, in simplify_control_stmt_condition_1()

123