Page MenuHomePhabricator

MLIR][STD] Fold trunci (sexti).
ClosedPublic

Authored by ergawy on Sun, Mar 28, 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.Sun, Mar 28, 2:55 AM
ergawy requested review of this revision.Sun, Mar 28, 2:55 AM
ergawy updated this revision to Diff 333712.Sun, Mar 28, 3:00 AM
  • Rearrange code a bit.
mehdi_amini accepted this revision.Sun, Mar 28, 9:55 AM
This revision is now accepted and ready to land.Sun, Mar 28, 9:55 AM
This revision was automatically updated to reflect the committed changes.