This is an archive of the discontinued LLVM Phabricator instance.

[IRBuilder] Fix CreateFDivFMF ignoring source FMF
ClosedPublic

Authored by dwoodwor-intel on Dec 7 2022, 2:34 PM.

Details

Summary

This change fixes a small bug in IRBuilderBase::CreateFDivFMF introduced
by accident in rGf34dcf27637f which caused the builder's default fast math
flags to be used for the new fdiv instruction instead of the ones from
the source instruction. It also adds unit testing for the CreateF*FMF
family of functions to more easily catch similar bugs in the future.

Diff Detail

Event Timeline

dwoodwor-intel created this revision.Dec 7 2022, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2022, 2:34 PM
dwoodwor-intel requested review of this revision.Dec 7 2022, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2022, 2:34 PM
nikic accepted this revision.Dec 7 2022, 10:53 PM

LG, thanks!

This revision is now accepted and ready to land.Dec 7 2022, 10:53 PM

I don't have commit access; can you commit this for me?

nikic added a comment.Dec 9 2022, 1:48 AM

Sure, can you please share the Name <email> to use for the commit?

Yes, please use Daniel Woodworth <daniel.woodworth@intel.com>

This revision was landed with ongoing or failed builds.Dec 13 2022, 2:40 AM
This revision was automatically updated to reflect the committed changes.