[all-commits] [llvm/llvm-project] 2a4207: [DirectX] Don't limit visitGetElementPtrInst to gl...
Farzon Lotfi via All-commits
all-commits at lists.llvm.org
Fri Jun 20 12:23:41 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a4207e7322c90176814b17870051f9692f9994f
https://github.com/llvm/llvm-project/commit/2a4207e7322c90176814b17870051f9692f9994f
Author: Farzon Lotfi <farzonlotfi at microsoft.com>
Date: 2025-06-20 (Fri, 20 Jun 2025)
Changed paths:
M llvm/lib/Target/DirectX/DXILDataScalarization.cpp
M llvm/test/CodeGen/DirectX/scalarize-alloca.ll
Log Message:
-----------
[DirectX] Don't limit visitGetElementPtrInst to global ptrs (#144959)
fixes #144608
- there is a getPointerOperandIndex function so we don't need to iterate
the operands trying to find the pointer. This resulted in a small
cleanup to visitStoreInst and visitLoadInst.
- The meat of this change was in visitGetElementPtrInst to account for
allocas and not bail when we don't find a global.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list