[PATCH] D50091: [SelectionDAG] try harder to convert funnel shift to rotate
Krzysztof Parzyszek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 2 15:26:35 PDT 2018
kparzysz added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:5714
+ RotateOpcode = IsFSHL ? ISD::ROTR : ISD::ROTL;
+ if (TLI.isOperationLegal(RotateOpcode, VT)) {
+ // Negate the shift amount because it is safe to ignore the high bits.
----------------
Can this be legal-or-custom (and same at line 5707)?
https://reviews.llvm.org/D50091
More information about the llvm-commits
mailing list