[Mlir-commits] [mlir] [MLIR][Affine] NFC. Fix/improve debug messages for affine analysis/fusion utils (PR #127164)

Arnab Dutta llvmlistbot at llvm.org
Thu Feb 13 23:53:49 PST 2025


================
@@ -1804,29 +1804,28 @@ void mlir::affine::getComputationSliceState(
   unsigned pos = isBackwardSlice ? numSrcLoopIVs + loopDepth : loopDepth;
   unsigned num =
       isBackwardSlice ? numDstLoopIVs - loopDepth : numSrcLoopIVs - loopDepth;
-  dependenceConstraints->projectOut(pos, num);
+  FlatAffineValueConstraints sliceCst(dependenceConstraints);
----------------
arnab-polymage wrote:

Why not pass the argument by value then? Anyways you're creating a separate copy of `dependenceConstraints` named `sliceCst` inside the function body.

https://github.com/llvm/llvm-project/pull/127164


More information about the Mlir-commits mailing list