Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static bool
- gimple_match_and_simplify (code_helper code, tree type, tree op0, tree op1,
- tree op2, code_helper * res_code, tree * res_ops,
- gimple_seq * seq, tree (*valueize) (tree))
- {
- if (code == MINUS_EXPR)
- {
- {
- tree o2 = op0;
- tree t0 = NULL_TREE;
- tree t1 = NULL_TREE;
- if (TREE_CODE (o2) == SSA_NAME)
- {
- gimple def_stmt = SSA_NAME_DEF_STMT (o2);
- if (is_gimple_assign (def_stmt) &&
- (gimple_assign_rhs_code (def_stmt) == PLUS_EXPR
- || CONVERT_EXPR_CODE_P (gimple_assign_rhs_code (def_stmt))))
- {
- t0 = gimple_assign_rhs1 (def_stmt);
- if (do_valueize (valueize, t0))
- {
- t1 = gimple_assign_rhs2 (def_stmt);
- if (do_valueize (valueize, t1))
- {
- {
- tree o3 = t0;
- {
- tree o4 = t1;
- {
- tree o5 = op1;
- if (o5 == o4)
- {
- /* simplify 0 */
- {
- tree captures[4] = { };
- captures[0] = o3;
- captures[1] = o4;
- res_ops[0] = captures[0];
- *res_code = TREE_CODE (res_ops[0]);
- return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement