This is an archive of the discontinued LLVM Phabricator instance.

[TransformWarning] Do not warn missed transformations in optnone functions.
ClosedPublic

Authored by Meinersbur on Dec 13 2018, 9:28 PM.

Details

Summary

Optimization transformations are intentionally disabled by the 'optnone' function attribute. Therefore do not warn if transformation metadata is still present.

Using the legacy pass manager structure, the skipFunction method takes core for the optnone attribute (already called before this patch). For the new pass manager, there is no equivalent, so we check for the optnone attribute manually.

Diff Detail

Event Timeline

Meinersbur created this revision.Dec 13 2018, 9:28 PM
hfinkel accepted this revision.Dec 14 2018, 8:10 AM

LGTM

This revision is now accepted and ready to land.Dec 14 2018, 8:10 AM
This revision was automatically updated to reflect the committed changes.