[llvm] [HLSL][DirectX] handle updatecounter in dxil resource access pass (PR #223591)

Finn Plummer via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 08:55:29 PDT 2026


================

----------------
inbelic wrote:

I think we also need to consider the case when the update counters are in the phi node traversal. For instance: https://godbolt.org/z/7bPMYb7Yv.

So we will likely need to update `collectUsedHandles` and `getAccessIndicies` to account for the intrinsic as well as move this intrinsic to the common basic block just operating with a different index.

https://github.com/llvm/llvm-project/pull/223591


More information about the llvm-commits mailing list