[PhiValues] Use SetVector to avoid non-determinism
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 22 Oct 2020 21:49:08 +0000 (23:49 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Oct 2020 18:14:02 +0000 (20:14 +0200)
commitdd887d97ce38bc60f3680d2481fc2d96ce45c4f5
tree97cef262d8ef9ba63691882613f2cf889043f1a2
parent1253c40727d2fae9398fc63c86de75db88fb5124
[PhiValues] Use SetVector to avoid non-determinism

I'm not sure whether this can cause actual non-determinism in the
compiler output, but at least it causes non-determinism in the
statistics collected by BasicAA.

Use SetVector to have a predictable iteration order.
llvm/include/llvm/Analysis/PhiValues.h
llvm/lib/Analysis/PhiValues.cpp