Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
buildex updated
  • Loading branch information
CharithYMendis committed May 5, 2015
1 parent 3201dd1 commit 084b0f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion postprocess/buildex/src/analysis/tree_analysis.cpp
Expand Up @@ -273,7 +273,7 @@ Conc_Tree * build_conc_tree(uint64_t destination,
}


//if (dest_present == false || index < 0) return NULL;
if (dest_present == false || index < 0) return NULL;

ASSERT_MSG((dest_present == true) && (index >= 0), ("ERROR: couldn't find the dest to start trace\n")); //we should have found the destination

Expand Down
9 changes: 9 additions & 0 deletions postprocess/buildex/src/memory/memanalysis.cpp
Expand Up @@ -156,6 +156,15 @@ vector<mem_regions_t *> merge_instrace_and_dump_regions(vector<mem_regions_t *>

}

/* added - for invert */
if (mem_regions[i]->bytes_per_pixel != info->prob_stride){
uint32_t factor = info->prob_stride / mem_regions[i]->bytes_per_pixel;
mem_regions[i]->bytes_per_pixel = info->prob_stride;
mem_regions[i]->strides[0] = info->prob_stride;
mem_regions[i]->extents[0] /= factor;

}

final_regions.push_back(mem_regions[i]);
total_regions.push_back(mem_regions[i]);
mem_regions[i]->order = info->order;
Expand Down

0 comments on commit 084b0f9

Please sign in to comment.