[all-commits] [llvm/llvm-project] 0c81e6: [mlir][llvm] Add icmp folder (#65343)

Tobias Gysi via All-commits all-commits at lists.llvm.org
Tue Sep 5 23:58:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c81e6dd9137ac48534eb72855ab629a86e0ccdc
      https://github.com/llvm/llvm-project/commit/0c81e6dd9137ac48534eb72855ab629a86e0ccdc
  Author: Tobias Gysi <gysit at users.noreply.github.com>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/canonicalize.mlir

  Log Message:
  -----------
  [mlir][llvm] Add icmp folder (#65343)

This revision adds a simple icmp folder that performs the following
folds to the LLVM dialect icmp op:
 - cmpi(eq/ne, x, x) -> true/false
 - cmpi(eq/ne, alloca, null) -> false/true
 - cmpi(eq/ne, null, alloca) -> cmpi(eq/ne, alloca, null)




More information about the All-commits mailing list