This is an analysis pass so it does not modify the MachineFunction.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks good. I've got the feeling that we could do something at the analysis level to make sure we never return true for an analysis.
I've got the feeling that we could do something at the analysis level to make sure we never return true for an analysis.
Maybe, but I thought the legacy pass manager generally did not distinguish analysis passes from non-analysis passes.
I think we could also use hashing on MachineFunctions to check for MachineFunctionPasses that modify the MF and then return false.
maybe we can use PassInfo::isAnalysis()?
I think we could also use hashing on MachineFunctions to check for MachineFunctionPasses that modify the MF and then return false.
I vaguely remember a similar idea was also proposed for the new PassManager, couldn't find it on the mailing list (archive) though