Files
Mehdi Amini 7f703cabf7 [MLIR][AsmParser] Fix non-deterministic SSA value completion order under LLVM_REVERSE_ITERATION (#192150)
codeCompleteSSAUse() iterated IsolatedSSANameScope::values, a StringMap,
whose hash-based iteration order reverses under LLVM_REVERSE_ITERATION.
This caused the SSA value completion items in the LSP server to appear
in a non-deterministic order, breaking the CHECK-NEXT assertions in
mlir-lsp-server/completion.test.

Sort SSA value names alphabetically before emitting completion items.

Assisted-by: Claude Code

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 15:20:38 +02:00
..