[all-commits] [llvm/llvm-project] f4ef77: [mlir][Inliner] Properly handle callgraph node del...

River Riddle via All-commits all-commits at lists.llvm.org
Wed Jun 17 15:50:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4ef77cbb48b549211ecc18085f14ec7a17c01fc
      https://github.com/llvm/llvm-project/commit/f4ef77cbb48b549211ecc18085f14ec7a17c01fc
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M mlir/lib/Transforms/Inliner.cpp
    M mlir/test/Transforms/inlining-dce.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [mlir][Inliner] Properly handle callgraph node deletion

We previously weren't properly updating the SCC iterator when nodes were removed, leading to asan failures in certain situations. This commit adds a CallGraphSCC class and defers operation deletion until inlining has finished.

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




More information about the All-commits mailing list