[mlir][arith] Add narrowing patterns for index casts
These rely on the `ValueBounds` interace and its utility function to compute constant bounds. This allows us to optimize `linalg.index` values cast to integer types. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D149538
Loading
Please sign in to comment