Repository navigation
fix(rocke): emit indexer scalar-body zero const before its loop - #14073
Conversation
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
6b4ab45 to
4229eb3
Compare
scf_for appends the loop op immediately, so the i32 zero created after it was defined after the loop that uses it. The Python lowerer folds constants to immediates, but the C++ parser enforces define-before-use and rejected the serialized IR.
4229eb3 to
916306e
Compare
|
Automated review: Model - qwen3.6:35b-a3b-coding-mtp-q4_K_M, effort: max PR #14073 — emit indexer scalar-body zero const before its loop (arai713, AICK-2670) — 🟢 First-round: no closer look needed — verified fix for #14630
Utility: 🟢 Positive — one-line move restores C++/Python parity for six indexer kernels; LLVM unchanged. Legend: 🔴 blocking · 🟠 should-fix · 🟡 minor nit · 🟢 info/good · ⚪ retracted First-round review: a local qwen3.6 model made the independent first pass. The orchestrator (Claude Opus 5.5) verified it. On a clean merge with today's develop, and on develop alone, each with its own freshly built native engine, it ran the C++/Python parity test at llvm20/22/23/24 (as a whole and case by case), |
TheRock Submodule Bump ActivityNewest first
|
JIRA ID : AICK-2670
Motivation
The scalar lightning-indexer cases do not lower through the C++ engine, so the Python and C++ backends disagree for that body. test_attention_ir_cpp_parity.py::test_attention_ir_cpp_python_byte_identity fails when rocke_engine is built, with "rocke_engine.lower_serialized_ir: parse failed (status 1): operand '%c15' used before definition in op 'arith.select'". All six scalar-body harness cases (deepseek_hi64, glm_hi32, small on gfx942 and gfx950) fail at llvm20, llvm22 and llvm23. The four mfma_* cases are unaffected. CI missed it because the test skips when rocke_engine is not importable. This PR restores byte-identity for the scalar body.
Technical Details
Test Plan
Test Result
Submission Checklist