This is an archive of the discontinued LLVM Phabricator instance.

InstSimplify: Handle exp10(log10(x)) -> x
ClosedPublic

Authored by arsenm on Aug 14 2023, 8:46 AM.

Details

Summary

Copy from exp/exp2 case.

Diff Detail

Event Timeline

arsenm created this revision.Aug 14 2023, 8:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 8:46 AM
arsenm requested review of this revision.Aug 14 2023, 8:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 8:46 AM
Herald added a subscriber: wdng. · View Herald Transcript
kpn accepted this revision.Aug 14 2023, 11:25 AM

How do we know that x is >0?

But I see that we don't worry about this for the existing cases so LGTM.

This revision is now accepted and ready to land.Aug 14 2023, 11:25 AM

How do we know that x is >0?

But I see that we don't worry about this for the existing cases so LGTM.

I guess you can argue that reassoc grants ignoring it, but it probably should require nnan