This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Add RISCVSubtarget field to RISCVExpandPseudo and RISCVPreRAExpandPseudo
ClosedPublic

Authored by asb on Jul 20 2023, 6:53 AM.

Details

Summary

To my eye, it's cleaner to just get hold of STI in runOnMachineFunction (as we do already for InstrInfo) and then accessing the field as needed rather than to have repeated lookup code in the member functions or helpers that need it.

Came up in D155517.

Diff Detail

Event Timeline

asb created this revision.Jul 20 2023, 6:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2023, 6:53 AM
asb requested review of this revision.Jul 20 2023, 6:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2023, 6:53 AM
asb updated this revision to Diff 542505.Jul 20 2023, 7:00 AM

Correcting missed context.

This revision is now accepted and ready to land.Jul 20 2023, 10:08 PM
This revision was landed with ongoing or failed builds.Jul 21 2023, 8:50 AM
This revision was automatically updated to reflect the committed changes.