This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Don't emit LUI/ADDI MachineSDNodes from getAddr
ClosedPublic

Authored by craig.topper on Jun 13 2022, 9:40 PM.

Details

Summary

Instead add RISCVISD opcodes that will be selected to LUI/ADDI
during isel.

I'm looking into maybe moving doPeepholeLoadStoreADDI into isel.
Having the ADDI as a RISCVISD node will make it visible to isel.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 13 2022, 9:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 9:40 PM
craig.topper requested review of this revision.Jun 13 2022, 9:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 9:40 PM
reames accepted this revision.Jun 15 2022, 1:37 PM

LGTM - mostly I'm deferring to you on the direction. I have no objection here, and the code looks reasonable. I just don't have sufficient context to have any confidence this is or isn't the right approach.

This revision is now accepted and ready to land.Jun 15 2022, 1:37 PM
This revision was landed with ongoing or failed builds.Jun 16 2022, 3:04 PM
This revision was automatically updated to reflect the committed changes.