[all-commits] [llvm/llvm-project] 2f672e: [mlir] Don't inline calls from dead SCCs

ftynse via All-commits all-commits at lists.llvm.org
Mon Jan 10 03:07:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f672e2ffa22d8c10279569de123a1e60d3aa00e
      https://github.com/llvm/llvm-project/commit/2f672e2ffa22d8c10279569de123a1e60d3aa00e
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M mlir/lib/Transforms/Inliner.cpp
    A mlir/test/Transforms/inlining-repeated-use.mlir

  Log Message:
  -----------
  [mlir] Don't inline calls from dead SCCs

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.

Reviewed By: wsmoses

Differential Revision: https://reviews.llvm.org/D116820




More information about the All-commits mailing list