mehdi_amini added a comment. Right now I'm not yet understanding all of the algorithm (haven't spent enough time on it), but I'm mostly concerned by the runtime cost of this normalization.
================ Comment at: mlir/lib/Transforms/Utils/CommutativityUtils.cpp:371 + // assigned a sorted position yet. + SmallVector<OperandBFS *, 2> bfsOfOperands; + ---------------- ================ Comment at: mlir/lib/Transforms/Utils/CommutativityUtils.cpp:377-379 + OperandBFS *bfsOfOperand = new OperandBFS(); + bfsOfOperand->pushAncestor(operand.getDefiningOp()); + bfsOfOperands.push_back(bfsOfOperand); ---------------- Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124750/new/ https://reviews.llvm.org/D124750 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits