[all-commits] [llvm/llvm-project] 8a583d: [MLIR] Add replaceUsesWithIf on Operation

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Mon Feb 20 20:45:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a583dd22012294e253f735bf274628791fecb33
      https://github.com/llvm/llvm-project/commit/8a583dd22012294e253f735bf274628791fecb33
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M mlir/include/mlir/IR/Operation.h
    M mlir/include/mlir/IR/ValueRange.h
    M mlir/lib/IR/OperationSupport.cpp
    M mlir/lib/Transforms/CSE.cpp

  Log Message:
  -----------
  [MLIR] Add replaceUsesWithIf on Operation

Add replaceUsesWithIf on Operation along the lines of
Value::replaceUsesWithIf. This had been missing on Operation and is
convenient to replace multi-result operations' results conditionally.

Reviewed By: lattner

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




More information about the All-commits mailing list