[all-commits] [llvm/llvm-project] f3676c: [mlir][memref] memref.reinterpret_cast folding

Ivan Butygin via All-commits all-commits at lists.llvm.org
Fri Mar 11 10:23:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3676c3273b9ef32af4b63b8bfa156a8dac31e63
      https://github.com/llvm/llvm-project/commit/f3676c3273b9ef32af4b63b8bfa156a8dac31e63
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
    M mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/lib/Dialect/Utils/StaticValueUtils.cpp
    M mlir/test/Dialect/MemRef/canonicalize.mlir

  Log Message:
  -----------
  [mlir][memref] memref.reinterpret_cast folding

* reinterpret_cast(reinterpret_cast(x)) -> reinterpret_cast(x)
* reinterpret_cast(cast(x)) -> reinterpret_cast(x)
* reinterpret_cast(subview(x)) -> reinterpret_cast(x) if subview offsets are 0

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




More information about the All-commits mailing list