This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Reduce duplicated code in RISCVMergeBaseOffsetOpt::detectFoldable. NFC
ClosedPublic

Authored by craig.topper on Dec 19 2022, 1:09 PM.

Details

Summary

The LUI and AUIPC share quite a few similarities. This refactors the code
to share what we can.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 19 2022, 1:09 PM
craig.topper requested review of this revision.Dec 19 2022, 1:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 1:09 PM
asb accepted this revision.Dec 20 2022, 2:04 AM

LGTM.

This revision is now accepted and ready to land.Dec 20 2022, 2:04 AM
This revision was landed with ongoing or failed builds.Dec 20 2022, 7:17 AM
This revision was automatically updated to reflect the committed changes.