This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv][InstSimplify] Teach CannotBeNegativeZero() about constrained intrinsics.
ClosedPublic

Authored by kpn on Mar 11 2022, 11:46 AM.

Details

Summary

Currently some optimizations are disabled because llvm::CannotBeNegativeZero() does not know how to deal with the constrained intrinsics. This patch fixes that by extending the existing implementation.

Diff Detail

Event Timeline

kpn created this revision.Mar 11 2022, 11:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 11:46 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
kpn requested review of this revision.Mar 11 2022, 11:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 11:46 AM
spatel accepted this revision.Mar 15 2022, 9:52 AM

LGTM - please commit the baseline tests firsts. That will make it easier to tell how the tests are changing (optionally add comments like "negative test" on the ones that are not changing).

This revision is now accepted and ready to land.Mar 15 2022, 9:52 AM
This revision was landed with ongoing or failed builds.Mar 18 2022, 7:25 AM
This revision was automatically updated to reflect the committed changes.