If you have an mlir-opt tool and you’re still depending on preloadDialectInContext, you need to revisit your pipeline. This option used with mlir-opt is hiding issues with the pipeline, and indications of missing getDependentDialects().
If you will want to still preload dialects in the future, the only workaround will likely be to fork MlirOptMain.cpp in your own project.