This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fold complex.re(complex.create) and complex.im(complex.create)
ClosedPublic

Authored by akuegel on May 26 2021, 12:46 AM.

Details

Summary

This extends the folding we already have. A test needs to be adjusted.

Diff Detail

Event Timeline

akuegel created this revision.May 26 2021, 12:46 AM
akuegel requested review of this revision.May 26 2021, 12:46 AM
pifon2a accepted this revision.May 26 2021, 1:51 AM
This revision is now accepted and ready to land.May 26 2021, 1:51 AM
rriddle added inline comments.May 26 2021, 1:52 AM
mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
27
37
akuegel added inline comments.May 26 2021, 1:55 AM
mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
37

Thanks for the suggestion :)
Will fix in a followup commit, unfortunately I didn't see your comment in time.