[all-commits] [llvm/llvm-project] 6a285c: [mlir][IR] Fix `Block::without_terminator` for blo...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Aug 20 09:02:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a285cc8e6c1dd814d5e424f02b5574d2a3e72db
      https://github.com/llvm/llvm-project/commit/6a285cc8e6c1dd814d5e424f02b5574d2a3e72db
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-08-20 (Wed, 20 Aug 2025)

  Changed paths:
    M mlir/include/mlir/IR/Block.h
    M mlir/lib/Analysis/TopologicalSortUtils.cpp
    M mlir/lib/IR/Block.cpp

  Log Message:
  -----------
  [mlir][IR] Fix `Block::without_terminator` for blocks without terminator (#154498)

Blocks without a terminator are not handled correctly by
`Block::without_terminator`: the last operation is excluded, even when
it is not a terminator. With this commit, only terminators are excluded.
If the last operation is unregistered, it is included for safety.



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