handled_component_p comprises both REALPART_EXPR and IMAGPART_EXPR.

Tested on x86_64-suse-linux, applied on the mainline as obvious.


2015-04-27  Eric Botcazou  <ebotca...@adacore.com>

        * ipa-icf.c (icf_handled_component_p): Remove redundant tests.


-- 
Eric Botcazou
Index: ipa-icf.c
===================================================================
--- ipa-icf.c	(revision 222439)
+++ ipa-icf.c	(working copy)
@@ -1806,9 +1806,8 @@ sem_function::icf_handled_component_p (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

Reply via email to