Commit 821fce24 by Roman Gareev Committed by Roman Gareev

graphite-scop-detection.c: Add inclusion of cp-tree.h.


[gcc/]

	* graphite-scop-detection.c:
	Add inclusion of cp-tree.h.
	(graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
	in case they are pointers to object types

From-SVN: r213969
parent 2813008e
2014-08-14 Roman Gareev <gareevroman@gmail.com>
* graphite-scop-detection.c:
Add inclusion of cp-tree.h.
(graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
in case they are pointers to object types
2014-08-14 Richard Biener <rguenther@suse.de> 2014-08-14 Richard Biener <rguenther@suse.de>
* BASE-VER: Change to 5.0.0 * BASE-VER: Change to 5.0.0
......
...@@ -54,6 +54,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -54,6 +54,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-pass.h" #include "tree-pass.h"
#include "sese.h" #include "sese.h"
#include "tree-ssa-propagate.h" #include "tree-ssa-propagate.h"
#include "cp/cp-tree.h"
#ifdef HAVE_cloog #ifdef HAVE_cloog
#include "graphite-poly.h" #include "graphite-poly.h"
...@@ -217,6 +218,14 @@ graphite_can_represent_scev (tree scev) ...@@ -217,6 +218,14 @@ graphite_can_represent_scev (tree scev)
if (chrec_contains_undetermined (scev)) if (chrec_contains_undetermined (scev))
return false; return false;
/* We disable the handling of pointer types, because it’s currently not
supported by Graphite with the ISL AST generator. SSA_NAME nodes are
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)
return false;
switch (TREE_CODE (scev)) switch (TREE_CODE (scev))
{ {
case NEGATE_EXPR: case NEGATE_EXPR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment