commit | f9fd04aca15fd00889caa666ba38007268e67f5c | [log] [tgz] |
---|---|---|
author | Connor Abbott <cwabbott0@gmail.com> | Tue Oct 22 17:50:07 2019 +0200 |
committer | Connor Abbott <cwabbott0@gmail.com> | Thu Nov 14 13:10:58 2019 +0000 |
tree | cc8b38e7e436a28ee0da648231c68b238f47e8f6 | |
parent | f512965b0b3d70525424f100e534b8ac0a43a376 [diff] |
nir: Fix non-determinism in lower_global_vars_to_local Using a hash-table walk means that variables will get inserted in different orders on different runs. Just walk the list of globals instead, even if some of them can't be turned into locals. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Eric Anholt <eric@anholt.net>