[PATCH] D125076: [SelectionDAG] Clear promoted bits before UREM on shift amount in PromoteIntRes_FunnelShift.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 6 09:18:17 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:1280
SDValue Lo = GetPromotedInteger(N->getOperand(1));
- SDValue Amt = GetPromotedInteger(N->getOperand(2));
+ SDValue Amt = ZExtPromotedInteger(N->getOperand(2));
----------------
craig.topper wrote:
> Like other shifts/rotates, the shift amount for funnel shifts isn't required to match the data type is it? Should this be checking that the argument needs to be promoted first?
Yes, the shift amount type works the same way as basic shifts/rotations
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125076/new/
https://reviews.llvm.org/D125076
More information about the llvm-commits
mailing list