[all-commits] [llvm/llvm-project] 0e72d0: [mlir][vector] Constant fold sub-vector extraction

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Fri Nov 25 10:40:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e72d00d1942a6aebf67efef47f0fda2437ce7ae
      https://github.com/llvm/llvm-project/commit/0e72d00d1942a6aebf67efef47f0fda2437ce7ae
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2022-11-25 (Fri, 25 Nov 2022)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  -----------
  [mlir][vector] Constant fold sub-vector extraction

This generalizes the existing fold for `ExtractOp(non-splat constant)`
to work with vector results. The vector case is handled by extracting
the subrange of attribute array.

My main use it to clean up code generated by the Wide Integer Emulation
pass.

Reviewed By: antiagainst

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




More information about the All-commits mailing list