[all-commits] [llvm/llvm-project] 5a3140: [MLIR][SCF] Create selects from if yield results w...
William Moses via All-commits
all-commits at lists.llvm.org
Fri Mar 18 08:38:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a31403b513d7449c4f045347740056800996357
https://github.com/llvm/llvm-project/commit/5a31403b513d7449c4f045347740056800996357
Author: William S. Moses <gh at wsmoses.com>
Date: 2022-03-18 (Fri, 18 Mar 2022)
Changed paths:
M mlir/lib/Dialect/SCF/SCF.cpp
M mlir/test/Dialect/SCF/canonicalize.mlir
Log Message:
-----------
[MLIR][SCF] Create selects from if yield results which are not defined in the body
Previously, the canonicalizer to create ifs from selects would only work
if the if did not have a body other than yielding. This patch upgrade the functionality
to be able to create selects from any if result whose operands are not defined
within the body.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D121943
More information about the All-commits
mailing list