[PATCH] D76500: GlobalISel: Lower funnel shifts
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 26 02:39:35 PDT 2020
RKSimon added inline comments.
Herald added a project: LLVM.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4190
+
+ Register InvShAmt = MIRBuilder.buildSub(ShTy, BitWidthC, ShAmt).getReg(0);
+ auto ShX = MIRBuilder.buildShl(Ty, X, IsFSHL ? ShAmt : InvShAmt);
----------------
@arsenm In D80489 for SelectionDAG we changed the pow2 InvShAmt case to ~ShAmt & Mask to help targets that can only use the bottom bits of the shift amount.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76500/new/
https://reviews.llvm.org/D76500
More information about the llvm-commits
mailing list