[all-commits] [llvm/llvm-project] e5f289: [MLIR][STD] Fold trunci (zexti).

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Sat Mar 27 11:40:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5f2898bc751aab581193ad87cf887e5c4c8bcec
      https://github.com/llvm/llvm-project/commit/e5f2898bc751aab581193ad87cf887e5c4c8bcec
  Author: KareemErgawy-TomTom <kareem.ergawy at gmail.com>
  Date:   2021-03-27 (Sat, 27 Mar 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/Transforms/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][STD] Fold trunci (zexti).

This patch folds the following pattern:

```
  %arg0 = ...
  %0 = zexti %arg0 : i1 to i8
  %1 = trunci %0 : i8 to i1
```

into just `%arg0`.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list