Page MenuHomePhabricator

[mlir][linalg] Fix FoldTensorCastConsumerOp invalid folding

Authored by Hardcode84 on Jul 21 2022, 4:11 PM.



CastOp can be in conditionally reachable region, in which case this folding will be invalid.
Only conservatively fold ops in same block for now.


Diff Detail

Event Timeline

Hardcode84 created this revision.Jul 21 2022, 4:11 PM
Hardcode84 requested review of this revision.Jul 21 2022, 4:11 PM
mravishankar accepted this revision.Jul 21 2022, 8:52 PM

awesome! thanks for the fix!

This revision is now accepted and ready to land.Jul 21 2022, 8:52 PM