]> git.proxmox.com Git - mirror_qemu.git/commit - target/hexagon/translate.c
Hexagon (target/hexagon) Short-circuit packet predicate writes
authorTaylor Simpson <tsimpson@quicinc.com>
Thu, 27 Apr 2023 23:00:03 +0000 (16:00 -0700)
committerTaylor Simpson <tsimpson@quicinc.com>
Thu, 18 May 2023 19:40:52 +0000 (12:40 -0700)
commit455e169d7cad4499ed9f4647215b9ec71aa706e4
tree90f5efc3f1fb545d953802365ab4fd0fa817f055
parentd54c56156f409344f8cf232f1e7ee68defa811b9
Hexagon (target/hexagon) Short-circuit packet predicate writes

In certain cases, we can avoid the overhead of writing to hex_new_pred_value
and write directly to hex_pred.  We consider predicate reads/writes when
computing ctx->need_commit.  The get_result_pred() function uses this
field to decide between hex_new_pred_value and hex_pred.  Then, we can
early-exit from gen_pred_writes.

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230427230012.3800327-13-tsimpson@quicinc.com>
target/hexagon/genptr.c
target/hexagon/genptr.h
target/hexagon/translate.c