diff mbox

Remove redudant tests in icf_handled_component_p

Message ID 7191257.dJAZH8190L@polaris
State New
Headers show

Commit Message

Eric Botcazou April 27, 2015, 10:07 a.m. UTC
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  <ebotcazou@adacore.com>

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

Patch

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