Details
- Reviewers
aeubanks nikic - Commits
- rG6b31e63bc31b: [LegacyPM] Remove RewriteSymbolsLegacyPass
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Is there any way to get this functionality without the LegacyPassManager?
Halide still relies on the LegacyPassManager for certain codegen paths, because (AFAIK) there is still no complete API to replace it with the newer PassManager. Our team would very much appreciate any pointers to how to modernize our usage in advance of Legacy API removal.
@srj Could you please share how you're currently using the pass? It's possible we just have to revert this, but hard to say without code.
See the function emit_file here: https://github.com/halide/Halide/blob/main/src/LLVM_Output.cpp#L341
Thanks! You could run just that one pass separately with the NewPM, but that probably doesn't make a lot of sense.
I think we should revert this change for now and keep the pass until we have NewPM support for the codegen pipeline. @aeubanks What do you think?
Halide contributor Andrew Adams commented elsewhere: "It's an old commit. Hard to say if anyone is using the feature that this PR removes." I suspect that we can live without it until the entire API migration is done. (Is there an ETA for that? We've been hearing for years that it will happen...)
we could revert, but as you've alluded to I doubt that halide users are actually using this pass, for example I removed it from LLVM in https://reviews.llvm.org/D99707 without complaint
I'd remove the halide use and see if anybody complains, and if somebody does we can revert this patch
you could also add the corresponding new PM pass to the optimization pipeline that halide runs