Make vasm-graph-color deterministic
commit01abd06976c0dd14955321df002ab139aaa85645
authorMark Williams <mwilliams@fb.com>
Fri, 8 Nov 2019 21:56:31 +0000 (8 13:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 8 Nov 2019 21:59:00 +0000 (8 13:59 -0800)
treee2f52b20609aa88472b6dd6efbb95c49b1a16450
parent74465e68aeac7e7f3a89d8ef26e467ca0f99d9d4
Make vasm-graph-color deterministic

Summary:
Various things need to be done in a deterministic order. Without this,
we can end up with different spills, resulting in different block
layouts (eg phi's become trivial in one but not another), and ultimately
very different code size and layout.

Reviewed By: ricklavoie

Differential Revision: D18388370

fbshipit-source-id: d3a55738993dae222e871fb9234e8d449c436e98
hphp/runtime/vm/jit/vasm-graph-color.cpp
hphp/runtime/vm/jit/vasm-util.cpp