[mlir][ods] Use lambda in element type check pred rather than repeated casts
Avoids multiple cast & getElementType calls. Just a local change for ShapedType containers but reduces one model case from 24.7 to 24.04s. Resultant code generated change: https://gist.github.com/jpienaar/7ffd2e9b0737134ba2ea2729b91c9572 Differential Revision: https://reviews.llvm.org/D113621
Loading
Please register or sign in to comment