HomePhabricator

[MLIR][STD] Fold trunci (zexti).

Authored by ergawy on Mar 27 2021, 11:40 AM.

Description

[MLIR][STD] Fold trunci (zexti).

This patch folds the following pattern:

%arg0 = ...
%0 = zexti %arg0 : i1 to i8
%1 = trunci %0 : i8 to i1

into just %arg0.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D99453

Details

Committed
ergawyMar 27 2021, 11:40 AM
Reviewer
mehdi_amini
Differential Revision
D99453: [MLIR][STD] Fold trunci (zexti).
Parents
rGab158d35b5a0: [gn build] rewrap a comment to 80 cols
Branches
Unknown
Tags
Unknown