This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Math] Support fold Log2Op with constant dense.
ClosedPublic

Authored by jacquesguan on Jul 6 2022, 11:21 PM.

Details

Summary

This patch is similar to D129108, it adds a conditional unary constant folder which allow to exit when the constants not meet the fold condition. And use it for Log2Op to make it able to fold the constant dense.

Diff Detail

Event Timeline

jacquesguan created this revision.Jul 6 2022, 11:21 PM
jacquesguan requested review of this revision.Jul 6 2022, 11:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2022, 11:21 PM
Mogball accepted this revision.Jul 7 2022, 8:53 AM
This revision is now accepted and ready to land.Jul 7 2022, 8:53 AM
This revision was automatically updated to reflect the committed changes.