[MLIR][Tensor] Use the existing helper function `applyPermutationToVector` (NFC)
authorLorenzo Chelini <l.chelini@icloud.com>
Tue, 22 Nov 2022 09:19:34 +0000 (10:19 +0100)
committerLorenzo Chelini <l.chelini@icloud.com>
Tue, 22 Nov 2022 10:34:44 +0000 (11:34 +0100)
commit85e38e5292a3bea538fbdce04c2301c8bf3d7408
tree56e708a5e35e78e9a5faa5e03cd09217413061af
parent0d9761d50e738163c87d84a4328bc0a827ac8f34
[MLIR][Tensor] Use the existing helper function `applyPermutationToVector` (NFC)

Avoid duplicate code by using an existing helper function to interchange
a vector based on a permutation. Address comments emerged after landing
D138119.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D138480
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp