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

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Sun Mar 28 23:49:31 PDT 2021


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

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

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

This patch folds the following pattern:

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

into just `%arg0`.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list