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

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 04:58:18 PST 2022


foad added a comment.

In D120123#3342842 <https://reviews.llvm.org/D120123#3342842>, @serge-sans-paille wrote:

> MMMh, I don't understand how this helps for `MachineFunctionPass` etc?

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?)


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