[llvm] [AMDGPU] Treat GEP offsets as signed in AMDGPUPromoteAlloca (PR #157682)
Fabian Ritter via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 07:24:26 PDT 2025
================
@@ -465,7 +468,7 @@ static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,
if (!OffsetQuot.isOne()) {
ConstantInt *ConstMul =
- ConstantInt::get(OffsetType, OffsetQuot.getZExtValue());
+ ConstantInt::get(OffsetType, OffsetQuot.getSExtValue());
----------------
ritter-x2a wrote:
See #157864
https://github.com/llvm/llvm-project/pull/157682
More information about the llvm-commits
mailing list