This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Merge identical cases


In tree-ssa-operands.c in get_expr_operands we have two identical
cases, for SSA_NAME and {VAR,PARM,RESULT}_DECL.  If that isn't 
intentional (maybe it's clearer to split _*NAME and *_DECL--the
compiler will merge them anyway), we can merge those two cases.
Regtested/bootstrapped on x86_64.

2012-09-20  Marek Polacek  <polacek@redhat.com>

	* tree-ssa-operands.c (get_expr_operands): Merge identical cases.

--- gcc/tree-ssa-operands.c.mp	2012-09-20 11:22:40.364588965 +0200
+++ gcc/tree-ssa-operands.c	2012-09-20 11:29:40.178904905 +0200
@@ -1,5 +1,6 @@
 /* SSA operands management for trees.
    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   2011, 2012
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -841,9 +842,6 @@ get_expr_operands (gimple stmt, tree *ex
       return;
 
     case SSA_NAME:
-     add_stmt_operand (expr_p, stmt, flags);
-     return;
-
     case VAR_DECL:
     case PARM_DECL:
     case RESULT_DECL:

	Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]