This is an archive of the discontinued LLVM Phabricator instance.

[polly] Fix non-determinism in polly BlockGenerators
ClosedPublic

Authored by mgrang on Oct 19 2016, 10:50 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

mgrang updated this revision to Diff 75170.Oct 19 2016, 10:50 AM
mgrang retitled this revision from to [polly] Fix non-determinism in polly BlockGenerators.
mgrang updated this object.
mgrang added reviewers: jdoerfert, grosser, zinob.
mgrang added a project: Restricted Project.

Here is the run-to-run difference in IR which causes difference in codegen. Notice the order of the predicates.

Run1:
polly.stmt.if.then587: ; preds = %polly.stmt.for.end521, %polly.stmt.lor.lhs.false523

Run2:
polly.stmt.if.then587: ; preds = %polly.stmt.lor.lhs.false523, %polly.stmt.for.end521

grosser accepted this revision.Oct 19 2016, 10:59 AM
grosser edited edge metadata.

This patch LGTM!

This revision is now accepted and ready to land.Oct 19 2016, 10:59 AM

Can you commit this yourself or do you need me to commit this?

Thanks Tobias. I can commit myself :)

This revision was automatically updated to reflect the committed changes.