[Mlir-commits] [mlir] [MLIR][Tensor] Perform shape inference via in-place modification (NFC) (PR #111593)
Mehdi Amini
llvmlistbot at llvm.org
Wed Oct 9 00:41:49 PDT 2024
================
@@ -4332,21 +4332,25 @@ LogicalResult PackOp::canonicalize(PackOp packOp, PatternRewriter &rewriter) {
rewriter.create<tensor::CastOp>(loc, newSrcType, packOp.getSource());
}
Value dest = packOp.getDest();
- if (destShape != packOp.getDestType().getShape()) {
+ Type originalResultType = packOp.getDestType();
----------------
joker-eph wrote:
Oh this was commented on an outdated diff, it probably made sense then...
https://github.com/llvm/llvm-project/pull/111593
More information about the Mlir-commits
mailing list