[all-commits] [llvm/llvm-project] 08a321: [mlir][complex] Canonicalize complex.div by one (#...

Kai Sasaki via All-commits all-commits at lists.llvm.org
Mon Mar 25 21:50:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08a321e1b7ffdd72154ae808821d20fe511c83b6
      https://github.com/llvm/llvm-project/commit/08a321e1b7ffdd72154ae808821d20fe511c83b6
  Author: Kai Sasaki <lewuathe at gmail.com>
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
    M mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
    M mlir/test/Dialect/Complex/canonicalize.mlir

  Log Message:
  -----------
  [mlir][complex] Canonicalize complex.div by one (#85513)

We can canonicalize the complex.div if the divisor is one (real = 1.0,
imag = 0.0) with the input number itself.

Ref: https://www.cuemath.com/numbers/division-of-complex-numbers/



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list