This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Allow denormal C in pow(C,y) -> exp2(log2(C)*y)
ClosedPublic

Authored by foad on May 5 2020, 5:41 AM.

Details

Summary

We check that C is finite and strictly positive, but there's no need to
check that it's normal too. exp2 should be just as accurate on denormals
as pow is.

Diff Detail

Event Timeline

foad created this revision.May 5 2020, 5:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2020, 5:41 AM
arsenm accepted this revision.May 5 2020, 7:24 AM
This revision is now accepted and ready to land.May 5 2020, 7:24 AM