This is an archive of the discontinued LLVM Phabricator instance.

[Polly][test] Test difference between isl::stat:ok() and isl::stat::error().
ClosedPublic

Authored by Meinersbur on Aug 3 2021, 1:13 PM.

Details

Summary

The foreach callback wrappers tests check the return values of isl::stat:ok() and isl::stat::error() separately. However, due to the the container they are iterating over containing just one element, they are actually not testing the difference between them.

This patch changes to set to be iterated over to contain 2 element to make returning sl::stat:ok (continue iterating the next element) and isl::stat::error (break after current element) have different effects other than the return value of the foreach itself.

Diff Detail

Event Timeline

Meinersbur created this revision.Aug 3 2021, 1:13 PM
Meinersbur requested review of this revision.Aug 3 2021, 1:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 1:13 PM
patacca accepted this revision.Aug 5 2021, 8:00 AM

LGTM.
It is also a lot easier to understand.

This revision is now accepted and ready to land.Aug 5 2021, 8:00 AM