[Mlir-commits] [mlir] [MLIR] Erase location of folded constants (PR #75415)
Mehdi Amini
llvmlistbot at llvm.org
Tue Dec 19 03:07:38 PST 2023
================
@@ -318,6 +327,7 @@ OperationFolder::tryGetOrCreateConstant(ConstantMap &uniquedConstants,
notifyRemoval(constOp);
rewriter.eraseOp(constOp);
referencedDialects[existingOp].push_back(dialect);
+ existingOp->setLoc(erasedFoldedLocation);
----------------
joker-eph wrote:
Same here.
https://github.com/llvm/llvm-project/pull/75415
More information about the Mlir-commits
mailing list