[all-commits] [llvm/llvm-project] dd39f9: [MLIR][Arith] Fold trunci with ext if the bit widt...
LiqinWeng via All-commits
all-commits at lists.llvm.org
Thu Apr 6 06:14:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd39f9b418379264ceb6a232dc0b2a5fb18a4203
https://github.com/llvm/llvm-project/commit/dd39f9b418379264ceb6a232dc0b2a5fb18a4203
Author: liqinweng <Liqin.Weng at streamcomputing.com>
Date: 2023-04-06 (Thu, 06 Apr 2023)
Changed paths:
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
M mlir/test/Dialect/Arith/canonicalize.mlir
Log Message:
-----------
[MLIR][Arith] Fold trunci with ext if the bit width of the input type of ext is greater than the
This patch is mainly to deal with folding trunci with ext,as flows:
trunci(zexti(a)) -> trunci(a)
trunci(zexti(a)) -> trunci(a)
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D140604
More information about the All-commits
mailing list