This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv][InstSimplify] Fold fsub -0.0, -X ==> X
ClosedPublic

Authored by kpn on Apr 8 2022, 8:52 AM.

Details

Summary

Currently the fsub optimizations in InstSimplify don't know how to fold -0.0 - (-X) to X when the constrained intrinsics are used. This adds partial support. The rest of the support will come later with work on the IR matchers.

This review is split out from D107285.

Diff Detail

Event Timeline

kpn created this revision.Apr 8 2022, 8:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2022, 8:52 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
kpn requested review of this revision.Apr 8 2022, 8:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2022, 8:52 AM
spatel accepted this revision.Apr 14 2022, 8:03 AM

LGTM

This revision is now accepted and ready to land.Apr 14 2022, 8:03 AM
This revision was landed with ongoing or failed builds.Apr 14 2022, 8:49 AM
This revision was automatically updated to reflect the committed changes.