aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineStripDebug.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2020-04-10 19:24:11 +0200
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2020-04-17 21:40:12 +0200
commit4e7e414ec943b264e5104c797b2f4a7af5151f71 (patch)
tree3a4cc60105d858abc129785a51d3dc992016ecc2 /llvm/lib/CodeGen/MachineStripDebug.cpp
parent897fdec586d9ad4c101738caa723bacdda15a769 (diff)
downloadllvm-4e7e414ec943b264e5104c797b2f4a7af5151f71.zip
llvm-4e7e414ec943b264e5104c797b2f4a7af5151f71.tar.gz
llvm-4e7e414ec943b264e5104c797b2f4a7af5151f71.tar.bz2
[Float2Int] Make iteration over Roots deterministic
Summary: Use a SmallSetVector instead of a SmallPtrSet when collecting and storing Roots. The iteration order for a SmallPtrSet is not deterministic, so in the past the order of items inserted in the WorkList inside walkBackwards has been non-deterministic. This patch intends to make the order of rewrites done in Float2Int deterministic by changing the container for the Roots set. The semantics result of the transformation should not be any different afaict. But at least naming of IR variables (when outputting the result as an ll file) should be more stable now. Reviewers: craig.topper, spatel, cameron.mcinally Reviewed By: spatel Subscribers: mgrang, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74534
Diffstat (limited to 'llvm/lib/CodeGen/MachineStripDebug.cpp')
0 files changed, 0 insertions, 0 deletions