This patch folds the following pattern:
%arg0 = ... %0 = sexti %arg0 : i1 to i8 %1 = trunci %0 : i8 to i1
into just %arg0.
Paths
| Differential D99464
MLIR][STD] Fold trunci (sexti). ClosedPublic Authored by ergawy on Mar 28 2021, 2:55 AM.
Details
Summary This patch folds the following pattern: %arg0 = ... %0 = sexti %arg0 : i1 to i8 %1 = trunci %0 : i8 to i1 into just %arg0.
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, teijeong and 16 others. · View Herald TranscriptMar 28 2021, 2:55 AM This revision is now accepted and ready to land.Mar 28 2021, 9:55 AM Closed by commit rGc52a5f2aa796: MLIR][STD] Fold trunci (sexti). (authored by ergawy). · Explain WhyMar 28 2021, 11:49 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 333712 mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Transforms/canonicalize.mlir
|