This is an archive of the discontinued LLVM Phabricator instance.

Avoid infinity arithmetics when computing exp approximations
ClosedPublic

Authored by asaadaldien on Oct 19 2021, 6:07 PM.

Diff Detail

Event Timeline

asaadaldien created this revision.Oct 19 2021, 6:07 PM
asaadaldien requested review of this revision.Oct 19 2021, 6:07 PM
jonpa added a subscriber: jonpa.Oct 20 2021, 2:53 AM

Thanks for fixing this!

I can confirm that the test now passes on SystemZ with this patch. So please also remove the XFAIL:

mlir/test/mlir-cpu-runner/math_polynomial_approx.mlir

-// XFAIL: s390x
-// (see https://bugs.llvm.org/show_bug.cgi?id=51204)
-

I cannot approve of the patch since I am not that familiar with mlir, I hope someone else can review it fully...

asaadaldien edited the summary of this revision. (Show Details)
ezhulenev accepted this revision.Oct 20 2021, 4:34 PM
This revision is now accepted and ready to land.Oct 20 2021, 4:34 PM

remove XFAIL

check vecor type