PR #11567: Allowing permutations of terms in //xla/service/gpu/fusions:transpose_mlir_test
PR #11567: Allowing permutations of terms in //xla/service/gpu/fusions:transpose_mlir_test

Imported from GitHub PR https://github.com/openxla/xla/pull/11567

This expands the pattern matcher used by  //xla/service/gpu/fusions:transpose_mlir_test, so that it reports a match even if some terms are permuted. (Without the change, I see two subtests of this test fail on ROCm. With the change, the test passes there.)
Copybara import of the project:

--
72cfce5bc6c642475ffb79ce2c3c65ae86f9262a by Eugene Kuznetsov <eugene.kuznetsov@amd.com>:

Allowing permutations of terms in //xla/service/gpu/fusions:transpose_mlir_test

Merging this change closes #11567

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/11567 from ROCm:pattern_match_permutations 72cfce5bc6c642475ffb79ce2c3c65ae86f9262a
