Page MenuHomePhabricator

[mlir] Fold trivial subtensor / subtensor_insert ops.
ClosedPublic

Authored by nicolasvasilache on Feb 18 2021, 1:04 PM.

Details

Summary

Static subtensor / subtensor_insert of the same size as the source / destination tensor and root @[0..0] with strides [1..1] are folded away.

Diff Detail

Unit TestsFailed

TimeTest
80 msx64 debian > LLVM.tools/llvm-cov::binary-formats.c
Script: -- : 'RUN: at line 6'; /mnt/disks/ssd0/agent/llvm-project/build/bin/llvm-profdata merge /mnt/disks/ssd0/agent/llvm-project/llvm/test/tools/llvm-cov/Inputs/binary-formats.proftext -o /mnt/disks/ssd0/agent/llvm-project/build/test/tools/llvm-cov/Output/binary-formats.c.tmp.profdata
90 msx64 debian > MLIR.Dialect/Linalg::bufferize.mlir
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/bin/mlir-opt -linalg-bufferize -canonicalize -cse -split-input-file /mnt/disks/ssd0/agent/llvm-project/mlir/test/Dialect/Linalg/bufferize.mlir | /mnt/disks/ssd0/agent/llvm-project/build/bin/FileCheck /mnt/disks/ssd0/agent/llvm-project/mlir/test/Dialect/Linalg/bufferize.mlir
190 msx64 windows > LLVM.tools/llvm-cov::binary-formats.c
Script: -- : 'RUN: at line 6'; c:\ws\w64\llvm-project\premerge-checks\build\bin\llvm-profdata.exe merge C:\ws\w64\llvm-project\premerge-checks\llvm\test\tools\llvm-cov/Inputs/binary-formats.proftext -o C:\ws\w64\llvm-project\premerge-checks\build\test\tools\llvm-cov\Output\binary-formats.c.tmp.profdata
70 msx64 windows > MLIR.Dialect/Linalg::bufferize.mlir
Script: -- : 'RUN: at line 1'; c:\ws\w64\llvm-project\premerge-checks\build\bin\mlir-opt.exe -linalg-bufferize -canonicalize -cse -split-input-file C:\ws\w64\llvm-project\premerge-checks\mlir\test\Dialect\Linalg\bufferize.mlir | c:\ws\w64\llvm-project\premerge-checks\build\bin\filecheck.exe C:\ws\w64\llvm-project\premerge-checks\mlir\test\Dialect\Linalg\bufferize.mlir

Event Timeline

nicolasvasilache requested review of this revision.Feb 18 2021, 1:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 1:04 PM
ThomasRaoux accepted this revision.Feb 18 2021, 1:32 PM
This revision is now accepted and ready to land.Feb 18 2021, 1:32 PM
This revision was landed with ongoing or failed builds.Feb 18 2021, 1:42 PM
This revision was automatically updated to reflect the committed changes.