If both operands of create decompose the same complex value, it can be folded.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D103148
[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 TimelineHerald added subscribers: dcaballe, cota, teijeong and 16 others. · View Herald TranscriptMay 26 2021, 3:29 AM This revision is now accepted and ready to land.May 26 2021, 4:55 AM Closed by commit rGdee46d08293f: [mlir] Fold complex.create(complex.re(op), complex.im(op)) (authored by akuegel). · Explain WhyMay 26 2021, 5:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 347927 mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
mlir/test/Dialect/Complex/canonicalize.mlir
|