Avoids multiple cast & getElementType calls. Just a local change for ShapedType
containers but reduces one run from 24.7 to 24.04s.
Resultant code generated change:
https://gist.github.com/jpienaar/7ffd2e9b0737134ba2ea2729b91c9572
Paths
| Differential D113621
[mlir][ods] Use lambda in element type check pred rather than repeated casts ClosedPublic Authored by jpienaar on Nov 10 2021, 3:29 PM.
Details Summary Avoids multiple cast & getElementType calls. Just a local change for ShapedType Resultant code generated change:
Diff Detail
Event Timelinerriddle added inline comments. This revision is now accepted and ready to land.Nov 10 2021, 3:32 PM Closed by commit rG32b327e4ed8c: [mlir][ods] Use lambda in element type check pred rather than repeated casts (authored by jpienaar). · Explain WhyNov 10 2021, 4:27 PM This revision was automatically updated to reflect the committed changes. jpienaar marked 2 inline comments as done.
Revision Contents
Diff 386336 mlir/include/mlir/IR/OpBase.td
mlir/test/mlir-tblgen/predicate.td
|
Was this used by anything else?