From: Eric Botcazou Date: Mon, 27 Apr 2015 10:10:47 +0000 (+0000) Subject: * ipa-icf.c (icf_handled_component_p): Remove redundant tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5115cf9bcfb46f6cc0df6486fee510cbf246640;p=gcc.git * ipa-icf.c (icf_handled_component_p): Remove redundant tests. From-SVN: r222455 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9eba482611..1908e464f76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-04-27 Eric Botcazou + + * ipa-icf.c (icf_handled_component_p): Remove redundant tests. + 2015-04-27 Richard Sandiford * vec.h (vec): Make splice arguments const. Update definitions diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index ce4aca20b66..1fbdf6ddaff 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1806,9 +1806,8 @@ sem_function::icf_handled_component_p (tree t) { tree_code tc = TREE_CODE (t); - return ((handled_component_p (t)) - || tc == ADDR_EXPR || tc == MEM_REF || tc == REALPART_EXPR - || tc == IMAGPART_EXPR || tc == OBJ_TYPE_REF); + return (handled_component_p (t) + || tc == ADDR_EXPR || tc == MEM_REF || tc == OBJ_TYPE_REF); } /* Basic blocks dictionary BB_DICT returns true if SOURCE index BB