[all-commits] [llvm/llvm-project] 34646a: [MLIR][Arith] Fold repeated xor and trunc

William Moses via All-commits all-commits at lists.llvm.org
Fri Jan 7 00:36:23 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34646a2f7ee1564b0f6ff706b32d7206e39aac9f
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

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

  Log Message:
  [MLIR][Arith] Fold repeated xor and trunc

This patch adds two folds. One for a repeated xor (e.g. xor(xor(x, a), a)) and one for a repeated trunc (e.g. trunc(trunc(x))).

Reviewed By: ftynse

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

More information about the All-commits mailing list