Akimasa Watanuki 9532f3f5fa
[mlir][gpu] Harden verification constraints in transform.gpu.map_nested_forall_to_threads (#170282)
Harden `transform.gpu.map_nested_forall_to_threads` to reject
non-positive block/grid sizes and handle zero-iteration dimensions
gracefully, preventing assertion failures in `computeProduct`.

Fix `getConstantIntValues` to return `std::nullopt` if any element is
non-constant, avoiding invalid zero placeholders.

Fixes: https://github.com/llvm/llvm-project/issues/73562
2026-02-18 08:41:45 +09:00
..