[all-commits] [llvm/llvm-project] a230a5: [mlir][IR] Add `Block::isReachable` helper function

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Nov 4 21:31:51 PST 2024


  Branch: refs/heads/users/matthias-springer/block_is_reachable
  Home:   https://github.com/llvm/llvm-project
  Commit: a230a5254e5a29ec1efcf77ddee95c664ed3b41b
      https://github.com/llvm/llvm-project/commit/a230a5254e5a29ec1efcf77ddee95c664ed3b41b
  Author: Matthias Springer <mspringer at nvidia.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M mlir/include/mlir/IR/Block.h
    M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp
    M mlir/lib/IR/Block.cpp

  Log Message:
  -----------
  [mlir][IR] Add `Block::isReachable` helper function

Add a new helper function `isReachable` to `Block`. This function traverses all successors of a block to determine if another block is reachable from the current block.

This functionality has been reimplemented in multiple places.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list