[llvm] [RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (PR #82506)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 22:38:29 PST 2024
================
@@ -3261,14 +3262,14 @@ static std::optional<VIDSequence> isSimpleVIDSequence(SDValue Op) {
if (!isa<ConstantSDNode>(Op.getOperand(Idx)))
return std::nullopt;
Val = Op.getConstantOperandVal(Idx) &
- maskTrailingOnes<uint64_t>(EltSizeInBits);
+ maskTrailingOnes<uint64_t>(Op.getScalarValueSizeInBits());
----------------
lukel97 wrote:
I've opened https://github.com/llvm/llvm-project/pull/82590, hopefully it removes some duplication
https://github.com/llvm/llvm-project/pull/82506
More information about the llvm-commits
mailing list