Shaders: reuse lane guards for unchanged EXEC within a block

An instruction guard depends on its EXEC and the reachability of its block. Keep the most recent result, including an elided guard, rather than repeating the same BDD queries for consecutive vector instructions. Scalar instructions still bypass guard selection.

Cover EXEC changes across and within a branch with a synthetic shader. Add a CPU-only guard_runs benchmark for unmasked, short, and long masked runs.

(cherry picked from commit 81b81df351437c50f4321286c725de51664c7b1b)
This commit is contained in:
Devin authored and local committed 2026-11-25 01:02:58 -06:00
1 parent cd82c63c62
commit f084578994
3 files changed
+96 -2

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ host = ["dep:windows"]
# Debugging switches (emitted-module dumps and the like).
diagnostics = []
[[bench]]
name = "guard_runs"
harness = false
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = ["Win32_System_LibraryLoader"] }
windows = { workspace = true, optional = true, features = [