https://github.com/mtrofin approved this pull request. lgtm, can you change the subject to say this is in the inline advisor, otherwise it reads like *all* TensorSpecs do that. https://github.com/llvm/llvm-project/pull/141161