This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Refactor performSUBCombine to prepare for D132000.
ClosedPublic

Authored by craig.topper on Aug 16 2022, 4:38 PM.

Details

Summary

This refactors the code into a separate function with early returns.
D132000 adds an additional operation to the if/else that selects
NewLHS, but can otherwise share the rest of the code.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 16 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 4:38 PM
craig.topper requested review of this revision.Aug 16 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 4:38 PM
reames accepted this revision.Aug 17 2022, 8:00 AM

LGTM

This revision is now accepted and ready to land.Aug 17 2022, 8:00 AM
This revision was landed with ongoing or failed builds.Aug 17 2022, 9:50 AM
This revision was automatically updated to reflect the committed changes.