This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add ISD::FSHR -> ALIGNBIT support
ClosedPublic

Authored by RKSimon on Mar 12 2020, 8:06 AM.

Details

Summary

This patch allows ISD::FSHR(i32) patterns to lower to ALIGNBIT instructions, I think I've gotten the operand order correct but a target expert needs to double check.

This improves test coverage of ISD::FSHR matching - x86 has both FSHL/FSHR instructions and we prefer FSHL by default.

Diff Detail

Event Timeline

RKSimon created this revision.Mar 12 2020, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2020, 8:06 AM
rampitec accepted this revision.Mar 12 2020, 11:04 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 12 2020, 11:04 AM
This revision was automatically updated to reflect the committed changes.