[all-commits] [llvm/llvm-project] 239eff: [mlir][VectorOps] Redo the scalar loop emission in...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Sep 8 02:16:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 239eff502bca64f544f311e7d7a65fdec01cb9c4
      https://github.com/llvm/llvm-project/commit/239eff502bca64f544f311e7d7a65fdec01cb9c4
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-09-08 (Tue, 08 Sep 2020)

  Changed paths:
    M mlir/integration_test/Dialect/Vector/CPU/test-transfer-to-loops.mlir
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
    M mlir/test/Conversion/VectorToSCF/vector-to-loops.mlir

  Log Message:
  -----------
  [mlir][VectorOps] Redo the scalar loop emission in VectoToSCF to pad instead of clipping

This replaces the select chain for edge-padding with an scf.if that
performs the memory operation when the index is in bounds and uses the
pad value when it's not. For transfer_write the same mechanism is used,
skipping the store when the index is out of bounds.

The integration test has a bunch of cases of how I believe this should
work.

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




More information about the All-commits mailing list