Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR][TargetLowering] Fix use iteration #1162

Merged
merged 1 commit into from
Nov 25, 2024

Commits on Nov 25, 2024

  1. [CIR][TargetLowering] Fix use iteration

    Based on https://mlir.llvm.org/docs/Tutorials/UnderstandingTheIRStructure/#traversing-the-def-use-chains,
    the users of an op are linked together in a doubly-linked list, so
    replacing a user while iterating the users causes a use-after-free.
    Store the users in a worklist and process them afterwards instead to
    avoid this.
    smeenai committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    9776e4e View commit details
    Browse the repository at this point in the history