[PATCH] Remove unused ddr_is_anti_dependent, ddrs_have_anti_deps

Richard Biener rguenther@suse.de
Tue Jan 28 12:39:00 GMT 2014


Committed as they are also wrong (no handling of DDR_REVERSED_P).

Richard.

2014-01-28  Richard Biener  <rguenther@suse.de>

	* tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps):
	Remove.

Index: gcc/tree-data-ref.h
===================================================================
*** gcc/tree-data-ref.h	(revision 207178)
--- gcc/tree-data-ref.h	(working copy)
*************** same_access_functions (const struct data
*** 457,488 ****
    return true;
  }
  
- /* Return true when DDR is an anti-dependence relation.  */
- 
- static inline bool
- ddr_is_anti_dependent (ddr_p ddr)
- {
-   return (DDR_ARE_DEPENDENT (ddr) == NULL_TREE
- 	  && DR_IS_READ (DDR_A (ddr))
- 	  && DR_IS_WRITE (DDR_B (ddr))
- 	  && !same_access_functions (ddr));
- }
- 
- /* Return true when DEPENDENCE_RELATIONS contains an anti-dependence.  */
- 
- static inline bool
- ddrs_have_anti_deps (vec<ddr_p> dependence_relations)
- {
-   unsigned i;
-   ddr_p ddr;
- 
-   for (i = 0; dependence_relations.iterate (i, &ddr); i++)
-     if (ddr_is_anti_dependent (ddr))
-       return true;
- 
-   return false;
- }
- 
  /* Returns true when all the dependences are computable.  */
  
  inline bool
--- 457,462 ----



More information about the Gcc-patches mailing list