This is an archive of the discontinued LLVM Phabricator instance.

[RISCVGatherScatterLowering] Support shift in non-recursive matching
ClosedPublic

Authored by reames on May 12 2023, 11:46 AM.

Details

Summary

We can apply the same logic as for multiply since a left shift is just a multiply by a power of two. Note that since shl is not commutative, we do need to be careful to match sure that the splat is the RHS of the instruction.

Diff Detail

Event Timeline

reames created this revision.May 12 2023, 11:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 11:46 AM
reames requested review of this revision.May 12 2023, 11:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 11:46 AM
reames updated this revision to Diff 521746.May 12 2023, 11:52 AM

Minor style improvement.

This revision is now accepted and ready to land.May 12 2023, 12:02 PM
This revision was landed with ongoing or failed builds.May 12 2023, 12:22 PM
This revision was automatically updated to reflect the committed changes.