[all-commits] [llvm/llvm-project] 10c9ec: [mlir][NFC] Replace some nested if with logical and.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Sun May 22 19:24:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10c9ecce9f6096e18222a331c5e7d085bd813f75
      https://github.com/llvm/llvm-project/commit/10c9ecce9f6096e18222a331c5e7d085bd813f75
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp

  Log Message:
  -----------
  [mlir][NFC] Replace some nested if with logical and.

This patch replaces some nested if statement with logical and to reduce the nesting depth.

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




More information about the All-commits mailing list