During iterative inlining of the functions in a multi-step call chain, the
inliner could add the same call operation several times to the worklist, which
led to use-after-free when this op was considered more than once.
Closes #52887.
Paths
| Differential D116820
[mlir] Don't inline calls from dead SCCs ClosedPublic Authored by ftynse on Jan 7 2022, 10:07 AM.
Details
Summary During iterative inlining of the functions in a multi-step call chain, the Closes #52887.
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 22 others. · View Herald TranscriptJan 7 2022, 10:07 AM
This revision is now accepted and ready to land.Jan 7 2022, 1:53 PM Closed by commit rG2f672e2ffa22: [mlir] Don't inline calls from dead SCCs (authored by ftynse). · Explain WhyJan 10 2022, 3:07 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 398554 mlir/lib/Transforms/Inliner.cpp
mlir/test/Transforms/inlining-repeated-use.mlir
|
Could this be changed to a set vector to avoid an O(N) check on this line?