[PATCH] D157603: [RISCV] Truncate constants to EltSize when combine store of BUILD_VECTOR
Michael Maitland via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 11 10:20:03 PDT 2023
michaelmaitland added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:13486
continue;
- NewC.insertBits(Val.getConstantOperandAPInt(i),
- i * Val.getScalarValueSizeInBits());
+ NewC.insertBits(Val.getConstantOperandAPInt(i).trunc(EltSize),
+ i * EltSize);
----------------
What happens if we're truncating a constant that is larger than EltSize?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157603/new/
https://reviews.llvm.org/D157603
More information about the llvm-commits
mailing list