This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv] IRBuilder fails to add strictfp attribute
ClosedPublic

Authored by kpn on Jul 29 2020, 11:13 AM.

Details

Summary

The strictfp attribute is required on all function calls in a function that is itself marked with the strictfp attribute. The IRBuilder knows this and has a method for adding the attribute to function call instructions.

If a function being called has the strictfp attribute itself then the IRBuilder will refuse to add the attribute to the calling instruction despite being asked to add it. Eliminate this error.

Diff Detail

Event Timeline

kpn created this revision.Jul 29 2020, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2020, 11:13 AM
kpn requested review of this revision.Jul 29 2020, 11:13 AM
rjmccall accepted this revision.Aug 3 2020, 9:56 AM

LGTM.

This revision is now accepted and ready to land.Aug 3 2020, 9:56 AM
This revision was landed with ongoing or failed builds.Aug 3 2020, 10:25 AM
This revision was automatically updated to reflect the committed changes.