This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Clean-up math -> libm/llvm conversion.
ClosedPublic

Authored by pifon2a on Feb 20 2023, 11:19 PM.

Details

Summary

At the moment, there is an optional log1pBenefit
populateMathToLibmConversionPatterns which is used to increase the priority of
the log1p->libm pattern compared to log1p->llvm pattern that approximates
log1p with precision issues. Instead, we can have a flag for the MathToLLVM
pass to enable or disable the imprecise approximation.

Diff Detail

Event Timeline

pifon2a created this revision.Feb 20 2023, 11:19 PM
Herald added a project: Restricted Project. · View Herald Transcript
pifon2a requested review of this revision.Feb 20 2023, 11:19 PM
jreiffers accepted this revision.Feb 20 2023, 11:20 PM
This revision is now accepted and ready to land.Feb 20 2023, 11:20 PM
This revision was landed with ongoing or failed builds.Feb 21 2023, 10:22 AM
This revision was automatically updated to reflect the committed changes.

@pifon2a, this change broke the flang build. Can you please fix it sooner?

@pifon2a, this change broke the flang build. Can you please fix it sooner?

it was fixed https://github.com/llvm/llvm-project/commit/d61a3d3a9b95961144e672c79570aa7b7ab8758b

vzakhari added a subscriber: vzakhari.

FYI, Flang Intrinsics/math-codegen failure should be resolved by D144523