This is an archive of the discontinued LLVM Phabricator instance.

[mlir:MultiOpDriver] Don't add ops which are not in the allowed list
ClosedPublic

Authored by Chia-hungDuan on Jun 2 2022, 10:47 AM.

Details

Summary

In strict mode, only the new inserted operation is allowed to add to the
worklist. Before this change, it would add the users of a replaced op
and it didn't check if the users are allowed to be pushed into the
worklist

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jun 2 2022, 10:47 AM
Chia-hungDuan requested review of this revision.Jun 2 2022, 10:47 AM

That assertion helps identifying the places we didn't handle properly. So I didn't add additional tests.

rriddle accepted this revision.Jun 2 2022, 11:18 AM
rriddle added inline comments.
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
542

I'd just drop this comment.

611
This revision is now accepted and ready to land.Jun 2 2022, 11:18 AM
Chia-hungDuan marked 2 inline comments as done.

Address review comment

This revision was landed with ongoing or failed builds.Jun 2 2022, 11:30 AM
This revision was automatically updated to reflect the committed changes.