* ipa-icf.c (icf_handled_component_p): Remove redundant tests.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Apr 2015 10:10:47 +0000 (10:10 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Apr 2015 10:10:47 +0000 (10:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222455 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-icf.c

index f9eba48..1908e46 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
+
 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
 
        * vec.h (vec): Make splice arguments const.  Update definitions
index ce4aca2..1fbdf6d 100644 (file)
@@ -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