[all-commits] [llvm/llvm-project] 466e5a: [MLIR] Simplify affine.if ops with trivial conditions
shashij-polymagelabs via All-commits
all-commits at lists.llvm.org
Sat Jun 12 07:03:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 466e5aba6495644eb8ba84c3e7f07bf802ff84f0
https://github.com/llvm/llvm-project/commit/466e5aba6495644eb8ba84c3e7f07bf802ff84f0
Author: Shashij gupta <shashij.gupta at polymagelabs.com>
Date: 2021-06-12 (Sat, 12 Jun 2021)
Changed paths:
M mlir/lib/Dialect/Affine/IR/AffineOps.cpp
M mlir/test/Dialect/Affine/loop-unswitch.mlir
M mlir/test/Dialect/Affine/simplify-affine-structures.mlir
Log Message:
-----------
[MLIR] Simplify affine.if ops with trivial conditions
The commit simplifies affine.if ops :
The affine if operation gets removed if the condition is universally true or false and then/else block is merged with the parent block.
Signed-off-by: Shashij Gupta shashij.gupta at polymagelabs.com
Reviewed By: bondhugula, pr4tgpt
Differential Revision: https://reviews.llvm.org/D104015
More information about the All-commits
mailing list