This is an archive of the discontinued LLVM Phabricator instance.

[Polly][WIP] Emit remarks for taken assumptions
ClosedPublic

Authored by jdoerfert on Nov 5 2015, 6:27 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert updated this revision to Diff 39457.Nov 5 2015, 6:27 PM
jdoerfert retitled this revision from to [Polly][WIP] Emit remarks for taken assumptions.
jdoerfert updated this object.
jdoerfert added reviewers: grosser, Meinersbur.
jdoerfert added a subscriber: Restricted Project.
grosser edited edge metadata.Nov 9 2015, 11:53 PM

Hi Johannes,

this looks generally good. Please make sure to add good test cases.

Best,
Tobias

include/polly/ScopInfo.h
77 ↗(On Diff #39457)

DELINEARIZATION

lib/Analysis/ScopInfo.cpp
102 ↗(On Diff #39457)

The option name made me first think that this is actually about taking assumptions or not, but indeed this only affects the reporting. This caused confusion. As this is anyhow can be controlled byt the -Rpass, -pass-remarks flags I wonder if we should not just drop this option.

2357 ↗(On Diff #39457)

This seems to be an independent change and could be committed by itself.

2868 ↗(On Diff #39457)

We might want to add this logic to ScopDetectionDiagnostic.cpp

3836 ↗(On Diff #39457)

These changes seem unrelated and also seem to duplicate the logic in emitValidRemarks().

jdoerfert accepted this revision.Nov 11 2015, 5:53 PM
jdoerfert added a reviewer: jdoerfert.
jdoerfert marked an inline comment as done.

Thanks for the feedback.

lib/Analysis/ScopInfo.cpp
102 ↗(On Diff #39457)

I was thinking it would save time in the 99% of the runs we do not activate the Rpass option but I don't need it.

2357 ↗(On Diff #39457)

Ok.

2868 ↗(On Diff #39457)

Why? It has nothing to do with ScopDetection and it cannot be reused...

3836 ↗(On Diff #39457)

True, I will commit it separatly and drop emitValidRemarks

This revision is now accepted and ready to land.Nov 11 2015, 5:53 PM
jdoerfert added inline comments.Nov 11 2015, 5:56 PM
lib/Analysis/ScopInfo.cpp
3836 ↗(On Diff #39457)

Btw. -polly-report and emitValidRemarks were already doing the same thing,...

This revision was automatically updated to reflect the committed changes.