This commit folds a tensor.cast op into a tensor.collapse_shape op
when following two conditions meet:
- the tensor.collapse_shape op consumes result of the tensor.cast op.
- tensor.cast op casts to a more dynamic version of the source tensor.
This is added as a canonicalization pattern in tensor.collapse_shape op.
Signed-Off-By: Gaurav Shukla <gaurav@nod-labs.com>