This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Arith] Canonicalize and/or with ext
ClosedPublic

Authored by wsmoses on Jan 2 2022, 9:39 PM.

Details

Summary

Replace and(ext(a),ext(b)) with ext(and(a,b)). This both reduces one instruction, and results in the computation (and/or) being done on a smaller type.

Diff Detail

Event Timeline

wsmoses created this revision.Jan 2 2022, 9:39 PM
wsmoses requested review of this revision.Jan 2 2022, 9:39 PM
mehdi_amini accepted this revision.Jan 2 2022, 10:24 PM
This revision is now accepted and ready to land.Jan 2 2022, 10:24 PM
This revision was automatically updated to reflect the committed changes.