[PATCH] D120123: [LegacyPassManager] Move structural hashing into Pass classes. NFC.

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 10:31:00 PST 2022


serge-sans-paille added a comment.

> See D120124 <https://reviews.llvm.org/D120124>. This allows MachineFunctionPass to hash the MachineFunction, which it gets from the MachineModuleInfo analysis pass, which is easy to do inside MachineFunction but would be hard to do in LegacyPassManager. (Unless I have completely misunderstood and there is an easy way to get the MachineFunction for a Function without using MachineModuleInfo?)

Thanks for the pointer, I'll check that :-)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120123/new/

https://reviews.llvm.org/D120123



More information about the llvm-commits mailing list