This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Revert 2 spurious commits related to scf.for folding.
AcceptedPublic

Authored by nicolasvasilache on Apr 19 2023, 1:41 PM.

Details

Summary

The first commit was landed despite a request for changes.
It fixes a bug that was introduced by a prior commit.
Instead of adding more code, the prior commit should instead have been reverted:

Revert "[SCF] Clean up ForOpTensorCastFolder and harden it against nop tensor casts"

This reverts commit aeac932943bc7e0c54903d2c4b754e3a87e90fb0.

The second commit is the original problematic commit

Revert "[mlir] Fix folding for scf.for(tensor.cast)."

This reverts commit a5cdcf49b2f7895dbdf3d00fe8cd7d3fb4f9d38b.

With these 2 commits reverted, #62135 does not trigger anymore.

If remaining issues are remaining that need to be addressed, it is better to avoid starting from a known bad slate.

A canary integration of these reverts shows a clean CI https://github.com/openxla/iree/pull/13168

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 1:41 PM
nicolasvasilache requested review of this revision.Apr 19 2023, 1:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 1:41 PM
nicolasvasilache edited the summary of this revision. (Show Details)

Update commit message with mention of #62135.

nicolasvasilache edited the summary of this revision. (Show Details)

Update commit message

springerm accepted this revision.Apr 20 2023, 2:16 AM
This revision is now accepted and ready to land.Apr 20 2023, 2:16 AM
bkramer accepted this revision.Apr 20 2023, 2:21 AM