This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][GRAPHITE] Fix the description of graphite_can_represent_loop.


Hello,

This tiny patch corrects the description of
graphite_can_represent_loop() found in graphite-scop-detection.c.

The description of that function says:
"Return true when it is not possible to represent LOOP in the
polyhedral representation."
However, it clearly does the opposite:

>? if (!graphite_can_represent_expr (scop_entry, loop, niter))
>??? return false;
>
>? return true;

-----
2010-08-20? Vladimir Kargov? <kargov@gmail.com>

??????? * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
??????? description.
-----

Best regards,
--
Vladimir
Index: ../gcc/graphite-scop-detection.c
===================================================================
--- ../gcc/graphite-scop-detection.c	(revision 163347)
+++ ../gcc/graphite-scop-detection.c	(working copy)
@@ -384,9 +384,8 @@ harmful_stmt_in_bb (basic_block scop_entry, loop_p
   return NULL;
 }
 
-/* Return true when it is not possible to represent LOOP in the
-   polyhedral representation.  This is evaluated taking SCOP_ENTRY
-   in mind.  */
+/* Return true if LOOP can be represented in the polyhedral representation.
+   This is evaluated taking SCOP_ENTRY in mind.  */
 
 static bool
 graphite_can_represent_loop (basic_block scop_entry, loop_p loop)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]