[all-commits] [llvm/llvm-project] 6c295a: [mlir][Arith] Fold integer shift op with zero.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Fri Dec 30 01:19:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c295a932d26681f07037d7289df405e36350dd4
      https://github.com/llvm/llvm-project/commit/6c295a932d26681f07037d7289df405e36350dd4
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-12-30 (Fri, 30 Dec 2022)

  Changed paths:
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Dialect/Arith/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Arith] Fold integer shift op with zero.

This revision folds arith.shrui, arith.shrsi and arith.shli with zero
rhs to lhs.

Reviewed By: ftynse

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




More information about the All-commits mailing list