This is an archive of the discontinued LLVM Phabricator instance.

[test] Don't run optimization-remark.c against the legacy PM
AbandonedPublic

Authored by aeubanks on Sep 27 2021, 4:59 PM.

Details

Reviewers
mtrofin
Summary

We may not emit some inlining remarks under -O0 (which seems
reasonable), so use -O1 in these tests.

This happens to make it pass when the legacy PM is turned on by default.
Previously some RUN lines were failing due to differences in the two
pass managers.

For now we have to use -mllvm -mandatory-inlining-first=false, or else
always_inline inlines don't have remarks emitted due to implementation
details.

Diff Detail

Event Timeline

aeubanks requested review of this revision.Sep 27 2021, 4:59 PM
aeubanks created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2021, 4:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aeubanks edited the summary of this revision. (Show Details)Sep 27 2021, 5:04 PM
aeubanks added a reviewer: mtrofin.
aeubanks planned changes to this revision.Sep 28 2021, 7:22 PM
aeubanks abandoned this revision.Oct 1 2021, 1:46 PM