This is an archive of the discontinued LLVM Phabricator instance.

[flang][nfc] Add missing `REQUIRES: asserts` in tests
ClosedPublic

Authored by awarzynski on Jul 20 2022, 10:14 AM.

Details

Summary

Tests that use --mlir-pass-statistics-display= from MLIR require the
following condition to hold: (extracted from LLVM's Statistics.h):

#define LLVM_ENABLE_STATS 1

This is normally enforced with REQUIRES: asserts. This patch updates
relevant Flang tests accordingly.

For "Release" builds (with assertions disabled), the affected tests will
be failing without this change.

Diff Detail

Event Timeline

awarzynski created this revision.Jul 20 2022, 10:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 20 2022, 10:14 AM
awarzynski requested review of this revision.Jul 20 2022, 10:14 AM
tarunprabhu accepted this revision.Jul 20 2022, 10:20 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Jul 20 2022, 10:20 AM
This revision was automatically updated to reflect the committed changes.