This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix some non-determinism causing test failures in reverse iterator builds
AbandonedPublic

Authored by mnadeem on Nov 1 2021, 12:28 PM.

Details

Summary

The tests custom_state_machines_remarks.ll and spmdization_remarks.ll fail with
reverse iterator builds due to non-determinism in the iteration order. This patch tries to fix it.

Change KernelSet from SmallPtrSet to SmallSetVector so that the order of
iteration of kernels in OpenMPOpt::registerAAs() is the same as the order of insertion.

Diff Detail

Event Timeline

mnadeem created this revision.Nov 1 2021, 12:28 PM
mnadeem requested review of this revision.Nov 1 2021, 12:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
ormris removed a subscriber: ormris.Jan 24 2022, 11:28 AM
mnadeem abandoned this revision.Nov 28 2022, 4:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 4:09 PM