This is an archive of the discontinued LLVM Phabricator instance.

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 Timeline

ergawy created this revision.Mar 28 2021, 2:55 AM
ergawy requested review of this revision.Mar 28 2021, 2:55 AM
ergawy updated this revision to Diff 333712.Mar 28 2021, 3:00 AM
  • Rearrange code a bit.
mehdi_amini accepted this revision.Mar 28 2021, 9:55 AM
This revision is now accepted and ready to land.Mar 28 2021, 9:55 AM
This revision was automatically updated to reflect the committed changes.