[all-commits] [llvm/llvm-project] 0f06da: [mlir][llvm] Mark LLVMReturnOp as ReturnLike

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Dec 5 20:38:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f06da6412b83754b274f4b1edf2e3c766724e2e
      https://github.com/llvm/llvm-project/commit/0f06da6412b83754b274f4b1edf2e3c766724e2e
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

  Log Message:
  -----------
  [mlir][llvm] Mark LLVMReturnOp as ReturnLike

Reviewed By: rriddle

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


  Commit: 34535801d609923252237cd475606506a4ad244f
      https://github.com/llvm/llvm-project/commit/34535801d609923252237cd475606506a4ad244f
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/Arith/unsigned-when-equivalent.mlir
    M mlir/test/Dialect/LLVMIR/callgraph.mlir

  Log Message:
  -----------
  [mlir] UnsignedWhenEquivalent ignore dead code

The pass was not checking for uninitialized states due to dead code.
This patch also makes LLVMFuncOp correctly return a null body when it is
external.

Fixes #58807

Depends on D139388

Reviewed By: rriddle

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


Compare: https://github.com/llvm/llvm-project/compare/f7a46aa8fbc2...34535801d609


More information about the All-commits mailing list