This is an archive of the discontinued LLVM Phabricator instance.

[Polly][WIP] Remove the dimensions from the MemoryAccess
Needs ReviewPublic

Authored by jdoerfert on Oct 7 2015, 1:50 PM.

Details

Reviewers
Meinersbur
Summary
We compute and store the dimensions of a delinearized array in
multiple places. To reduce that number the MemoryAccess will now
use the Sizes in the ScopArrayInfo object.

Diff Detail

Event Timeline

jdoerfert updated this revision to Diff 36792.Oct 7 2015, 1:50 PM
jdoerfert retitled this revision from to [Polly][WIP] Remove the dimensions from the MemoryAccess.
jdoerfert added reviewers: grosser, Meinersbur.
jdoerfert updated this object.
jdoerfert added a subscriber: Restricted Project.
Meinersbur edited edge metadata.Oct 8 2015, 12:48 AM

This patch seems to do a bit more than just make MemoryAccess use the dimension sizes from ScopArrayInfo (e.g. making the global InsnToMemAcc a member field). Those should be described in the commit message and/or put into different patches.

Accessing private members of DetectionContext from ScopInfo seems like a layer violation. DetectionContext is something ScopDetection uses internally and i.e. maybe shouldn't be exposed to other classes.

Otherwise some really good changes++

include/polly/ScopInfo.h
1124

Parameter description

lib/Analysis/ScopInfo.cpp
1514

auto not necessary

3174

I am really glad that this global variable goes away

3283

++

test/ScopInfo/delinearize-together-all-data-refs.ll
14

Can you explain why this changes? The commit message makes the impression that it is an internal reorganization only.

Sorry, I just noticed the WIP tag.

grosser edited edge metadata.Jan 26 2016, 9:19 AM

Hi Johannes,

this is a small and very targeted patch that seems to never have been moved out of WIP stage. I recently improved the printing of memory references so parts of this patch may already be integrated, but some parts are probably still very useful. Hence, I wonder if you planned to move this patch out of the WIP stage and propose it for review?

grosser resigned from this revision.Jun 11 2016, 3:09 AM
grosser removed a reviewer: grosser.

Hi Johannes,

as I did not receive a reply on this patch, it seems to not be of interest at the moment. To clean up my patch review log I remove myself as a reviewer. Feel free to add me again when you have time to get back to this.

Best,
Tobias