From e5115cf9bcfb46f6cc0df6486fee510cbf246640 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 27 Apr 2015 10:10:47 +0000 Subject: [PATCH] * ipa-icf.c (icf_handled_component_p): Remove redundant tests. From-SVN: r222455 --- gcc/ChangeLog | 4 ++++ gcc/ipa-icf.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.30.2