Repository navigation
Conversation
gut0to
left a comment
There was a problem hiding this comment.
AI-assisted review (GPT-6): I traced the dominator traversal and CSE table lifetime in the current diff.
An unreachable conversion survives in the instruction arena after optimization. Scan block instructions when inferring flags and invalidate cached containers.
The direct lowering stores SCC as an i32 zero extension and tests it against zero. Reuse the i1 instruction for this exact round trip and invalidate older cached containers.
f3ee243 to
ce8c103
Compare
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
|
Stacked on #1544; only ce8c103 belongs here. The base commit of #1544 is already on main (#3266, 4a20b25), so after a rebase this PR is just the SCC fold in AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Stacked on #1544. Only
ce8c103belongs here. Part of #1269.Direct lowering writes the scalar condition code (SCC) by zero-extending an i1 predicate to i32. Reading SCC tests that word against zero. The comparison can return the original predicate.
What is in it
module.rs, cover the comparison and two counterexamples, and bump the direct translator cache version to 6. The merged gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 supplies CSE.Tested
ce8c103.TARGET_CFLAGS=/FIstring.h cargo xwin build --tests -p xcl --target x86_64-pc-windows-msvcsucceeded.wine xcl-67594ede252ac8b9.exe gpu::dxil::module::tests --nocaptureran 2 passed, 0 failed, 0 ignored, 0 skipped. Before the fold, the SCC test observed a new instruction instead of the original predicate and failed.wine xcl-67594ede252ac8b9.exe gpu::dxil::bitreader_tests --test-threads=4ran 3 passed, 0 failed, 0 ignored, 0 skipped.Regression run
Pending paired clean main/head retail-title runs.
Not tested
Native Windows GPU workspace suite, DXIL validation, retail shaders and performance.
AI use
T3 Code (Codex, gpt-6.2-astra) narrowed the original T3 Code (Antigravity, gemini-pro-orchestrator-neon) optimizer proposal, wrote the current patch and tests, and ran the Wine checks.