llvm-project
2a4207e7 - [DirectX] Don't limit visitGetElementPtrInst to global ptrs (#144959)

Commit
90 days ago
[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.
Author
Parents
Loading