[all-commits] [llvm/llvm-project] 1a0a17: [MLIR] Create fold for cmp of ext
William Moses via All-commits
all-commits at lists.llvm.org
Sun Jan 2 16:49:04 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1a0a177965e88d61b5d3cd3e7f7f89011f0827c1
https://github.com/llvm/llvm-project/commit/1a0a177965e88d61b5d3cd3e7f7f89011f0827c1
Author: William S. Moses <gh at wsmoses.com>
Date: 2022-01-02 (Sun, 02 Jan 2022)
Changed paths:
M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
M mlir/test/Dialect/Arithmetic/canonicalize.mlir
Log Message:
-----------
[MLIR] Create fold for cmp of ext
This patch creates folds for cmpi( ext(%x : i1, iN) != 0) -> %x
In essence this matches patterns matching an extension of a boolean, that != 0, which is equivalent to the original condition.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D116504
More information about the All-commits
mailing list