This is an archive of the discontinued LLVM Phabricator instance.

[dexter-tests] Add attribute optnone to main function
ClosedPublic

Authored by Carrot on Oct 26 2022, 12:03 PM.

Details

Summary

The test case optnone-simple-functions.cpp is expected to be compiled unoptimized even under -O2 because of attribute optnone. But this attribute is missed for main function, and caused the fail in https://lab.llvm.org/buildbot/#/builders/217/builds/14046 when it triggered optimizations. This patch fixes that by adding attribute optnone to main function.

Diff Detail

Event Timeline

Carrot created this revision.Oct 26 2022, 12:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 12:03 PM
Carrot requested review of this revision.Oct 26 2022, 12:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 12:03 PM
jmorse accepted this revision.Oct 26 2022, 1:51 PM
jmorse added a subscriber: jmorse.

Ah, you're way ahead of me -- this is the correct fix, LGTM!

This revision is now accepted and ready to land.Oct 26 2022, 1:51 PM
This revision was automatically updated to reflect the committed changes.