Dump loop iteration stats
commita5b54c6f02366b9db73016e582c0804581649ac8
authorKaty Voor <voork@meta.com>
Mon, 13 Feb 2023 20:28:56 +0000 (13 12:28 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Feb 2023 20:28:56 +0000 (13 12:28 -0800)
tree18bcf705808341b6a05543eadf60e19f5064b3a5
parent5a41e15647016c3fce830d0e762558933b733f08
Dump loop iteration stats

Summary:
It would be nice to be able to programmatically grep for all the loop iteration stats in tcprint.

This diff just takes the loop header, and finds all predecessors that are not dominated by the loop header.
Its not exact, but should give us a decent idea of whether these loops iterate 1-2 times on average, or more like 8-10.

This diff should make it easy to grep tcprint to get rough numbers for all translations. If it looks good, I can investigate more.

Reviewed By: ottoni

Differential Revision: D43202195

fbshipit-source-id: b9cd8516d66a3e6f7823b099e28beadc31db4d8b
hphp/runtime/vm/jit/cfg.cpp
hphp/runtime/vm/jit/cfg.h
hphp/runtime/vm/jit/print.cpp
hphp/runtime/vm/jit/print.h