[llvm] [AMDGPU] Support i8/i16 GEP indices when promoting allocas to vectors (PR #175489)
Harrison Hao via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 06:55:38 PST 2026
================
@@ -568,15 +572,31 @@ computeGEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,
const auto &VarOffset = VarOffsets.front();
APInt OffsetQuot;
APInt::sdivrem(VarOffset.second, VecElemSize, OffsetQuot, Rem);
- if (Rem != 0 || OffsetQuot.isZero())
+ uint64_t DivForVarIndex = 0;
----------------
harrisonGPU wrote:
Thanks! I have updated.
https://github.com/llvm/llvm-project/pull/175489
More information about the llvm-commits
mailing list