llvm-project
7f703cab - [MLIR][AsmParser] Fix non-deterministic SSA value completion order under LLVM_REVERSE_ITERATION (#192150)

Commit
38 days ago
[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>
Author
Parents
Loading