This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Remove hasOneUse check for pow(C,x) -> exp2(log2(C)*x)
ClosedPublic

Authored by foad on May 5 2020, 4:48 AM.

Details

Summary

I don't think there's any good reason not to do this transformation when
the pow has multiple uses.

Diff Detail

Event Timeline

foad created this revision.May 5 2020, 4:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2020, 4:48 AM
lebedev.ri accepted this revision.May 5 2020, 5:05 AM
lebedev.ri added a subscriber: lebedev.ri.

Seems reasonable.

This revision is now accepted and ready to land.May 5 2020, 5:05 AM
xbolva00 accepted this revision.May 5 2020, 5:59 AM

Yeah

This revision was automatically updated to reflect the committed changes.