[llvm] [DirectX] NonUniformResourceIndex lowering (PR #159608)
Damyan Pepper via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 19 10:04:50 PDT 2025
================
@@ -250,13 +293,12 @@ class OpLowerer {
IndexOp = IRB.CreateAdd(IndexOp,
ConstantInt::get(Int32Ty, Binding.LowerBound));
- // FIXME: The last argument is a NonUniform flag which needs to be set
- // based on resource analysis.
- // https://github.com/llvm/llvm-project/issues/155701
+ bool HasNonUniformIndex =
+ (Binding.Size == 1) ? false : hasNonUniformIndex(IndexOp);
----------------
damyanp wrote:
Apologies that I can't read the tests well enough to answer this myself, but do we have coverage for the `Binding.Size == 1` case?
https://github.com/llvm/llvm-project/pull/159608
More information about the llvm-commits
mailing list