[PATCH] D26726: [SimplifyCFG] Fix for non-determinism in codegen

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 11:33:29 PST 2016


mgrang added a comment.

This patch fixes the non-determinism caused due to iterating SmallSet which was uncovered due to the experimenatal "reverse iteration order " patch: https://reviews.llvm.org/D26718

The following unit test fails because of the undefined order of iteration.
LLVM :: Transforms/SimplifyCFG/bug-25299.ll

This is fixed here by changing SmallSet to SmallSetVector so that the iteration order is defined.


Repository:
  rL LLVM

https://reviews.llvm.org/D26726





More information about the llvm-commits mailing list