This is an archive of the discontinued LLVM Phabricator instance.

WebAssembly: Don't store MachineFunction in MachineFunctionInfo
ClosedPublic

Authored by arsenm on Jun 18 2020, 7:35 AM.

Details

Summary

Soon it will be disallowed to depend on MachineFunction state in the
constructor. This was only being used to get the MachineRegisterInfo
for an assert, which I'm not sure is necessarily worth it. I would
think any missing defs would be caught by the verifier later instead.

Diff Detail

Event Timeline

arsenm created this revision.Jun 18 2020, 7:35 AM
tlively accepted this revision.Jun 18 2020, 9:27 AM

Thanks, @arsenm, looks fine to me. Do you have more context on why this change is necessary, though?

This revision is now accepted and ready to land.Jun 18 2020, 9:27 AM

Thanks, @arsenm, looks fine to me. Do you have more context on why this change is necessary, though?

See D80249