OSDN Git Service

Subzero: Deterministically sort constant pool entries.
authorJim Stichnoth <stichnot@chromium.org>
Thu, 9 Apr 2015 16:11:18 +0000 (09:11 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Thu, 9 Apr 2015 16:11:18 +0000 (09:11 -0700)
commit6e293c814de02a6feb9e6db7b0dd970a2ec3a4e9
tree0fab1104bc09caeb52afe665739bf117010ec9af
parent6c6adf11b12a3529d87587445c1ce82c0dfdbf8c
Subzero: Deterministically sort constant pool entries.

Otherwise, constant pools are emitted in hash table order, which can vary across systems.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=4129
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/1069453003
src/IceGlobalContext.cpp
tests_lit/llvm2ice_tests/elf_container.ll