From 6293ba69739d7376c803e6cfc93d915ad05cbc09 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Fri, 15 Jul 2016 12:44:27 +0000 Subject: [PATCH] GPGPU: Add memory reference tag ids to tagged accesses It seems we forgot to actually add the memory access ids to the tagged accesses, but instead just tagged the accesses with empty isl_ids. This issue was found by inspection and without code generation it is difficult to test just by itself. We fix it for now without test case and expect our code generation tests to cover this later on. llvm-svn: 275557 --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index b3ec5f6a33c0..6272ffdd1455 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -153,6 +153,7 @@ public: isl_space *Space = isl_map_get_space(Relation); Space = isl_space_range(Space); Space = isl_space_from_range(Space); + Space = isl_space_set_tuple_id(Space, isl_dim_in, Acc->getId()); isl_map *Universe = isl_map_universe(Space); Relation = isl_map_domain_product(Relation, Universe); Accesses = isl_union_map_add_map(Accesses, Relation); @@ -281,6 +282,7 @@ public: isl_space *Space = isl_map_get_space(Access->access); Space = isl_space_range(Space); Space = isl_space_from_range(Space); + Space = isl_space_set_tuple_id(Space, isl_dim_in, Acc->getId()); isl_map *Universe = isl_map_universe(Space); Access->tagged_access = isl_map_domain_product(Acc->getAccessRelation(), Universe);