[all-commits] [llvm/llvm-project] a02af3: [MLIR] Generalize select to arithmetic canonicaliz...
William Moses via All-commits
all-commits at lists.llvm.org
Mon Jan 10 08:50:29 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a02af37560ff5aa22dcef5735ef25eaf58eaaf64
https://github.com/llvm/llvm-project/commit/a02af37560ff5aa22dcef5735ef25eaf58eaaf64
Author: William S. Moses <gh at wsmoses.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
M mlir/test/Dialect/Standard/canonicalize.mlir
Log Message:
-----------
[MLIR] Generalize select to arithmetic canonicalization
Given a select whose result is an i1, we can eliminate the conditional in the select completely by adding a few arithmetic operations.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D116839
More information about the All-commits
mailing list