Changes from commit 1db137b1859692ae33228c530d4df9f2431b2151
added iteration over hash map that can result in non-deterministic
order. Fix that by using a SmallMapVector to preserve the order.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM! Good catch on this one, I thought I'd removed all the DenseMap iteration errors but I guess this one slipped by. There's a small suggestion in the inline comments, but feel free to ignore it - it's more of a preference than a rule. Shouldn't need a test either since this patch is trivial and solves a determinism issue, so this should be fine as-is.
llvm/lib/CodeGen/RegAllocFast.cpp | ||
---|---|---|
445–447 | Small suggestion - some prefer the above form for brevity, though personally I'm fine with either. |
llvm/lib/CodeGen/RegAllocFast.cpp | ||
---|---|---|
435 | Maybe just switch this to a SmallMapVector? |
Maybe just switch this to a SmallMapVector?