This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Teach instruction selection to elide sext.w in some cases.
ClosedPublic

Authored by craig.topper on Aug 30 2021, 8:05 PM.

Details

Summary

If a sext_inreg is up for isel, and all its users are W instructions,
we can skip emitting the sext_inreg. This helpful if the producing
instruction can't become a W instruction.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 30 2021, 8:05 PM
craig.topper requested review of this revision.Aug 30 2021, 8:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2021, 8:05 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
asb accepted this revision.Sep 2 2021, 6:24 AM

LGTM!

This revision is now accepted and ready to land.Sep 2 2021, 6:24 AM
This revision was landed with ongoing or failed builds.Sep 2 2021, 7:54 AM
This revision was automatically updated to reflect the committed changes.