[all-commits] [llvm/llvm-project] dc26c0: [mlir][vector] Add insertOp src shape check for Bu...

Stanley Winata via All-commits all-commits at lists.llvm.org
Thu Nov 10 16:42:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc26c030661a763bdc50c759576fc3c34f3c496a
      https://github.com/llvm/llvm-project/commit/dc26c030661a763bdc50c759576fc3c34f3c496a
  Author: stanley-nod <stanley at nod-labs.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/vector-transforms.mlir

  Log Message:
  -----------
  [mlir][vector] Add insertOp src shape check for BubbleUpBitCastForStridedSliceInsert

Not all shape of vectors can be casted into other types, we add a check
to not fold insertOp into bitcast if the shape does not support it.

Examples of unsupported shape castings are f16 vectors to f32 if the
shape is not multiple of 2s. or int8 to int32 if shapes are not multiple
of 4.

Reviewed By: antiagainst, ThomasRaoux

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




More information about the All-commits mailing list