This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by akuegel on May 26 2021, 3:29 AM.

Details

Summary

If both operands of create decompose the same complex value, it can be folded.

Diff Detail

Event Timeline

akuegel created this revision.May 26 2021, 3:29 AM
akuegel requested review of this revision.May 26 2021, 3:29 AM
akuegel updated this revision to Diff 347890.May 26 2021, 3:32 AM

Sync to HEAD.

akuegel updated this revision to Diff 347894.May 26 2021, 3:36 AM

Fix CHECK-LABEL line in test to check the full function name.

pifon2a accepted this revision.May 26 2021, 4:55 AM
This revision is now accepted and ready to land.May 26 2021, 4:55 AM