[all-commits] [llvm/llvm-project] 4a94a3: [MLIR][LLVM] Fold extractvalue to ignore insertval...

William Moses via All-commits all-commits at lists.llvm.org
Fri Mar 4 08:03:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a94a33ca6cb9098ed665dac74f418615d35ddea
      https://github.com/llvm/llvm-project/commit/4a94a33ca6cb9098ed665dac74f418615d35ddea
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

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

  Log Message:
  -----------
  [MLIR][LLVM] Fold extractvalue to ignore insertvalue at distinct index

We can simplify an extractvalue of an insertvalue to extract out of the base of the insertvalue, if the insert and extract are at distinct and non-prefix'd indices

Reviewed By: ftynse

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




More information about the All-commits mailing list