This is an archive of the discontinued LLVM Phabricator instance.

[mlir][complex] Canonicalize complex.add zero
ClosedPublic

Authored by Lewuathe on Jul 29 2022, 12:46 AM.

Details

Summary

Adding complex value with 0 for real and imaginary part can be ignored.

NOTE: This type of canonicalization can be written in an easy and tidy format using complex.number after constant op supports custom attribute.

Diff Detail

Event Timeline

Lewuathe created this revision.Jul 29 2022, 12:46 AM
Lewuathe requested review of this revision.Jul 29 2022, 12:46 AM
Lewuathe edited the summary of this revision. (Show Details)Jul 29 2022, 12:49 AM
pifon2a accepted this revision.Jul 29 2022, 9:02 AM
This revision is now accepted and ready to land.Jul 29 2022, 9:02 AM
This revision was automatically updated to reflect the committed changes.