This allows simplifying some more complicated shape expressions
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
277–279 | I don't think you really need these comments. | |
mlir/lib/Dialect/Shape/IR/ShapeCanonicalization.td | ||
16 | Do you actually need the AssumingAll predicate? I thought this would only match on AssumingAll with a single input. Do multiple inputs still get matched and stored as a list? | |
36 | Should this be $ty? | |
mlir/test/Dialect/Shape/canonicalize.mlir | ||
871 | nit: new line after this line. |
mlir/test/Dialect/Shape/canonicalize.mlir | ||
---|---|---|
430–431 | This needs to be updated to if more than one witness is not statically passing |
mlir/lib/Dialect/Shape/IR/ShapeCanonicalization.td | ||
---|---|---|
36 | This only works if the consumer can accept the new type of $c. This would break for example if the consumer is a select operation. %s0 = shape.const_shape [2] : tensor<?xindex> %s1 = shape.const_shape [1] : tensor<1xindex> %c = tensor_cast %s1 : tensor<1xindex> to tensor<?xindex> %r = select %p %s0 %c : tensor<?xindex> |
I don't think you really need these comments.