This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add pattern for v_alignbit_b32 with immediate
ClosedPublic

Authored by rampitec on Jun 27 2017, 5:15 PM.

Details

Summary

If immediate in shift is less than 32 we can use alignbit too.

Diff is based on D34723.

I'm also removing alignbit pattern for the left shift as it is
covered by the better optimization in D34723.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Jun 27 2017, 5:15 PM
rampitec edited the summary of this revision. (Show Details)Jun 27 2017, 6:05 PM
arsenm accepted this revision.Jun 27 2017, 7:08 PM

LGTM

This revision is now accepted and ready to land.Jun 27 2017, 7:08 PM
rampitec updated this revision to Diff 104342.Jun 27 2017, 7:50 PM

Rebased to master.

This revision was automatically updated to reflect the committed changes.