comparison gcc/tree-ssa-operands.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents f81c5aa9f14f 84e7813d76e9
children 4e440907fcbf
comparison
equal deleted inserted replaced
130:e108057fa461 132:d34655255c78
1 /* SSA operands management for trees. 1 /* SSA operands management for trees.
2 Copyright (C) 2003-2017 Free Software Foundation, Inc. 2 Copyright (C) 2003-2018 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify 6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
515 static void 515 static void
516 add_stmt_operand (struct function *fn, tree *var_p, gimple *stmt, int flags) 516 add_stmt_operand (struct function *fn, tree *var_p, gimple *stmt, int flags)
517 { 517 {
518 tree var = *var_p; 518 tree var = *var_p;
519 519
520 gcc_assert (SSA_VAR_P (*var_p)); 520 gcc_assert (SSA_VAR_P (*var_p) || TREE_CODE (*var_p) == STRING_CST);
521 521
522 if (is_gimple_reg (var)) 522 if (is_gimple_reg (var))
523 { 523 {
524 /* The variable is a GIMPLE register. Add it to real operands. */ 524 /* The variable is a GIMPLE register. Add it to real operands. */
525 if (flags & opf_def) 525 if (flags & opf_def)
740 740
741 case SSA_NAME: 741 case SSA_NAME:
742 case VAR_DECL: 742 case VAR_DECL:
743 case PARM_DECL: 743 case PARM_DECL:
744 case RESULT_DECL: 744 case RESULT_DECL:
745 case STRING_CST:
745 if (!(flags & opf_address_taken)) 746 if (!(flags & opf_address_taken))
746 add_stmt_operand (fn, expr_p, stmt, flags); 747 add_stmt_operand (fn, expr_p, stmt, flags);
747 return; 748 return;
748 749
749 case DEBUG_EXPR_DECL: 750 case DEBUG_EXPR_DECL:
849 case DOT_PROD_EXPR: 850 case DOT_PROD_EXPR:
850 case SAD_EXPR: 851 case SAD_EXPR:
851 case REALIGN_LOAD_EXPR: 852 case REALIGN_LOAD_EXPR:
852 case WIDEN_MULT_PLUS_EXPR: 853 case WIDEN_MULT_PLUS_EXPR:
853 case WIDEN_MULT_MINUS_EXPR: 854 case WIDEN_MULT_MINUS_EXPR:
854 case FMA_EXPR:
855 { 855 {
856 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 0), flags); 856 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 0), flags);
857 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 1), flags); 857 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 1), flags);
858 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 2), flags); 858 get_expr_operands (fn, stmt, &TREE_OPERAND (expr, 2), flags);
859 return; 859 return;