[all-commits] [llvm/llvm-project] 93c791: [MLIR] Canonicalize/fold select %x, 1, 0 to extui

William Moses via All-commits all-commits at lists.llvm.org
Sun Jan 2 22:26:39 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93c791839a42cb5d81dc198452ef486fa712a860
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-01-03 (Mon, 03 Jan 2022)

  Changed paths:
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/Dialect/Standard/canonicalize.mlir

  Log Message:
  [MLIR] Canonicalize/fold select %x, 1, 0 to extui

Two canonicalizations for select %x, 1, 0
  If the return type is i1, return simply the condition %x, otherwise extui %x to the return type.

Reviewed By: mehdi_amini

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

More information about the All-commits mailing list