[all-commits] [llvm/llvm-project] 834cf3: [MLIR][Arith] Canonicalize and/or with ext

William Moses via All-commits all-commits at lists.llvm.org
Sun Jan 2 22:25:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 834cf3be222d2acebc82b2a022f3db8918a2bfe9
      https://github.com/llvm/llvm-project/commit/834cf3be222d2acebc82b2a022f3db8918a2bfe9
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-01-03 (Mon, 03 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticCanonicalization.td
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
    M mlir/test/Dialect/Arithmetic/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][Arith] Canonicalize and/or with ext

Replace and(ext(a),ext(b)) with ext(and(a,b)). This both reduces one instruction, and results in the computation (and/or) being done on a smaller type.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D116519




More information about the All-commits mailing list