graphite-scop-detection.c: Do not include cp/cp-tree.h.
authorRichard Biener <rguenther@suse.de>
Tue, 14 Apr 2015 12:33:57 +0000 (12:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 14 Apr 2015 12:33:57 +0000 (12:33 +0000)
2015-04-14  Richard Biener  <rguenther@suse.de>

* graphite-scop-detection.c: Do not include cp/cp-tree.h.
(graphite_can_represent_scev): Use POINTER_TYPE_P.

From-SVN: r222087

gcc/ChangeLog
gcc/graphite-scop-detection.c

index 8538b25b98afc1c0e18965035d0a5de3f7f16449..6dd82e337c58257d067e01d9d798e8107d0c27b2 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-14  Richard Biener  <rguenther@suse.de>
+
+       * graphite-scop-detection.c: Do not include cp/cp-tree.h.
+       (graphite_can_represent_scev): Use POINTER_TYPE_P.
+
 2015-04-14  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/65758
index 4512fe7abf053afe3287e21bb69bb3eee748d50f..02e9e502eae1c85ad86765a85cde15a7f7760f36 100644 (file)
@@ -70,7 +70,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-pass.h"
 #include "sese.h"
 #include "tree-ssa-propagate.h"
-#include "cp/cp-tree.h"
 
 #ifdef HAVE_isl
 #include "graphite-poly.h"
@@ -239,7 +238,7 @@ graphite_can_represent_scev (tree scev)
      the only nodes, which are disabled in case they are pointers to object
      types, but this can be changed.  */
 
-  if (TYPE_PTROB_P (TREE_TYPE (scev)) && TREE_CODE (scev) == SSA_NAME)
+  if (POINTER_TYPE_P (TREE_TYPE (scev)) && TREE_CODE (scev) == SSA_NAME)
     return false;
 
   switch (TREE_CODE (scev))