Untemplateize refcount opts
commit3a5dc155568d1f4bed02715e271bcf1f3c96fd13
authorMark Williams <mwilliams@fb.com>
Mon, 22 Jan 2018 17:15:00 +0000 (22 09:15 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 22 Jan 2018 17:22:24 +0000 (22 09:22 -0800)
tree3a2d3f4380da3980088dbd0b918313b2cb4db8d2
parentd68582e5d73dd33337cf9f2532eaccdb45549d65
Untemplateize refcount opts

Summary:
Most of the rc-analysis computation was templatized on an NAdder
parameter - but we only ever use two; one is a no-op, and the other is
PreAdder.

Just rewrite PreAdder so it has a no-op mode, and untemplatize
everything. This involved shuffling code around a bit so that
definitions precede uses.

Reviewed By: ricklavoie, swtaarrs

Differential Revision: D6771475

fbshipit-source-id: d8f5ebe069bd3ab5a58864472f57319e898b2e6b
hphp/runtime/vm/jit/refcount-opts.cpp