From 31192ca2033387af3d4edc076c0ec43cf4d3edb4 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. git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@275557 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/PPCGCodeGeneration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/PPCGCodeGeneration.cpp b/lib/CodeGen/PPCGCodeGeneration.cpp index b3ec5f6a..6272ffdd 100644 --- a/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/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); -- 2.11.4.GIT