https://github.com/akroviakov approved this pull request. So the permutation of the transpose op maps shape positions, but because order values are positions themselves, we use the inverse to re-map order values. https://github.com/llvm/llvm-project/pull/205212