[mlir][tosa] Fix tosa::Select to linalg::generic indexingMaps bug
authorAmosLewis <Amos_Lewsi@foxmail.com>
Mon, 10 Oct 2022 22:47:50 +0000 (15:47 -0700)
committerJacques Pienaar <jpienaar@google.com>
Mon, 10 Oct 2022 22:47:50 +0000 (15:47 -0700)
commitd325d2b407fcb7f37230b86fb291ef777497137d
treed2f0e231a0e6596323a56d2f7251bf40945945e7
parent4a95a64e4ad83d742d25bb291e16a62b601e429a
[mlir][tosa] Fix tosa::Select to linalg::generic indexingMaps bug

The tosa to linalg generic ops indexingMaps rank use is wrong.
 Find this bug in gpt2 pytorch model lowering to tosa.
 issue link is here https://github.com/llvm/llvm-project/issues/58154

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D135343
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir