[all-commits] [llvm/llvm-project] 730cb8: [mlir][complex] Canonicalize complex.add zero
Kai Sasaki via All-commits
all-commits at lists.llvm.org
Fri Jul 29 09:04:11 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 730cb822261f2d02778054db03a81543e0942a15
https://github.com/llvm/llvm-project/commit/730cb822261f2d02778054db03a81543e0942a15
Author: lewuathe <lewuathe at me.com>
Date: 2022-07-29 (Fri, 29 Jul 2022)
Changed paths:
M mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
M mlir/test/Dialect/Complex/canonicalize.mlir
Log Message:
-----------
[mlir][complex] Canonicalize complex.add zero
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.
Differential Revision: https://reviews.llvm.org/D130748
More information about the All-commits
mailing list