aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-09 11:00:11 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-09 11:00:11 +0000
commit6738604187ed4202c2e042ec2cbf625bfa3e5f2b (patch)
tree84d551856d6816f8affe10aae4bb943fb33b73ea /gcc/tree-complex.c
parent4531d13af5d28054528cad273fc1eee41104b0e3 (diff)
downloadgcc-6738604187ed4202c2e042ec2cbf625bfa3e5f2b.zip
gcc-6738604187ed4202c2e042ec2cbf625bfa3e5f2b.tar.gz
gcc-6738604187ed4202c2e042ec2cbf625bfa3e5f2b.tar.bz2
tree.h (SSA_VAR_P): Simplify.
2012-08-09 Richard Guenther <rguenther@suse.de> * tree.h (SSA_VAR_P): Simplify. * tree-ssanames.c (make_ssa_name_fn): Strengthen assert. * fold-const.c (fold_comparison): Check for default def first before checking for PARM_DECL. * tree-complex.c (get_component_ssa_name): Likewise. * tree-inline.c (remap_ssa_name): Likewise. * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise. * tree-ssa-structalias.c (get_fi_for_callee): Likewise. (find_what_p_points_to): Likewise. * tree-ssa-operands.c (add_stmt_operand): Simplify. From-SVN: r190250
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index 82ec14a..a34d048 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -495,8 +495,8 @@ get_component_ssa_name (tree ssa_name, bool imag_p)
is used in an abnormal phi, and whether it's uninitialized. */
SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ret)
= SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ssa_name);
- if (TREE_CODE (SSA_NAME_VAR (ssa_name)) == VAR_DECL
- && SSA_NAME_IS_DEFAULT_DEF (ssa_name))
+ if (SSA_NAME_IS_DEFAULT_DEF (ssa_name)
+ && TREE_CODE (SSA_NAME_VAR (ssa_name)) == VAR_DECL)
{
SSA_NAME_DEF_STMT (ret) = SSA_NAME_DEF_STMT (ssa_name);
set_ssa_default_def (cfun, SSA_NAME_VAR (ret), ret);