[InstCombine] Disable generation of fshl/fshr for rotates
authorPaulo Matos <pmatos@igalia.com>
Thu, 1 Jun 2023 13:27:33 +0000 (15:27 +0200)
committerPaulo Matos <pmatos@igalia.com>
Thu, 1 Jun 2023 13:31:49 +0000 (15:31 +0200)
commit9485d983ac0c56d412c958b40f4e150a3c30ca7c
tree1425cdf6b3e8147a99921b8af1731460deb81fdc
parent223f9b096e36cd8e0dd414edd11ce12bf046213b
[InstCombine] Disable generation of fshl/fshr for rotates

Disable conversion of funnel shifts (fshl/fshr) into rotates
unless one of the operands is known to be a constant value.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D150670
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/fsh.ll