This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Refactor buildScop
ClosedPublic

Authored by Meinersbur on Aug 8 2015, 1:59 PM.

Details

Summary

The extracted function buildBBScopStmt will be needed later to be invoked individually on the region's exit block.

Diff Detail

Event Timeline

Meinersbur updated this revision to Diff 31599.Aug 8 2015, 1:59 PM
Meinersbur retitled this revision from to [Polly] Refactor buildScop.
Meinersbur updated this object.
Meinersbur added a reviewer: grosser.
Meinersbur added a project: Restricted Project.
jdoerfert accepted this revision.Aug 9 2015, 4:50 AM
jdoerfert added a reviewer: jdoerfert.

1 Comment but otherwise LGTM.

include/polly/ScopInfo.h
914

Usually method names start with a small letter, what about combineInSequence(..., ...) ?

This revision is now accepted and ready to land.Aug 9 2015, 4:50 AM
grosser accepted this revision.Aug 9 2015, 12:12 PM
grosser edited edge metadata.

LGTM.

Thanks for helping to keep the functions small.

include/polly/ScopInfo.h
891

BasicBlock

893

Points missing (for both sentences).

Meinersbur updated this revision to Diff 31655.Aug 10 2015, 5:08 AM
Meinersbur edited edge metadata.
Meinersbur marked 3 inline comments as done.

Addressed comments.
Made combineInSequence a static function instead private method because it does not need a object reference.

Looks good.

Meinersbur closed this revision.Aug 10 2015, 5:43 AM