summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-07-15 11:42:53 +0000
committerTobias Grosser <tobias@grosser.es>2016-07-15 11:42:53 +0000
commitcfa0361d352edd37ff6d1817efd2546d2c6a63a4 (patch)
tree86c2518b19c2eecc1d0b1b8b3fbb20f953769817
parentcf9c31550c61b04985e98941e499cfacc0b3e9bf (diff)
downloadbcm5719-llvm-cfa0361d352edd37ff6d1817efd2546d2c6a63a4.tar.gz
bcm5719-llvm-cfa0361d352edd37ff6d1817efd2546d2c6a63a4.zip
GPGPU: Do not check for hidden declarations
We do not have them in Polly and the code to check for them is directly referring to pet data structures which we do not have available. This commit avoids undefined behavior. As such issues are difficult to reproduce, this commit comes without a test case. llvm-svn: 275553
-rw-r--r--polly/lib/External/ppcg/ppcg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/External/ppcg/ppcg.c b/polly/lib/External/ppcg/ppcg.c
index 92665001af6..0fbf3cc0386 100644
--- a/polly/lib/External/ppcg/ppcg.c
+++ b/polly/lib/External/ppcg/ppcg.c
@@ -99,6 +99,8 @@ int ppcg_scop_any_hidden_declarations(struct ppcg_scop *scop)
if (!scop)
return 0;
+ // This is a pet feature not available in Polly.
+ return 0;
for (i = 0; i < scop->pet->n_array; ++i)
if (scop->pet->arrays[i]->declared &&
!scop->pet->arrays[i]->exposed)
OpenPOWER on IntegriCloud