[all-commits] [llvm/llvm-project] dd887d: [PhiValues] Use SetVector to avoid non-determinism

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Oct 23 11:14:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dd887d97ce38bc60f3680d2481fc2d96ce45c4f5
      https://github.com/llvm/llvm-project/commit/dd887d97ce38bc60f3680d2481fc2d96ce45c4f5
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/PhiValues.h
    M llvm/lib/Analysis/PhiValues.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list