[polly] r275553 - GPGPU: Do not check for hidden declarations

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 04:42:54 PDT 2016


Author: grosser
Date: Fri Jul 15 06:42:53 2016
New Revision: 275553

URL: http://llvm.org/viewvc/llvm-project?rev=275553&view=rev
Log:
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.

Modified:
    polly/trunk/lib/External/ppcg/ppcg.c

Modified: polly/trunk/lib/External/ppcg/ppcg.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/ppcg/ppcg.c?rev=275553&r1=275552&r2=275553&view=diff
==============================================================================
--- polly/trunk/lib/External/ppcg/ppcg.c (original)
+++ polly/trunk/lib/External/ppcg/ppcg.c Fri Jul 15 06:42:53 2016
@@ -99,6 +99,8 @@ int ppcg_scop_any_hidden_declarations(st
 	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)




More information about the llvm-commits mailing list