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.
Paths
| Differential D130748
[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 TimelineThis revision is now accepted and ready to land.Jul 29 2022, 9:02 AM Closed by commit rG730cb822261f: [mlir][complex] Canonicalize complex.add zero (authored by Lewuathe, committed by pifon2a). · Explain WhyJul 29 2022, 9:04 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 448653 mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
mlir/test/Dialect/Complex/canonicalize.mlir
|