[PATCH] D99541: GlobalISel: Check for powers of 2 for inverse funnel shift lowering
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 30 01:44:37 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:5354
+ if (LI.getAction({RevOpcode, {Ty, ShTy}}).Action == Lower) {
+ // This only works for powers of 2, fallback to shifts if it fails.
+ LegalizerHelper::LegalizeResult Result = lowerFunnelShiftAsShifts(MI);
----------------
No, it's the "WithInverse" lowering that might fail.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99541/new/
https://reviews.llvm.org/D99541
More information about the llvm-commits
mailing list