================
@@ -66,6 +66,17 @@ struct RemoveRedundantBranches : public
OpRewritePattern<BrOp> {
}
};
+struct RemoveUnusedConstants : public OpRewritePattern<ConstantOp> {
----------------
Lancern wrote:
It's a bit strange to have to define a pattern like this manually to DCE a
constant op. MLIR should be able to eliminate such operations automatically
during canonicalization.
https://github.com/llvm/llvm-project/pull/175675
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits