This is an archive of the discontinued LLVM Phabricator instance.

X86: Do not use ValueMap for PreallocatedIds
ClosedPublic

Authored by arsenm on Apr 18 2022, 9:12 AM.

Details

Summary

ValueMap should only be necessary if the IR values can be
replaced. This is only used during codegen, when it's illegal to
change the underlying IR. This allows using the default copy
constructor for X86MachineFunctionInfo.

I'm not happy about targets keeping state here that's only used in one
specific pass, but we don't have a better place to put it right now.

Diff Detail

Event Timeline

arsenm created this revision.Apr 18 2022, 9:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 9:12 AM
arsenm requested review of this revision.Apr 18 2022, 9:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 9:12 AM
Herald added a subscriber: wdng. · View Herald Transcript
aeubanks accepted this revision.Apr 18 2022, 9:53 AM
This revision is now accepted and ready to land.Apr 18 2022, 9:53 AM