[all-commits] [llvm/llvm-project] 1b2a1f: [MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi

William Moses via All-commits all-commits at lists.llvm.org
Wed Feb 23 11:09:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b2a1f847354bf027a2ad1591a0b694b721d0177
      https://github.com/llvm/llvm-project/commit/1b2a1f847354bf027a2ad1591a0b694b721d0177
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
    M mlir/include/mlir/IR/BuiltinTypes.h
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
    M mlir/lib/IR/BuiltinTypes.cpp
    M mlir/test/Dialect/Arithmetic/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi

Given a cmpf of either uitofp or sitofp and a constant, attempt to canonicalize it to a cmpi.

This PR rewrites equivalent code within LLVM to now apply to MLIR arith.

Reviewed By: rriddle

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




More information about the All-commits mailing list