[AMDGPU] should expand ROTL i16 to shifts.
authoralex-t <alexander.timofeev@amd.com>
Wed, 16 Sep 2020 16:54:29 +0000 (19:54 +0300)
committeralex-t <alexander.timofeev@amd.com>
Thu, 17 Sep 2020 14:34:33 +0000 (17:34 +0300)
commit0efbb70b719e990fe153373eda5a604344ae36bb
treeaaafb22339903a2dff3f51ed4dd41951bb7a2921
parent9339f68f21facc34fb0901045d571c818e1fa84a
[AMDGPU] should expand ROTL i16 to shifts.

Instruction combining pass turns library rotl implementation to llvm.fshl.i16.
In the selection dag the intrinsic is turned to ISD::ROTL node that cannot be selected.
Need to expand it to shifts again.

Reviewed By: rampitec, arsenm

Differential Revision: https://reviews.llvm.org/D87618
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/rotl.ll
llvm/test/CodeGen/AMDGPU/rotr.ll